feat(web): timeline titles first — section spinner, then async manifest, then hydration #1012

Merged
chris merged 1 commit from feat/timeline-titles-first into main 2026-10-03 20:16:29 +02:00
Owner

Summary

Reworks the initial timeline load into three phases (spec 051 addendum, S6):

  1. Phase 1 — titles first: the day sections paint from the days overview alone; every empty section shows exactly one restrained centered spinner (media-grid-section-spinner) — no count placeholders, no layout tiles, no day-items requests.
  2. Phase 2 — async layout manifest: the bounded manifest (12 days, layoutAround for restore) is fetched after phase 1 has painted and merged into the existing day list (adds layoutItems only, never replaces keys/labels/order/counts). Spinners become exact-geometry placeholders.
  3. Phase 3 — hydration: the unchanged FIFO lane, gated until the manifest settles (hydration pump waits on manifestSettled). Day-reveal sentinels arm only after the manifest lands; filter/scope refreshes release stale gates. Manifest failure falls back to the pre-051 count placeholders.

awaitingManifest is an opt-in MediaGrid prop — only the timeline wall passes it; other walls are untouched.

Also: adds apps/web/test-results/ to .gitignore (Playwright artifacts, never committed) and updates spec 051 (spec.json S6 + tasks.json S051T004).

Verification

  • npm run check (svelte-check): 0 errors (22 pre-existing warnings)
  • npx playwright test tests/timeline.spec.ts: 83 passed, 11 skipped (incl. new 3-phase test, placeholder test, bulk-selection timing test — each desktop+mobile confirmed)
  • npm run test:unit (vitest): 60 passed

Base: latest origin/main (42c501fe) — the 9 new main commits do not touch the changed files.

Validation (browser check, copy review, merge): Orchestrator.

## Summary Reworks the initial timeline load into three phases (spec 051 addendum, S6): 1. **Phase 1 — titles first:** the day sections paint from the days overview alone; every empty section shows exactly one restrained centered spinner (`media-grid-section-spinner`) — no count placeholders, no layout tiles, no day-items requests. 2. **Phase 2 — async layout manifest:** the bounded manifest (12 days, `layoutAround` for restore) is fetched after phase 1 has painted and merged into the existing day list (adds `layoutItems` only, never replaces keys/labels/order/counts). Spinners become exact-geometry placeholders. 3. **Phase 3 — hydration:** the unchanged FIFO lane, gated until the manifest settles (hydration pump waits on `manifestSettled`). Day-reveal sentinels arm only after the manifest lands; filter/scope refreshes release stale gates. Manifest failure falls back to the pre-051 count placeholders. `awaitingManifest` is an opt-in MediaGrid prop — only the timeline wall passes it; other walls are untouched. Also: adds `apps/web/test-results/` to .gitignore (Playwright artifacts, never committed) and updates spec 051 (spec.json S6 + tasks.json S051T004). ## Verification - `npm run check` (svelte-check): 0 errors (22 pre-existing warnings) - `npx playwright test tests/timeline.spec.ts`: 83 passed, 11 skipped (incl. new 3-phase test, placeholder test, bulk-selection timing test — each desktop+mobile confirmed) - `npm run test:unit` (vitest): 60 passed Base: latest origin/main (42c501fe) — the 9 new main commits do not touch the changed files. Validation (browser check, copy review, merge): Orchestrator.
feat(web): timeline titles first — section spinner, then async manifest, then hydration
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 3s
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 1m49s
d69bf3bb88
chris merged commit 6723a3ecda into main 2026-10-03 20:16:29 +02:00
Sign in to join this conversation.
No reviewers
No labels
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
chris/memories!1012
No description provided.