vibefast-cli 1.2.1 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +30 -95
  2. package/dist/__tests__/recipes.test.js +94 -91
  3. package/dist/__tests__/recipes.test.js.map +1 -1
  4. package/dist/commands/add.d.ts.map +1 -1
  5. package/dist/commands/add.js +301 -125
  6. package/dist/commands/add.js.map +1 -1
  7. package/dist/commands/checklist.d.ts.map +1 -1
  8. package/dist/commands/checklist.js +85 -44
  9. package/dist/commands/checklist.js.map +1 -1
  10. package/dist/commands/health.d.ts.map +1 -1
  11. package/dist/commands/health.js +13 -4
  12. package/dist/commands/health.js.map +1 -1
  13. package/dist/commands/init.d.ts.map +1 -1
  14. package/dist/commands/init.js +118 -26
  15. package/dist/commands/init.js.map +1 -1
  16. package/dist/commands/migrate.d.ts +3 -0
  17. package/dist/commands/migrate.d.ts.map +1 -0
  18. package/dist/commands/migrate.js +202 -0
  19. package/dist/commands/migrate.js.map +1 -0
  20. package/dist/commands/remove.d.ts.map +1 -1
  21. package/dist/commands/remove.js +61 -3
  22. package/dist/commands/remove.js.map +1 -1
  23. package/dist/core/auth.d.ts.map +1 -1
  24. package/dist/core/auth.js +20 -18
  25. package/dist/core/auth.js.map +1 -1
  26. package/dist/core/codemod.d.ts +33 -0
  27. package/dist/core/codemod.d.ts.map +1 -1
  28. package/dist/core/codemod.js +116 -0
  29. package/dist/core/codemod.js.map +1 -1
  30. package/dist/core/detect.d.ts.map +1 -1
  31. package/dist/core/detect.js +24 -7
  32. package/dist/core/detect.js.map +1 -1
  33. package/dist/core/journal.d.ts +1 -0
  34. package/dist/core/journal.d.ts.map +1 -1
  35. package/dist/core/journal.js.map +1 -1
  36. package/dist/core/recipes.d.ts.map +1 -1
  37. package/dist/core/recipes.js +25 -7
  38. package/dist/core/recipes.js.map +1 -1
  39. package/dist/index.js +2 -2
  40. package/dist/index.js.map +1 -1
  41. package/docs/architecture.md +50 -0
  42. package/docs/commands.md +78 -0
  43. package/docs/contributing.md +27 -0
  44. package/docs/quickstart.md +50 -0
  45. package/docs/recipes.md +57 -0
  46. package/docs/troubleshooting.md +31 -0
  47. package/package.json +2 -2
  48. package/recipes/0/apps/native/src/components/advanced-ui/timeline/demo.tsx +445 -0
  49. package/recipes/0/apps/native/src/components/advanced-ui/timeline/timeline-view.tsx +355 -0
  50. package/recipes/0/apps/native/src/components/advanced-ui/timeline/types.ts +31 -0
  51. package/recipes/0/recipe.json +18 -0
  52. package/recipes/animated-chip/apps/native/src/components/advanced-ui/chip/demo.tsx +2 -1
  53. package/recipes/animated-chip/recipe.json +5 -2
  54. package/recipes/animated-chip-native@latest.zip +0 -0
  55. package/recipes/animated-chip@latest.zip +0 -0
  56. package/recipes/animated-switch/apps/native/src/components/advanced-ui/switch/demo.tsx +1 -1
  57. package/recipes/animated-switch/recipe.json +5 -2
  58. package/recipes/animated-switch-native@latest.zip +0 -0
  59. package/recipes/animated-switch@latest.zip +0 -0
  60. package/recipes/audio-recorder/apps/native/src/features/audio-recorder/components/audio-recorder.tsx +2 -1
  61. package/recipes/audio-recorder/apps/native/src/features/audio-recorder/demo/with-recording-list-demo.tsx +2 -2
  62. package/recipes/audio-recorder/recipe.json +7 -2
  63. package/recipes/audio-recorder-native@latest.zip +0 -0
  64. package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/components/audio-recorder.tsx +2 -1
  65. package/recipes/audio-recorder-supabase/apps/native/src/features/audio-recorder/demo/with-recording-list-demo.tsx +2 -1
  66. package/recipes/audio-recorder-supabase/recipe.json +12 -16
  67. package/recipes/audio-recorder-supabase-native@latest.zip +0 -0
  68. package/recipes/audio-recorder-supabase@latest.zip +0 -0
  69. package/recipes/audio-recorder@latest.zip +0 -0
  70. package/recipes/charts/apps/native/src/app/charts/index.tsx +3 -0
  71. package/recipes/charts/apps/native/src/features/charts/components/bar-chart.tsx +3 -1
  72. package/recipes/charts/apps/native/src/features/charts/components/candlestick-chart.tsx +3 -1
  73. package/recipes/charts/apps/native/src/features/charts/components/column-chart.tsx +3 -1
  74. package/recipes/charts/apps/native/src/features/charts/components/doughnut-chart.tsx +3 -1
  75. package/recipes/charts/apps/native/src/features/charts/components/line-chart.tsx +3 -1
  76. package/recipes/charts/apps/native/src/features/charts/components/radar-chart.tsx +3 -1
  77. package/recipes/charts/apps/native/src/features/charts/components/stacked-bar-chart.tsx +3 -1
  78. package/recipes/charts/recipe.json +13 -4
  79. package/recipes/charts-native@latest.zip +0 -0
  80. package/recipes/charts@latest.zip +0 -0
  81. package/recipes/chatbot/apps/native/src/features/chatbot/components/chat-markdown.tsx +86 -86
  82. package/recipes/chatbot/apps/native/src/features/chatbot/components/markdown/code-block.tsx +4 -4
  83. package/recipes/chatbot/recipe.json +3 -40
  84. package/recipes/chatbot-native@latest.zip +0 -0
  85. package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/chat-markdown.tsx +4 -1
  86. package/recipes/chatbot-supabase/apps/native/src/features/chatbot/components/markdown/code-block.tsx +86 -53
  87. package/recipes/chatbot-supabase/recipe.json +3 -42
  88. package/recipes/chatbot-supabase-native@latest.zip +0 -0
  89. package/recipes/chatbot-supabase@latest.zip +0 -0
  90. package/recipes/chatbot@latest.zip +0 -0
  91. package/recipes/glowing-button/recipe.json +6 -2
  92. package/recipes/glowing-button-native@latest.zip +0 -0
  93. package/recipes/glowing-button@latest.zip +0 -0
  94. package/recipes/image-analysis/apps/native/src/app/analysis/[type]/_layout.tsx +5 -0
  95. package/recipes/image-analysis/apps/native/src/app/analysis/[type]/analysis-options.tsx +50 -0
  96. package/recipes/image-analysis/apps/native/src/app/analysis/[type]/camera.tsx +2 -0
  97. package/recipes/image-analysis/apps/native/src/app/analysis/[type]/index.tsx +50 -0
  98. package/recipes/image-analysis/apps/native/src/app/analysis/[type]/loading.tsx +50 -0
  99. package/recipes/image-analysis/apps/native/src/app/analysis/[type]/results.tsx +2 -0
  100. package/recipes/image-analysis/apps/native/src/app/analysis/[type]/trait-details.tsx +3 -0
  101. package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/analysis-options-screen.tsx +2 -2
  102. package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/camera.tsx +72 -65
  103. package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/image-capture-screen.tsx +65 -47
  104. package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/loading-screen.tsx +43 -2
  105. package/recipes/image-analysis/apps/native/src/features/image-analyzer/app/loading.tsx +34 -1
  106. package/recipes/image-analysis/apps/native/src/features/image-analyzer/hooks/use-image-analysis.ts +83 -2
  107. package/recipes/image-analysis/recipe.json +11 -19
  108. package/recipes/image-analysis-native@latest.zip +0 -0
  109. package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/_layout.tsx +5 -0
  110. package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/analysis-options.tsx +50 -0
  111. package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/camera.tsx +2 -0
  112. package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/index.tsx +50 -0
  113. package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/loading.tsx +50 -0
  114. package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/results.tsx +2 -0
  115. package/recipes/image-analysis-supabase/apps/native/src/app/analysis/[type]/trait-details.tsx +3 -0
  116. package/recipes/image-analysis-supabase/recipe.json +10 -37
  117. package/recipes/image-analysis-supabase-native@latest.zip +0 -0
  118. package/recipes/image-analysis-supabase@latest.zip +0 -0
  119. package/recipes/image-analysis@latest.zip +0 -0
  120. package/recipes/image-analyzer/apps/native/src/app/(root)/(protected)/image-analyzer/index.tsx +2 -0
  121. package/recipes/image-generator/apps/native/src/app/image-generator/gallery.tsx +3 -0
  122. package/recipes/image-generator/apps/native/src/app/image-generator/index.tsx +3 -0
  123. package/recipes/image-generator/recipe.json +8 -18
  124. package/recipes/image-generator-native@latest.zip +0 -0
  125. package/recipes/image-generator-supabase/recipe.json +6 -35
  126. package/recipes/image-generator-supabase-native@latest.zip +0 -0
  127. package/recipes/image-generator-supabase@latest.zip +0 -0
  128. package/recipes/image-generator@latest.zip +0 -0
  129. package/recipes/ios-widget/recipe.json +18 -119
  130. package/recipes/ios-widget-native@latest.zip +0 -0
  131. package/recipes/ios-widget@latest.zip +0 -0
  132. package/recipes/number-stepper/apps/native/src/components/advanced-ui/stepper/demo.tsx +1 -1
  133. package/recipes/number-stepper/recipe.json +5 -2
  134. package/recipes/number-stepper-native@latest.zip +0 -0
  135. package/recipes/number-stepper@latest.zip +0 -0
  136. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/interactive-onboarding.tsx +11 -18
  137. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/ai-tone-step.tsx +5 -7
  138. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/currency-step.tsx +9 -7
  139. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-ai-step.tsx +8 -7
  140. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-chatbot-step.tsx +6 -5
  141. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-manual-step.tsx +4 -3
  142. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/feature-scan-step.tsx +6 -5
  143. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/main-reason-step.tsx +5 -7
  144. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/notification-step.tsx +7 -6
  145. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/overspend-step.tsx +5 -7
  146. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/personalizing-step.tsx +8 -7
  147. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/rating-step.tsx +6 -5
  148. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/reminder-step.tsx +5 -6
  149. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/safety-step.tsx +5 -4
  150. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/struggle-step.tsx +5 -7
  151. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/steps/welcome-step.tsx +7 -6
  152. package/recipes/onboarding/apps/native/src/features/onboarding/expense-tracker/components/ui/onboarding-header.tsx +4 -3
  153. package/recipes/onboarding/recipe.json +9 -6
  154. package/recipes/onboarding-native@latest.zip +0 -0
  155. package/recipes/onboarding@latest.zip +0 -0
  156. package/recipes/payments/apps/native/src/app/paywall/index.tsx +74 -0
  157. package/recipes/payments/apps/native/src/app/paywall/local.tsx +25 -0
  158. package/recipes/payments/apps/native/src/app/paywall/remote.tsx +23 -0
  159. package/recipes/payments/packages/backend/convex/payments.ts +21 -3
  160. package/recipes/payments/recipe.json +14 -34
  161. package/recipes/payments-native@latest.zip +0 -0
  162. package/recipes/payments-supabase/apps/native/src/app/paywall/index.tsx +74 -0
  163. package/recipes/payments-supabase/apps/native/src/app/paywall/local.tsx +25 -0
  164. package/recipes/payments-supabase/apps/native/src/app/paywall/remote.tsx +23 -0
  165. package/recipes/payments-supabase/recipe.json +16 -23
  166. package/recipes/payments-supabase-native@latest.zip +0 -0
  167. package/recipes/payments-supabase@latest.zip +0 -0
  168. package/recipes/payments@latest.zip +0 -0
  169. package/recipes/posthog/apps/native/src/components/analytics/navigation-tracker.tsx +14 -0
  170. package/recipes/posthog/apps/native/src/lib/hooks/use-navigation-analytics.ts +44 -0
  171. package/recipes/posthog/apps/native/src/providers/posthog-provider.tsx +51 -0
  172. package/recipes/posthog/recipe.json +60 -0
  173. package/recipes/posthog-native@latest.zip +0 -0
  174. package/recipes/progress-circle/apps/native/src/components/advanced-ui/progress-bars/progress-circle-page.tsx +1 -1
  175. package/recipes/progress-circle/recipe.json +5 -2
  176. package/recipes/progress-circle-native@latest.zip +0 -0
  177. package/recipes/progress-circle@latest.zip +0 -0
  178. package/recipes/quiz/apps/native/src/app/quiz/index.tsx +47 -0
  179. package/recipes/quiz/recipe.json +9 -6
  180. package/recipes/quiz-native@latest.zip +0 -0
  181. package/recipes/quiz@latest.zip +0 -0
  182. package/recipes/screen-kits/apps/native/src/app/screen-kits/_layout.tsx +12 -0
  183. package/recipes/screen-kits/apps/native/src/app/screen-kits/index.tsx +114 -0
  184. package/recipes/screen-kits/apps/native/src/features/screen-kits/index.ts +1 -0
  185. package/recipes/screen-kits/apps/native/src/features/screen-kits/types.ts +28 -0
  186. package/recipes/screen-kits/recipe.json +26 -0
  187. package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/_layout.tsx +12 -0
  188. package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/home.tsx +5 -0
  189. package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/index.tsx +5 -0
  190. package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/lesson-complete.tsx +5 -0
  191. package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/lesson-fail.tsx +5 -0
  192. package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/lesson.tsx +5 -0
  193. package/recipes/screen-kits-duolingo/apps/native/src/app/screen-kits/duolingo/skill-tree.tsx +5 -0
  194. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/components/duo-button.tsx +174 -0
  195. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/components/skill-button.tsx +186 -0
  196. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/components/xp-header.tsx +115 -0
  197. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/constants.ts +89 -0
  198. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/index.ts +3 -0
  199. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/home-screen.tsx +225 -0
  200. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/lesson-complete-screen.tsx +485 -0
  201. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/lesson-fail-screen.tsx +105 -0
  202. package/recipes/screen-kits-duolingo/apps/native/src/features/screen-kits/duolingo/screens/lesson-screen.tsx +384 -0
  203. package/recipes/screen-kits-duolingo/recipe.json +58 -0
  204. package/recipes/screen-kits-duolingo-native@latest.zip +0 -0
  205. package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/_layout.tsx +45 -0
  206. package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/asset-detail.tsx +3 -0
  207. package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/notifications.tsx +3 -0
  208. package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/receive.tsx +3 -0
  209. package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/send.tsx +3 -0
  210. package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/swap.tsx +3 -0
  211. package/recipes/screen-kits-finance/apps/native/src/app/screen-kits/finance/wallet.tsx +3 -0
  212. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/components/ActionButtons.tsx +78 -0
  213. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/components/AssetRow.tsx +94 -0
  214. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/components/BalanceCard.tsx +118 -0
  215. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/constants.ts +85 -0
  216. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/asset-detail.tsx +378 -0
  217. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/notifications.tsx +210 -0
  218. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/receive-modal.tsx +317 -0
  219. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/send-modal.tsx +420 -0
  220. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/swap-modal.tsx +363 -0
  221. package/recipes/screen-kits-finance/apps/native/src/features/screen-kits/finance/screens/wallet-dashboard.tsx +281 -0
  222. package/recipes/screen-kits-finance/recipe.json +46 -0
  223. package/recipes/screen-kits-finance-native@latest.zip +0 -0
  224. package/recipes/screen-kits-fitness/apps/native/assets/sounds/timer-beep.wav +0 -0
  225. package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/_layout.tsx +10 -0
  226. package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/index.tsx +6 -0
  227. package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/timer.tsx +3 -0
  228. package/recipes/screen-kits-fitness/apps/native/src/app/screen-kits/fitness/workout.tsx +3 -0
  229. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/components/timer-components.tsx +500 -0
  230. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/components/timer-settings-modal.tsx +352 -0
  231. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/components/workout-card.tsx +105 -0
  232. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/constants.ts +189 -0
  233. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/hooks/use-timer.ts +307 -0
  234. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/index.ts +1 -0
  235. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/screens/timer-screen.tsx +278 -0
  236. package/recipes/screen-kits-fitness/apps/native/src/features/screen-kits/fitness/screens/workout-dashboard.tsx +350 -0
  237. package/recipes/screen-kits-fitness/recipe.json +63 -0
  238. package/recipes/screen-kits-fitness-native@latest.zip +0 -0
  239. package/recipes/screen-kits-habits/apps/native/src/app/screen-kits/productivity/habits.tsx +1 -0
  240. package/recipes/screen-kits-habits/apps/native/src/app/screen-kits/productivity/kanban.tsx +1 -0
  241. package/recipes/screen-kits-habits/apps/native/src/app/screen-kits/productivity/routes.ts +4 -0
  242. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/AddTaskModal.tsx +246 -0
  243. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/DraggableTaskCard.tsx +92 -0
  244. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/KanbanColumn.tsx +238 -0
  245. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/TaskCard.tsx +144 -0
  246. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/components/add-habit-modal.tsx +271 -0
  247. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/constants.ts +295 -0
  248. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/kanban-utils.ts +62 -0
  249. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/screens/habit-tracker.tsx +1160 -0
  250. package/recipes/screen-kits-habits/apps/native/src/features/screen-kits/productivity/screens/kanban-board.tsx +432 -0
  251. package/recipes/screen-kits-habits/recipe.json +52 -0
  252. package/recipes/screen-kits-habits-native@latest.zip +0 -0
  253. package/recipes/screen-kits-native@latest.zip +0 -0
  254. package/recipes/sentry/apps/native/src/providers/sentry-provider.tsx +64 -0
  255. package/recipes/sentry/recipe.json +39 -0
  256. package/recipes/sentry-native@latest.zip +0 -0
  257. package/recipes/swipe-slider/apps/native/src/components/advanced-ui/sliders/swipe-slider-page.tsx +1 -1
  258. package/recipes/swipe-slider/recipe.json +5 -2
  259. package/recipes/swipe-slider-native@latest.zip +0 -0
  260. package/recipes/swipe-slider@latest.zip +0 -0
  261. package/recipes/timeline/apps/native/src/components/advanced-ui/timeline/demo.tsx +2 -1
  262. package/recipes/timeline/recipe.json +5 -2
  263. package/recipes/timeline-native@latest.zip +0 -0
  264. package/recipes/timeline@latest.zip +0 -0
  265. package/recipes/tracker-app/apps/native/src/app/tracker-app/index.tsx +1 -0
  266. package/recipes/tracker-app/recipe.json +10 -7
  267. package/recipes/tracker-app-native@latest.zip +0 -0
  268. package/recipes/tracker-app@latest.zip +0 -0
  269. package/recipes/upload-all.sh +8 -31
  270. package/recipes/voice-bot/apps/native/src/app/voice-bot/index.tsx +56 -0
  271. package/recipes/voice-bot/recipe.json +31 -7
  272. package/recipes/voice-bot-native@latest.zip +0 -0
  273. package/recipes/voice-bot@latest.zip +0 -0
  274. package/recipes/wake-word/apps/native/src/app/{(root)/(protected)/test-wake-word.tsx → test-wake-word.tsx} +43 -4
  275. package/recipes/wake-word/recipe.json +16 -26
  276. package/recipes/wake-word-native@latest.zip +0 -0
  277. package/recipes/wake-word@latest.zip +0 -0
  278. package/scripts/create-advanced-ui-recipes.sh +46 -19
  279. package/scripts/create-recipes.mjs +471 -117
  280. package/scripts/package-recipes.mjs +76 -0
  281. package/scripts/publish-all.sh +6 -2
  282. package/CHANGELOG.md +0 -198
  283. package/docs/archive/AUTO-DETECT-DEPS.md +0 -607
  284. package/docs/archive/FINAL-PACKAGE-STRATEGY.md +0 -583
  285. package/docs/archive/FINAL-SIMPLE-PLAN.md +0 -487
  286. package/docs/archive/FINAL-STATUS.md +0 -144
  287. package/docs/archive/FLOW-DIAGRAM.md +0 -1629
  288. package/docs/archive/GOTCHAS-AND-RISKS.md +0 -801
  289. package/docs/archive/IMPLEMENTATION-PLAN.md +0 -1360
  290. package/docs/archive/PLAN.md +0 -453
  291. package/docs/archive/PRODUCTION-READINESS.md +0 -684
  292. package/docs/archive/PRODUCTION-TEST-RESULTS.md +0 -465
  293. package/docs/archive/SIMPLIFIED-PLAN.md +0 -578
  294. package/docs/archive/STATUS.md +0 -199
  295. package/docs/archive/SUCCESS.md +0 -259
  296. package/docs/archive/TEST-SUMMARY.md +0 -261
  297. package/docs/archive/TESTING-CHECKLIST.md +0 -450
  298. package/docs/archive/USER-MODIFICATIONS.md +0 -448
  299. package/docs/decisions.md +0 -55
  300. package/docs/manual-testing.md +0 -91
  301. package/docs/next-steps.md +0 -12
  302. package/recipes/README.md +0 -156
  303. package/recipes/audio-recorder-supabase/packages/backend/src/services/recordings.ts +0 -369
  304. package/recipes/chatbot/apps/native/src/api-client/chatbot.ts +0 -83
  305. package/recipes/chatbot/packages/backend/convex/agents.ts +0 -115
  306. package/recipes/chatbot/packages/backend/convex/tools/index.ts +0 -18
  307. package/recipes/chatbot/packages/backend/convex/tools/knowledgeRetrieval.ts +0 -97
  308. package/recipes/chatbot/packages/backend/convex/tools/tavilySearch.ts +0 -83
  309. package/recipes/chatbot/packages/backend/convex/tools/userProfile.ts +0 -72
  310. package/recipes/chatbot-supabase/apps/native/src/api-client/supabase/chatbot.ts +0 -515
  311. package/recipes/chatbot-supabase/packages/backend/src/services/conversations.ts +0 -243
  312. package/recipes/chatbot-supabase/packages/backend/src/services/messages.ts +0 -327
  313. package/recipes/image-analysis/apps/native/src/api-client/image-analyzer.ts +0 -62
  314. package/recipes/image-analysis-supabase/packages/backend/src/services/image-analyses.ts +0 -132
  315. package/recipes/image-generator/apps/native/src/api-client/image-generator.ts +0 -34
  316. package/recipes/payments/apps/native/src/api-client/payments.ts +0 -44
  317. package/recipes/payments-supabase/packages/backend/src/services/payments.ts +0 -201
  318. package/recipes/posthog.json +0 -47
  319. package/recipes/revenuecat.json +0 -43
  320. package/recipes/sentry.json +0 -47
  321. package/recipes/wake-word/apps/native/assets/vosk-model/README.md +0 -103
  322. package/recipes/wake-word/apps/native/scripts/download-vosk-model.mjs +0 -127
  323. /package/recipes/{audio-recorder/apps/native/src/app/(root)/(protected) → audio-recorder-supabase/apps/native/src/app}/audio-recorder/index.tsx +0 -0
  324. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/AppIntent.swift +0 -0
  325. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png +0 -0
  326. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png +0 -0
  327. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png +0 -0
  328. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png +0 -0
  329. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png +0 -0
  330. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png +0 -0
  331. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png +0 -0
  332. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png +0 -0
  333. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png +0 -0
  334. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png +0 -0
  335. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png +0 -0
  336. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png +0 -0
  337. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png +0 -0
  338. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png +0 -0
  339. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
  340. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Assets.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png +0 -0
  341. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/CalorieTrackerWidget.swift +0 -0
  342. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/HabitTrackerWidget.swift +0 -0
  343. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/Info.plist +0 -0
  344. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/WidgetLiveActivity.swift +0 -0
  345. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/expo-target.config.js +0 -0
  346. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/generated.entitlements +0 -0
  347. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/index.swift +0 -0
  348. /package/recipes/ios-widget/{targets → apps/native/targets}/widget/widgets.swift +0 -0
