perf(web): add dashboard hydration observability #50

Merged
vince merged 2 commits from codex/dashboard-observability into main 2026-06-20 15:06:55 +02:00
Owner

Summary

Add dashboard tile observability without external metrics dependencies.

Why

The resource optimization work needs local diagnostics for cache behavior, coalescing, tile latency, errors, and browser hydration milestones.

Changes

  • Adds structured server tile logs for tile key, duration, cache status, coalescing, result status, and error category.
  • Preserves existing tile response shapes while enriching the internal cache result metadata.
  • Adds injectable tile log collection for tests.
  • Adds browser performance marks for shell load, first tile ready, visible tiles ready, and all tiles settled.
  • Extends client and route tests for log metadata, coalescing logs, error categories, and performance marks.

Testing

  • bun --filter @dimensionlab/web test -- src/server/routes/dashboard.test.ts 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 external metrics dependency and no packages/ui changes.

## Summary Add dashboard tile observability without external metrics dependencies. ## Why The resource optimization work needs local diagnostics for cache behavior, coalescing, tile latency, errors, and browser hydration milestones. ## Changes - Adds structured server tile logs for tile key, duration, cache status, coalescing, result status, and error category. - Preserves existing tile response shapes while enriching the internal cache result metadata. - Adds injectable tile log collection for tests. - Adds browser performance marks for shell load, first tile ready, visible tiles ready, and all tiles settled. - Extends client and route tests for log metadata, coalescing logs, error categories, and performance marks. ## Testing - bun --filter @dimensionlab/web test -- src/server/routes/dashboard.test.ts 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 external metrics dependency and no packages/ui changes.
vince added 1 commit 2026-06-20 14:58:40 +02:00
vince added 1 commit 2026-06-20 15:04:52 +02:00
vince merged commit 63b008095f into main 2026-06-20 15:06:55 +02:00
Sign in to join this conversation.
No description provided.