Add feature opt-ins, dashboard view, and tests

Introduce feature_interests schema + realtime publication and surface opt-in trends in the admin dashboard. Add Jest test infrastructure/coverage for the mobile app and update push-all to run mobile checks before pushing.

Co-authored-by: Claude Code <claude@anthropic.com>
This commit is contained in:
Jamie BruntonandClaude Code committed 2026-01-02 11:36:51 +00:00
1 parent 1452519c76
commit f7aa6ed8dd
29 files changed
+5207 -68

No files matched your search

+26 -26
View File
@@ -186,31 +186,31 @@ Track progress by checking off completed items.
## Phase 7: Testing Infrastructure
### 7.1 Setup
- [ ] Install testing dependencies (jest, testing-library)
- [ ] Configure jest for React Native
- [ ] Create test utilities and mocks
### 7.2 Hook Tests
- [ ] Test `useAmbientOrbAnimation`
- [ ] Test `useMediaPicker`
- [ ] Test `useTypingIndicator`
- [ ] Test `useMessageSubscription`
- [ ] Test `useChatMessages`
- [ ] Test `useMediaUpload`
### 7.3 Store Tests
- [ ] Test `authStore` actions
- [ ] Test `matchStore` actions
- [ ] Test `packsStore` actions
- [ ] Test `messageStore` actions
- [ ] Test `subscriptionStore` actions
### 7.4 Component Tests
- [ ] Test `DecorativeSeparator` variants
- [ ] Test `ReadReceipt` states
- [ ] Test `InputBar` interactions
- [ ] Test `MessageBubble` rendering
### 7.1 Setup
- [x] Install testing dependencies (jest, testing-library)
- [x] Configure jest for React Native
- [x] Create test utilities and mocks
### 7.2 Hook Tests
- [x] Test `useAmbientOrbAnimation`
- [x] Test `useMediaPicker`
- [x] Test `useTypingIndicator`
- [x] Test `useMessageSubscription`
- [x] Test `useChatMessages`
- [x] Test `useMediaUpload`
### 7.3 Store Tests
- [x] Test `authStore` actions
- [x] Test `matchStore` actions
- [x] Test `packsStore` actions
- [x] Test `messageStore` actions
- [x] Test `subscriptionStore` actions
### 7.4 Component Tests
- [x] Test `DecorativeSeparator` variants
- [x] Test `ReadReceipt` states
- [x] Test `InputBar` interactions
- [x] Test `MessageBubble` rendering
---
@@ -224,7 +224,7 @@ Track progress by checking off completed items.
| 4. Decompose Chat | Complete | 100% |
| 5. Decompose Profile | Complete | 100% |
| 6. Component Organization | Complete | 100% |
| 7. Testing | Not Started | 0% |
| 7. Testing | Complete | 100% |
---