vibefast-cli 1.1.3 → 1.2.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/CHANGELOG.md +32 -0
- package/README.md +63 -169
- package/dist/__tests__/recipes.test.js +25 -3
- package/dist/__tests__/recipes.test.js.map +1 -1
- package/dist/commands/add.d.ts +1 -1
- package/dist/commands/add.d.ts.map +1 -1
- package/dist/commands/add.js +547 -543
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/checklist.d.ts +1 -1
- package/dist/commands/checklist.d.ts.map +1 -1
- package/dist/commands/checklist.js +40 -39
- package/dist/commands/checklist.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +22 -22
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/env.d.ts +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +58 -53
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/health.d.ts +1 -1
- package/dist/commands/health.d.ts.map +1 -1
- package/dist/commands/health.js +101 -93
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/init.d.ts +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +416 -296
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/remove.d.ts +1 -1
- package/dist/commands/remove.d.ts.map +1 -1
- package/dist/commands/remove.js +77 -64
- package/dist/commands/remove.js.map +1 -1
- package/dist/commands/status.d.ts +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +15 -14
- package/dist/commands/status.js.map +1 -1
- package/dist/core/__tests__/detect.test.js +68 -34
- package/dist/core/__tests__/detect.test.js.map +1 -1
- package/dist/core/ast.d.ts +14 -0
- package/dist/core/ast.d.ts.map +1 -0
- package/dist/core/ast.js +239 -0
- package/dist/core/ast.js.map +1 -0
- package/dist/core/codemod.d.ts.map +1 -1
- package/dist/core/codemod.js +62 -44
- package/dist/core/codemod.js.map +1 -1
- package/dist/core/config.d.ts +10 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +51 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/detect.d.ts +8 -2
- package/dist/core/detect.d.ts.map +1 -1
- package/dist/core/detect.js +52 -21
- package/dist/core/detect.js.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +9 -8
- package/dist/core/errors.js.map +1 -1
- package/dist/core/exec.d.ts +16 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +48 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/manualSteps.d.ts +7 -0
- package/dist/core/manualSteps.d.ts.map +1 -0
- package/dist/core/manualSteps.js +59 -0
- package/dist/core/manualSteps.js.map +1 -0
- package/dist/core/paths.d.ts +3 -1
- package/dist/core/paths.d.ts.map +1 -1
- package/dist/core/paths.js +14 -10
- package/dist/core/paths.js.map +1 -1
- package/dist/core/spinner.d.ts +1 -1
- package/dist/core/spinner.d.ts.map +1 -1
- package/dist/core/spinner.js +38 -8
- package/dist/core/spinner.js.map +1 -1
- package/dist/core/vosk.d.ts.map +1 -1
- package/dist/core/vosk.js +50 -39
- package/dist/core/vosk.js.map +1 -1
- package/docs/manual-testing.md +91 -0
- package/package.json +6 -3
- package/recipes/audio-recorder/apps/native/src/app/audio-recorder/index.tsx +5 -0
- package/recipes/audio-recorder/recipe.json +3 -3
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-player.tsx +301 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-recorder.tsx +373 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-waveform.tsx +270 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/index.ts +4 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/recording-list.tsx +89 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/audio-player-demo.tsx +66 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/audio-recorder-cloud.tsx +68 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/audio-recorder-interview.tsx +102 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/basic.tsx +27 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/index.ts +5 -0
- package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/with-recording-list-demo.tsx +82 -0
- package/recipes/audio-recorder-supabase/packages/backend/src/services/recordings.ts +369 -0
- package/recipes/audio-recorder-supabase/packages/backend/supabase/migrations/recordings.sql +70 -0
- package/recipes/audio-recorder-supabase/recipe.json +35 -0
- package/recipes/audio-recorder-supabase@latest.zip +0 -0
- package/recipes/audio-recorder@latest.zip +0 -0
- package/recipes/charts/apps/native/src/features/charts/components/bar-chart.tsx +3 -3
- package/recipes/charts/apps/native/src/features/charts/components/candlestick-chart.tsx +2 -2
- package/recipes/charts/apps/native/src/features/charts/components/chart-card.tsx +5 -5
- package/recipes/charts/apps/native/src/features/charts/components/column-chart.tsx +3 -3
- package/recipes/charts/apps/native/src/features/charts/components/doughnut-chart.tsx +20 -4
- package/recipes/charts/apps/native/src/features/charts/components/line-chart.tsx +7 -6
- package/recipes/charts/apps/native/src/features/charts/components/radar-chart.tsx +6 -4
- package/recipes/charts/apps/native/src/features/charts/components/radial-bar-chart.tsx +1 -1
- package/recipes/charts/apps/native/src/features/charts/components/stacked-bar-chart.tsx +5 -4
- package/recipes/charts/recipe.json +4 -13
- package/recipes/charts@latest.zip +0 -0
- package/recipes/chatbot/apps/native/src/app/chatbot/index.tsx +1 -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 +86 -53
- package/recipes/chatbot/recipe.json +26 -92
- package/recipes/chatbot-supabase/apps/native/src/api-client/supabase/chatbot.ts +515 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/app/index.tsx +257 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-header-buttons.tsx +59 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-input-bar.tsx +485 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-markdown.tsx +575 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-message-bubble.tsx +223 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-settings-modal.tsx +161 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/image-preview-list.tsx +116 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/code-block.tsx +165 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/index.ts +10 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/table-renderer.tsx +129 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/message-error-boundary.tsx +78 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/message-list.tsx +170 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/model-selector.tsx +283 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/report-content-modal.tsx +188 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/suggested-messages.tsx +67 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/constants/models.ts +20 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/constants/report-reasons.ts +9 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-attachment-cache.ts +142 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-chat-config.ts +458 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-chat-handlers.ts +429 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-chatbot-settings.ts +89 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-conversation.ts +90 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-image-picker.ts +122 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-keyboard-coordinator.ts +161 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/hooks/use-smart-scroll-manager.ts +213 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/index.ts +86 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/models.ts +162 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/providers.ts +62 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/models/types.ts +40 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/services/file-uploader.ts +287 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/services/message-handler-service.ts +189 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/types/index.ts +70 -0
- package/recipes/chatbot-supabase/apps/native/src/features/chatbot/utils/chat-telemetry.ts +91 -0
- package/recipes/chatbot-supabase/packages/backend/src/services/conversations.ts +243 -0
- package/recipes/chatbot-supabase/packages/backend/src/services/messages.ts +327 -0
- package/recipes/chatbot-supabase/packages/backend/supabase/functions/chat-stream/index.ts +347 -0
- package/recipes/chatbot-supabase/packages/backend/supabase/migrations/chatbot.sql +104 -0
- package/recipes/chatbot-supabase/recipe.json +79 -0
- package/recipes/chatbot-supabase@latest.zip +0 -0
- package/recipes/chatbot.zip +0 -0
- package/recipes/chatbot@latest.zip +0 -0
- package/recipes/image-analysis/packages/backend/convex/imageAnalysis/index.ts +2 -2
- package/recipes/image-analysis/packages/backend/convex/{imageAnalysisFunctions.ts → imageAnalysis.ts} +5 -5
- package/recipes/image-analysis/recipe.json +15 -55
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/analysis-options-screen.tsx +304 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/camera.tsx +221 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/image-capture-screen.tsx +333 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/loading-screen.tsx +214 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/loading.tsx +191 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/results.tsx +137 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/trait-details.tsx +172 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/use-analysis-data.ts +160 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/app/use-results-screen.ts +151 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievement-badge.tsx +77 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievement-card.tsx +75 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievement-unlocked-modal.tsx +162 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/achievements-section.tsx +44 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/advice-list.tsx +42 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/circular-progress.tsx +233 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/content-card.tsx +38 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/error-state.tsx +42 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/index.ts +9 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/loading-state.tsx +26 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/profile-image.tsx +60 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/results-header.tsx +62 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/score-display.tsx +54 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/share-options-modal.tsx +110 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/components/results/traits-grid.tsx +74 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/config/analysis-config.ts +80 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/config/master-analysis-config.ts +157 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/hooks/index.ts +1 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/hooks/use-analysis.ts +38 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/hooks/use-image-analysis.ts +208 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/services/analysis-service.ts +262 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/services/share-service.ts +176 -0
- package/recipes/image-analysis-supabase/apps/native/src/features/image-analyzer/services/trait-details-service.ts +289 -0
- package/recipes/image-analysis-supabase/packages/backend/src/services/image-analyses.ts +132 -0
- package/recipes/image-analysis-supabase/packages/backend/supabase/functions/analyze-image/index.ts +312 -0
- package/recipes/image-analysis-supabase/packages/backend/supabase/migrations/image_analysis.sql +42 -0
- package/recipes/image-analysis-supabase/recipe.json +57 -0
- package/recipes/image-analysis-supabase@latest.zip +0 -0
- package/recipes/image-analysis@latest.zip +0 -0
- package/recipes/image-generator/apps/native/src/features/image-generator/app/index.tsx +16 -2
- package/recipes/image-generator/apps/native/src/features/image-generator/components/image-model-selector.tsx +11 -5
- package/recipes/image-generator/apps/native/src/features/image-generator/hooks/use-image-generator.ts +11 -5
- package/recipes/image-generator/packages/backend/convex/imageGeneration/index.ts +2 -2
- package/recipes/image-generator/recipe.json +16 -39
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/app/_layout.tsx +26 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/app/gallery.tsx +217 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/app/index.tsx +251 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/gallery-image.tsx +25 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/image-detail-modal.tsx +215 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/image-model-selector.tsx +216 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/components/image-placeholder.tsx +26 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/hooks/use-image-gallery.ts +71 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/hooks/use-image-generator-settings.ts +152 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/hooks/use-image-generator.ts +103 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/models/models.ts +66 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/services/image-gallery-service.ts +96 -0
- package/recipes/image-generator-supabase/apps/native/src/features/image-generator/services/image-save-service.ts +120 -0
- package/recipes/image-generator-supabase/packages/backend/supabase/functions/generate-image/index.ts +291 -0
- package/recipes/image-generator-supabase/packages/backend/supabase/migrations/image_generator.sql +71 -0
- package/recipes/image-generator-supabase/recipe.json +59 -0
- package/recipes/image-generator-supabase@latest.zip +0 -0
- package/recipes/image-generator@latest.zip +0 -0
- package/recipes/ios-widget/recipe.json +15 -24
- package/recipes/ios-widget@latest.zip +0 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/analytics/index.ts +9 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/components/onboarding-with-analytics.tsx +141 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/components/onboarding.tsx +173 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/config/onboarding-flow-config.ts +189 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/demo-one/app/index.tsx +42 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/demo-one/data.ts +32 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/app/index.tsx +43 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/interactive-onboarding.tsx +222 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/ai-tone-step.tsx +133 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/currency-step.tsx +165 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-ai-step.tsx +199 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-chatbot-step.tsx +154 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-manual-step.tsx +156 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-scan-step.tsx +158 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/main-reason-step.tsx +139 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/notification-step.tsx +129 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/overspend-step.tsx +138 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/personalizing-step.tsx +190 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/rating-step.tsx +98 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/reminder-step.tsx +181 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/safety-step.tsx +110 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/struggle-step.tsx +139 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/welcome-step.tsx +217 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/ui/onboarding-header.tsx +58 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/constants.ts +179 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/hooks/use-onboarding-analytics.ts +323 -0
- package/recipes/onboarding/apps/native/src/features/onboarding/services/onboarding-analytics.ts +432 -0
- package/recipes/onboarding/recipe.json +15 -0
- package/recipes/onboarding@latest.zip +0 -0
- package/recipes/payments/recipe.json +28 -61
- package/recipes/payments-supabase/apps/native/src/features/payments/README.md +200 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/app/local-paywall.tsx +194 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/app/remote-paywall.tsx +79 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/payment-initializer.tsx +95 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-error-state.tsx +60 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-local-mode.tsx +116 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-product-card.tsx +133 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/components/paywall-remote-mode.tsx +146 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/hooks/use-entitlement.ts +63 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/index.ts +8 -0
- package/recipes/payments-supabase/apps/native/src/features/payments/services/revenuecat-adapter.ts +407 -0
- package/recipes/payments-supabase/packages/backend/src/services/payments.ts +201 -0
- package/recipes/payments-supabase/packages/backend/supabase/migrations/payments.sql +35 -0
- package/recipes/payments-supabase/recipe.json +51 -0
- package/recipes/payments-supabase@latest.zip +0 -0
- package/recipes/payments@latest.zip +0 -0
- package/recipes/quiz/apps/native/src/features/quiz/index.tsx +1 -2
- package/recipes/quiz/recipe.json +6 -9
- package/recipes/quiz@latest.zip +0 -0
- package/recipes/tracker-app/apps/native/src/features/tracker-app/app/index.tsx +1 -2
- package/recipes/tracker-app/recipe.json +7 -10
- package/recipes/tracker-app@latest.zip +0 -0
- package/recipes/voice-bot/recipe.json +8 -68
- package/recipes/voice-bot.zip +0 -0
- package/recipes/voice-bot@latest.zip +0 -0
- package/recipes/wake-word/recipe.json +10 -9
- package/recipes/wake-word.zip +0 -0
- package/recipes/wake-word@latest.zip +0 -0
- package/recipes/charts/apps/native/src/app/(root)/(protected)/charts/index.tsx +0 -3
- package/recipes/chatbot/packages/backend/convex/lib/rateLimit.ts +0 -100
- package/recipes/chatbot/packages/backend/convex/lib/telemetry.ts +0 -29
- package/recipes/chatbot/packages/backend/convex/ragKnowledge.ts +0 -0
- package/recipes/image-analysis/apps/native/assets/features/image-analyzer/front.jpg +0 -0
- package/recipes/image-analysis/apps/native/assets/features/image-analyzer/side.jpg +0 -0
- package/recipes/image-analysis/apps/native/assets/features/image-analyzer/threeQuarter.jpg +0 -0
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/_layout.tsx +0 -5
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/analysis-options.tsx +0 -50
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/camera.tsx +0 -2
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/index.tsx +0 -50
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/loading.tsx +0 -50
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/results.tsx +0 -2
- package/recipes/image-analysis/apps/native/src/app/(root)/(protected)/analysis/[type]/trait-details.tsx +0 -3
- package/recipes/image-analysis/packages/backend/convex/lib/ai/imageAnalysisAdapter.ts +0 -200
- package/recipes/payments/apps/native/src/app/(root)/(protected)/paywall/index.tsx +0 -74
- package/recipes/payments/apps/native/src/app/(root)/(protected)/paywall/local.tsx +0 -25
- package/recipes/payments/apps/native/src/app/(root)/(protected)/paywall/remote.tsx +0 -23
- package/recipes/quiz/apps/native/src/app/(root)/(protected)/quiz/index.tsx +0 -47
- package/recipes/tracker-app/apps/native/src/app/(root)/(protected)/tracker-app/index.tsx +0 -1
- package/recipes/voice-bot/apps/native/src/app/(root)/(protected)/voice-bot/index.tsx +0 -27
- package/recipes/voice-bot/packages/backend/convex/router.ts +0 -81
- /package/recipes/{chatbot/apps/native/src/app/(root)/(protected) → chatbot-supabase/apps/native/src/app}/chatbot/index.tsx +0 -0
- /package/recipes/{image-generator/apps/native/src/app/(root)/(protected) → image-generator-supabase/apps/native/src/app}/image-generator/gallery.tsx +0 -0
- /package/recipes/{image-generator/apps/native/src/app/(root)/(protected) → image-generator-supabase/apps/native/src/app}/image-generator/index.tsx +0 -0
package/recipes/onboarding/apps/native/src/features/onboarding/services/onboarding-analytics.ts
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import type { AnalyticsService } from '@/core/analytics';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Onboarding step configuration for analytics tracking
|
|
5
|
+
*/
|
|
6
|
+
export type OnboardingStepConfig = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
index: number;
|
|
10
|
+
isOptional?: boolean;
|
|
11
|
+
category?: string; // e.g., 'intro', 'personalization', 'setup'
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Onboarding flow configuration for analytics
|
|
16
|
+
*/
|
|
17
|
+
export type OnboardingFlowConfig = {
|
|
18
|
+
flowId: string;
|
|
19
|
+
flowName: string;
|
|
20
|
+
version?: string;
|
|
21
|
+
steps: OnboardingStepConfig[];
|
|
22
|
+
variant?: string; // For A/B testing different flows
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Onboarding step interaction types
|
|
27
|
+
*/
|
|
28
|
+
export type OnboardingStepAction =
|
|
29
|
+
| 'viewed'
|
|
30
|
+
| 'completed'
|
|
31
|
+
| 'skipped'
|
|
32
|
+
| 'retried'
|
|
33
|
+
| 'back_navigation'
|
|
34
|
+
| 'help_accessed';
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Onboarding session data for tracking user journey
|
|
38
|
+
*/
|
|
39
|
+
export type OnboardingSession = {
|
|
40
|
+
sessionId: string;
|
|
41
|
+
flowConfig: OnboardingFlowConfig;
|
|
42
|
+
startTime: number;
|
|
43
|
+
currentStepIndex: number;
|
|
44
|
+
completedSteps: string[];
|
|
45
|
+
skippedSteps: string[];
|
|
46
|
+
userType?: 'new' | 'returning' | 'migrated';
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Analytics events for onboarding tracking
|
|
51
|
+
*/
|
|
52
|
+
export const OnboardingAnalyticsEvents = {
|
|
53
|
+
// Flow-level events
|
|
54
|
+
FLOW_STARTED: 'onboarding_flow_started',
|
|
55
|
+
FLOW_COMPLETED: 'onboarding_flow_completed',
|
|
56
|
+
FLOW_ABANDONED: 'onboarding_flow_abandoned',
|
|
57
|
+
FLOW_RESUMED: 'onboarding_flow_resumed',
|
|
58
|
+
|
|
59
|
+
// Step-level events
|
|
60
|
+
STEP_VIEWED: 'onboarding_step_viewed',
|
|
61
|
+
STEP_COMPLETED: 'onboarding_step_completed',
|
|
62
|
+
STEP_SKIPPED: 'onboarding_step_skipped',
|
|
63
|
+
STEP_RETRIED: 'onboarding_step_retried',
|
|
64
|
+
STEP_HELP_ACCESSED: 'onboarding_step_help_accessed',
|
|
65
|
+
|
|
66
|
+
// Navigation events
|
|
67
|
+
NAVIGATION_BACK: 'onboarding_navigation_back',
|
|
68
|
+
NAVIGATION_FORWARD: 'onboarding_navigation_forward',
|
|
69
|
+
} as const;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Service for tracking onboarding analytics with automatic step discovery
|
|
73
|
+
* and scalable event tracking that adapts to any onboarding flow configuration.
|
|
74
|
+
*/
|
|
75
|
+
export class OnboardingAnalyticsService {
|
|
76
|
+
private analytics: AnalyticsService;
|
|
77
|
+
private currentSession: OnboardingSession | null = null;
|
|
78
|
+
private stepStartTimes: Map<string, number> = new Map();
|
|
79
|
+
|
|
80
|
+
constructor(analyticsService: AnalyticsService) {
|
|
81
|
+
this.analytics = analyticsService;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Start tracking an onboarding flow
|
|
86
|
+
*/
|
|
87
|
+
async startFlow(
|
|
88
|
+
flowConfig: OnboardingFlowConfig,
|
|
89
|
+
userType?: 'new' | 'returning' | 'migrated',
|
|
90
|
+
): Promise<string> {
|
|
91
|
+
const sessionId = `onboarding_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
92
|
+
|
|
93
|
+
this.currentSession = {
|
|
94
|
+
sessionId,
|
|
95
|
+
flowConfig,
|
|
96
|
+
startTime: Date.now(),
|
|
97
|
+
currentStepIndex: 0,
|
|
98
|
+
completedSteps: [],
|
|
99
|
+
skippedSteps: [],
|
|
100
|
+
userType,
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
await this.analytics.track(OnboardingAnalyticsEvents.FLOW_STARTED, {
|
|
104
|
+
session_id: sessionId,
|
|
105
|
+
flow_id: flowConfig.flowId,
|
|
106
|
+
flow_name: flowConfig.flowName,
|
|
107
|
+
flow_version: flowConfig.version || '1.0',
|
|
108
|
+
flow_variant: flowConfig.variant,
|
|
109
|
+
total_steps: flowConfig.steps.length,
|
|
110
|
+
user_type: userType || 'unknown',
|
|
111
|
+
optional_steps_count: flowConfig.steps.filter((step) => step.isOptional)
|
|
112
|
+
.length,
|
|
113
|
+
step_categories: [
|
|
114
|
+
...new Set(
|
|
115
|
+
flowConfig.steps.map((step) => step.category).filter(Boolean),
|
|
116
|
+
),
|
|
117
|
+
].join(','),
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
return sessionId;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Track when a user views a specific onboarding step
|
|
125
|
+
*/
|
|
126
|
+
async trackStepViewed(
|
|
127
|
+
stepId: string,
|
|
128
|
+
additionalProperties?: Record<string, any>,
|
|
129
|
+
): Promise<void> {
|
|
130
|
+
if (!this.currentSession) {
|
|
131
|
+
console.warn('[OnboardingAnalytics] No active session for step viewed');
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const step = this.currentSession.flowConfig.steps.find(
|
|
136
|
+
(s) => s.id === stepId,
|
|
137
|
+
);
|
|
138
|
+
if (!step) {
|
|
139
|
+
console.warn(
|
|
140
|
+
`[OnboardingAnalytics] Step ${stepId} not found in flow configuration`,
|
|
141
|
+
);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Update session state
|
|
146
|
+
this.currentSession.currentStepIndex = step.index;
|
|
147
|
+
this.stepStartTimes.set(stepId, Date.now());
|
|
148
|
+
|
|
149
|
+
await this.analytics.track(OnboardingAnalyticsEvents.STEP_VIEWED, {
|
|
150
|
+
session_id: this.currentSession.sessionId,
|
|
151
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
152
|
+
step_id: stepId,
|
|
153
|
+
step_name: step.name,
|
|
154
|
+
step_index: step.index,
|
|
155
|
+
step_category: step.category,
|
|
156
|
+
is_optional: step.isOptional || false,
|
|
157
|
+
session_duration_ms: Date.now() - this.currentSession.startTime,
|
|
158
|
+
is_first_step: step.index === 0,
|
|
159
|
+
is_last_step:
|
|
160
|
+
step.index === this.currentSession.flowConfig.steps.length - 1,
|
|
161
|
+
...additionalProperties,
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Track when a user completes a specific onboarding step
|
|
167
|
+
*/
|
|
168
|
+
async trackStepCompleted(
|
|
169
|
+
stepId: string,
|
|
170
|
+
additionalProperties?: Record<string, any>,
|
|
171
|
+
): Promise<void> {
|
|
172
|
+
if (!this.currentSession) {
|
|
173
|
+
console.warn(
|
|
174
|
+
'[OnboardingAnalytics] No active session for step completion',
|
|
175
|
+
);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const step = this.currentSession.flowConfig.steps.find(
|
|
180
|
+
(s) => s.id === stepId,
|
|
181
|
+
);
|
|
182
|
+
if (!step) {
|
|
183
|
+
console.warn(
|
|
184
|
+
`[OnboardingAnalytics] Step ${stepId} not found in flow configuration`,
|
|
185
|
+
);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Calculate step duration
|
|
190
|
+
const stepStartTime = this.stepStartTimes.get(stepId);
|
|
191
|
+
const stepDuration = stepStartTime ? Date.now() - stepStartTime : 0;
|
|
192
|
+
|
|
193
|
+
// Update session state
|
|
194
|
+
this.currentSession.completedSteps.push(stepId);
|
|
195
|
+
|
|
196
|
+
await this.analytics.track(OnboardingAnalyticsEvents.STEP_COMPLETED, {
|
|
197
|
+
session_id: this.currentSession.sessionId,
|
|
198
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
199
|
+
step_id: stepId,
|
|
200
|
+
step_name: step.name,
|
|
201
|
+
step_index: step.index,
|
|
202
|
+
step_category: step.category,
|
|
203
|
+
is_optional: step.isOptional || false,
|
|
204
|
+
step_duration_ms: stepDuration,
|
|
205
|
+
session_duration_ms: Date.now() - this.currentSession.startTime,
|
|
206
|
+
completion_rate:
|
|
207
|
+
this.currentSession.completedSteps.length /
|
|
208
|
+
this.currentSession.flowConfig.steps.length,
|
|
209
|
+
is_last_step:
|
|
210
|
+
step.index === this.currentSession.flowConfig.steps.length - 1,
|
|
211
|
+
...additionalProperties,
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
// Check if this was the last step
|
|
215
|
+
if (step.index === this.currentSession.flowConfig.steps.length - 1) {
|
|
216
|
+
await this.trackFlowCompleted();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Track when a user skips a step
|
|
222
|
+
*/
|
|
223
|
+
async trackStepSkipped(
|
|
224
|
+
stepId: string,
|
|
225
|
+
reason?: string,
|
|
226
|
+
additionalProperties?: Record<string, any>,
|
|
227
|
+
): Promise<void> {
|
|
228
|
+
if (!this.currentSession) {
|
|
229
|
+
console.warn('[OnboardingAnalytics] No active session for step skip');
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const step = this.currentSession.flowConfig.steps.find(
|
|
234
|
+
(s) => s.id === stepId,
|
|
235
|
+
);
|
|
236
|
+
if (!step) {
|
|
237
|
+
console.warn(
|
|
238
|
+
`[OnboardingAnalytics] Step ${stepId} not found in flow configuration`,
|
|
239
|
+
);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Update session state
|
|
244
|
+
this.currentSession.skippedSteps.push(stepId);
|
|
245
|
+
|
|
246
|
+
await this.analytics.track(OnboardingAnalyticsEvents.STEP_SKIPPED, {
|
|
247
|
+
session_id: this.currentSession.sessionId,
|
|
248
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
249
|
+
step_id: stepId,
|
|
250
|
+
step_name: step.name,
|
|
251
|
+
step_index: step.index,
|
|
252
|
+
step_category: step.category,
|
|
253
|
+
is_optional: step.isOptional || false,
|
|
254
|
+
skip_reason: reason || 'user_choice',
|
|
255
|
+
session_duration_ms: Date.now() - this.currentSession.startTime,
|
|
256
|
+
...additionalProperties,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Track step retry attempts
|
|
262
|
+
*/
|
|
263
|
+
async trackStepRetried(
|
|
264
|
+
stepId: string,
|
|
265
|
+
attempt: number,
|
|
266
|
+
additionalProperties?: Record<string, any>,
|
|
267
|
+
): Promise<void> {
|
|
268
|
+
if (!this.currentSession) return;
|
|
269
|
+
|
|
270
|
+
const step = this.currentSession.flowConfig.steps.find(
|
|
271
|
+
(s) => s.id === stepId,
|
|
272
|
+
);
|
|
273
|
+
if (!step) return;
|
|
274
|
+
|
|
275
|
+
await this.analytics.track(OnboardingAnalyticsEvents.STEP_RETRIED, {
|
|
276
|
+
session_id: this.currentSession.sessionId,
|
|
277
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
278
|
+
step_id: stepId,
|
|
279
|
+
step_name: step.name,
|
|
280
|
+
step_index: step.index,
|
|
281
|
+
attempt_number: attempt,
|
|
282
|
+
...additionalProperties,
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Track when user accesses help during onboarding
|
|
288
|
+
*/
|
|
289
|
+
async trackStepHelpAccessed(
|
|
290
|
+
stepId: string,
|
|
291
|
+
helpType?: string,
|
|
292
|
+
additionalProperties?: Record<string, any>,
|
|
293
|
+
): Promise<void> {
|
|
294
|
+
if (!this.currentSession) return;
|
|
295
|
+
|
|
296
|
+
const step = this.currentSession.flowConfig.steps.find(
|
|
297
|
+
(s) => s.id === stepId,
|
|
298
|
+
);
|
|
299
|
+
if (!step) return;
|
|
300
|
+
|
|
301
|
+
await this.analytics.track(OnboardingAnalyticsEvents.STEP_HELP_ACCESSED, {
|
|
302
|
+
session_id: this.currentSession.sessionId,
|
|
303
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
304
|
+
step_id: stepId,
|
|
305
|
+
step_name: step.name,
|
|
306
|
+
step_index: step.index,
|
|
307
|
+
help_type: helpType || 'general',
|
|
308
|
+
...additionalProperties,
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Track navigation events (back/forward)
|
|
314
|
+
*/
|
|
315
|
+
async trackNavigation(
|
|
316
|
+
direction: 'back' | 'forward',
|
|
317
|
+
fromStepId: string,
|
|
318
|
+
toStepId: string,
|
|
319
|
+
): Promise<void> {
|
|
320
|
+
if (!this.currentSession) return;
|
|
321
|
+
|
|
322
|
+
const event =
|
|
323
|
+
direction === 'back'
|
|
324
|
+
? OnboardingAnalyticsEvents.NAVIGATION_BACK
|
|
325
|
+
: OnboardingAnalyticsEvents.NAVIGATION_FORWARD;
|
|
326
|
+
|
|
327
|
+
await this.analytics.track(event, {
|
|
328
|
+
session_id: this.currentSession.sessionId,
|
|
329
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
330
|
+
from_step_id: fromStepId,
|
|
331
|
+
to_step_id: toStepId,
|
|
332
|
+
direction,
|
|
333
|
+
session_duration_ms: Date.now() - this.currentSession.startTime,
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Track successful flow completion
|
|
339
|
+
*/
|
|
340
|
+
async trackFlowCompleted(): Promise<void> {
|
|
341
|
+
if (!this.currentSession) return;
|
|
342
|
+
|
|
343
|
+
const totalDuration = Date.now() - this.currentSession.startTime;
|
|
344
|
+
const totalSteps = this.currentSession.flowConfig.steps.length;
|
|
345
|
+
const completedSteps = this.currentSession.completedSteps.length;
|
|
346
|
+
const skippedSteps = this.currentSession.skippedSteps.length;
|
|
347
|
+
|
|
348
|
+
await this.analytics.track(OnboardingAnalyticsEvents.FLOW_COMPLETED, {
|
|
349
|
+
session_id: this.currentSession.sessionId,
|
|
350
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
351
|
+
flow_name: this.currentSession.flowConfig.flowName,
|
|
352
|
+
flow_version: this.currentSession.flowConfig.version || '1.0',
|
|
353
|
+
flow_variant: this.currentSession.flowConfig.variant,
|
|
354
|
+
total_duration_ms: totalDuration,
|
|
355
|
+
total_steps: totalSteps,
|
|
356
|
+
completed_steps: completedSteps,
|
|
357
|
+
skipped_steps: skippedSteps,
|
|
358
|
+
completion_rate: completedSteps / totalSteps,
|
|
359
|
+
skip_rate: skippedSteps / totalSteps,
|
|
360
|
+
user_type: this.currentSession.userType,
|
|
361
|
+
completed_step_ids: this.currentSession.completedSteps.join(','),
|
|
362
|
+
skipped_step_ids: this.currentSession.skippedSteps.join(','),
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
// Clear session
|
|
366
|
+
this.currentSession = null;
|
|
367
|
+
this.stepStartTimes.clear();
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Track flow abandonment
|
|
372
|
+
*/
|
|
373
|
+
async trackFlowAbandoned(reason?: string): Promise<void> {
|
|
374
|
+
if (!this.currentSession) return;
|
|
375
|
+
|
|
376
|
+
const totalDuration = Date.now() - this.currentSession.startTime;
|
|
377
|
+
const currentStep =
|
|
378
|
+
this.currentSession.flowConfig.steps[
|
|
379
|
+
this.currentSession.currentStepIndex
|
|
380
|
+
];
|
|
381
|
+
|
|
382
|
+
await this.analytics.track(OnboardingAnalyticsEvents.FLOW_ABANDONED, {
|
|
383
|
+
session_id: this.currentSession.sessionId,
|
|
384
|
+
flow_id: this.currentSession.flowConfig.flowId,
|
|
385
|
+
flow_name: this.currentSession.flowConfig.flowName,
|
|
386
|
+
abandon_reason: reason || 'unknown',
|
|
387
|
+
last_step_id: currentStep?.id,
|
|
388
|
+
last_step_index: this.currentSession.currentStepIndex,
|
|
389
|
+
session_duration_ms: totalDuration,
|
|
390
|
+
completed_steps: this.currentSession.completedSteps.length,
|
|
391
|
+
completion_rate_at_abandon:
|
|
392
|
+
this.currentSession.completedSteps.length /
|
|
393
|
+
this.currentSession.flowConfig.steps.length,
|
|
394
|
+
completed_step_ids: this.currentSession.completedSteps.join(','),
|
|
395
|
+
skipped_step_ids: this.currentSession.skippedSteps.join(','),
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
// Clear session
|
|
399
|
+
this.currentSession = null;
|
|
400
|
+
this.stepStartTimes.clear();
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Get current session information
|
|
405
|
+
*/
|
|
406
|
+
getCurrentSession(): OnboardingSession | null {
|
|
407
|
+
return this.currentSession;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Get flow progress analytics
|
|
412
|
+
*/
|
|
413
|
+
getFlowProgress(): {
|
|
414
|
+
totalSteps: number;
|
|
415
|
+
currentStep: number;
|
|
416
|
+
completedSteps: number;
|
|
417
|
+
skippedSteps: number;
|
|
418
|
+
completionRate: number;
|
|
419
|
+
} | null {
|
|
420
|
+
if (!this.currentSession) return null;
|
|
421
|
+
|
|
422
|
+
return {
|
|
423
|
+
totalSteps: this.currentSession.flowConfig.steps.length,
|
|
424
|
+
currentStep: this.currentSession.currentStepIndex,
|
|
425
|
+
completedSteps: this.currentSession.completedSteps.length,
|
|
426
|
+
skippedSteps: this.currentSession.skippedSteps.length,
|
|
427
|
+
completionRate:
|
|
428
|
+
this.currentSession.completedSteps.length /
|
|
429
|
+
this.currentSession.flowConfig.steps.length,
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "onboarding",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Premium onboarding flows (demo-one, expense-tracker)",
|
|
5
|
+
"copy": [
|
|
6
|
+
{
|
|
7
|
+
"from": "apps/native/src/features/onboarding",
|
|
8
|
+
"to": "apps/native/src/features/onboarding"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"target": "native",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"expo": ["react-native-reanimated", "react-native-gesture-handler"]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payments",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "RevenueCat payments",
|
|
5
5
|
"copy": [
|
|
6
6
|
{
|
|
7
|
-
"from": "apps/native/src/app/
|
|
7
|
+
"from": "apps/native/src/app/paywall",
|
|
8
8
|
"to": "apps/native/src/app/(root)/(protected)/paywall"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
@@ -15,87 +15,54 @@
|
|
|
15
15
|
"from": "apps/native/src/api-client/payments.ts",
|
|
16
16
|
"to": "apps/native/src/api-client/payments.ts"
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
"from": "packages/backend/convex/payments",
|
|
20
|
-
"to": "packages/backend/convex/payments"
|
|
21
|
-
},
|
|
22
18
|
{
|
|
23
19
|
"from": "packages/backend/convex/payments.ts",
|
|
24
20
|
"to": "packages/backend/convex/payments.ts"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"from": "packages/backend/convex/payments",
|
|
24
|
+
"to": "packages/backend/convex/payments"
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
|
+
"configuration": {
|
|
28
|
+
"apiClient": {
|
|
29
|
+
"exports": ["export { type PaymentsApi, paymentsApi } from './payments';"]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
27
32
|
"nav": {
|
|
28
33
|
"href": "/(root)/(protected)/paywall",
|
|
29
|
-
"label": "
|
|
34
|
+
"label": "Payments",
|
|
30
35
|
"icon": "💳",
|
|
31
|
-
"color": "#
|
|
36
|
+
"color": "#EC4899"
|
|
32
37
|
},
|
|
33
38
|
"target": "native",
|
|
34
39
|
"dependencies": {
|
|
35
|
-
"expo": [
|
|
36
|
-
"react-native-purchases",
|
|
37
|
-
"react-native-purchases-ui"
|
|
38
|
-
]
|
|
40
|
+
"expo": ["react-native-purchases", "react-native-purchases-ui"]
|
|
39
41
|
},
|
|
40
42
|
"env": [
|
|
41
43
|
{
|
|
42
44
|
"key": "REVENUECAT_API_KEY_APPLE",
|
|
43
|
-
"description": "RevenueCat
|
|
44
|
-
"example": "
|
|
45
|
-
"link": "https://app.revenuecat.com
|
|
46
|
-
"
|
|
45
|
+
"description": "RevenueCat API key for iOS",
|
|
46
|
+
"example": "appl_...",
|
|
47
|
+
"link": "https://app.revenuecat.com",
|
|
48
|
+
"required": true
|
|
47
49
|
},
|
|
48
50
|
{
|
|
49
51
|
"key": "REVENUECAT_API_KEY_GOOGLE",
|
|
50
|
-
"description": "RevenueCat
|
|
51
|
-
"example": "
|
|
52
|
-
"link": "https://app.revenuecat.com
|
|
53
|
-
"
|
|
52
|
+
"description": "RevenueCat API key for Android",
|
|
53
|
+
"example": "goog_...",
|
|
54
|
+
"link": "https://app.revenuecat.com",
|
|
55
|
+
"required": true
|
|
54
56
|
}
|
|
55
57
|
],
|
|
56
|
-
"configuration": {
|
|
57
|
-
"env": {
|
|
58
|
-
"client": {
|
|
59
|
-
"schema": [
|
|
60
|
-
" REVENUECAT_API_KEY_APPLE: z.string(),",
|
|
61
|
-
" REVENUECAT_API_KEY_GOOGLE: z.string(),"
|
|
62
|
-
],
|
|
63
|
-
"env": [
|
|
64
|
-
" REVENUECAT_API_KEY_APPLE: process.env.REVENUECAT_API_KEY_APPLE,",
|
|
65
|
-
" REVENUECAT_API_KEY_GOOGLE: process.env.REVENUECAT_API_KEY_GOOGLE,"
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
58
|
"manualSteps": [
|
|
71
59
|
{
|
|
72
|
-
"title": "
|
|
73
|
-
"description": "
|
|
74
|
-
"link": "https://app.revenuecat.com/signup"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"title": "Configure App Stores",
|
|
78
|
-
"description": "Link your iOS (App Store Connect) and Android (Google Play) apps to RevenueCat",
|
|
79
|
-
"link": "https://www.revenuecat.com/docs/getting-started"
|
|
60
|
+
"title": "Configure RevenueCat",
|
|
61
|
+
"description": "1. Create a project at https://app.revenuecat.com\\n2. Add your app (iOS/Android)\\n3. Configure products/offerings\\n4. Copy API keys to .env.local"
|
|
80
62
|
},
|
|
81
63
|
{
|
|
82
|
-
"title": "
|
|
83
|
-
"description": "
|
|
84
|
-
"link": "https://app.revenuecat.com/settings/api-keys"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"title": "Update API Keys",
|
|
88
|
-
"description": "Replace the API keys in the RevenueCat adapter",
|
|
89
|
-
"file": "apps/native/src/features/payments/services/revenuecat-adapter.ts",
|
|
90
|
-
"content": "const REVENUECAT_API_KEY_IOS = 'your_ios_key_here';\nconst REVENUECAT_API_KEY_ANDROID = 'your_android_key_here';"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"title": "Create Products & Entitlements",
|
|
94
|
-
"description": "Set up your subscription products and entitlements in RevenueCat dashboard",
|
|
95
|
-
"link": "https://www.revenuecat.com/docs/entitlements"
|
|
64
|
+
"title": "Setup App Store / Play Store",
|
|
65
|
+
"description": "1. Create in-app products in App Store Connect / Google Play Console\\n2. Link to RevenueCat\\n3. Configure entitlements"
|
|
96
66
|
}
|
|
97
|
-
]
|
|
98
|
-
"postInstall": {
|
|
99
|
-
"message": "💳 Payments feature installed! Configure RevenueCat API keys to enable subscriptions."
|
|
100
|
-
}
|
|
67
|
+
]
|
|
101
68
|
}
|