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
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import { Feather } from '@expo/vector-icons';
|
|
4
|
+
import React, { useEffect } from 'react';
|
|
5
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
6
|
+
import Animated, {
|
|
7
|
+
FadeInDown,
|
|
8
|
+
interpolateColor,
|
|
9
|
+
LinearTransition,
|
|
10
|
+
useAnimatedStyle,
|
|
11
|
+
useSharedValue,
|
|
12
|
+
withSequence,
|
|
13
|
+
withSpring,
|
|
14
|
+
withTiming,
|
|
15
|
+
} from 'react-native-reanimated';
|
|
16
|
+
|
|
17
|
+
import { useThemeConfig } from '../../../lib/use-theme-config';
|
|
18
|
+
import type { TimelineProps } from './types';
|
|
19
|
+
|
|
20
|
+
const AnimatedTouchableOpacity =
|
|
21
|
+
Animated.createAnimatedComponent(TouchableOpacity);
|
|
22
|
+
const AnimatedFeather = Animated.createAnimatedComponent(Feather);
|
|
23
|
+
|
|
24
|
+
export const Timeline: React.FC<TimelineProps> &
|
|
25
|
+
React.FunctionComponent<TimelineProps> = ({
|
|
26
|
+
items = [],
|
|
27
|
+
activeColor: propsActiveColor,
|
|
28
|
+
inactiveColor: propsInactiveColor,
|
|
29
|
+
animated = true,
|
|
30
|
+
animationType = 'bounce',
|
|
31
|
+
onItemPress,
|
|
32
|
+
containerStyle,
|
|
33
|
+
titleStyle,
|
|
34
|
+
descriptionStyle,
|
|
35
|
+
timestampStyle,
|
|
36
|
+
lineWidth = 2,
|
|
37
|
+
iconSize = 20,
|
|
38
|
+
metaContainerStyle,
|
|
39
|
+
metaTextStyle,
|
|
40
|
+
}: TimelineProps): React.ReactNode & React.JSX.Element => {
|
|
41
|
+
const { colors } = useThemeConfig();
|
|
42
|
+
const activeColor = propsActiveColor ?? colors.primary;
|
|
43
|
+
const inactiveColor = propsInactiveColor ?? colors.muted;
|
|
44
|
+
|
|
45
|
+
const statusRefs = React.useRef<Record<string | number, string>>({});
|
|
46
|
+
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
items.forEach((item) => {
|
|
49
|
+
statusRefs.current[item.id] = item.status || 'upcoming';
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return () => {
|
|
53
|
+
statusRefs.current = {};
|
|
54
|
+
};
|
|
55
|
+
}, [items]);
|
|
56
|
+
|
|
57
|
+
if (!items || items.length === 0) {
|
|
58
|
+
return null as unknown as React.ReactNode & React.JSX.Element;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<Animated.View style={[styles.container, containerStyle]}>
|
|
63
|
+
{items.map((item, index) => {
|
|
64
|
+
const isFirst = index === 0;
|
|
65
|
+
const isLast = index === items.length - 1;
|
|
66
|
+
const isComplete = item.status === 'complete';
|
|
67
|
+
const isCurrent = item.status === 'current';
|
|
68
|
+
const isUpcoming = item.status === 'upcoming' || !item.status;
|
|
69
|
+
|
|
70
|
+
const prevStatus = statusRefs.current[item.id];
|
|
71
|
+
const wasComplete = prevStatus === 'complete';
|
|
72
|
+
const statusChanged = prevStatus && prevStatus !== item.status;
|
|
73
|
+
statusRefs.current[item.id] = item.status || 'upcoming';
|
|
74
|
+
|
|
75
|
+
const dotScale = useSharedValue(statusChanged ? 1.5 : 1);
|
|
76
|
+
const dotColorAnimated = useSharedValue(
|
|
77
|
+
isComplete ? 1 : isCurrent ? 0.5 : 0,
|
|
78
|
+
);
|
|
79
|
+
const lineProgress = useSharedValue(isComplete ? 1 : 0);
|
|
80
|
+
const iconRotate = useSharedValue(statusChanged ? 0 : 1);
|
|
81
|
+
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (statusChanged) {
|
|
84
|
+
switch (animationType) {
|
|
85
|
+
case 'bounce':
|
|
86
|
+
dotScale.value = withSequence(
|
|
87
|
+
withTiming(1.5, { duration: 200 }),
|
|
88
|
+
withSpring(1),
|
|
89
|
+
);
|
|
90
|
+
break;
|
|
91
|
+
case 'spring':
|
|
92
|
+
dotScale.value = withSpring(1.2, { damping: 2, stiffness: 80 });
|
|
93
|
+
break;
|
|
94
|
+
case 'rotate':
|
|
95
|
+
iconRotate.value = withSequence(
|
|
96
|
+
withTiming(0, { duration: 10 }),
|
|
97
|
+
withTiming(4, { duration: 800 }),
|
|
98
|
+
);
|
|
99
|
+
dotScale.value = withSequence(
|
|
100
|
+
withTiming(1.6, { duration: 200 }),
|
|
101
|
+
withSpring(1),
|
|
102
|
+
);
|
|
103
|
+
dotColorAnimated.value = withSequence(
|
|
104
|
+
withTiming(0, { duration: 200 }),
|
|
105
|
+
withTiming(isComplete ? 1 : isCurrent ? 0.5 : 0, {
|
|
106
|
+
duration: 400,
|
|
107
|
+
}),
|
|
108
|
+
);
|
|
109
|
+
break;
|
|
110
|
+
case 'fade':
|
|
111
|
+
dotColorAnimated.value = withSequence(
|
|
112
|
+
withTiming(0, { duration: 200 }),
|
|
113
|
+
withTiming(isComplete ? 1 : isCurrent ? 0.5 : 0, {
|
|
114
|
+
duration: 400,
|
|
115
|
+
}),
|
|
116
|
+
);
|
|
117
|
+
break;
|
|
118
|
+
case 'scale':
|
|
119
|
+
dotScale.value = withSequence(
|
|
120
|
+
withTiming(0.5, { duration: 200 }),
|
|
121
|
+
withTiming(1.2, { duration: 200 }),
|
|
122
|
+
withTiming(1, { duration: 200 }),
|
|
123
|
+
);
|
|
124
|
+
break;
|
|
125
|
+
default:
|
|
126
|
+
dotScale.value = withSequence(
|
|
127
|
+
withTiming(1.5, { duration: 200 }),
|
|
128
|
+
withSpring(1),
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
dotColorAnimated.value = withTiming(
|
|
133
|
+
isComplete ? 1 : isCurrent ? 0.5 : 0,
|
|
134
|
+
{ duration: 400 },
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
iconRotate.value = withSequence(
|
|
138
|
+
withTiming(0, { duration: 10 }),
|
|
139
|
+
withTiming(1, { duration: 400 }),
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
if (isComplete) {
|
|
143
|
+
lineProgress.value = withTiming(1, { duration: 600 });
|
|
144
|
+
} else if (wasComplete) {
|
|
145
|
+
lineProgress.value = withTiming(0, { duration: 600 });
|
|
146
|
+
}
|
|
147
|
+
} else {
|
|
148
|
+
lineProgress.value = isComplete ? 1 : 0;
|
|
149
|
+
}
|
|
150
|
+
}, [
|
|
151
|
+
item.status,
|
|
152
|
+
isComplete,
|
|
153
|
+
isCurrent,
|
|
154
|
+
animationType,
|
|
155
|
+
dotColorAnimated,
|
|
156
|
+
dotScale,
|
|
157
|
+
iconRotate,
|
|
158
|
+
lineProgress,
|
|
159
|
+
statusChanged,
|
|
160
|
+
wasComplete,
|
|
161
|
+
]);
|
|
162
|
+
|
|
163
|
+
const dotAnimatedStyle = useAnimatedStyle(() => {
|
|
164
|
+
return {
|
|
165
|
+
transform: [{ scale: dotScale.value }],
|
|
166
|
+
backgroundColor: interpolateColor(
|
|
167
|
+
dotColorAnimated.value,
|
|
168
|
+
[0, 0.5, 1],
|
|
169
|
+
[inactiveColor, activeColor, activeColor],
|
|
170
|
+
),
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
const lineAnimatedStyle = useAnimatedStyle(() => {
|
|
175
|
+
return {
|
|
176
|
+
backgroundColor: interpolateColor(
|
|
177
|
+
lineProgress.value,
|
|
178
|
+
[0, 1],
|
|
179
|
+
[inactiveColor, activeColor],
|
|
180
|
+
),
|
|
181
|
+
width: lineWidth,
|
|
182
|
+
transform: [{ scaleY: lineProgress.value }],
|
|
183
|
+
opacity: 0.6 + lineProgress.value * 0.4,
|
|
184
|
+
};
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
const iconAnimatedStyle = useAnimatedStyle(() => {
|
|
188
|
+
return {
|
|
189
|
+
transform: [{ rotate: `${iconRotate.value * 360}deg` }],
|
|
190
|
+
opacity: 0.8 + iconRotate.value * 0.2,
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
const iconName =
|
|
195
|
+
item.icon ||
|
|
196
|
+
(isComplete ? 'check' : isCurrent ? 'activity' : 'circle');
|
|
197
|
+
|
|
198
|
+
const textColor =
|
|
199
|
+
isComplete || isCurrent ? colors.foreground : colors.mutedForeground;
|
|
200
|
+
|
|
201
|
+
return (
|
|
202
|
+
<AnimatedTouchableOpacity
|
|
203
|
+
key={item.id}
|
|
204
|
+
style={styles.itemContainer}
|
|
205
|
+
activeOpacity={onItemPress ? 0.7 : 1}
|
|
206
|
+
onPress={() => onItemPress && onItemPress(item)}
|
|
207
|
+
entering={
|
|
208
|
+
animated ? FadeInDown.delay(index * 100).springify() : undefined
|
|
209
|
+
}
|
|
210
|
+
layout={LinearTransition.springify()}
|
|
211
|
+
>
|
|
212
|
+
<View style={styles.timelineColumn}>
|
|
213
|
+
<Animated.View style={[styles.dot, dotAnimatedStyle]}>
|
|
214
|
+
<Animated.View style={[{}, iconAnimatedStyle]}>
|
|
215
|
+
<AnimatedFeather
|
|
216
|
+
name={iconName as any}
|
|
217
|
+
size={iconSize * 0.7}
|
|
218
|
+
color={colors.primaryForeground}
|
|
219
|
+
/>
|
|
220
|
+
</Animated.View>
|
|
221
|
+
</Animated.View>
|
|
222
|
+
|
|
223
|
+
{!isLast && (
|
|
224
|
+
<Animated.View style={[styles.line, lineAnimatedStyle]} />
|
|
225
|
+
)}
|
|
226
|
+
</View>
|
|
227
|
+
|
|
228
|
+
<View style={styles.contentColumn}>
|
|
229
|
+
<View style={styles.itemHeader}>
|
|
230
|
+
<Text style={[styles.title, { color: textColor }, titleStyle]}>
|
|
231
|
+
{item.title}
|
|
232
|
+
</Text>
|
|
233
|
+
|
|
234
|
+
{item.timestamp && (
|
|
235
|
+
<Text
|
|
236
|
+
style={[
|
|
237
|
+
styles.timestamp,
|
|
238
|
+
{ color: colors.mutedForeground },
|
|
239
|
+
timestampStyle,
|
|
240
|
+
]}
|
|
241
|
+
>
|
|
242
|
+
{item.timestamp}
|
|
243
|
+
</Text>
|
|
244
|
+
)}
|
|
245
|
+
</View>
|
|
246
|
+
|
|
247
|
+
{item.description && (
|
|
248
|
+
<Text
|
|
249
|
+
style={[
|
|
250
|
+
styles.description,
|
|
251
|
+
{ color: colors.mutedForeground },
|
|
252
|
+
descriptionStyle,
|
|
253
|
+
]}
|
|
254
|
+
>
|
|
255
|
+
{item.description}
|
|
256
|
+
</Text>
|
|
257
|
+
)}
|
|
258
|
+
|
|
259
|
+
{item.meta && (
|
|
260
|
+
<View style={[styles.metaContainer, metaContainerStyle]}>
|
|
261
|
+
<Text
|
|
262
|
+
style={[
|
|
263
|
+
styles.metaText,
|
|
264
|
+
{ color: colors.mutedForeground },
|
|
265
|
+
metaTextStyle,
|
|
266
|
+
]}
|
|
267
|
+
>
|
|
268
|
+
{item.meta}
|
|
269
|
+
</Text>
|
|
270
|
+
</View>
|
|
271
|
+
)}
|
|
272
|
+
|
|
273
|
+
{item.children && (
|
|
274
|
+
<View
|
|
275
|
+
style={[styles.childrenContainer, item.childrenContainer]}
|
|
276
|
+
>
|
|
277
|
+
{item.children}
|
|
278
|
+
</View>
|
|
279
|
+
)}
|
|
280
|
+
</View>
|
|
281
|
+
</AnimatedTouchableOpacity>
|
|
282
|
+
);
|
|
283
|
+
})}
|
|
284
|
+
</Animated.View>
|
|
285
|
+
);
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
const styles = StyleSheet.create({
|
|
289
|
+
container: {
|
|
290
|
+
padding: 16,
|
|
291
|
+
},
|
|
292
|
+
itemContainer: {
|
|
293
|
+
flexDirection: 'row',
|
|
294
|
+
marginBottom: 24,
|
|
295
|
+
},
|
|
296
|
+
timelineColumn: {
|
|
297
|
+
alignItems: 'center',
|
|
298
|
+
width: 40,
|
|
299
|
+
},
|
|
300
|
+
contentColumn: {
|
|
301
|
+
flex: 1,
|
|
302
|
+
marginLeft: 12,
|
|
303
|
+
marginTop: -4,
|
|
304
|
+
},
|
|
305
|
+
dot: {
|
|
306
|
+
width: 28,
|
|
307
|
+
height: 28,
|
|
308
|
+
borderRadius: 14,
|
|
309
|
+
justifyContent: 'center',
|
|
310
|
+
alignItems: 'center',
|
|
311
|
+
elevation: 2,
|
|
312
|
+
shadowColor: '#000',
|
|
313
|
+
shadowOffset: { width: 0, height: 1 },
|
|
314
|
+
shadowOpacity: 0.1,
|
|
315
|
+
shadowRadius: 1,
|
|
316
|
+
},
|
|
317
|
+
line: {
|
|
318
|
+
flex: 1,
|
|
319
|
+
marginTop: 4,
|
|
320
|
+
},
|
|
321
|
+
itemHeader: {
|
|
322
|
+
flexDirection: 'row',
|
|
323
|
+
justifyContent: 'space-between',
|
|
324
|
+
alignItems: 'flex-start',
|
|
325
|
+
marginBottom: 6,
|
|
326
|
+
},
|
|
327
|
+
title: {
|
|
328
|
+
fontSize: 16,
|
|
329
|
+
fontWeight: '600',
|
|
330
|
+
flex: 1,
|
|
331
|
+
},
|
|
332
|
+
description: {
|
|
333
|
+
fontSize: 14,
|
|
334
|
+
lineHeight: 20,
|
|
335
|
+
marginBottom: 8,
|
|
336
|
+
},
|
|
337
|
+
timestamp: {
|
|
338
|
+
fontSize: 12,
|
|
339
|
+
marginLeft: 8,
|
|
340
|
+
},
|
|
341
|
+
metaContainer: {
|
|
342
|
+
paddingHorizontal: 10,
|
|
343
|
+
paddingVertical: 6,
|
|
344
|
+
borderRadius: 6,
|
|
345
|
+
alignSelf: 'flex-start',
|
|
346
|
+
marginTop: 4,
|
|
347
|
+
marginBottom: 8,
|
|
348
|
+
},
|
|
349
|
+
metaText: {
|
|
350
|
+
fontSize: 12,
|
|
351
|
+
},
|
|
352
|
+
childrenContainer: {
|
|
353
|
+
padding: 12,
|
|
354
|
+
},
|
|
355
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Feather } from '@expo/vector-icons';
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export interface TimelineItem {
|
|
5
|
+
id: string | number;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
timestamp?: string;
|
|
9
|
+
icon?: keyof typeof Feather.glyphMap;
|
|
10
|
+
status?: 'complete' | 'current' | 'upcoming';
|
|
11
|
+
meta?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
childrenContainer?: StyleProp<ViewStyle>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface TimelineProps {
|
|
17
|
+
items: TimelineItem[];
|
|
18
|
+
activeColor?: string;
|
|
19
|
+
inactiveColor?: string;
|
|
20
|
+
animated?: boolean;
|
|
21
|
+
animationType?: 'bounce' | 'spring' | 'rotate' | 'fade' | 'scale';
|
|
22
|
+
onItemPress?: (item: TimelineItem) => void;
|
|
23
|
+
containerStyle?: ViewStyle;
|
|
24
|
+
metaContainerStyle?: StyleProp<ViewStyle>;
|
|
25
|
+
titleStyle?: TextStyle;
|
|
26
|
+
descriptionStyle?: TextStyle;
|
|
27
|
+
timestampStyle?: TextStyle;
|
|
28
|
+
lineWidth?: number;
|
|
29
|
+
iconSize?: number;
|
|
30
|
+
metaTextStyle?: StyleProp<TextStyle>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "0",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Advanced UI component: 0",
|
|
5
|
+
"target": "native",
|
|
6
|
+
"copy": [
|
|
7
|
+
{
|
|
8
|
+
"from": "apps/native/src/components/advanced-ui/timeline",
|
|
9
|
+
"to": "apps/native/src/components/advanced-ui/timeline"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"expo": [
|
|
14
|
+
"react-native-reanimated",
|
|
15
|
+
"react-native-gesture-handler"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -10,7 +10,8 @@ import Animated, {
|
|
|
10
10
|
withSequence,
|
|
11
11
|
withTiming,
|
|
12
12
|
} from 'react-native-reanimated';
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
import { SafeAreaView } from '@/components/ui';
|
|
14
15
|
|
|
15
16
|
import { useThemeConfig } from '../../../lib/use-theme-config';
|
|
16
17
|
import { ChipGroup } from './chip';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "animated-chip",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Advanced UI component: animated-chip",
|
|
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
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
TouchableOpacity,
|
|
16
16
|
View,
|
|
17
17
|
} from 'react-native';
|
|
18
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
19
18
|
|
|
19
|
+
import { SafeAreaView } from '@/components/ui';
|
|
20
20
|
import { useThemeConfig } from '@/lib/use-theme-config';
|
|
21
21
|
|
|
22
22
|
import { AnimatedSwitch } from './animated-switch';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "animated-switch",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Advanced UI component: animated-switch",
|
|
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
|
package/recipes/audio-recorder/apps/native/src/features/audio-recorder/components/audio-recorder.tsx
CHANGED
|
@@ -164,7 +164,7 @@ export function AudioRecorder({
|
|
|
164
164
|
// === END DEBUG CODE ===
|
|
165
165
|
|
|
166
166
|
setRecordingUri(uri);
|
|
167
|
-
onRecordingComplete
|
|
167
|
+
// Note: We don't call onRecordingComplete here - user must click Save
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
onRecordingStop?.();
|
|
@@ -234,6 +234,7 @@ export function AudioRecorder({
|
|
|
234
234
|
const handleSaveRecording = () => {
|
|
235
235
|
if (recordingUri && onRecordingComplete) {
|
|
236
236
|
onRecordingComplete(recordingUri);
|
|
237
|
+
setRecordingUri(null); // Reset UI after save
|
|
237
238
|
}
|
|
238
239
|
};
|
|
239
240
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { ActivityIndicator, View } from 'react-native';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
import { storage } from '@/core/storage/mmkv';
|
|
4
5
|
|
|
5
6
|
import { AudioRecorder, type Recording, RecordingList } from '../components';
|
|
6
7
|
|
|
7
8
|
const RECORDINGS_STORAGE_KEY = 'audio_recordings';
|
|
8
|
-
const storage = new MMKV();
|
|
9
9
|
|
|
10
10
|
export function RecordingListDemo() {
|
|
11
11
|
const [recordings, setRecordings] = useState<Recording[]>([]);
|
|
Binary file
|
|
@@ -164,7 +164,7 @@ export function AudioRecorder({
|
|
|
164
164
|
// === END DEBUG CODE ===
|
|
165
165
|
|
|
166
166
|
setRecordingUri(uri);
|
|
167
|
-
onRecordingComplete
|
|
167
|
+
// Note: We don't call onRecordingComplete here - user must click Save
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
onRecordingStop?.();
|
|
@@ -234,6 +234,7 @@ export function AudioRecorder({
|
|
|
234
234
|
const handleSaveRecording = () => {
|
|
235
235
|
if (recordingUri && onRecordingComplete) {
|
|
236
236
|
onRecordingComplete(recordingUri);
|
|
237
|
+
setRecordingUri(null); // Reset UI after save
|
|
237
238
|
}
|
|
238
239
|
};
|
|
239
240
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import { ActivityIndicator, View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { AudioRecorder, type Recording, RecordingList } from '../components';
|
|
5
4
|
import { createSafeMMKV } from '@/core/storage/mmkv';
|
|
6
5
|
|
|
6
|
+
import { AudioRecorder, type Recording, RecordingList } from '../components';
|
|
7
|
+
|
|
7
8
|
const RECORDINGS_STORAGE_KEY = 'audio_recordings';
|
|
8
9
|
const storage = createSafeMMKV();
|
|
9
10
|
|
|
@@ -1,52 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "audio-recorder",
|
|
2
|
+
"name": "audio-recorder-supabase",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Voice notes with Supabase",
|
|
5
5
|
"copy": [
|
|
6
6
|
{
|
|
7
|
-
"from": "apps/native/src/
|
|
8
|
-
"to": "apps/native/src/
|
|
7
|
+
"from": "apps/native/src/app/audio-recorder",
|
|
8
|
+
"to": "apps/native/src/app/(root)/(protected)/audio-recorder"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"from": "apps/native/src/
|
|
12
|
-
"to": "apps/native/src/
|
|
11
|
+
"from": "apps/native/src/features/audio-recorder",
|
|
12
|
+
"to": "apps/native/src/features/audio-recorder"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"from": "packages/backend/supabase/migrations/recordings.sql",
|
|
16
16
|
"to": "packages/backend/supabase/migrations/recordings.sql"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"from": "packages/backend/src/services/recordings.ts",
|
|
20
|
-
"to": "packages/backend/src/services/recordings.ts"
|
|
21
17
|
}
|
|
22
18
|
],
|
|
23
19
|
"nav": {
|
|
24
20
|
"href": "/(root)/(protected)/audio-recorder",
|
|
25
|
-
"label": "
|
|
26
|
-
"icon": "
|
|
21
|
+
"label": "Voice Notes (Supabase)",
|
|
22
|
+
"icon": "🎤",
|
|
27
23
|
"color": "#EF4444"
|
|
28
24
|
},
|
|
29
25
|
"target": "native",
|
|
30
|
-
"configuration": {
|
|
31
|
-
"apiClient": {
|
|
32
|
-
"exports": [
|
|
33
|
-
"export { type SupabaseRecordingsApi as RecordingsApi, supabaseRecordingsApi as recordingsApi } from './supabase/recordings';"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"backend": {
|
|
37
|
-
"exports": [
|
|
38
|
-
"export { recordingsService, createRecordingDraft, finalizeRecording, listRecordings, updateRecordingName, deleteRecording, getRecordingById } from './services/recordings';",
|
|
39
|
-
"export type { CreateRecordingDraftInput, CreateRecordingDraftResult, FinalizeRecordingInput, FinalizeRecordingResult, ListRecordingsResult, UpdateRecordingNameResult, DeleteRecordingResult } from './services/recordings';"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
26
|
"dependencies": {
|
|
44
|
-
"expo": [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"title": "Apply Supabase migration",
|
|
49
|
-
"description": "Run: cd packages/backend && supabase db push"
|
|
50
|
-
}
|
|
51
|
-
]
|
|
27
|
+
"expo": [
|
|
28
|
+
"expo-audio"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
52
31
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -27,7 +27,9 @@ type Props = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const BarChart = ({ data, config = {}, style }: Props) => {
|
|
30
|
-
const [containerWidth, setContainerWidth] = useState(
|
|
30
|
+
const [containerWidth, setContainerWidth] = useState(
|
|
31
|
+
() => config.width ?? 300,
|
|
32
|
+
);
|
|
31
33
|
const {
|
|
32
34
|
height = 200,
|
|
33
35
|
padding = 20,
|
|
@@ -36,7 +36,9 @@ type Props = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export const CandlestickChart = ({ data, config = {}, style }: Props) => {
|
|
39
|
-
const [containerWidth, setContainerWidth] = useState(
|
|
39
|
+
const [containerWidth, setContainerWidth] = useState(
|
|
40
|
+
() => config.width ?? 300,
|
|
41
|
+
);
|
|
40
42
|
|
|
41
43
|
const {
|
|
42
44
|
height = 200,
|
|
@@ -27,7 +27,9 @@ type Props = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const ColumnChart = ({ data, config = {}, style }: Props) => {
|
|
30
|
-
const [containerWidth, setContainerWidth] = useState(
|
|
30
|
+
const [containerWidth, setContainerWidth] = useState(
|
|
31
|
+
() => config.width ?? 300,
|
|
32
|
+
);
|
|
31
33
|
const {
|
|
32
34
|
height = 200,
|
|
33
35
|
padding = 20,
|
|
@@ -79,7 +79,9 @@ const makeDonutSlicePath = (
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
export const DoughnutChart = ({ data, config = {}, style }: Props) => {
|
|
82
|
-
const [containerWidth, setContainerWidth] = useState(
|
|
82
|
+
const [containerWidth, setContainerWidth] = useState(
|
|
83
|
+
() => config.width ?? 300,
|
|
84
|
+
);
|
|
83
85
|
const {
|
|
84
86
|
height = 200,
|
|
85
87
|
animated = true,
|