feat(onboarding): add conversational ChatOnboarding component

This commit is contained in:
2026-02-28 22:06:15 +01:00
parent 8301803a6f
commit 0ce9d546cf
9 changed files with 870 additions and 123 deletions
+5
View File
@@ -5,6 +5,7 @@ import ProfilePage from './pages/ProfilePage'
import ProgressPage from './pages/ProgressPage'
import WorkoutPage from './pages/WorkoutPage'
import WorkoutSelectPage from './pages/WorkoutSelectPage'
import ChatOnboarding from './pages/ChatOnboarding'
import './App.css'
const API_URL = '/api'
@@ -21,6 +22,10 @@ function App() {
const userId = user?.id || 1
const today = new Date().toISOString().split('T')[0]
if (user && !user.onboarding_complete) {
return <ChatOnboarding />
}
const fetchProgram = async () => {
if (program) return // Already loaded
try {