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
@@ -172,6 +172,14 @@ body.resting #app{padding-bottom:calc(206px + var(--sab))}
|
||||
@keyframes viewfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
|
||||
#app.vfade{animation:viewfade var(--med) var(--ease)}
|
||||
|
||||
/* sync banner: one line for a signed-in user whose changes are not on the server yet */
|
||||
.sync-banner{
|
||||
display:flex;align-items:center;gap:9px;width:100%;text-align:left;
|
||||
margin:0 0 12px;padding:9px 12px;border-radius:var(--r);
|
||||
background:color-mix(in srgb,var(--yellow) 16%,var(--surface));color:var(--label);font-size:13px;line-height:1.35;
|
||||
}
|
||||
.sync-banner.off{background:color-mix(in srgb,var(--label-3) 18%,var(--surface))}
|
||||
.sync-banner .icn,.sync-banner svg{flex:none;font-size:16px;color:var(--label-2)}
|
||||
/* large title, the way a nav bar does it */
|
||||
.hdr{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:8px 0 18px}
|
||||
.hdr h1{font-size:34px;line-height:1.06;font-weight:700;letter-spacing:-.028em}
|
||||
|
||||
Reference in new issue
Block a user