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,118 @@
|
|
|
1
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
2
|
+
import { BlurView } from 'expo-blur';
|
|
3
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Dimensions, View } from 'react-native';
|
|
6
|
+
import Animated, {
|
|
7
|
+
FadeInDown,
|
|
8
|
+
useAnimatedProps,
|
|
9
|
+
useSharedValue,
|
|
10
|
+
withTiming,
|
|
11
|
+
} from 'react-native-reanimated';
|
|
12
|
+
import Svg, {
|
|
13
|
+
Defs,
|
|
14
|
+
LinearGradient as SvgGradient,
|
|
15
|
+
Path,
|
|
16
|
+
Stop,
|
|
17
|
+
} from 'react-native-svg';
|
|
18
|
+
|
|
19
|
+
import { Text } from '@/components/ui';
|
|
20
|
+
|
|
21
|
+
import { FINANCE_COLORS } from '../constants';
|
|
22
|
+
|
|
23
|
+
const { width } = Dimensions.get('window');
|
|
24
|
+
const CARD_WIDTH = width - 48;
|
|
25
|
+
const GRAPH_HEIGHT = 100;
|
|
26
|
+
|
|
27
|
+
export const BalanceCard = () => {
|
|
28
|
+
// Simple sparkline path for demo
|
|
29
|
+
const d = `M0,${GRAPH_HEIGHT} C60,${GRAPH_HEIGHT} 80,40 140,40 S200,80 260,60 S320,0 ${CARD_WIDTH},20 L${CARD_WIDTH},${GRAPH_HEIGHT} Z`;
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<Animated.View
|
|
33
|
+
entering={FadeInDown.delay(200).springify()}
|
|
34
|
+
className="rounded-3xl overflow-hidden my-6 border border-zinc-800"
|
|
35
|
+
style={{
|
|
36
|
+
width: CARD_WIDTH,
|
|
37
|
+
height: 220,
|
|
38
|
+
backgroundColor: '#18181b', // Fallback
|
|
39
|
+
}}
|
|
40
|
+
>
|
|
41
|
+
{/* Background Gradient */}
|
|
42
|
+
<LinearGradient
|
|
43
|
+
colors={[FINANCE_COLORS.card, '#000000']}
|
|
44
|
+
className="absolute inset-0"
|
|
45
|
+
/>
|
|
46
|
+
|
|
47
|
+
{/* Glass Effect Overlay */}
|
|
48
|
+
{/* <BlurView intensity={20} className="absolute inset-0" tint="dark" /> */}
|
|
49
|
+
{/* Note: BlurView inside absolute inset might need careful layering */}
|
|
50
|
+
|
|
51
|
+
{/* Decorative Gradient Blob */}
|
|
52
|
+
<View
|
|
53
|
+
className="absolute -top-20 -right-20 w-64 h-64 rounded-full opacity-20"
|
|
54
|
+
style={{
|
|
55
|
+
backgroundColor: FINANCE_COLORS.primary,
|
|
56
|
+
filter: 'blur(50px)',
|
|
57
|
+
}} // Native blur needs generic-style prop or image
|
|
58
|
+
/>
|
|
59
|
+
|
|
60
|
+
<View className="absolute inset-0">
|
|
61
|
+
<Svg height="100%" width="100%">
|
|
62
|
+
<Defs>
|
|
63
|
+
<SvgGradient id="grad" x1="0" y1="0" x2="0" y2="1">
|
|
64
|
+
<Stop
|
|
65
|
+
offset="0"
|
|
66
|
+
stopColor={FINANCE_COLORS.primary}
|
|
67
|
+
stopOpacity="0.3"
|
|
68
|
+
/>
|
|
69
|
+
<Stop
|
|
70
|
+
offset="1"
|
|
71
|
+
stopColor={FINANCE_COLORS.primary}
|
|
72
|
+
stopOpacity="0"
|
|
73
|
+
/>
|
|
74
|
+
</SvgGradient>
|
|
75
|
+
</Defs>
|
|
76
|
+
<Path
|
|
77
|
+
d={d}
|
|
78
|
+
fill="url(#grad)"
|
|
79
|
+
stroke={FINANCE_COLORS.primary}
|
|
80
|
+
strokeWidth={2}
|
|
81
|
+
/>
|
|
82
|
+
</Svg>
|
|
83
|
+
</View>
|
|
84
|
+
|
|
85
|
+
{/* Content */}
|
|
86
|
+
<View className="p-6 justify-between flex-1">
|
|
87
|
+
<View>
|
|
88
|
+
<View className="flex-row items-center gap-2 mb-1">
|
|
89
|
+
<Text className="text-zinc-400 font-medium">Total Balance</Text>
|
|
90
|
+
<View className="px-2 py-0.5 rounded-full bg-emerald-500/20 border border-emerald-500/30">
|
|
91
|
+
<Text className="text-emerald-400 text-[10px] font-bold">
|
|
92
|
+
+5.2%
|
|
93
|
+
</Text>
|
|
94
|
+
</View>
|
|
95
|
+
</View>
|
|
96
|
+
<Text className="text-4xl font-bold text-white tracking-tight">
|
|
97
|
+
$42,593.00
|
|
98
|
+
</Text>
|
|
99
|
+
</View>
|
|
100
|
+
|
|
101
|
+
<View className="flex-row items-center justify-between mt-4">
|
|
102
|
+
<View className="flex-row gap-2">
|
|
103
|
+
<View className="w-2 h-2 rounded-full bg-emerald-500 mt-2" />
|
|
104
|
+
<Text className="text-zinc-400 text-xs leading-5">
|
|
105
|
+
Your portfolio is up by $2,105 today.{'\n'}
|
|
106
|
+
Great work!
|
|
107
|
+
</Text>
|
|
108
|
+
</View>
|
|
109
|
+
<Ionicons
|
|
110
|
+
name="stats-chart"
|
|
111
|
+
size={20}
|
|
112
|
+
color={FINANCE_COLORS.primary}
|
|
113
|
+
/>
|
|
114
|
+
</View>
|
|
115
|
+
</View>
|
|
116
|
+
</Animated.View>
|
|
117
|
+
);
|
|
118
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const FINANCE_COLORS = {
|
|
2
|
+
background: '#09090b', // Deep Black
|
|
3
|
+
card: '#18181b', // Zinc 900
|
|
4
|
+
primary: '#8b5cf6', // Violet 500
|
|
5
|
+
secondary: '#3b82f6', // Blue 500
|
|
6
|
+
accent: '#06b6d4', // Cyan 500
|
|
7
|
+
success: '#10b981', // Emerald 500
|
|
8
|
+
danger: '#ef4444', // Red 500
|
|
9
|
+
text: '#ffffff',
|
|
10
|
+
textMuted: '#a1a1aa', // Zinc 400
|
|
11
|
+
border: '#27272a', // Zinc 800
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const MOCK_ASSETS = [
|
|
15
|
+
{
|
|
16
|
+
id: 'bitcoin',
|
|
17
|
+
name: 'Bitcoin',
|
|
18
|
+
symbol: 'BTC',
|
|
19
|
+
amount: 0.45,
|
|
20
|
+
value: 28500.5,
|
|
21
|
+
change: 2.4,
|
|
22
|
+
color: '#f59e0b', // Amber
|
|
23
|
+
chartData: [26000, 26500, 26200, 27000, 28000, 27800, 28500],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'ethereum',
|
|
27
|
+
name: 'Ethereum',
|
|
28
|
+
symbol: 'ETH',
|
|
29
|
+
amount: 5.2,
|
|
30
|
+
value: 9800.2,
|
|
31
|
+
change: -1.2,
|
|
32
|
+
color: '#6366f1', // Indigo
|
|
33
|
+
chartData: [1950, 1920, 1900, 1880, 1890, 1870, 1885],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'solana',
|
|
37
|
+
name: 'Solana',
|
|
38
|
+
symbol: 'SOL',
|
|
39
|
+
amount: 145.0,
|
|
40
|
+
value: 3200.0,
|
|
41
|
+
change: 15.4,
|
|
42
|
+
color: '#14b8a6', // Teal
|
|
43
|
+
chartData: [20, 22, 21, 25, 28, 30, 32],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'usdc',
|
|
47
|
+
name: 'USD Coin',
|
|
48
|
+
symbol: 'USDC',
|
|
49
|
+
amount: 1045.5,
|
|
50
|
+
value: 1045.5,
|
|
51
|
+
change: 0.01,
|
|
52
|
+
color: '#3b82f6', // Blue
|
|
53
|
+
chartData: [1, 1, 1, 1, 1, 1, 1],
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
export const MOCK_TRANSACTIONS = [
|
|
58
|
+
{
|
|
59
|
+
id: 't1',
|
|
60
|
+
type: 'receive',
|
|
61
|
+
title: 'Received from Mike',
|
|
62
|
+
date: 'Today, 10:23 AM',
|
|
63
|
+
amount: '+ 0.05 ETH',
|
|
64
|
+
value: '+$95.00',
|
|
65
|
+
icon: 'arrow-down-circle',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: 't2',
|
|
69
|
+
type: 'send',
|
|
70
|
+
title: 'Sent to Binance',
|
|
71
|
+
date: 'Yesterday, 4:15 PM',
|
|
72
|
+
amount: '- 2.5 SOL',
|
|
73
|
+
value: '-$55.00',
|
|
74
|
+
icon: 'arrow-up-circle',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 't3',
|
|
78
|
+
type: 'swap',
|
|
79
|
+
title: 'Swapped USDC to BTC',
|
|
80
|
+
date: 'Oct 12, 9:00 AM',
|
|
81
|
+
amount: '500 USDC',
|
|
82
|
+
value: '0.018 BTC',
|
|
83
|
+
icon: 'repeat',
|
|
84
|
+
},
|
|
85
|
+
];
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { Ionicons } from '@expo/vector-icons';
|
|
2
|
+
import { BlurView } from 'expo-blur';
|
|
3
|
+
import { Stack, useLocalSearchParams, useRouter } from 'expo-router';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Dimensions, StyleSheet, TouchableOpacity, View } from 'react-native';
|
|
6
|
+
import Animated, { FadeInDown, FadeInUp } from 'react-native-reanimated';
|
|
7
|
+
import Svg, { Defs, LinearGradient, Path, Stop } from 'react-native-svg';
|
|
8
|
+
|
|
9
|
+
import { FocusAwareStatusBar, Text } from '@/components/ui';
|
|
10
|
+
import { FINANCE_COLORS } from '../constants';
|
|
11
|
+
|
|
12
|
+
const { width } = Dimensions.get('window');
|
|
13
|
+
const CHART_HEIGHT = 220;
|
|
14
|
+
|
|
15
|
+
export default function AssetDetailScreen() {
|
|
16
|
+
const router = useRouter();
|
|
17
|
+
const params = useLocalSearchParams();
|
|
18
|
+
const { name, symbol, price, change, color } = params;
|
|
19
|
+
|
|
20
|
+
const assetName = (name as string) || 'Bitcoin';
|
|
21
|
+
const assetSymbol = (symbol as string) || 'BTC';
|
|
22
|
+
const assetPrice = (price as string) || '$28,450.00';
|
|
23
|
+
const assetChange = (change as string) || '+2.4%';
|
|
24
|
+
const assetColor = (color as string) || '#F7931A';
|
|
25
|
+
const isPositive = assetChange.includes('+');
|
|
26
|
+
|
|
27
|
+
const d = `M0,${CHART_HEIGHT} C${width * 0.2},${CHART_HEIGHT * 0.8} ${
|
|
28
|
+
width * 0.4
|
|
29
|
+
},${CHART_HEIGHT * 0.4} ${width * 0.6},${CHART_HEIGHT * 0.6} S${
|
|
30
|
+
width * 0.8
|
|
31
|
+
},0 ${width},100 L${width},${CHART_HEIGHT} Z`;
|
|
32
|
+
|
|
33
|
+
const lineD = `M0,${CHART_HEIGHT} C${width * 0.2},${CHART_HEIGHT * 0.8} ${
|
|
34
|
+
width * 0.4
|
|
35
|
+
},${CHART_HEIGHT * 0.4} ${width * 0.6},${CHART_HEIGHT * 0.6} S${width * 0.8},0 ${width},100`;
|
|
36
|
+
|
|
37
|
+
const timeFilters = ['1H', '1D', '1W', '1M', '1Y', 'ALL'];
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<View style={styles.container}>
|
|
41
|
+
<FocusAwareStatusBar barStyle="light-content" />
|
|
42
|
+
<Stack.Screen options={{ headerShown: false }} />
|
|
43
|
+
|
|
44
|
+
{/* Header */}
|
|
45
|
+
<View style={styles.header}>
|
|
46
|
+
<TouchableOpacity
|
|
47
|
+
onPress={() => router.back()}
|
|
48
|
+
style={styles.headerButton}
|
|
49
|
+
>
|
|
50
|
+
<Ionicons name="arrow-back" size={20} color="white" />
|
|
51
|
+
</TouchableOpacity>
|
|
52
|
+
<Text style={styles.headerTitle}>{assetName}</Text>
|
|
53
|
+
<TouchableOpacity style={styles.headerButton}>
|
|
54
|
+
<Ionicons name="star-outline" size={20} color="white" />
|
|
55
|
+
</TouchableOpacity>
|
|
56
|
+
</View>
|
|
57
|
+
|
|
58
|
+
<Animated.ScrollView
|
|
59
|
+
contentContainerStyle={styles.scrollContent}
|
|
60
|
+
style={styles.scrollView}
|
|
61
|
+
showsVerticalScrollIndicator={false}
|
|
62
|
+
>
|
|
63
|
+
{/* Price Header */}
|
|
64
|
+
<Animated.View
|
|
65
|
+
entering={FadeInUp.delay(200)}
|
|
66
|
+
style={styles.priceSection}
|
|
67
|
+
>
|
|
68
|
+
<View style={styles.assetIcon}>
|
|
69
|
+
<Text style={[styles.assetIconText, { color: assetColor }]}>
|
|
70
|
+
{assetSymbol[0]}
|
|
71
|
+
</Text>
|
|
72
|
+
</View>
|
|
73
|
+
<Text style={styles.priceLabel}>Current Price</Text>
|
|
74
|
+
<Text style={styles.priceValue}>{assetPrice}</Text>
|
|
75
|
+
<View
|
|
76
|
+
style={[
|
|
77
|
+
styles.changeBadge,
|
|
78
|
+
isPositive
|
|
79
|
+
? styles.changeBadgePositive
|
|
80
|
+
: styles.changeBadgeNegative,
|
|
81
|
+
]}
|
|
82
|
+
>
|
|
83
|
+
<Text
|
|
84
|
+
style={[
|
|
85
|
+
styles.changeText,
|
|
86
|
+
isPositive
|
|
87
|
+
? styles.changeTextPositive
|
|
88
|
+
: styles.changeTextNegative,
|
|
89
|
+
]}
|
|
90
|
+
>
|
|
91
|
+
{assetChange} (24h)
|
|
92
|
+
</Text>
|
|
93
|
+
</View>
|
|
94
|
+
</Animated.View>
|
|
95
|
+
|
|
96
|
+
{/* Chart Area */}
|
|
97
|
+
<View style={styles.chartContainer}>
|
|
98
|
+
<Svg height="100%" width="100%">
|
|
99
|
+
<Defs>
|
|
100
|
+
<LinearGradient id="grad" x1="0" y1="0" x2="0" y2="1">
|
|
101
|
+
<Stop offset="0" stopColor={assetColor} stopOpacity="0.3" />
|
|
102
|
+
<Stop offset="1" stopColor={assetColor} stopOpacity="0" />
|
|
103
|
+
</LinearGradient>
|
|
104
|
+
</Defs>
|
|
105
|
+
<Path d={d} fill="url(#grad)" stroke="none" />
|
|
106
|
+
<Path d={lineD} stroke={assetColor} strokeWidth={3} fill="none" />
|
|
107
|
+
</Svg>
|
|
108
|
+
</View>
|
|
109
|
+
|
|
110
|
+
{/* Time Filters */}
|
|
111
|
+
<View style={styles.timeFilters}>
|
|
112
|
+
{timeFilters.map((time, i) => (
|
|
113
|
+
<TouchableOpacity
|
|
114
|
+
key={time}
|
|
115
|
+
style={[
|
|
116
|
+
styles.timeFilterButton,
|
|
117
|
+
i === 1 && styles.timeFilterButtonActive,
|
|
118
|
+
]}
|
|
119
|
+
>
|
|
120
|
+
<Text
|
|
121
|
+
style={[
|
|
122
|
+
styles.timeFilterText,
|
|
123
|
+
i === 1 && styles.timeFilterTextActive,
|
|
124
|
+
]}
|
|
125
|
+
>
|
|
126
|
+
{time}
|
|
127
|
+
</Text>
|
|
128
|
+
</TouchableOpacity>
|
|
129
|
+
))}
|
|
130
|
+
</View>
|
|
131
|
+
|
|
132
|
+
{/* Stats Grid */}
|
|
133
|
+
<View style={styles.statsSection}>
|
|
134
|
+
<Text style={styles.statsTitle}>Market Stats</Text>
|
|
135
|
+
<View style={styles.statsRow}>
|
|
136
|
+
<StatCard label="Market Cap" value="$542.8B" delay={300} />
|
|
137
|
+
<StatCard label="Volume (24h)" value="$24.1B" delay={400} />
|
|
138
|
+
</View>
|
|
139
|
+
<View style={styles.statsRow}>
|
|
140
|
+
<StatCard label="Circulating" value="19.4M" delay={500} />
|
|
141
|
+
<StatCard label="Popularity" value="#1" delay={600} />
|
|
142
|
+
</View>
|
|
143
|
+
</View>
|
|
144
|
+
</Animated.ScrollView>
|
|
145
|
+
|
|
146
|
+
{/* Sticky Action Buttons */}
|
|
147
|
+
<Animated.View
|
|
148
|
+
entering={FadeInDown.delay(700)}
|
|
149
|
+
style={styles.footerContainer}
|
|
150
|
+
>
|
|
151
|
+
<BlurView intensity={80} tint="dark" style={StyleSheet.absoluteFill} />
|
|
152
|
+
<View style={styles.actionButtons}>
|
|
153
|
+
<TouchableOpacity style={styles.sellButton} activeOpacity={0.8}>
|
|
154
|
+
<Text style={styles.sellButtonText}>Sell</Text>
|
|
155
|
+
</TouchableOpacity>
|
|
156
|
+
<TouchableOpacity style={styles.buyButton} activeOpacity={0.8}>
|
|
157
|
+
<Text style={styles.buyButtonText}>Buy</Text>
|
|
158
|
+
</TouchableOpacity>
|
|
159
|
+
</View>
|
|
160
|
+
</Animated.View>
|
|
161
|
+
</View>
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function StatCard({
|
|
166
|
+
label,
|
|
167
|
+
value,
|
|
168
|
+
delay,
|
|
169
|
+
}: {
|
|
170
|
+
label: string;
|
|
171
|
+
value: string;
|
|
172
|
+
delay: number;
|
|
173
|
+
}) {
|
|
174
|
+
return (
|
|
175
|
+
<Animated.View
|
|
176
|
+
entering={FadeInUp.delay(delay).springify()}
|
|
177
|
+
style={styles.statCard}
|
|
178
|
+
>
|
|
179
|
+
<Text style={styles.statLabel}>{label}</Text>
|
|
180
|
+
<Text style={styles.statValue}>{value}</Text>
|
|
181
|
+
</Animated.View>
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const styles = StyleSheet.create({
|
|
186
|
+
container: {
|
|
187
|
+
flex: 1,
|
|
188
|
+
backgroundColor: FINANCE_COLORS.background,
|
|
189
|
+
},
|
|
190
|
+
header: {
|
|
191
|
+
flexDirection: 'row',
|
|
192
|
+
alignItems: 'center',
|
|
193
|
+
justifyContent: 'space-between',
|
|
194
|
+
paddingHorizontal: 24,
|
|
195
|
+
paddingTop: 56,
|
|
196
|
+
paddingBottom: 16,
|
|
197
|
+
},
|
|
198
|
+
headerButton: {
|
|
199
|
+
width: 40,
|
|
200
|
+
height: 40,
|
|
201
|
+
borderRadius: 20,
|
|
202
|
+
backgroundColor: '#18181b',
|
|
203
|
+
alignItems: 'center',
|
|
204
|
+
justifyContent: 'center',
|
|
205
|
+
borderWidth: 1,
|
|
206
|
+
borderColor: '#27272a',
|
|
207
|
+
},
|
|
208
|
+
headerTitle: {
|
|
209
|
+
color: '#ffffff',
|
|
210
|
+
fontWeight: '700',
|
|
211
|
+
fontSize: 18,
|
|
212
|
+
},
|
|
213
|
+
scrollView: {
|
|
214
|
+
flex: 1,
|
|
215
|
+
},
|
|
216
|
+
scrollContent: {
|
|
217
|
+
paddingBottom: 160,
|
|
218
|
+
},
|
|
219
|
+
priceSection: {
|
|
220
|
+
alignItems: 'center',
|
|
221
|
+
marginTop: 24,
|
|
222
|
+
marginBottom: 32,
|
|
223
|
+
},
|
|
224
|
+
assetIcon: {
|
|
225
|
+
flexDirection: 'row',
|
|
226
|
+
alignItems: 'center',
|
|
227
|
+
justifyContent: 'center',
|
|
228
|
+
width: 64,
|
|
229
|
+
height: 64,
|
|
230
|
+
borderRadius: 32,
|
|
231
|
+
backgroundColor: '#18181b',
|
|
232
|
+
marginBottom: 16,
|
|
233
|
+
borderWidth: 1,
|
|
234
|
+
borderColor: '#27272a',
|
|
235
|
+
},
|
|
236
|
+
assetIconText: {
|
|
237
|
+
fontSize: 24,
|
|
238
|
+
fontWeight: '700',
|
|
239
|
+
},
|
|
240
|
+
priceLabel: {
|
|
241
|
+
color: '#71717a',
|
|
242
|
+
fontWeight: '500',
|
|
243
|
+
fontSize: 14,
|
|
244
|
+
marginBottom: 4,
|
|
245
|
+
},
|
|
246
|
+
priceValue: {
|
|
247
|
+
fontSize: 36,
|
|
248
|
+
fontWeight: '700',
|
|
249
|
+
color: '#ffffff',
|
|
250
|
+
marginBottom: 8,
|
|
251
|
+
lineHeight: 48,
|
|
252
|
+
includeFontPadding: false,
|
|
253
|
+
},
|
|
254
|
+
changeBadge: {
|
|
255
|
+
paddingHorizontal: 12,
|
|
256
|
+
paddingVertical: 4,
|
|
257
|
+
borderRadius: 20,
|
|
258
|
+
},
|
|
259
|
+
changeBadgePositive: {
|
|
260
|
+
backgroundColor: 'rgba(16, 185, 129, 0.2)',
|
|
261
|
+
},
|
|
262
|
+
changeBadgeNegative: {
|
|
263
|
+
backgroundColor: 'rgba(239, 68, 68, 0.2)',
|
|
264
|
+
},
|
|
265
|
+
changeText: {
|
|
266
|
+
fontSize: 14,
|
|
267
|
+
fontWeight: '700',
|
|
268
|
+
},
|
|
269
|
+
changeTextPositive: {
|
|
270
|
+
color: '#34d399',
|
|
271
|
+
},
|
|
272
|
+
changeTextNegative: {
|
|
273
|
+
color: '#f87171',
|
|
274
|
+
},
|
|
275
|
+
chartContainer: {
|
|
276
|
+
height: 220,
|
|
277
|
+
width: '100%',
|
|
278
|
+
marginBottom: 32,
|
|
279
|
+
},
|
|
280
|
+
timeFilters: {
|
|
281
|
+
flexDirection: 'row',
|
|
282
|
+
justifyContent: 'space-between',
|
|
283
|
+
paddingHorizontal: 24,
|
|
284
|
+
marginBottom: 32,
|
|
285
|
+
},
|
|
286
|
+
timeFilterButton: {
|
|
287
|
+
width: 40,
|
|
288
|
+
height: 32,
|
|
289
|
+
alignItems: 'center',
|
|
290
|
+
justifyContent: 'center',
|
|
291
|
+
borderRadius: 8,
|
|
292
|
+
},
|
|
293
|
+
timeFilterButtonActive: {
|
|
294
|
+
backgroundColor: '#27272a',
|
|
295
|
+
},
|
|
296
|
+
timeFilterText: {
|
|
297
|
+
fontSize: 12,
|
|
298
|
+
fontWeight: '700',
|
|
299
|
+
color: '#71717a',
|
|
300
|
+
},
|
|
301
|
+
timeFilterTextActive: {
|
|
302
|
+
color: '#ffffff',
|
|
303
|
+
},
|
|
304
|
+
statsSection: {
|
|
305
|
+
paddingHorizontal: 24,
|
|
306
|
+
gap: 16,
|
|
307
|
+
},
|
|
308
|
+
statsTitle: {
|
|
309
|
+
fontSize: 20,
|
|
310
|
+
fontWeight: '700',
|
|
311
|
+
color: '#ffffff',
|
|
312
|
+
marginBottom: 8,
|
|
313
|
+
},
|
|
314
|
+
statsRow: {
|
|
315
|
+
flexDirection: 'row',
|
|
316
|
+
gap: 16,
|
|
317
|
+
},
|
|
318
|
+
statCard: {
|
|
319
|
+
flex: 1,
|
|
320
|
+
backgroundColor: '#18181b',
|
|
321
|
+
borderWidth: 1,
|
|
322
|
+
borderColor: '#27272a',
|
|
323
|
+
padding: 16,
|
|
324
|
+
borderRadius: 16,
|
|
325
|
+
},
|
|
326
|
+
statLabel: {
|
|
327
|
+
color: '#71717a',
|
|
328
|
+
fontSize: 12,
|
|
329
|
+
fontWeight: '500',
|
|
330
|
+
marginBottom: 4,
|
|
331
|
+
},
|
|
332
|
+
statValue: {
|
|
333
|
+
color: '#ffffff',
|
|
334
|
+
fontWeight: '700',
|
|
335
|
+
fontSize: 18,
|
|
336
|
+
},
|
|
337
|
+
footerContainer: {
|
|
338
|
+
position: 'absolute',
|
|
339
|
+
bottom: 0,
|
|
340
|
+
left: 0,
|
|
341
|
+
right: 0,
|
|
342
|
+
paddingHorizontal: 24,
|
|
343
|
+
paddingTop: 20,
|
|
344
|
+
paddingBottom: 40,
|
|
345
|
+
borderTopWidth: 1,
|
|
346
|
+
borderTopColor: 'rgba(255, 255, 255, 0.1)',
|
|
347
|
+
},
|
|
348
|
+
actionButtons: {
|
|
349
|
+
flexDirection: 'row',
|
|
350
|
+
gap: 16,
|
|
351
|
+
},
|
|
352
|
+
sellButton: {
|
|
353
|
+
flex: 1,
|
|
354
|
+
backgroundColor: '#27272a',
|
|
355
|
+
height: 56,
|
|
356
|
+
borderRadius: 16,
|
|
357
|
+
alignItems: 'center',
|
|
358
|
+
justifyContent: 'center',
|
|
359
|
+
},
|
|
360
|
+
sellButtonText: {
|
|
361
|
+
color: '#ffffff',
|
|
362
|
+
fontWeight: '700',
|
|
363
|
+
fontSize: 18,
|
|
364
|
+
},
|
|
365
|
+
buyButton: {
|
|
366
|
+
flex: 1,
|
|
367
|
+
height: 56,
|
|
368
|
+
borderRadius: 16,
|
|
369
|
+
alignItems: 'center',
|
|
370
|
+
justifyContent: 'center',
|
|
371
|
+
backgroundColor: FINANCE_COLORS.primary,
|
|
372
|
+
},
|
|
373
|
+
buyButtonText: {
|
|
374
|
+
color: '#ffffff',
|
|
375
|
+
fontWeight: '700',
|
|
376
|
+
fontSize: 18,
|
|
377
|
+
},
|
|
378
|
+
});
|