Merge remote-tracking branch 'origin/main' into feat/gym-checkin-qr
# Conflicts: # frontend/package-lock.json # frontend/package.json # frontend/src/index.css # frontend/src/lib/pt-br-locale.test.js # frontend/src/locales/hu.js # frontend/src/locales/th.js
This commit is contained in:
commit
3197f9e9be
122 files changed
+18404
-103
No files matched your search
+12
-1
@@ -29,6 +29,9 @@ import History from './views/History.jsx'
|
||||
import Library from './views/Library.jsx'
|
||||
import Settings from './views/Settings.jsx'
|
||||
import Admin from './views/Admin.jsx'
|
||||
import CoachChat from './views/CoachChat.jsx'
|
||||
import CoachIntake from './views/CoachIntake.jsx'
|
||||
import CoachSetup from './views/CoachSetup.jsx'
|
||||
|
||||
// last known scrollY per route, so back-navigation can put the page where it was
|
||||
const scrollPositions = new Map()
|
||||
@@ -123,13 +126,21 @@ function Shell() {
|
||||
<Route path="/history" element={<History />} />
|
||||
<Route path="/library" element={<Library />} />
|
||||
<Route path="/settings" element={<Settings />} />
|
||||
{/* The Coach screens gate themselves on the instance config; the routes exist
|
||||
unconditionally so a deep link from a notification lands somewhere sane
|
||||
rather than on the catch-all. */}
|
||||
<Route path="/coach" element={<CoachChat />} />
|
||||
<Route path="/coach/intake" element={<CoachIntake />} />
|
||||
<Route path="/coach/proposal" element={<Navigate to="/coach" replace />} />
|
||||
<Route path="/coach/setup" element={<CoachSetup />} />
|
||||
<Route path="/admin" element={user?.admin ? <Admin /> : <Navigate to="/home" replace />} />
|
||||
<Route path="*" element={<Navigate to="/home" replace />} />
|
||||
</Routes>
|
||||
)}
|
||||
</ErrorBoundary>
|
||||
</div>
|
||||
<TabBar onStart={startFlow} />
|
||||
{/* The chat owns the bottom of the screen: its composer sits where the tabs would be. */}
|
||||
{loc.pathname !== '/coach' && <TabBar onStart={startFlow} />}
|
||||
<RestTimer />
|
||||
<Modals />
|
||||
<Toast />
|
||||
|
||||
Reference in new issue
Block a user