Signed in, the server's profile is the truth: sign-in and pairing adopt it and ask once about workouts logged while signed out (Add them / Keep profile as is); the app polls the revision every 30 s and on every resume (GET /api/data/rev) and fetches only what moved; offline and unsynced states show a banner, retry on reconnect and confirm with a toast; pagehide flushes a pending change
This commit is contained in:
1 parent
28a068b8f0
commit
826432a3a2
30 files changed
+541
-37
No files matched your search
@@ -18,6 +18,7 @@ import TabBar from './components/TabBar.jsx'
|
||||
import ErrorBoundary from './components/ErrorBoundary.jsx'
|
||||
import Modals from './components/Modals.jsx'
|
||||
import Toast from './components/Toast.jsx'
|
||||
import SyncBanner from './components/SyncBanner.jsx'
|
||||
import RestTimer from './components/RestTimer.jsx'
|
||||
import TimerFlash from './components/TimerFlash.jsx'
|
||||
import Login from './views/Login.jsx'
|
||||
@@ -128,6 +129,7 @@ function Shell() {
|
||||
re-mounts the boundary, so the tab bar is always a way out */}
|
||||
<div id="app" className="vfade" key={loc.pathname}>
|
||||
<ErrorBoundary>
|
||||
{authed && !needsMobileOnboarding && <SyncBanner />}
|
||||
{!authed ? <Login /> : needsMobileOnboarding ? <MobileOnboarding /> : (
|
||||
<Routes>
|
||||
<Route path="/home" element={<Home />} />
|
||||
|
||||
Reference in new issue
Block a user