vibefast-cli 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -95
- package/dist/__tests__/recipes.test.js +94 -91
- package/dist/__tests__/recipes.test.js.map +1 -1
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +301 -125
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/checklist.d.ts.map +1 -1
- package/dist/commands/checklist.js +85 -44
- package/dist/commands/checklist.js.map +1 -1
- package/dist/commands/health.d.ts.map +1 -1
- package/dist/commands/health.js +13 -4
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +118 -26
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/migrate.d.ts +3 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +202 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/remove.d.ts.map +1 -1
- package/dist/commands/remove.js +61 -3
- package/dist/commands/remove.js.map +1 -1
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js +20 -18
- package/dist/core/auth.js.map +1 -1
- package/dist/core/codemod.d.ts +33 -0
- package/dist/core/codemod.d.ts.map +1 -1
- package/dist/core/codemod.js +116 -0
- package/dist/core/codemod.js.map +1 -1
- package/dist/core/detect.d.ts.map +1 -1
- package/dist/core/detect.js +24 -7
- package/dist/core/detect.js.map +1 -1
- package/dist/core/journal.d.ts +1 -0
- package/dist/core/journal.d.ts.map +1 -1
- package/dist/core/journal.js.map +1 -1
- package/dist/core/recipes.d.ts.map +1 -1
- package/dist/core/recipes.js +25 -7
- package/dist/core/recipes.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/docs/architecture.md +50 -0
- package/docs/commands.md +78 -0
- package/docs/contributing.md +27 -0
- package/docs/quickstart.md +50 -0
- package/docs/recipes.md +57 -0
- package/docs/troubleshooting.md +31 -0
- package/package.json +2 -2
- package/recipes/0/apps/native/src/components/advanced-ui/timeline/demo.tsx +445 -0
- package/recipes/0/apps/native/src/components/advanced-ui/timeline/timeline-view.tsx +355 -0
- package/recipes/0/apps/native/src/components/advanced-ui/timeline/types.ts +31 -0
- package/recipes/0/recipe.json +18 -0
- package/recipes/animated-chip/apps/native/src/components/advanced-ui/chip/demo.tsx +2 -1
- package/recipes/animated-chip/recipe.json +5 -2
- package/recipes/animated-chip-native@latest.zip +0 -0
- package/recipes/animated-chip@latest.zip +0 -0
- package/recipes/animated-switch/apps/native/src/components/advanced-ui/switch/demo.tsx +1 -1
- package/recipes/animated-switch/recipe.json +5 -2
- package/recipes/animated-switch-native@latest.zip +0 -0
- package/recipes/animated-switch@latest.zip +0 -0
- package/recipes/audio-recorder/apps/native/src/features/audio-recorder/components/audio-recorder.tsx +2 -1
- package/recipes/audio-recorder/apps/native/src/features/audio-recorder/demo/with-recording-list-demo.tsx +2 -2
- package/recipes/audio-recorder/recipe.json +7 -2
- package/recipes/audio-recorder-native@latest.zip +0 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-recorder.tsx +2 -1
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/with-recording-list-demo.tsx +2 -1
- package/recipes/audio-recorder-supabase/recipe.json +12 -16
- package/recipes/audio-recorder-supabase-native@latest.zip +0 -0
- package/recipes/audio-recorder-supabase@latest.zip +0 -0
- package/recipes/audio-recorder@latest.zip +0 -0
- package/recipes/charts/apps/native/src/app/charts/index.tsx +3 -0
- package/recipes/charts/apps/native/src/features/charts/components/bar-chart.tsx +3 -1
- package/recipes/charts/apps/native/src/features/charts/components/candlestick-chart.tsx +3 -1
- package/recipes/charts/apps/native/src/features/charts/components/column-chart.tsx +3 -1
- package/recipes/charts/apps/native/src/features/charts/components/doughnut-chart.tsx +3 -1
- package/recipes/charts/apps/native/src/features/charts/components/line-chart.tsx +3 -1
- package/recipes/charts/apps/native/src/features/charts/components/radar-chart.tsx +3 -1
- package/recipes/charts/apps/native/src/features/charts/components/stacked-bar-chart.tsx +3 -1
- package/recipes/charts/recipe.json +13 -4
- package/recipes/charts-native@latest.zip +0 -0
- package/recipes/charts@latest.zip +0 -0
- package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-markdown.tsx +86 -86
- package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/code-block.tsx +4 -4
- package/recipes/chatbot/recipe.json +3 -40
- package/recipes/chatbot-native@latest.zip +0 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-markdown.tsx +4 -1
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/code-block.tsx +86 -53
- package/recipes/chatbot-supabase/recipe.json +3 -42
- package/recipes/chatbot-supabase-native@latest.zip +0 -0
- package/recipes/chatbot-supabase@latest.zip +0 -0
- package/recipes/chatbot@latest.zip +0 -0
- package/recipes/glowing-button/recipe.json +6 -2
- package/recipes/glowing-button-native@latest.zip +0 -0
- package/recipes/glowing-button@latest.zip +0 -0
- package/recipes/image-analysis/apps/native/src/app/analysis/[type]/_layout.tsx +5 -0
- package/recipes/image-analysis/apps/native/src/app/analysis/[type]/analysis-options.tsx +50 -0
- package/recipes/image-analysis/apps/native/src/app/analysis/[type]/camera.tsx +2 -0
- package/recipes/image-analysis/apps/native/src/app/analysis/[type]/index.tsx +50 -0
- package/recipes/image-analysis/apps/native/src/app/analysis/[type]/loading.tsx +50 -0
- package/recipes/image-analysis/apps/native/src/app/analysis/[type]/results.tsx +2 -0
- package/recipes/image-analysis/apps/native/src/app/analysis/[type]/trait-details.tsx +3 -0
- package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/analysis-options-screen.tsx +2 -2
- package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/camera.tsx +72 -65
- package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/image-capture-screen.tsx +65 -47
- package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/loading-screen.tsx +43 -2
- package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/loading.tsx +34 -1
- package/recipes/image-analysis/apps/native/src/features/image-analyzer/hooks/use-image-analysis.ts +83 -2
- package/recipes/image-analysis/recipe.json +11 -19
- package/recipes/image-analysis-native@latest.zip +0 -0
- package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/_layout.tsx +5 -0
- package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/analysis-options.tsx +50 -0
- package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/camera.tsx +2 -0
- package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/index.tsx +50 -0
- package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/loading.tsx +50 -0
- package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/results.tsx +2 -0
- package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/trait-details.tsx +3 -0
- package/recipes/image-analysis-supabase/recipe.json +10 -37
- package/recipes/image-analysis-supabase-native@latest.zip +0 -0
- package/recipes/image-analysis-supabase@latest.zip +0 -0
- package/recipes/image-analysis@latest.zip +0 -0
- package/recipes/image-analyzer/apps/native/src/app/(root)/(protected)/image-analyzer/index.tsx +2 -0
- package/recipes/image-generator/apps/native/src/app/image-generator/gallery.tsx +3 -0
- package/recipes/image-generator/apps/native/src/app/image-generator/index.tsx +3 -0
- package/recipes/image-generator/recipe.json +8 -18
- package/recipes/image-generator-native@latest.zip +0 -0
- package/recipes/image-generator-supabase/recipe.json +6 -35
- package/recipes/image-generator-supabase-native@latest.zip +0 -0
- package/recipes/image-generator-supabase@latest.zip +0 -0
- package/recipes/image-generator@latest.zip +0 -0
- package/recipes/ios-widget/recipe.json +18 -119
- package/recipes/ios-widget-native@latest.zip +0 -0
- package/recipes/ios-widget@latest.zip +0 -0
- package/recipes/number-stepper/apps/native/src/components/advanced-ui/stepper/demo.tsx +1 -1
- package/recipes/number-stepper/recipe.json +5 -2
- package/recipes/number-stepper-native@latest.zip +0 -0
- package/recipes/number-stepper@latest.zip +0 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/interactive-onboarding.tsx +11 -18
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/ai-tone-step.tsx +5 -7
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/currency-step.tsx +9 -7
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-ai-step.tsx +8 -7
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-chatbot-step.tsx +6 -5
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-manual-step.tsx +4 -3
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-scan-step.tsx +6 -5
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/main-reason-step.tsx +5 -7
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/notification-step.tsx +7 -6
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/overspend-step.tsx +5 -7
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/personalizing-step.tsx +8 -7
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/rating-step.tsx +6 -5
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/reminder-step.tsx +5 -6
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/safety-step.tsx +5 -4
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/struggle-step.tsx +5 -7
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/welcome-step.tsx +7 -6
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/ui/onboarding-header.tsx +4 -3
- package/recipes/onboarding/recipe.json +9 -6
- package/recipes/onboarding-native@latest.zip +0 -0
- package/recipes/onboarding@latest.zip +0 -0
- package/recipes/payments/apps/native/src/app/paywall/index.tsx +74 -0
- package/recipes/payments/apps/native/src/app/paywall/local.tsx +25 -0
- package/recipes/payments/apps/native/src/app/paywall/remote.tsx +23 -0
- package/recipes/payments/packages/backend/convex/payments.ts +21 -3
- package/recipes/payments/recipe.json +14 -34
- package/recipes/payments-native@latest.zip +0 -0
- package/recipes/payments-supabase/apps/native/src/app/paywall/index.tsx +74 -0
- package/recipes/payments-supabase/apps/native/src/app/paywall/local.tsx +25 -0
- package/recipes/payments-supabase/apps/native/src/app/paywall/remote.tsx +23 -0
- package/recipes/payments-supabase/recipe.json +16 -23
- package/recipes/payments-supabase-native@latest.zip +0 -0
- package/recipes/payments-supabase@latest.zip +0 -0
- package/recipes/payments@latest.zip +0 -0
- package/recipes/posthog/apps/native/src/components/analytics/navigation-tracker.tsx +14 -0
- package/recipes/posthog/apps/native/src/lib/hooks/use-navigation-analytics.ts +44 -0
- package/recipes/posthog/apps/native/src/providers/posthog-provider.tsx +51 -0
- package/recipes/posthog/recipe.json +60 -0
- package/recipes/posthog-native@latest.zip +0 -0
- package/recipes/progress-circle/apps/native/src/components/advanced-ui/progress-bars/progress-circle-page.tsx +1 -1
- package/recipes/progress-circle/recipe.json +5 -2
- package/recipes/progress-circle-native@latest.zip +0 -0
- package/recipes/progress-circle@latest.zip +0 -0
- package/recipes/quiz/apps/native/src/app/quiz/index.tsx +47 -0
- package/recipes/quiz/recipe.json +9 -6
- package/recipes/quiz-native@latest.zip +0 -0
- package/recipes/quiz@latest.zip +0 -0
- package/recipes/screen-kits/apps/native/src/app/screen-kits/_layout.tsx +12 -0
- package/recipes/screen-kits/apps/native/src/app/screen-kits/index.tsx +114 -0
- package/recipes/screen-kits/apps/native/src/features/screen-kits/index.ts +1 -0
- package/recipes/screen-kits/apps/native/src/features/screen-kits/types.ts +28 -0
- package/recipes/screen-kits/recipe.json +26 -0
- package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/_layout.tsx +12 -0
- package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/home.tsx +5 -0
- package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/index.tsx +5 -0
- package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/lesson-complete.tsx +5 -0
- package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/lesson-fail.tsx +5 -0
- package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/lesson.tsx +5 -0
- package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/skill-tree.tsx +5 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/components/duo-button.tsx +174 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/components/skill-button.tsx +186 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/components/xp-header.tsx +115 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/constants.ts +89 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/index.ts +3 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/home-screen.tsx +225 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/lesson-complete-screen.tsx +485 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/lesson-fail-screen.tsx +105 -0
- package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/lesson-screen.tsx +384 -0
- package/recipes/screen-kits-duolingo/recipe.json +58 -0
- package/recipes/screen-kits-duolingo-native@latest.zip +0 -0
- package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/_layout.tsx +45 -0
- package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/asset-detail.tsx +3 -0
- package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/notifications.tsx +3 -0
- package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/receive.tsx +3 -0
- package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/send.tsx +3 -0
- package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/swap.tsx +3 -0
- package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/wallet.tsx +3 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/components/ActionButtons.tsx +78 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/components/AssetRow.tsx +94 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/components/BalanceCard.tsx +118 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/constants.ts +85 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/asset-detail.tsx +378 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/notifications.tsx +210 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/receive-modal.tsx +317 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/send-modal.tsx +420 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/swap-modal.tsx +363 -0
- package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/wallet-dashboard.tsx +281 -0
- package/recipes/screen-kits-finance/recipe.json +46 -0
- package/recipes/screen-kits-finance-native@latest.zip +0 -0
- package/recipes/screen-kits-fitness/apps/native/assets/sounds/timer-beep.wav +0 -0
- package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/_layout.tsx +10 -0
- package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/index.tsx +6 -0
- package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/timer.tsx +3 -0
- package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/workout.tsx +3 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/components/timer-components.tsx +500 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/components/timer-settings-modal.tsx +352 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/components/workout-card.tsx +105 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/constants.ts +189 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/hooks/use-timer.ts +307 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/index.ts +1 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/screens/timer-screen.tsx +278 -0
- package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/screens/workout-dashboard.tsx +350 -0
- package/recipes/screen-kits-fitness/recipe.json +63 -0
- package/recipes/screen-kits-fitness-native@latest.zip +0 -0
- package/recipes/screen-kits-habits/apps/native/src/app/screen-kits/productivity/habits.tsx +1 -0
- package/recipes/screen-kits-habits/apps/native/src/app/screen-kits/productivity/kanban.tsx +1 -0
- package/recipes/screen-kits-habits/apps/native/src/app/screen-kits/productivity/routes.ts +4 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/AddTaskModal.tsx +246 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/DraggableTaskCard.tsx +92 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/KanbanColumn.tsx +238 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/TaskCard.tsx +144 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/add-habit-modal.tsx +271 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/constants.ts +295 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/kanban-utils.ts +62 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/screens/habit-tracker.tsx +1160 -0
- package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/screens/kanban-board.tsx +432 -0
- package/recipes/screen-kits-habits/recipe.json +52 -0
- package/recipes/screen-kits-habits-native@latest.zip +0 -0
- package/recipes/screen-kits-native@latest.zip +0 -0
- package/recipes/sentry/apps/native/src/providers/sentry-provider.tsx +64 -0
- package/recipes/sentry/recipe.json +39 -0
- package/recipes/sentry-native@latest.zip +0 -0
- package/recipes/swipe-slider/apps/native/src/components/advanced-ui/sliders/swipe-slider-page.tsx +1 -1
- package/recipes/swipe-slider/recipe.json +5 -2
- package/recipes/swipe-slider-native@latest.zip +0 -0
- package/recipes/swipe-slider@latest.zip +0 -0
- package/recipes/timeline/apps/native/src/components/advanced-ui/timeline/demo.tsx +2 -1
- package/recipes/timeline/recipe.json +5 -2
- package/recipes/timeline-native@latest.zip +0 -0
- package/recipes/timeline@latest.zip +0 -0
- package/recipes/tracker-app/apps/native/src/app/tracker-app/index.tsx +1 -0
- package/recipes/tracker-app/recipe.json +10 -7
- package/recipes/tracker-app-native@latest.zip +0 -0
- package/recipes/tracker-app@latest.zip +0 -0
- package/recipes/upload-all.sh +8 -31
- package/recipes/voice-bot/apps/native/src/app/voice-bot/index.tsx +56 -0
- package/recipes/voice-bot/recipe.json +31 -7
- package/recipes/voice-bot-native@latest.zip +0 -0
- package/recipes/voice-bot@latest.zip +0 -0
- package/recipes/wake-word/apps/native/src/app/{(root)/(protected)/test-wake-word.tsx → test-wake-word.tsx} +43 -4
- package/recipes/wake-word/recipe.json +16 -26
- package/recipes/wake-word-native@latest.zip +0 -0
- package/recipes/wake-word@latest.zip +0 -0
- package/scripts/create-advanced-ui-recipes.sh +46 -19
- package/scripts/create-recipes.mjs +471 -117
- package/scripts/package-recipes.mjs +76 -0
- package/scripts/publish-all.sh +6 -2
- package/CHANGELOG.md +0 -198
- package/docs/archive/AUTO-DETECT-DEPS.md +0 -607
- package/docs/archive/FINAL-PACKAGE-STRATEGY.md +0 -583
- package/docs/archive/FINAL-SIMPLE-PLAN.md +0 -487
- package/docs/archive/FINAL-STATUS.md +0 -144
- package/docs/archive/FLOW-DIAGRAM.md +0 -1629
- package/docs/archive/GOTCHAS-AND-RISKS.md +0 -801
- package/docs/archive/IMPLEMENTATION-PLAN.md +0 -1360
- package/docs/archive/PLAN.md +0 -453
- package/docs/archive/PRODUCTION-READINESS.md +0 -684
- package/docs/archive/PRODUCTION-TEST-RESULTS.md +0 -465
- package/docs/archive/SIMPLIFIED-PLAN.md +0 -578
- package/docs/archive/STATUS.md +0 -199
- package/docs/archive/SUCCESS.md +0 -259
- package/docs/archive/TEST-SUMMARY.md +0 -261
- package/docs/archive/TESTING-CHECKLIST.md +0 -450
- package/docs/archive/USER-MODIFICATIONS.md +0 -448
- package/docs/decisions.md +0 -55
- package/docs/manual-testing.md +0 -91
- package/docs/next-steps.md +0 -12
- package/recipes/README.md +0 -156
- package/recipes/audio-recorder-supabase/packages/backend/src/services/recordings.ts +0 -369
- package/recipes/chatbot/apps/native/src/api-client/chatbot.ts +0 -83
- package/recipes/chatbot/packages/backend/convex/agents.ts +0 -115
- package/recipes/chatbot/packages/backend/convex/tools/index.ts +0 -18
- package/recipes/chatbot/packages/backend/convex/tools/knowledgeRetrieval.ts +0 -97
- package/recipes/chatbot/packages/backend/convex/tools/tavilySearch.ts +0 -83
- package/recipes/chatbot/packages/backend/convex/tools/userProfile.ts +0 -72
- package/recipes/chatbot-supabase/apps/native/src/api-client/supabase/chatbot.ts +0 -515
- package/recipes/chatbot-supabase/packages/backend/src/services/conversations.ts +0 -243
- package/recipes/chatbot-supabase/packages/backend/src/services/messages.ts +0 -327
- package/recipes/image-analysis/apps/native/src/api-client/image-analyzer.ts +0 -62
- package/recipes/image-analysis-supabase/packages/backend/src/services/image-analyses.ts +0 -132
- package/recipes/image-generator/apps/native/src/api-client/image-generator.ts +0 -34
- package/recipes/payments/apps/native/src/api-client/payments.ts +0 -44
- package/recipes/payments-supabase/packages/backend/src/services/payments.ts +0 -201
- package/recipes/posthog.json +0 -47
- package/recipes/revenuecat.json +0 -43
- package/recipes/sentry.json +0 -47
- package/recipes/wake-word/apps/native/assets/vosk-model/README.md +0 -103
- package/recipes/wake-word/apps/native/scripts/download-vosk-model.mjs +0 -127
- /package/recipes/{audio-recorder/apps/native/src/app/(root)/(protected) → audio-recorder-supabase/apps/native/src/app}/audio-recorder/index.tsx +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/AppIntent.swift +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/CalorieTrackerWidget.swift +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/HabitTrackerWidget.swift +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Info.plist +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/WidgetLiveActivity.swift +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/expo-target.config.js +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/generated.entitlements +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/index.swift +0 -0
- /package/recipes/ios-widget/{targets → apps/native/targets}/widget/widgets.swift +0 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
2
|
+
import { Stack, useRouter } from 'expo-router';
|
|
3
|
+
import React, { useEffect, useState } from 'react';
|
|
4
|
+
import {
|
|
5
|
+
ScrollView,
|
|
6
|
+
StatusBar,
|
|
7
|
+
TouchableOpacity,
|
|
8
|
+
View,
|
|
9
|
+
Dimensions,
|
|
10
|
+
Pressable,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import Animated, {
|
|
13
|
+
FadeInDown,
|
|
14
|
+
useAnimatedProps,
|
|
15
|
+
useSharedValue,
|
|
16
|
+
withTiming,
|
|
17
|
+
withRepeat,
|
|
18
|
+
withSequence,
|
|
19
|
+
useAnimatedStyle,
|
|
20
|
+
withSpring,
|
|
21
|
+
Easing,
|
|
22
|
+
interpolate,
|
|
23
|
+
} from 'react-native-reanimated';
|
|
24
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
25
|
+
import Svg, { Circle, G } from 'react-native-svg';
|
|
26
|
+
import { Text } from '@/components/ui';
|
|
27
|
+
import WorkoutCard from '../components/workout-card';
|
|
28
|
+
import { FITNESS_COLORS, MOCK_WORKOUTS, WEEKLY_STATS } from '../constants';
|
|
29
|
+
|
|
30
|
+
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
|
|
31
|
+
const { width } = Dimensions.get('window');
|
|
32
|
+
|
|
33
|
+
interface ActivityRingProps {
|
|
34
|
+
radius: number;
|
|
35
|
+
stroke: number;
|
|
36
|
+
color: string;
|
|
37
|
+
progress: number; // 0 to 1
|
|
38
|
+
delay?: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const ActivityRing = ({
|
|
42
|
+
radius,
|
|
43
|
+
stroke,
|
|
44
|
+
color,
|
|
45
|
+
progress,
|
|
46
|
+
delay = 0,
|
|
47
|
+
}: ActivityRingProps) => {
|
|
48
|
+
const circumference = 2 * Math.PI * radius;
|
|
49
|
+
const progressValue = useSharedValue(0);
|
|
50
|
+
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
progressValue.value = withTiming(progress, {
|
|
53
|
+
duration: 1500,
|
|
54
|
+
easing: Easing.out(Easing.exp),
|
|
55
|
+
});
|
|
56
|
+
}, [progress]);
|
|
57
|
+
|
|
58
|
+
const animatedProps = useAnimatedProps(() => {
|
|
59
|
+
const strokeDashoffset = interpolate(
|
|
60
|
+
progressValue.value,
|
|
61
|
+
[0, 1],
|
|
62
|
+
[circumference, 0],
|
|
63
|
+
);
|
|
64
|
+
return {
|
|
65
|
+
strokeDashoffset,
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<View className="absolute items-center justify-center">
|
|
71
|
+
<Svg height={radius * 2 + stroke} width={radius * 2 + stroke}>
|
|
72
|
+
<G
|
|
73
|
+
rotation="-90"
|
|
74
|
+
origin={`${radius + stroke / 2}, ${radius + stroke / 2}`}
|
|
75
|
+
>
|
|
76
|
+
<Circle
|
|
77
|
+
cx="50%"
|
|
78
|
+
cy="50%"
|
|
79
|
+
r={radius}
|
|
80
|
+
stroke={color}
|
|
81
|
+
strokeWidth={stroke}
|
|
82
|
+
strokeOpacity={0.2}
|
|
83
|
+
fill="transparent"
|
|
84
|
+
/>
|
|
85
|
+
<AnimatedCircle
|
|
86
|
+
cx="50%"
|
|
87
|
+
cy="50%"
|
|
88
|
+
r={radius}
|
|
89
|
+
stroke={color}
|
|
90
|
+
strokeWidth={stroke}
|
|
91
|
+
fill="transparent"
|
|
92
|
+
strokeDasharray={circumference}
|
|
93
|
+
animatedProps={animatedProps}
|
|
94
|
+
strokeLinecap="round"
|
|
95
|
+
/>
|
|
96
|
+
</G>
|
|
97
|
+
</Svg>
|
|
98
|
+
</View>
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const StatCard = ({
|
|
103
|
+
icon,
|
|
104
|
+
label,
|
|
105
|
+
value,
|
|
106
|
+
color,
|
|
107
|
+
details,
|
|
108
|
+
}: {
|
|
109
|
+
icon: keyof typeof Ionicons.glyphMap;
|
|
110
|
+
label: string;
|
|
111
|
+
value: string;
|
|
112
|
+
color: string;
|
|
113
|
+
details: string;
|
|
114
|
+
}) => {
|
|
115
|
+
const [expanded, setExpanded] = useState(false);
|
|
116
|
+
const scale = useSharedValue(1);
|
|
117
|
+
|
|
118
|
+
const toggleExpand = () => {
|
|
119
|
+
setExpanded(!expanded);
|
|
120
|
+
scale.value = withSequence(
|
|
121
|
+
withTiming(0.95, { duration: 100 }),
|
|
122
|
+
withTiming(1, { duration: 100 }),
|
|
123
|
+
);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
127
|
+
transform: [{ scale: scale.value }],
|
|
128
|
+
}));
|
|
129
|
+
|
|
130
|
+
return (
|
|
131
|
+
<Pressable onPress={toggleExpand} className="flex-1">
|
|
132
|
+
<Animated.View
|
|
133
|
+
style={[animatedStyle]}
|
|
134
|
+
className={`bg-zinc-900 p-4 rounded-2xl border border-zinc-800 ${expanded ? 'border-primary/50' : ''}`}
|
|
135
|
+
>
|
|
136
|
+
<View className="flex-row items-center gap-2 mb-2">
|
|
137
|
+
<Ionicons name={icon} size={20} color={color} />
|
|
138
|
+
<Text className="text-zinc-400 text-xs font-bold uppercase">
|
|
139
|
+
{label}
|
|
140
|
+
</Text>
|
|
141
|
+
</View>
|
|
142
|
+
<Text className="text-white text-xl font-black">{value}</Text>
|
|
143
|
+
{expanded && (
|
|
144
|
+
<Animated.View entering={FadeInDown.duration(200)} className="mt-2">
|
|
145
|
+
<Text className="text-zinc-500 text-xs leading-4">{details}</Text>
|
|
146
|
+
</Animated.View>
|
|
147
|
+
)}
|
|
148
|
+
</Animated.View>
|
|
149
|
+
</Pressable>
|
|
150
|
+
);
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
const HeartRate = () => {
|
|
154
|
+
const scale = useSharedValue(1);
|
|
155
|
+
|
|
156
|
+
useEffect(() => {
|
|
157
|
+
scale.value = withRepeat(
|
|
158
|
+
withSequence(
|
|
159
|
+
withTiming(1.2, { duration: 100 }),
|
|
160
|
+
withTiming(1, { duration: 100 }),
|
|
161
|
+
withTiming(1.2, { duration: 100 }),
|
|
162
|
+
withTiming(1, { duration: 400 }), // Pause between beats
|
|
163
|
+
),
|
|
164
|
+
-1,
|
|
165
|
+
true,
|
|
166
|
+
);
|
|
167
|
+
}, []);
|
|
168
|
+
|
|
169
|
+
const animatedStyle = useAnimatedStyle(() => ({
|
|
170
|
+
transform: [{ scale: scale.value }],
|
|
171
|
+
}));
|
|
172
|
+
|
|
173
|
+
return (
|
|
174
|
+
<Animated.View style={animatedStyle}>
|
|
175
|
+
<Ionicons name="heart" size={24} color={FITNESS_COLORS.danger} />
|
|
176
|
+
</Animated.View>
|
|
177
|
+
);
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export default function FitnessDashboard() {
|
|
181
|
+
const router = useRouter();
|
|
182
|
+
const insets = useSafeAreaInsets();
|
|
183
|
+
|
|
184
|
+
return (
|
|
185
|
+
<View className="flex-1 bg-zinc-950">
|
|
186
|
+
<Stack.Screen options={{ headerShown: false }} />
|
|
187
|
+
<StatusBar barStyle="light-content" />
|
|
188
|
+
|
|
189
|
+
<ScrollView
|
|
190
|
+
className="flex-1"
|
|
191
|
+
contentContainerStyle={{
|
|
192
|
+
paddingTop: insets.top + 20,
|
|
193
|
+
paddingBottom: 100,
|
|
194
|
+
paddingHorizontal: 20,
|
|
195
|
+
}}
|
|
196
|
+
showsVerticalScrollIndicator={false}
|
|
197
|
+
>
|
|
198
|
+
{/* Header */}
|
|
199
|
+
<Animated.View
|
|
200
|
+
entering={FadeInDown.delay(100)}
|
|
201
|
+
className="flex-row justify-between items-center mb-8"
|
|
202
|
+
>
|
|
203
|
+
<View>
|
|
204
|
+
<Text className="text-zinc-400 text-sm font-medium uppercase tracking-widest mb-1">
|
|
205
|
+
Thursday, 12 Oct
|
|
206
|
+
</Text>
|
|
207
|
+
<Text className="text-white text-3xl font-black">
|
|
208
|
+
Hello, Runner{' '}
|
|
209
|
+
<Text style={{ color: FITNESS_COLORS.primary }}>⚡️</Text>
|
|
210
|
+
</Text>
|
|
211
|
+
</View>
|
|
212
|
+
<TouchableOpacity className="w-12 h-12 rounded-full border border-zinc-800 items-center justify-center bg-zinc-900">
|
|
213
|
+
<Ionicons name="notifications-outline" size={24} color="white" />
|
|
214
|
+
</TouchableOpacity>
|
|
215
|
+
</Animated.View>
|
|
216
|
+
|
|
217
|
+
{/* Activity Rings Section */}
|
|
218
|
+
<Animated.View
|
|
219
|
+
entering={FadeInDown.delay(200)}
|
|
220
|
+
className="w-full bg-zinc-900 p-6 rounded-[32px] mb-8 border border-zinc-800"
|
|
221
|
+
>
|
|
222
|
+
<View className="flex-row items-center justify-between mb-6">
|
|
223
|
+
<View>
|
|
224
|
+
<Text className="text-white text-4xl font-black mb-1">
|
|
225
|
+
Active
|
|
226
|
+
</Text>
|
|
227
|
+
<Text className="text-zinc-500 font-medium tracking-wide">
|
|
228
|
+
Today's Progress
|
|
229
|
+
</Text>
|
|
230
|
+
</View>
|
|
231
|
+
{/* Rings Container */}
|
|
232
|
+
<View className="w-24 h-24 items-center justify-center relative">
|
|
233
|
+
<ActivityRing
|
|
234
|
+
radius={40}
|
|
235
|
+
stroke={8}
|
|
236
|
+
color={FITNESS_COLORS.ring1}
|
|
237
|
+
progress={0.75}
|
|
238
|
+
/>
|
|
239
|
+
<ActivityRing
|
|
240
|
+
radius={28}
|
|
241
|
+
stroke={8}
|
|
242
|
+
color={FITNESS_COLORS.ring3}
|
|
243
|
+
progress={0.85}
|
|
244
|
+
/>
|
|
245
|
+
</View>
|
|
246
|
+
</View>
|
|
247
|
+
|
|
248
|
+
{/* Stats Grid */}
|
|
249
|
+
<View className="flex-row gap-3">
|
|
250
|
+
<StatCard
|
|
251
|
+
icon="flame"
|
|
252
|
+
label="Calories"
|
|
253
|
+
value="840"
|
|
254
|
+
color={FITNESS_COLORS.ring1}
|
|
255
|
+
details="240 Active, 600 Resting"
|
|
256
|
+
/>
|
|
257
|
+
<StatCard
|
|
258
|
+
icon="time"
|
|
259
|
+
label="Time"
|
|
260
|
+
value="45m"
|
|
261
|
+
color={FITNESS_COLORS.ring3}
|
|
262
|
+
details="15m Remaining"
|
|
263
|
+
/>
|
|
264
|
+
</View>
|
|
265
|
+
</Animated.View>
|
|
266
|
+
|
|
267
|
+
{/* Heart Rate Section */}
|
|
268
|
+
<Animated.View
|
|
269
|
+
entering={FadeInDown.delay(300)}
|
|
270
|
+
className="mb-8 flex-row items-center justify-between bg-zinc-900/50 p-4 rounded-2xl border border-zinc-800"
|
|
271
|
+
>
|
|
272
|
+
<View className="flex-row items-center gap-3">
|
|
273
|
+
<View className="w-10 h-10 rounded-full bg-red-500/10 items-center justify-center">
|
|
274
|
+
<HeartRate />
|
|
275
|
+
</View>
|
|
276
|
+
<View>
|
|
277
|
+
<Text className="text-white font-bold text-lg">Heart Rate</Text>
|
|
278
|
+
<Text className="text-zinc-500 text-xs">Avg. 128 bpm</Text>
|
|
279
|
+
</View>
|
|
280
|
+
</View>
|
|
281
|
+
<View className="flex-row items-end gap-1">
|
|
282
|
+
<Text className="text-white text-2xl font-black">112</Text>
|
|
283
|
+
<Text className="text-zinc-500 text-sm font-medium mb-1">bpm</Text>
|
|
284
|
+
</View>
|
|
285
|
+
</Animated.View>
|
|
286
|
+
|
|
287
|
+
{/* Weekly Activity Chart */}
|
|
288
|
+
<Animated.View entering={FadeInDown.delay(400)} className="mb-8">
|
|
289
|
+
<View className="flex-row justify-between items-end mb-4">
|
|
290
|
+
<Text className="text-white text-xl font-bold">Activity</Text>
|
|
291
|
+
<Text
|
|
292
|
+
style={{ color: FITNESS_COLORS.primary }}
|
|
293
|
+
className="font-bold"
|
|
294
|
+
>
|
|
295
|
+
Weekly Goal
|
|
296
|
+
</Text>
|
|
297
|
+
</View>
|
|
298
|
+
<View className="bg-zinc-900 rounded-3xl p-5 flex-row justify-between items-end h-48 border border-zinc-800">
|
|
299
|
+
{WEEKLY_STATS.map((stat, i) => (
|
|
300
|
+
<View key={i} className="items-center gap-2">
|
|
301
|
+
<View className="w-8 bg-zinc-800 rounded-full overflow-hidden relative justify-end h-32">
|
|
302
|
+
<Animated.View
|
|
303
|
+
entering={FadeInDown.delay(i * 50 + 500)}
|
|
304
|
+
style={{
|
|
305
|
+
height: `${(stat.value / 1000) * 100}%`,
|
|
306
|
+
width: '100%',
|
|
307
|
+
backgroundColor: stat.active
|
|
308
|
+
? FITNESS_COLORS.primary
|
|
309
|
+
: '#27272a',
|
|
310
|
+
borderRadius: 100,
|
|
311
|
+
}}
|
|
312
|
+
/>
|
|
313
|
+
</View>
|
|
314
|
+
<Text
|
|
315
|
+
className={`text-xs font-bold ${stat.active ? 'text-white' : 'text-zinc-600'}`}
|
|
316
|
+
>
|
|
317
|
+
{stat.day}
|
|
318
|
+
</Text>
|
|
319
|
+
</View>
|
|
320
|
+
))}
|
|
321
|
+
</View>
|
|
322
|
+
</Animated.View>
|
|
323
|
+
|
|
324
|
+
{/* Popular Workouts */}
|
|
325
|
+
<Animated.View entering={FadeInDown.delay(500)}>
|
|
326
|
+
<View className="flex-row justify-between items-center mb-4">
|
|
327
|
+
<Text className="text-white text-xl font-bold">
|
|
328
|
+
Popular Workouts
|
|
329
|
+
</Text>
|
|
330
|
+
<Text className="text-zinc-500 font-bold">See All</Text>
|
|
331
|
+
</View>
|
|
332
|
+
<ScrollView
|
|
333
|
+
horizontal
|
|
334
|
+
showsHorizontalScrollIndicator={false}
|
|
335
|
+
style={{ marginHorizontal: -20, paddingHorizontal: 20 }}
|
|
336
|
+
>
|
|
337
|
+
{MOCK_WORKOUTS.map((item, index) => (
|
|
338
|
+
<WorkoutCard
|
|
339
|
+
key={item.id}
|
|
340
|
+
item={item}
|
|
341
|
+
index={index}
|
|
342
|
+
onPress={() => {}}
|
|
343
|
+
/>
|
|
344
|
+
))}
|
|
345
|
+
</ScrollView>
|
|
346
|
+
</Animated.View>
|
|
347
|
+
</ScrollView>
|
|
348
|
+
</View>
|
|
349
|
+
);
|
|
350
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "screen-kits-fitness",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Screen kit: Fit Track (workout & activity)",
|
|
5
|
+
"copy": [
|
|
6
|
+
{
|
|
7
|
+
"from": "apps/native/src/app/screen-kits/fitness",
|
|
8
|
+
"to": "apps/native/src/app/(root)/(protected)/screen-kits/fitness"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"from": "apps/native/src/features/screen-kits/fitness",
|
|
12
|
+
"to": "apps/native/src/features/screen-kits/fitness"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"from": "apps/native/assets/sounds/timer-beep.wav",
|
|
16
|
+
"to": "apps/native/assets/sounds/timer-beep.wav"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"screenKit": {
|
|
20
|
+
"id": "fitness",
|
|
21
|
+
"title": "Fit Track",
|
|
22
|
+
"description": "Workout and activity tracking",
|
|
23
|
+
"icon": "💪",
|
|
24
|
+
"color": "#F97316",
|
|
25
|
+
"screens": [
|
|
26
|
+
{
|
|
27
|
+
"id": "dashboard",
|
|
28
|
+
"name": "Workout Dashboard",
|
|
29
|
+
"description": "Daily activity summary",
|
|
30
|
+
"route": "/screen-kits/fitness/workout"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "timer",
|
|
34
|
+
"name": "Exercise Timer",
|
|
35
|
+
"description": "Workout session view",
|
|
36
|
+
"route": "/screen-kits/fitness/timer"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "steps",
|
|
40
|
+
"name": "Step Counter",
|
|
41
|
+
"description": "Pedometer and activity rings",
|
|
42
|
+
"route": "/screen-kits/fitness/steps"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"target": "native",
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"expo": [
|
|
49
|
+
"@expo/vector-icons",
|
|
50
|
+
"@gorhom/bottom-sheet",
|
|
51
|
+
"expo-audio",
|
|
52
|
+
"expo-blur",
|
|
53
|
+
"expo-haptics",
|
|
54
|
+
"expo-linear-gradient",
|
|
55
|
+
"lottie-react-native",
|
|
56
|
+
"react-native-css-interop",
|
|
57
|
+
"react-native-gesture-handler",
|
|
58
|
+
"react-native-reanimated",
|
|
59
|
+
"react-native-safe-area-context",
|
|
60
|
+
"react-native-svg"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import HabitTracker from '@/features/screen-kits/productivity/screens/habit-tracker'; export default HabitTracker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import KanbanBoard from '@/features/screen-kits/productivity/screens/kanban-board'; export default KanbanBoard;
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
2
|
+
import type { BottomSheetModal } from '@gorhom/bottom-sheet';
|
|
3
|
+
import { BottomSheetTextInput, BottomSheetView } from '@gorhom/bottom-sheet';
|
|
4
|
+
import React, { forwardRef, useCallback, useImperativeHandle, useState } from 'react';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
|
+
import { useColorScheme } from 'react-native-css-interop';
|
|
7
|
+
|
|
8
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
9
|
+
import { Modal, useModal } from '@/components/ui/core/overlays/modal';
|
|
10
|
+
|
|
11
|
+
import type { KanbanStatus, KanbanTask, Priority } from '../constants';
|
|
12
|
+
import {
|
|
13
|
+
KANBAN_COLUMNS,
|
|
14
|
+
PRIORITY_CONFIG,
|
|
15
|
+
PRIORITY_LEVELS,
|
|
16
|
+
PRODUCTIVITY_COLORS,
|
|
17
|
+
} from '../constants';
|
|
18
|
+
|
|
19
|
+
export type AddTaskModalRef = {
|
|
20
|
+
open: (status?: KanbanStatus) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type AddTaskModalProps = {
|
|
25
|
+
onAddTask: (task: Omit<KanbanTask, 'id'>) => void;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const TAGS = ['Design', 'Research', 'Backend', 'Frontend', 'QA', 'DevOps'];
|
|
29
|
+
|
|
30
|
+
export const AddTaskModal = forwardRef<AddTaskModalRef, AddTaskModalProps>(
|
|
31
|
+
({ onAddTask }, ref) => {
|
|
32
|
+
const { colorScheme } = useColorScheme();
|
|
33
|
+
const isDark = colorScheme === 'dark';
|
|
34
|
+
const colors = isDark ? PRODUCTIVITY_COLORS.dark : PRODUCTIVITY_COLORS.light;
|
|
35
|
+
const modal = useModal();
|
|
36
|
+
|
|
37
|
+
const [title, setTitle] = useState('');
|
|
38
|
+
const [selectedPriority, setSelectedPriority] = useState<Priority>(PRIORITY_LEVELS.medium);
|
|
39
|
+
const [selectedTag, setSelectedTag] = useState(TAGS[0]);
|
|
40
|
+
const [selectedStatus, setSelectedStatus] = useState<KanbanStatus>('todo');
|
|
41
|
+
|
|
42
|
+
useImperativeHandle(ref, () => ({
|
|
43
|
+
open: (status?: KanbanStatus) => {
|
|
44
|
+
setTitle('');
|
|
45
|
+
setSelectedPriority(PRIORITY_LEVELS.medium);
|
|
46
|
+
setSelectedTag(TAGS[0]);
|
|
47
|
+
setSelectedStatus(status || 'todo');
|
|
48
|
+
modal.present();
|
|
49
|
+
},
|
|
50
|
+
close: () => {
|
|
51
|
+
modal.dismiss();
|
|
52
|
+
},
|
|
53
|
+
}));
|
|
54
|
+
|
|
55
|
+
const handleSubmit = useCallback(() => {
|
|
56
|
+
if (!title.trim()) return;
|
|
57
|
+
|
|
58
|
+
onAddTask({
|
|
59
|
+
title: title.trim(),
|
|
60
|
+
tag: selectedTag,
|
|
61
|
+
status: selectedStatus,
|
|
62
|
+
priority: selectedPriority,
|
|
63
|
+
members: ['You'],
|
|
64
|
+
comments: 0,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
modal.dismiss();
|
|
68
|
+
}, [title, selectedTag, selectedStatus, selectedPriority, onAddTask, modal]);
|
|
69
|
+
|
|
70
|
+
const renderPriorityOption = (priority: Priority) => {
|
|
71
|
+
const config = PRIORITY_CONFIG[priority];
|
|
72
|
+
const isSelected = selectedPriority === priority;
|
|
73
|
+
const bg = isDark ? config.bgDark : config.bgLight;
|
|
74
|
+
const text = isDark ? config.textDark : config.textLight;
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<Pressable
|
|
78
|
+
key={priority}
|
|
79
|
+
onPress={() => setSelectedPriority(priority)}
|
|
80
|
+
className="flex-1 py-3 rounded-xl items-center justify-center flex-row gap-1"
|
|
81
|
+
style={{
|
|
82
|
+
backgroundColor: isSelected ? bg : 'transparent',
|
|
83
|
+
borderWidth: 2,
|
|
84
|
+
borderColor: isSelected ? text : colors.columnBorder,
|
|
85
|
+
}}
|
|
86
|
+
>
|
|
87
|
+
{priority === 'high' && (
|
|
88
|
+
<Ionicons name="arrow-up" size={14} color={isSelected ? text : colors.textMuted} />
|
|
89
|
+
)}
|
|
90
|
+
{priority === 'low' && (
|
|
91
|
+
<Ionicons name="arrow-down" size={14} color={isSelected ? text : colors.textMuted} />
|
|
92
|
+
)}
|
|
93
|
+
<Text
|
|
94
|
+
className="font-semibold text-sm"
|
|
95
|
+
style={{ color: isSelected ? text : colors.textMuted }}
|
|
96
|
+
>
|
|
97
|
+
{config.label}
|
|
98
|
+
</Text>
|
|
99
|
+
</Pressable>
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
return (
|
|
104
|
+
<Modal
|
|
105
|
+
ref={modal.ref}
|
|
106
|
+
title="Add New Task"
|
|
107
|
+
snapPoints={['75%']}
|
|
108
|
+
>
|
|
109
|
+
<BottomSheetView style={{ flex: 1, paddingHorizontal: 16 }}>
|
|
110
|
+
{/* Task Title */}
|
|
111
|
+
<View className="mb-5">
|
|
112
|
+
<Text
|
|
113
|
+
className="text-sm font-semibold mb-2"
|
|
114
|
+
style={{ color: colors.textMuted }}
|
|
115
|
+
>
|
|
116
|
+
Task Title
|
|
117
|
+
</Text>
|
|
118
|
+
<BottomSheetTextInput
|
|
119
|
+
value={title}
|
|
120
|
+
onChangeText={setTitle}
|
|
121
|
+
placeholder="Enter task title..."
|
|
122
|
+
placeholderTextColor={colors.textMuted}
|
|
123
|
+
style={{
|
|
124
|
+
backgroundColor: isDark ? '#262626' : '#f4f4f5',
|
|
125
|
+
borderRadius: 12,
|
|
126
|
+
padding: 16,
|
|
127
|
+
fontSize: 16,
|
|
128
|
+
color: colors.text,
|
|
129
|
+
borderWidth: 1,
|
|
130
|
+
borderColor: colors.columnBorder,
|
|
131
|
+
}}
|
|
132
|
+
/>
|
|
133
|
+
</View>
|
|
134
|
+
|
|
135
|
+
{/* Priority Selection */}
|
|
136
|
+
<View className="mb-5">
|
|
137
|
+
<Text
|
|
138
|
+
className="text-sm font-semibold mb-2"
|
|
139
|
+
style={{ color: colors.textMuted }}
|
|
140
|
+
>
|
|
141
|
+
Priority
|
|
142
|
+
</Text>
|
|
143
|
+
<View className="flex-row gap-2">
|
|
144
|
+
{Object.values(PRIORITY_LEVELS).map(renderPriorityOption)}
|
|
145
|
+
</View>
|
|
146
|
+
</View>
|
|
147
|
+
|
|
148
|
+
{/* Tag Selection */}
|
|
149
|
+
<View className="mb-5">
|
|
150
|
+
<Text
|
|
151
|
+
className="text-sm font-semibold mb-2"
|
|
152
|
+
style={{ color: colors.textMuted }}
|
|
153
|
+
>
|
|
154
|
+
Tag
|
|
155
|
+
</Text>
|
|
156
|
+
<View className="flex-row flex-wrap gap-2">
|
|
157
|
+
{TAGS.map((tag) => (
|
|
158
|
+
<Pressable
|
|
159
|
+
key={tag}
|
|
160
|
+
onPress={() => setSelectedTag(tag)}
|
|
161
|
+
className="px-4 py-2 rounded-full"
|
|
162
|
+
style={{
|
|
163
|
+
backgroundColor: selectedTag === tag
|
|
164
|
+
? colors.accent
|
|
165
|
+
: (isDark ? '#262626' : '#f4f4f5'),
|
|
166
|
+
borderWidth: 1,
|
|
167
|
+
borderColor: selectedTag === tag ? colors.accent : colors.columnBorder,
|
|
168
|
+
}}
|
|
169
|
+
>
|
|
170
|
+
<Text
|
|
171
|
+
className="font-medium text-sm"
|
|
172
|
+
style={{
|
|
173
|
+
color: selectedTag === tag ? '#fff' : colors.text,
|
|
174
|
+
}}
|
|
175
|
+
>
|
|
176
|
+
{tag}
|
|
177
|
+
</Text>
|
|
178
|
+
</Pressable>
|
|
179
|
+
))}
|
|
180
|
+
</View>
|
|
181
|
+
</View>
|
|
182
|
+
|
|
183
|
+
{/* Column Selection */}
|
|
184
|
+
<View className="mb-6">
|
|
185
|
+
<Text
|
|
186
|
+
className="text-sm font-semibold mb-2"
|
|
187
|
+
style={{ color: colors.textMuted }}
|
|
188
|
+
>
|
|
189
|
+
Column
|
|
190
|
+
</Text>
|
|
191
|
+
<View className="flex-row gap-2">
|
|
192
|
+
{KANBAN_COLUMNS.map((col) => {
|
|
193
|
+
const isSelected = selectedStatus === col.status;
|
|
194
|
+
const statusColor =
|
|
195
|
+
col.status === 'todo'
|
|
196
|
+
? PRODUCTIVITY_COLORS.todo
|
|
197
|
+
: col.status === 'doing'
|
|
198
|
+
? PRODUCTIVITY_COLORS.doing
|
|
199
|
+
: PRODUCTIVITY_COLORS.done;
|
|
200
|
+
|
|
201
|
+
return (
|
|
202
|
+
<Pressable
|
|
203
|
+
key={col.status}
|
|
204
|
+
onPress={() => setSelectedStatus(col.status)}
|
|
205
|
+
className="flex-1 py-3 rounded-xl items-center justify-center flex-row gap-2"
|
|
206
|
+
style={{
|
|
207
|
+
backgroundColor: isSelected
|
|
208
|
+
? (isDark ? '#262626' : '#f4f4f5')
|
|
209
|
+
: 'transparent',
|
|
210
|
+
borderWidth: 2,
|
|
211
|
+
borderColor: isSelected ? statusColor : colors.columnBorder,
|
|
212
|
+
}}
|
|
213
|
+
>
|
|
214
|
+
<View
|
|
215
|
+
className="w-2.5 h-2.5 rounded-full"
|
|
216
|
+
style={{ backgroundColor: statusColor }}
|
|
217
|
+
/>
|
|
218
|
+
<Text
|
|
219
|
+
className="font-medium text-xs"
|
|
220
|
+
style={{ color: isSelected ? colors.text : colors.textMuted }}
|
|
221
|
+
>
|
|
222
|
+
{col.title}
|
|
223
|
+
</Text>
|
|
224
|
+
</Pressable>
|
|
225
|
+
);
|
|
226
|
+
})}
|
|
227
|
+
</View>
|
|
228
|
+
</View>
|
|
229
|
+
|
|
230
|
+
{/* Submit Button */}
|
|
231
|
+
<Button
|
|
232
|
+
label="Add Task"
|
|
233
|
+
onPress={handleSubmit}
|
|
234
|
+
disabled={!title.trim()}
|
|
235
|
+
icon="add"
|
|
236
|
+
/>
|
|
237
|
+
</BottomSheetView>
|
|
238
|
+
</Modal>
|
|
239
|
+
);
|
|
240
|
+
},
|
|
241
|
+
);
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|