perf(web): restore last known dashboard tiles #48

Merged
vince merged 3 commits from codex/dashboard-last-known-tiles into main 2026-06-20 14:41:14 +02:00
Owner

Summary

Persist successful dashboard tile responses in localStorage and restore matching revision/schema snapshots during startup.

Why

The dashboard should show useful last-known tile values immediately while live tile hydration revalidates.

Changes

  • Adds a versioned client tile snapshot store.
  • Restores matching ready tile snapshots as stale values before hydration.
  • Saves successful live tile responses and skips failed, disabled, or missing tiles.
  • Adds unit coverage for snapshot persistence and restored app state.

Testing

  • bun --filter @dimensionlab/web test -- src/lib/client/dashboard-refresh.test.ts src/App.test.tsx
  • bun --filter @dimensionlab/web check
  • bun install --frozen-lockfile
  • bun run check
  • bun run test

Notes

No packages/ui changes.

## Summary Persist successful dashboard tile responses in localStorage and restore matching revision/schema snapshots during startup. ## Why The dashboard should show useful last-known tile values immediately while live tile hydration revalidates. ## Changes - Adds a versioned client tile snapshot store. - Restores matching ready tile snapshots as stale values before hydration. - Saves successful live tile responses and skips failed, disabled, or missing tiles. - Adds unit coverage for snapshot persistence and restored app state. ## Testing - bun --filter @dimensionlab/web test -- src/lib/client/dashboard-refresh.test.ts src/App.test.tsx - bun --filter @dimensionlab/web check - bun install --frozen-lockfile - bun run check - bun run test ## Notes No packages/ui changes.
vince added 1 commit 2026-06-20 14:26:09 +02:00
vince added 1 commit 2026-06-20 14:32:14 +02:00
vince added 1 commit 2026-06-20 14:38:21 +02:00
vince merged commit 30bff9da37 into main 2026-06-20 14:41:14 +02:00
Sign in to join this conversation.
No description provided.