feat: explore tab, React Query data layer, programs, sync, analytics, testing infrastructure
- Replace browse tab with Supabase-connected explore tab with filters - Add React Query for data fetching with loading states - Add 3 structured programs with weekly progression - Add Supabase anonymous auth sync service - Add PostHog analytics with screen tracking and events - Add comprehensive test strategy (Vitest + Maestro E2E) - Add RevenueCat subscription system with DEV simulation - Add i18n translations for new screens (EN/FR/DE/ES) - Add data deletion modal, sync consent modal - Add assessment screen and program routes - Add GitHub Actions CI workflow - Update activity store with sync integration
This commit is contained in:
37
README.md
37
README.md
@@ -5,6 +5,8 @@
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Vision
|
||||
|
||||
@@ -66,6 +68,41 @@ src/
|
||||
app/ # Expo Router routes
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
```bash
|
||||
# Unit tests with coverage
|
||||
npm run test:coverage
|
||||
|
||||
# Component render tests
|
||||
npm run test:render
|
||||
|
||||
# All unit + render tests
|
||||
npm test && npm run test:render
|
||||
|
||||
# Maestro E2E (requires Expo dev server + simulator)
|
||||
npm run test:maestro
|
||||
|
||||
# Admin-web tests
|
||||
cd admin-web && npm test # Unit tests
|
||||
cd admin-web && npm run test:e2e # Playwright E2E
|
||||
```
|
||||
|
||||
### Test Coverage
|
||||
|
||||
| Layer | Target | Tests |
|
||||
|-------|--------|-------|
|
||||
| Stores | 80%+ | playerStore, activityStore, userStore, programStore |
|
||||
| Services | 80%+ | analytics, music, purchases, sync |
|
||||
| Hooks | 70%+ | useTimer, useHaptics, useAudio, usePurchases, useMusicPlayer, useNotifications, useSupabaseData |
|
||||
| Components | 50%+ | StyledText, VideoPlayer, WorkoutCard, GlassCard, CollectionCard, modals, Skeleton |
|
||||
| Data | 80%+ | achievements, collections, programs, trainers, workouts |
|
||||
|
||||
### E2E Tests
|
||||
|
||||
- **Mobile (Maestro)**: Onboarding, tab navigation, program browse, workout player, activity, profile/settings
|
||||
- **Admin Web (Playwright)**: Auth, navigation, workouts CRUD, trainers, collections
|
||||
|
||||
## License
|
||||
|
||||
Proprietary — All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user