An offline check-in moves after hydration on Today #178

Open
opened 2026-11-08 18:18:14 +00:00 by chris-kreidl · 1 comment
chris-kreidl commented 2026-11-08 18:18:14 +00:00 (Migrated from github.com)

(today layout, review) A check-in answered offline and not yet synced shows beside Today's header on load, then moves below. The server render can't see the localStorage queue, so one case has to move after hydration; the common case (nothing answered yet) stays put. Comment at checkInBeside in src/routes/_app/today.tsx.

Moved from docs/history.md → Parked follow-ups on 2026-11-08.

(today layout, review) **A check-in answered offline and not yet synced shows beside Today's header on load, then moves below.** The server render can't see the localStorage queue, so one case has to move after hydration; the common case (nothing answered yet) stays put. Comment at `checkInBeside` in `src/routes/_app/today.tsx`. _Moved from docs/history.md → Parked follow-ups on 2026-11-08._
chris-kreidl commented 2026-11-08 20:19:39 +00:00 (Migrated from github.com)

What this is about. On Today, the morning check-in (sleep, soreness and so on) sits beside the header until you answer it. If you answered it offline and it hasn't synced yet, the page first renders it beside the header (the server can't see the browser's offline queue), then moves it below once the app loads in the browser. That jump is a small visual glitch in one rare case.

Status (checked 2026-11-08): unchanged (checkInBeside, src/routes/_app/today.tsx line 109, with a comment explaining it).

Keep as: parked. Fixing it would mean hiding the check-in until the app loads, which makes the common case worse.

**What this is about.** On Today, the morning check-in (sleep, soreness and so on) sits beside the header until you answer it. If you answered it *offline* and it hasn't synced yet, the page first renders it beside the header (the server can't see the browser's offline queue), then moves it below once the app loads in the browser. That jump is a small visual glitch in one rare case. **Status (checked 2026-11-08):** unchanged (`checkInBeside`, `src/routes/_app/today.tsx` line 109, with a comment explaining it). **Keep as:** parked. Fixing it would mean hiding the check-in until the app loads, which makes the common case worse.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#178
No description provided.