vibefast-cli 1.3.0 → 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 +8 -9
- package/dist/__tests__/recipes.test.js.map +1 -1
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +271 -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 -33
- 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 -69
- 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 -70
- 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 -62
- 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 -44
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
4
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
5
4
|
|
|
5
|
+
import { SafeAreaView } from '@/components/ui';
|
|
6
6
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
7
7
|
|
|
8
8
|
import { Stepper, StepperButton, StepperContent, StepperValue } from './index';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "number-stepper",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Advanced UI component: number-stepper",
|
|
5
5
|
"target": "native",
|
|
6
6
|
"copy": [
|
|
7
7
|
{
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"expo": [
|
|
13
|
+
"expo": [
|
|
14
|
+
"react-native-reanimated",
|
|
15
|
+
"react-native-gesture-handler"
|
|
16
|
+
]
|
|
14
17
|
}
|
|
15
18
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { SafeAreaView } from '@/components/ui';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { AIToneStep } from './steps/ai-tone-step';
|
|
7
|
+
import { CurrencyStep } from './steps/currency-step';
|
|
7
8
|
import { FeatureAIStep } from './steps/feature-ai-step';
|
|
8
|
-
import { FeatureScanStep } from './steps/feature-scan-step';
|
|
9
|
-
import { FeatureManualStep } from './steps/feature-manual-step';
|
|
10
9
|
import { FeatureChatbotStep } from './steps/feature-chatbot-step';
|
|
11
|
-
import {
|
|
10
|
+
import { FeatureManualStep } from './steps/feature-manual-step';
|
|
11
|
+
import { FeatureScanStep } from './steps/feature-scan-step';
|
|
12
12
|
import { MainReasonStep } from './steps/main-reason-step';
|
|
13
|
-
import {
|
|
13
|
+
import { NotificationStep } from './steps/notification-step';
|
|
14
14
|
import { OverspendStep } from './steps/overspend-step';
|
|
15
|
-
import {
|
|
15
|
+
import { PersonalizingStep } from './steps/personalizing-step';
|
|
16
|
+
import { RatingStep } from './steps/rating-step';
|
|
16
17
|
import { ReminderStep } from './steps/reminder-step';
|
|
17
|
-
import { NotificationStep } from './steps/notification-step';
|
|
18
18
|
import { SafetyStep } from './steps/safety-step';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
19
|
+
import { StruggleStep } from './steps/struggle-step';
|
|
20
|
+
import { WelcomeStep } from './steps/welcome-step';
|
|
21
|
+
import { OnboardingHeader } from './ui/onboarding-header';
|
|
22
22
|
|
|
23
23
|
type OnboardingStep =
|
|
24
24
|
| 'welcome'
|
|
@@ -67,7 +67,6 @@ export function InteractiveOnboarding({
|
|
|
67
67
|
onSignIn,
|
|
68
68
|
}: InteractiveOnboardingProps) {
|
|
69
69
|
const [currentStepIndex, setCurrentStepIndex] = useState(0);
|
|
70
|
-
const [direction, setDirection] = useState<'forward' | 'backward'>('forward');
|
|
71
70
|
|
|
72
71
|
// State for all steps
|
|
73
72
|
const [currency, setCurrency] = useState<string | null>(null);
|
|
@@ -78,15 +77,10 @@ export function InteractiveOnboarding({
|
|
|
78
77
|
const [reminderFreq, setReminderFreq] = useState<string | null>(null);
|
|
79
78
|
const [reminderTime, setReminderTime] = useState<string>('9 PM');
|
|
80
79
|
|
|
81
|
-
// Spend Level State (Min/Max)
|
|
82
|
-
const [minSpend, setMinSpend] = useState('');
|
|
83
|
-
const [maxSpend, setMaxSpend] = useState('');
|
|
84
|
-
|
|
85
80
|
const currentStep = STEPS_ORDER[currentStepIndex];
|
|
86
81
|
|
|
87
82
|
const handleNext = () => {
|
|
88
83
|
if (currentStepIndex < STEPS_ORDER.length - 1) {
|
|
89
|
-
setDirection('forward');
|
|
90
84
|
setCurrentStepIndex((prev) => prev + 1);
|
|
91
85
|
} else {
|
|
92
86
|
onComplete();
|
|
@@ -95,7 +89,6 @@ export function InteractiveOnboarding({
|
|
|
95
89
|
|
|
96
90
|
const handleBack = () => {
|
|
97
91
|
if (currentStepIndex > 0) {
|
|
98
|
-
setDirection('backward');
|
|
99
92
|
setCurrentStepIndex((prev) => prev - 1);
|
|
100
93
|
}
|
|
101
94
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import Animated, { FadeIn, FadeOut, FadeInDown } from 'react-native-reanimated';
|
|
4
|
-
import { Text, Button, Pressable } from '@/components/ui';
|
|
5
|
-
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
6
1
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
7
2
|
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import Animated, { FadeIn, FadeInDown, FadeOut } from 'react-native-reanimated';
|
|
6
|
+
|
|
7
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
8
8
|
|
|
9
9
|
interface AIToneStepProps {
|
|
10
10
|
selectedTone: string | null;
|
|
@@ -41,8 +41,6 @@ export function AIToneStep({
|
|
|
41
41
|
onSelectTone,
|
|
42
42
|
onNext,
|
|
43
43
|
}: AIToneStepProps) {
|
|
44
|
-
const theme = useThemeConfig();
|
|
45
|
-
|
|
46
44
|
return (
|
|
47
45
|
<Animated.View
|
|
48
46
|
entering={FadeIn}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Haptics from 'expo-haptics';
|
|
1
3
|
import React from 'react';
|
|
2
|
-
import {
|
|
4
|
+
import { ScrollView, TextInput, View } from 'react-native';
|
|
3
5
|
import Animated, {
|
|
4
|
-
FadeInDown,
|
|
5
|
-
Layout,
|
|
6
6
|
FadeIn,
|
|
7
|
+
FadeInDown,
|
|
7
8
|
FadeOut,
|
|
9
|
+
Layout,
|
|
8
10
|
} from 'react-native-reanimated';
|
|
9
|
-
|
|
11
|
+
|
|
12
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
10
13
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
import * as Haptics from 'expo-haptics';
|
|
14
|
+
|
|
15
|
+
import { getCurrencyFlag, SUPPORTED_CURRENCIES } from '../../constants';
|
|
14
16
|
|
|
15
17
|
interface CurrencyStepProps {
|
|
16
18
|
selectedCurrency: string | null;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
4
|
+
import React, { useEffect, useState } from 'react';
|
|
2
5
|
import { View } from 'react-native';
|
|
3
6
|
import Animated, {
|
|
4
7
|
FadeIn,
|
|
5
8
|
FadeOut,
|
|
6
9
|
useAnimatedStyle,
|
|
7
10
|
useSharedValue,
|
|
8
|
-
withSpring,
|
|
9
11
|
withRepeat,
|
|
10
12
|
withSequence,
|
|
13
|
+
withSpring,
|
|
11
14
|
withTiming,
|
|
12
15
|
} from 'react-native-reanimated';
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
import { Text, Button } from '@/components/ui';
|
|
16
|
+
|
|
17
|
+
import { Button, Text } from '@/components/ui';
|
|
16
18
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
17
|
-
import * as Haptics from 'expo-haptics';
|
|
18
19
|
|
|
19
20
|
const AIDemo = () => {
|
|
20
21
|
const theme = useThemeConfig();
|
|
@@ -55,7 +56,7 @@ const AIDemo = () => {
|
|
|
55
56
|
}, 30); // Faster typing (30ms)
|
|
56
57
|
|
|
57
58
|
return () => clearInterval(typingInterval);
|
|
58
|
-
}, []);
|
|
59
|
+
}, [cardOpacity, cardScale, cursorOpacity, fullText]);
|
|
59
60
|
|
|
60
61
|
const animatedCardStyle = useAnimatedStyle(() => ({
|
|
61
62
|
opacity: cardOpacity.value,
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
4
|
+
import React, { useEffect, useState } from 'react';
|
|
2
5
|
import { View } from 'react-native';
|
|
3
6
|
import Animated, {
|
|
4
7
|
FadeIn,
|
|
5
8
|
FadeOut,
|
|
6
9
|
SlideInRight,
|
|
7
10
|
} from 'react-native-reanimated';
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
import { Text, Button } from '@/components/ui';
|
|
11
|
+
|
|
12
|
+
import { Button, Text } from '@/components/ui';
|
|
11
13
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
12
|
-
import * as Haptics from 'expo-haptics';
|
|
13
14
|
|
|
14
15
|
const ChatbotDemo = () => {
|
|
15
16
|
const theme = useThemeConfig();
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Haptics from 'expo-haptics';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { View } from 'react-native';
|
|
3
5
|
import Animated, {
|
|
@@ -5,10 +7,9 @@ import Animated, {
|
|
|
5
7
|
FadeOut,
|
|
6
8
|
SlideInRight,
|
|
7
9
|
} from 'react-native-reanimated';
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
+
|
|
11
|
+
import { Button, Text } from '@/components/ui';
|
|
10
12
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
11
|
-
import * as Haptics from 'expo-haptics';
|
|
12
13
|
|
|
13
14
|
const ManualDemo = () => {
|
|
14
15
|
const theme = useThemeConfig();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Haptics from 'expo-haptics';
|
|
1
3
|
import React, { useEffect } from 'react';
|
|
2
4
|
import { View } from 'react-native';
|
|
3
5
|
import Animated, {
|
|
6
|
+
Easing,
|
|
4
7
|
FadeIn,
|
|
5
8
|
FadeOut,
|
|
6
9
|
useAnimatedStyle,
|
|
@@ -8,12 +11,10 @@ import Animated, {
|
|
|
8
11
|
withRepeat,
|
|
9
12
|
withSequence,
|
|
10
13
|
withTiming,
|
|
11
|
-
Easing,
|
|
12
14
|
} from 'react-native-reanimated';
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
+
|
|
16
|
+
import { Button, Text } from '@/components/ui';
|
|
15
17
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
16
|
-
import * as Haptics from 'expo-haptics';
|
|
17
18
|
|
|
18
19
|
const ScanDemo = () => {
|
|
19
20
|
const theme = useThemeConfig();
|
|
@@ -37,7 +38,7 @@ const ScanDemo = () => {
|
|
|
37
38
|
-1,
|
|
38
39
|
true,
|
|
39
40
|
);
|
|
40
|
-
}, []);
|
|
41
|
+
}, [checkmarkScale, scanLineY]);
|
|
41
42
|
|
|
42
43
|
const animatedLineStyle = useAnimatedStyle(() => ({
|
|
43
44
|
transform: [{ translateY: scanLineY.value }],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, ScrollView } from 'react-native';
|
|
3
|
-
import Animated, { FadeIn, FadeOut, FadeInDown } from 'react-native-reanimated';
|
|
4
|
-
import { Text, Button, Pressable } from '@/components/ui';
|
|
5
|
-
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
6
1
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
7
2
|
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ScrollView, View } from 'react-native';
|
|
5
|
+
import Animated, { FadeIn, FadeInDown, FadeOut } from 'react-native-reanimated';
|
|
6
|
+
|
|
7
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
8
8
|
|
|
9
9
|
interface MainReasonStepProps {
|
|
10
10
|
selectedReason: string | null;
|
|
@@ -50,8 +50,6 @@ export function MainReasonStep({
|
|
|
50
50
|
onSelectReason,
|
|
51
51
|
onNext,
|
|
52
52
|
}: MainReasonStepProps) {
|
|
53
|
-
const theme = useThemeConfig();
|
|
54
|
-
|
|
55
53
|
return (
|
|
56
54
|
<Animated.View
|
|
57
55
|
entering={FadeIn}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { View, Alert, Linking } from 'react-native';
|
|
3
|
-
import Animated, { ZoomIn, FadeIn, FadeOut } from 'react-native-reanimated';
|
|
4
|
-
import { Text, Button } from '@/components/ui';
|
|
5
|
-
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
6
1
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
7
|
-
import * as Notifications from 'expo-notifications';
|
|
8
2
|
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import * as Notifications from 'expo-notifications';
|
|
4
|
+
import React, { useState } from 'react';
|
|
5
|
+
import { Alert, Linking, View } from 'react-native';
|
|
6
|
+
import Animated, { FadeIn, FadeOut, ZoomIn } from 'react-native-reanimated';
|
|
7
|
+
|
|
8
|
+
import { Button, Text } from '@/components/ui';
|
|
9
|
+
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
9
10
|
|
|
10
11
|
interface NotificationStepProps {
|
|
11
12
|
onEnable: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, ScrollView } from 'react-native';
|
|
3
|
-
import Animated, { FadeIn, FadeOut, FadeInDown } from 'react-native-reanimated';
|
|
4
|
-
import { Text, Button, Pressable } from '@/components/ui';
|
|
5
|
-
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
6
1
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
7
2
|
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ScrollView, View } from 'react-native';
|
|
5
|
+
import Animated, { FadeIn, FadeInDown, FadeOut } from 'react-native-reanimated';
|
|
6
|
+
|
|
7
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
8
8
|
|
|
9
9
|
interface OverspendStepProps {
|
|
10
10
|
selectedCategories: string[];
|
|
@@ -57,8 +57,6 @@ export function OverspendStep({
|
|
|
57
57
|
onToggleCategory,
|
|
58
58
|
onNext,
|
|
59
59
|
}: OverspendStepProps) {
|
|
60
|
-
const theme = useThemeConfig();
|
|
61
|
-
|
|
62
60
|
return (
|
|
63
61
|
<Animated.View
|
|
64
62
|
entering={FadeIn}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
1
3
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
4
|
+
import { Dimensions, View } from 'react-native';
|
|
3
5
|
import Animated, {
|
|
6
|
+
Easing,
|
|
4
7
|
FadeIn,
|
|
8
|
+
interpolate,
|
|
5
9
|
useAnimatedStyle,
|
|
6
10
|
useSharedValue,
|
|
7
11
|
withRepeat,
|
|
8
12
|
withSequence,
|
|
9
13
|
withTiming,
|
|
10
|
-
Easing,
|
|
11
|
-
interpolate,
|
|
12
14
|
} from 'react-native-reanimated';
|
|
13
|
-
|
|
15
|
+
|
|
14
16
|
import { Text } from '@/components/ui';
|
|
15
17
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
16
|
-
import { LinearGradient } from 'expo-linear-gradient';
|
|
17
18
|
|
|
18
19
|
interface PersonalizingStepProps {
|
|
19
20
|
onComplete: () => void;
|
|
@@ -86,13 +87,13 @@ export function PersonalizingStep({ onComplete }: PersonalizingStepProps) {
|
|
|
86
87
|
}, 2000);
|
|
87
88
|
|
|
88
89
|
return () => clearInterval(interval);
|
|
89
|
-
}, []);
|
|
90
|
+
}, [circleScale, iconOpacity, onComplete, ringRotation]);
|
|
90
91
|
|
|
91
92
|
useEffect(() => {
|
|
92
93
|
progress.value = withTiming((currentStep + 1) / STEPS.length, {
|
|
93
94
|
duration: 500,
|
|
94
95
|
});
|
|
95
|
-
}, [currentStep]);
|
|
96
|
+
}, [currentStep, progress]);
|
|
96
97
|
|
|
97
98
|
const animatedRingStyle = useAnimatedStyle(() => ({
|
|
98
99
|
transform: [{ rotate: `${ringRotation.value}deg` }],
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import * as StoreReview from 'expo-store-review';
|
|
1
4
|
import React, { useState } from 'react';
|
|
2
5
|
import { View } from 'react-native';
|
|
3
|
-
import Animated, {
|
|
4
|
-
|
|
6
|
+
import Animated, { FadeIn, FadeInDown, FadeOut } from 'react-native-reanimated';
|
|
7
|
+
|
|
8
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
5
9
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
6
|
-
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
7
|
-
import * as StoreReview from 'expo-store-review';
|
|
8
|
-
import * as Haptics from 'expo-haptics';
|
|
9
10
|
|
|
10
11
|
interface RatingStepProps {
|
|
11
12
|
onNext: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import * as Haptics from 'expo-haptics';
|
|
1
2
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import Animated, {
|
|
4
|
-
|
|
5
|
-
import {
|
|
3
|
+
import { ScrollView, View } from 'react-native';
|
|
4
|
+
import Animated, { FadeIn, FadeInDown, FadeOut } from 'react-native-reanimated';
|
|
5
|
+
|
|
6
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
6
7
|
import { DateTimePickerComponent } from '@/components/ui/date-time-picker';
|
|
7
|
-
import * as Haptics from 'expo-haptics';
|
|
8
8
|
|
|
9
9
|
interface ReminderStepProps {
|
|
10
10
|
selectedFrequency: string | null;
|
|
@@ -30,7 +30,6 @@ export function ReminderStep({
|
|
|
30
30
|
onSelectTime,
|
|
31
31
|
onNext,
|
|
32
32
|
}: ReminderStepProps) {
|
|
33
|
-
const theme = useThemeConfig();
|
|
34
33
|
const showTimePicker =
|
|
35
34
|
selectedFrequency === 'daily' || selectedFrequency === 'purchase';
|
|
36
35
|
const [customDate, setCustomDate] = useState(new Date());
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Haptics from 'expo-haptics';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { View } from 'react-native';
|
|
3
|
-
import Animated, {
|
|
4
|
-
|
|
5
|
-
import {
|
|
5
|
+
import Animated, { FadeIn, FadeOut, ZoomIn } from 'react-native-reanimated';
|
|
6
|
+
|
|
7
|
+
import { Button, Text } from '@/components/ui';
|
|
6
8
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
7
|
-
import * as Haptics from 'expo-haptics';
|
|
8
9
|
|
|
9
10
|
interface SafetyStepProps {
|
|
10
11
|
onComplete: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View, ScrollView } from 'react-native';
|
|
3
|
-
import Animated, { FadeIn, FadeOut, FadeInDown } from 'react-native-reanimated';
|
|
4
|
-
import { Text, Button, Pressable } from '@/components/ui';
|
|
5
|
-
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
6
1
|
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
7
2
|
import * as Haptics from 'expo-haptics';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ScrollView, View } from 'react-native';
|
|
5
|
+
import Animated, { FadeIn, FadeInDown, FadeOut } from 'react-native-reanimated';
|
|
6
|
+
|
|
7
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
8
8
|
|
|
9
9
|
interface StruggleStepProps {
|
|
10
10
|
selectedStruggle: string | null;
|
|
@@ -50,8 +50,6 @@ export function StruggleStep({
|
|
|
50
50
|
onSelectStruggle,
|
|
51
51
|
onNext,
|
|
52
52
|
}: StruggleStepProps) {
|
|
53
|
-
const theme = useThemeConfig();
|
|
54
|
-
|
|
55
53
|
return (
|
|
56
54
|
<Animated.View
|
|
57
55
|
entering={FadeIn}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
2
|
+
import * as Clipboard from 'expo-clipboard';
|
|
3
|
+
import * as Haptics from 'expo-haptics';
|
|
4
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
1
5
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
6
|
+
import { ScrollView, TouchableOpacity, View } from 'react-native';
|
|
3
7
|
import Animated, { FadeIn, FadeOut, ZoomIn } from 'react-native-reanimated';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import { Text, Button, Pressable } from '@/components/ui';
|
|
8
|
+
|
|
9
|
+
import { Button, Pressable, Text } from '@/components/ui';
|
|
7
10
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
8
|
-
import * as Haptics from 'expo-haptics';
|
|
9
|
-
import * as Clipboard from 'expo-clipboard';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Recommended theme colors for this onboarding (from CashPilot/Expense Tracker app)
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { View } from 'react-native';
|
|
3
|
-
import { MaterialCommunityIcons } from '@expo/vector-icons';
|
|
4
4
|
import Animated, {
|
|
5
5
|
useAnimatedStyle,
|
|
6
6
|
useSharedValue,
|
|
7
7
|
withTiming,
|
|
8
8
|
} from 'react-native-reanimated';
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
import { Pressable } from '@/components/ui';
|
|
11
|
+
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
11
12
|
|
|
12
13
|
interface OnboardingHeaderProps {
|
|
13
14
|
onBack: () => void;
|
|
@@ -25,7 +26,7 @@ export function OnboardingHeader({
|
|
|
25
26
|
|
|
26
27
|
React.useEffect(() => {
|
|
27
28
|
progressValue.value = withTiming(progress, { duration: 500 });
|
|
28
|
-
}, [progress]);
|
|
29
|
+
}, [progress, progressValue]);
|
|
29
30
|
|
|
30
31
|
const animatedProgressStyle = useAnimatedStyle(() => ({
|
|
31
32
|
width: `${progressValue.value * 100}%`,
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onboarding",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "User onboarding flow",
|
|
5
5
|
"copy": [
|
|
6
6
|
{
|
|
7
7
|
"from": "apps/native/src/features/onboarding",
|
|
8
8
|
"to": "apps/native/src/features/onboarding"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
"nav": {
|
|
12
|
+
"href": "/(root)/(protected)/onboarding",
|
|
13
|
+
"label": "Onboarding",
|
|
14
|
+
"icon": "🎯",
|
|
15
|
+
"color": "#84CC16"
|
|
16
|
+
},
|
|
17
|
+
"target": "native"
|
|
18
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { router, Stack } from 'expo-router';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
import { ScrollView, View } from 'react-native';
|
|
4
|
+
|
|
5
|
+
import { FeatureButton, FocusAwareStatusBar } from '@/components/ui';
|
|
6
|
+
import { translate } from '@/lib';
|
|
7
|
+
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
8
|
+
|
|
9
|
+
export default function PaywallSelection() {
|
|
10
|
+
const theme = useThemeConfig();
|
|
11
|
+
const optionsTitle = translate('paywall.options_title');
|
|
12
|
+
const screenOptions = useMemo(
|
|
13
|
+
() => ({
|
|
14
|
+
title: optionsTitle,
|
|
15
|
+
headerShown: true,
|
|
16
|
+
headerBackButtonDisplayMode: 'generic' as const,
|
|
17
|
+
}),
|
|
18
|
+
[optionsTitle],
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
const paywallOptions = [
|
|
22
|
+
{
|
|
23
|
+
id: 'remote',
|
|
24
|
+
title: translate('paywall.remote_title'),
|
|
25
|
+
icon: '💳',
|
|
26
|
+
color: '#FBBF24', // Amber
|
|
27
|
+
description: translate('paywall.remote_description'),
|
|
28
|
+
route: '/paywall/remote',
|
|
29
|
+
testID: 'remote-paywall-option',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'local',
|
|
33
|
+
title: translate('paywall.local_title'),
|
|
34
|
+
icon: '🛒',
|
|
35
|
+
color: '#10B981', // Emerald
|
|
36
|
+
description: translate('paywall.local_description'),
|
|
37
|
+
route: '/paywall/local',
|
|
38
|
+
testID: 'local-paywall-option',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
const handleOptionPress = (route: string) => {
|
|
43
|
+
router.push(route as any);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<>
|
|
48
|
+
<FocusAwareStatusBar />
|
|
49
|
+
<Stack.Screen options={screenOptions} />
|
|
50
|
+
<ScrollView
|
|
51
|
+
style={{ backgroundColor: theme.colors.background }}
|
|
52
|
+
className="flex-1"
|
|
53
|
+
showsVerticalScrollIndicator={false}
|
|
54
|
+
>
|
|
55
|
+
<View className="px-6 py-8">
|
|
56
|
+
<View className="-mx-2 flex-row flex-wrap">
|
|
57
|
+
{paywallOptions.map((option) => (
|
|
58
|
+
<View key={option.id} className="w-1/2 px-2 pb-4">
|
|
59
|
+
<FeatureButton
|
|
60
|
+
title={option.title}
|
|
61
|
+
icon={option.icon}
|
|
62
|
+
color={option.color}
|
|
63
|
+
description={option.description}
|
|
64
|
+
testID={option.testID}
|
|
65
|
+
onPress={() => handleOptionPress(option.route)}
|
|
66
|
+
/>
|
|
67
|
+
</View>
|
|
68
|
+
))}
|
|
69
|
+
</View>
|
|
70
|
+
</View>
|
|
71
|
+
</ScrollView>
|
|
72
|
+
</>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Stack } from 'expo-router';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
import LocalPaywall from '@/features/payments/app/local-paywall';
|
|
5
|
+
import { RevenueCatAdapter } from '@/features/payments/services/revenuecat-adapter';
|
|
6
|
+
import { translate } from '@/lib';
|
|
7
|
+
|
|
8
|
+
export default function LocalPaywallScreen() {
|
|
9
|
+
const paymentService = useMemo(() => new RevenueCatAdapter(), []);
|
|
10
|
+
const localTitle = translate('paywall.local_title');
|
|
11
|
+
const screenOptions = useMemo(
|
|
12
|
+
() => ({
|
|
13
|
+
title: localTitle,
|
|
14
|
+
headerShown: false,
|
|
15
|
+
}),
|
|
16
|
+
[localTitle],
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
<Stack.Screen options={screenOptions} />
|
|
22
|
+
<LocalPaywall paymentService={paymentService} />
|
|
23
|
+
</>
|
|
24
|
+
);
|
|
25
|
+
}
|