@@ -0,0 +1,307 @@
1
+ import { setAudioModeAsync, useAudioPlayer } from 'expo-audio';
2
+ import * as Haptics from 'expo-haptics';
3
+ import { useCallback, useEffect, useState } from 'react';
4
+ import {
5
+ Easing,
6
+ useAnimatedProps,
7
+ useAnimatedStyle,
8
+ useSharedValue,
9
+ withRepeat,
10
+ withSequence,
11
+ withSpring,
12
+ withTiming,
13
+ } from 'react-native-reanimated';
14
+
15
+ import {
16
+ FITNESS_COLORS,
17
+ PHASE_COLORS,
18
+ SAMPLE_EXERCISES,
19
+ type TimerPhase,
20
+ } from '../constants';
21
+ import type { TimerSettings } from '../components/timer-settings-modal';
22
+
23
+ export function useTimer(initialSettings: TimerSettings, CIRCLE_SIZE: number) {
24
+ // Timer state
25
+ const [settings, setSettings] = useState<TimerSettings>(initialSettings);
26
+ const [phase, setPhase] = useState<TimerPhase>('idle');
27
+ const [isPlaying, setIsPlaying] = useState(false);
28
+ const [timeLeft, setTimeLeft] = useState(settings.workDuration);
29
+ const [currentRound, setCurrentRound] = useState(1);
30
+ const [currentExerciseIndex, setCurrentExerciseIndex] = useState(0);
31
+ const [showCelebration, setShowCelebration] = useState(false);
32
+
33
+ const soundCue = useAudioPlayer(require('@assets/sounds/timer-beep.wav'), {
34
+ updateInterval: 1000,
35
+ keepAudioSessionActive: true,
36
+ });
37
+
38
+ // Animation values
39
+ const progress = useSharedValue(1);
40
+ const scale = useSharedValue(1);
41
+ const ringColor = useSharedValue(FITNESS_COLORS.primary);
42
+ const countdownScale = useSharedValue(1);
43
+
44
+ const R = (CIRCLE_SIZE - 20) / 2;
45
+ const circumference = 2 * Math.PI * R;
46
+
47
+ // Get total duration for current phase
48
+ const getPhaseDuration = useCallback(
49
+ (p: TimerPhase) => {
50
+ if (p === 'getReady') return 3;
51
+ if (p === 'work') return settings.workDuration;
52
+ if (p === 'rest') return settings.restDuration;
53
+ return settings.workDuration;
54
+ },
55
+ [settings.workDuration, settings.restDuration],
56
+ );
57
+
58
+ useEffect(() => {
59
+ if (!settings.soundEnabled) return;
60
+ setAudioModeAsync({ playsInSilentMode: true }).catch(() => undefined);
61
+ }, [settings.soundEnabled]);
62
+
63
+ useEffect(() => {
64
+ soundCue.volume = 0.6;
65
+ }, [soundCue]);
66
+
67
+ const playSoundCue = useCallback(() => {
68
+ if (!settings.soundEnabled || !soundCue.isLoaded) return;
69
+ void soundCue
70
+ .seekTo(0)
71
+ .then(() => soundCue.play())
72
+ .catch(() => undefined);
73
+ }, [settings.soundEnabled, soundCue]);
74
+
75
+ const triggerHaptic = useCallback(
76
+ (type: 'light' | 'medium' | 'heavy' | 'success' | 'warning') => {
77
+ if (!settings.hapticEnabled) return;
78
+ switch (type) {
79
+ case 'light':
80
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
81
+ break;
82
+ case 'medium':
83
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);
84
+ break;
85
+ case 'heavy':
86
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
87
+ break;
88
+ case 'success':
89
+ Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
90
+ break;
91
+ case 'warning':
92
+ Haptics.notificationAsync(Haptics.NotificationFeedbackType.Warning);
93
+ break;
94
+ }
95
+ },
96
+ [settings.hapticEnabled],
97
+ );
98
+
99
+ const transitionToPhase = useCallback(
100
+ (newPhase: TimerPhase) => {
101
+ setPhase(newPhase);
102
+ const duration = getPhaseDuration(newPhase);
103
+ setTimeLeft(duration);
104
+ progress.value = 1;
105
+ ringColor.value = withTiming(PHASE_COLORS[newPhase], { duration: 300 });
106
+
107
+ if (
108
+ newPhase === 'work' ||
109
+ newPhase === 'rest' ||
110
+ newPhase === 'complete'
111
+ ) {
112
+ playSoundCue();
113
+ }
114
+
115
+ if (newPhase === 'work') triggerHaptic('heavy');
116
+ else if (newPhase === 'rest') triggerHaptic('medium');
117
+ else if (newPhase === 'getReady') triggerHaptic('light');
118
+ else if (newPhase === 'complete') triggerHaptic('success');
119
+ },
120
+ [getPhaseDuration, playSoundCue, progress, ringColor, triggerHaptic],
121
+ );
122
+
123
+ const startWorkout = useCallback(() => {
124
+ setIsPlaying(true);
125
+ transitionToPhase('getReady');
126
+ }, [transitionToPhase]);
127
+
128
+ const toggleTimer = useCallback(() => {
129
+ if (phase === 'idle' || phase === 'complete') {
130
+ startWorkout();
131
+ } else {
132
+ setIsPlaying((prev) => !prev);
133
+ triggerHaptic('light');
134
+ }
135
+ }, [phase, startWorkout, triggerHaptic]);
136
+
137
+ const skipForward = useCallback(() => {
138
+ if (phase === 'getReady') {
139
+ transitionToPhase('work');
140
+ } else if (phase === 'work') {
141
+ if (settings.mode === 'countdown') {
142
+ transitionToPhase('complete');
143
+ setIsPlaying(false);
144
+ setShowCelebration(true);
145
+ } else if (settings.restDuration > 0) {
146
+ transitionToPhase('rest');
147
+ } else {
148
+ if (currentRound < settings.rounds) {
149
+ setCurrentRound((prev) => prev + 1);
150
+ setCurrentExerciseIndex((prev) =>
151
+ Math.min(prev + 1, SAMPLE_EXERCISES.length - 1),
152
+ );
153
+ transitionToPhase('work');
154
+ } else {
155
+ transitionToPhase('complete');
156
+ setIsPlaying(false);
157
+ setShowCelebration(true);
158
+ }
159
+ }
160
+ } else if (phase === 'rest') {
161
+ if (currentRound < settings.rounds) {
162
+ setCurrentRound((prev) => prev + 1);
163
+ setCurrentExerciseIndex((prev) =>
164
+ Math.min(prev + 1, SAMPLE_EXERCISES.length - 1),
165
+ );
166
+ transitionToPhase('work');
167
+ } else {
168
+ transitionToPhase('complete');
169
+ setIsPlaying(false);
170
+ setShowCelebration(true);
171
+ }
172
+ }
173
+ triggerHaptic('light');
174
+ }, [phase, settings, currentRound, transitionToPhase, triggerHaptic]);
175
+
176
+ const skipBackward = useCallback(() => {
177
+ const duration = getPhaseDuration(phase);
178
+ setTimeLeft(duration);
179
+ progress.value = 1;
180
+ triggerHaptic('light');
181
+ }, [phase, getPhaseDuration, progress, triggerHaptic]);
182
+
183
+ const resetWorkout = useCallback(
184
+ (nextSettings?: TimerSettings) => {
185
+ const workDuration = nextSettings?.workDuration ?? settings.workDuration;
186
+ setIsPlaying(false);
187
+ setPhase('idle');
188
+ setCurrentRound(1);
189
+ setCurrentExerciseIndex(0);
190
+ setTimeLeft(workDuration);
191
+ progress.value = 1;
192
+ setShowCelebration(false);
193
+ triggerHaptic('medium');
194
+ },
195
+ [settings.workDuration, progress, triggerHaptic],
196
+ );
197
+
198
+ useEffect(() => {
199
+ let interval: NodeJS.Timeout;
200
+ if (isPlaying && timeLeft > 0 && phase !== 'idle' && phase !== 'complete') {
201
+ interval = setInterval(() => {
202
+ setTimeLeft((prev) => {
203
+ const newTime = prev - 1;
204
+ if (newTime <= 3 && newTime > 0) {
205
+ triggerHaptic('light');
206
+ playSoundCue();
207
+ countdownScale.value = withSequence(
208
+ withSpring(1.15, { damping: 8 }),
209
+ withSpring(1, { damping: 10 }),
210
+ );
211
+ }
212
+ return newTime;
213
+ });
214
+ }, 1000);
215
+ } else if (timeLeft === 0 && isPlaying) {
216
+ skipForward();
217
+ }
218
+ return () => clearInterval(interval);
219
+ }, [
220
+ isPlaying,
221
+ timeLeft,
222
+ phase,
223
+ skipForward,
224
+ triggerHaptic,
225
+ playSoundCue,
226
+ countdownScale,
227
+ ]);
228
+
229
+ useEffect(() => {
230
+ if (phase === 'idle' || phase === 'complete') return;
231
+ const duration = getPhaseDuration(phase);
232
+ progress.value = withTiming(timeLeft / duration, {
233
+ duration: 1000,
234
+ easing: Easing.linear,
235
+ });
236
+ }, [timeLeft, phase, getPhaseDuration, progress]);
237
+
238
+ useEffect(() => {
239
+ if (isPlaying && phase === 'work') {
240
+ scale.value = withRepeat(
241
+ withSequence(
242
+ withTiming(1.02, { duration: 500 }),
243
+ withTiming(1, { duration: 500 }),
244
+ ),
245
+ -1,
246
+ true,
247
+ );
248
+ } else {
249
+ scale.value = withSpring(1);
250
+ }
251
+ }, [isPlaying, phase, scale]);
252
+
253
+ const animatedCircleProps = useAnimatedProps(() => ({
254
+ strokeDashoffset: circumference * (1 - progress.value),
255
+ stroke: ringColor.value,
256
+ }));
257
+
258
+ const animatedContainerStyle = useAnimatedStyle(() => ({
259
+ transform: [{ scale: scale.value }],
260
+ }));
261
+
262
+ const countdownStyle = useAnimatedStyle(() => ({
263
+ transform: [{ scale: countdownScale.value }],
264
+ }));
265
+
266
+ const formatTime = (seconds: number) => {
267
+ const mins = Math.floor(seconds / 60);
268
+ const secs = seconds % 60;
269
+ return `${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
270
+ };
271
+
272
+ const handleSettingsSave = useCallback(
273
+ (newSettings: TimerSettings) => {
274
+ setSettings(newSettings);
275
+ resetWorkout(newSettings);
276
+ },
277
+ [resetWorkout],
278
+ );
279
+
280
+ const handleCelebrationDismiss = useCallback(() => {
281
+ setShowCelebration(false);
282
+ resetWorkout();
283
+ }, [resetWorkout]);
284
+
285
+ return {
286
+ settings,
287
+ setSettings,
288
+ phase,
289
+ isPlaying,
290
+ timeLeft,
291
+ currentRound,
292
+ currentExerciseIndex,
293
+ showCelebration,
294
+ circumference,
295
+ R,
296
+ animatedCircleProps,
297
+ animatedContainerStyle,
298
+ countdownStyle,
299
+ formatTime,
300
+ toggleTimer,
301
+ skipForward,
302
+ skipBackward,
303
+ resetWorkout,
304
+ handleSettingsSave,
305
+ handleCelebrationDismiss,
306
+ };
307
+ }
@@ -0,0 +1 @@
1
+ export { default as FitnessDashboard } from './screens/workout-dashboard';
@@ -0,0 +1,278 @@
1
+ import { Ionicons } from '@expo/vector-icons';
2
+ import { Stack, useRouter } from 'expo-router';
3
+ import React, { useRef } from 'react';
4
+ import { Dimensions, StyleSheet, TouchableOpacity, View } from 'react-native';
5
+ import Animated, {
6
+ FadeIn,
7
+ FadeInDown,
8
+ FadeInUp,
9
+ } from 'react-native-reanimated';
10
+
11
+ import { Text } from '@/components/ui';
12
+
13
+ import {
14
+ FITNESS_COLORS,
15
+ PHASE_COLORS,
16
+ PHASE_LABELS,
17
+ SAMPLE_EXERCISES,
18
+ } from '../constants';
19
+ import {
20
+ TimerSettingsModal,
21
+ type TimerSettingsModalRef,
22
+ } from '../components/timer-settings-modal';
23
+ import { useTimer } from '../hooks/use-timer';
24
+ import {
25
+ CompletionCelebration,
26
+ ExerciseQueue,
27
+ ModeSelector,
28
+ TimerDisplay,
29
+ TimerControls,
30
+ } from '../components/timer-components';
31
+
32
+ const { width } = Dimensions.get('window');
33
+ const CIRCLE_SIZE = width * 0.66;
34
+
35
+ export default function TimerScreen() {
36
+ const router = useRouter();
37
+ const settingsModalRef = useRef<TimerSettingsModalRef>(null);
38
+
39
+ const {
40
+ settings,
41
+ phase,
42
+ isPlaying,
43
+ timeLeft,
44
+ currentRound,
45
+ currentExerciseIndex,
46
+ showCelebration,
47
+ R,
48
+ circumference,
49
+ animatedCircleProps,
50
+ animatedContainerStyle,
51
+ countdownStyle,
52
+ formatTime,
53
+ toggleTimer,
54
+ skipForward,
55
+ skipBackward,
56
+ resetWorkout,
57
+ handleSettingsSave,
58
+ handleCelebrationDismiss,
59
+ } = useTimer(
60
+ {
61
+ mode: 'interval',
62
+ workDuration: 45,
63
+ restDuration: 15,
64
+ rounds: 4,
65
+ soundEnabled: true,
66
+ hapticEnabled: true,
67
+ },
68
+ CIRCLE_SIZE,
69
+ );
70
+
71
+ const currentExercise = SAMPLE_EXERCISES[currentExerciseIndex];
72
+ const activeColor = PHASE_COLORS[phase] || FITNESS_COLORS.primary;
73
+
74
+ return (
75
+ <View style={styles.container}>
76
+ <Stack.Screen options={{ headerShown: false }} />
77
+
78
+ {/* Header */}
79
+ <View style={styles.header}>
80
+ <TouchableOpacity
81
+ onPress={() => router.back()}
82
+ style={styles.headerIconButton}
83
+ >
84
+ <Ionicons name="chevron-back" size={24} color="white" />
85
+ </TouchableOpacity>
86
+
87
+ <ModeSelector
88
+ currentMode={settings.mode}
89
+ onPress={() => settingsModalRef.current?.open(settings)}
90
+ />
91
+
92
+ <TouchableOpacity
93
+ onPress={() => settingsModalRef.current?.open(settings)}
94
+ style={styles.headerIconButton}
95
+ >
96
+ <Ionicons name="settings-outline" size={20} color="white" />
97
+ </TouchableOpacity>
98
+ </View>
99
+
100
+ {/* Round indicator */}
101
+ {settings.mode !== 'countdown' && (
102
+ <Animated.View
103
+ entering={FadeInDown.delay(100)}
104
+ style={styles.roundIndicator}
105
+ >
106
+ <Text style={styles.roundText}>
107
+ Round {currentRound} of {settings.rounds}
108
+ </Text>
109
+ </Animated.View>
110
+ )}
111
+
112
+ {/* Main Timer Display */}
113
+ <TimerDisplay
114
+ CIRCLE_SIZE={CIRCLE_SIZE}
115
+ R={R}
116
+ circumference={circumference}
117
+ animatedContainerStyle={animatedContainerStyle}
118
+ animatedCircleProps={animatedCircleProps}
119
+ countdownStyle={countdownStyle}
120
+ timeLeft={timeLeft}
121
+ formatTime={formatTime}
122
+ activeColor={activeColor}
123
+ phaseLabel={PHASE_LABELS[phase]}
124
+ />
125
+
126
+ {/* Current Exercise Info */}
127
+ <Animated.View entering={FadeInUp.delay(200)} style={styles.exerciseInfo}>
128
+ <View style={styles.exerciseHeader}>
129
+ <View
130
+ style={[
131
+ styles.exerciseIcon,
132
+ { backgroundColor: `${activeColor}20` },
133
+ ]}
134
+ >
135
+ <Ionicons
136
+ name={currentExercise.icon}
137
+ size={24}
138
+ color={activeColor}
139
+ />
140
+ </View>
141
+ <Text style={styles.exerciseName}>{currentExercise.name}</Text>
142
+ </View>
143
+ <Text style={styles.exerciseTip}>{currentExercise.tip}</Text>
144
+ </Animated.View>
145
+
146
+ {/* Exercise Queue */}
147
+ <ExerciseQueue
148
+ exercises={SAMPLE_EXERCISES}
149
+ currentIndex={currentExerciseIndex}
150
+ />
151
+
152
+ {/* Controls */}
153
+ <TimerControls
154
+ isPlaying={isPlaying}
155
+ activeColor={activeColor}
156
+ onToggle={toggleTimer}
157
+ onSkipForward={skipForward}
158
+ onSkipBackward={skipBackward}
159
+ />
160
+
161
+ {/* Reset button when paused */}
162
+ {!isPlaying && phase !== 'idle' && phase !== 'complete' && (
163
+ <Animated.View entering={FadeIn} style={styles.resetContainer}>
164
+ <TouchableOpacity
165
+ onPress={() => resetWorkout()}
166
+ style={styles.resetButton}
167
+ >
168
+ <Ionicons name="stop" size={18} color={FITNESS_COLORS.danger} />
169
+ <Text style={styles.resetText}>Reset</Text>
170
+ </TouchableOpacity>
171
+ </Animated.View>
172
+ )}
173
+
174
+ {/* Completion Celebration */}
175
+ {showCelebration && (
176
+ <CompletionCelebration onDismiss={handleCelebrationDismiss} />
177
+ )}
178
+
179
+ {/* Settings Modal */}
180
+ <TimerSettingsModal ref={settingsModalRef} onSave={handleSettingsSave} />
181
+ </View>
182
+ );
183
+ }
184
+
185
+ const styles = StyleSheet.create({
186
+ container: {
187
+ flex: 1,
188
+ backgroundColor: FITNESS_COLORS.background,
189
+ paddingHorizontal: 24,
190
+ paddingTop: 56,
191
+ paddingBottom: 16,
192
+ },
193
+ header: {
194
+ flexDirection: 'row',
195
+ justifyContent: 'space-between',
196
+ alignItems: 'center',
197
+ marginBottom: 8,
198
+ },
199
+ iconButtonWrapper: {
200
+ width: 44,
201
+ height: 44,
202
+ },
203
+ headerIconButton: {
204
+ width: 44,
205
+ height: 44,
206
+ borderRadius: 22,
207
+ backgroundColor: FITNESS_COLORS.card,
208
+ alignItems: 'center',
209
+ justifyContent: 'center',
210
+ borderWidth: 1,
211
+ borderColor: '#27272a',
212
+ },
213
+ roundIndicator: {
214
+ alignItems: 'center',
215
+ marginTop: 12,
216
+ marginBottom: 6,
217
+ },
218
+ roundText: {
219
+ color: FITNESS_COLORS.textMuted,
220
+ fontWeight: '700',
221
+ fontSize: 12,
222
+ letterSpacing: 2,
223
+ textTransform: 'uppercase',
224
+ },
225
+ exerciseInfo: {
226
+ alignItems: 'center',
227
+ marginTop: 16,
228
+ marginBottom: 24,
229
+ },
230
+ exerciseHeader: {
231
+ flexDirection: 'row',
232
+ alignItems: 'center',
233
+ gap: 12,
234
+ marginBottom: 8,
235
+ },
236
+ exerciseIcon: {
237
+ width: 40,
238
+ height: 40,
239
+ borderRadius: 12,
240
+ alignItems: 'center',
241
+ justifyContent: 'center',
242
+ },
243
+ exerciseName: {
244
+ color: FITNESS_COLORS.text,
245
+ fontSize: 20,
246
+ fontWeight: '800',
247
+ },
248
+ exerciseTip: {
249
+ color: FITNESS_COLORS.textMuted,
250
+ fontSize: 14,
251
+ textAlign: 'center',
252
+ lineHeight: 20,
253
+ },
254
+ resetContainer: {
255
+ alignItems: 'center',
256
+ marginTop: 8,
257
+ },
258
+ resetButtonWrapper: {
259
+ flexDirection: 'row',
260
+ alignItems: 'center',
261
+ },
262
+ resetButton: {
263
+ flexDirection: 'row',
264
+ alignItems: 'center',
265
+ gap: 6,
266
+ paddingHorizontal: 20,
267
+ paddingVertical: 10,
268
+ borderRadius: 20,
269
+ backgroundColor: `${FITNESS_COLORS.danger}15`,
270
+ borderWidth: 1,
271
+ borderColor: `${FITNESS_COLORS.danger}30`,
272
+ },
273
+ resetText: {
274
+ color: FITNESS_COLORS.danger,
275
+ fontWeight: '600',
276
+ fontSize: 14,
277
+ },
278
+ });