Skip to content

feat(ui): replace spinner with skeleton loading screen on dashboard#5

Merged
bokiko merged 2 commits intomainfrom
auto/improve-2026-03-18-uiux
Mar 19, 2026
Merged

feat(ui): replace spinner with skeleton loading screen on dashboard#5
bokiko merged 2 commits intomainfrom
auto/improve-2026-03-18-uiux

Conversation

@bokiko
Copy link
Owner

@bokiko bokiko commented Mar 18, 2026

Summary

The dashboard showed a bare spinner while waiting for API results. This caused an abrupt layout shift and gave users no sense of the page structure.

Changes

  • New: web/src/components/DashboardSkeleton.tsx — full-layout skeleton with:
    • 4 stat card skeletons (icon circle, value block, sub-label)
    • 2 chart panel skeletons with proportional shimmer bars
    • Recent results table with 6 skeleton rows
  • Updated: web/src/app/dashboard/page.tsx — swap spinner div for <DashboardSkeleton />

Implementation notes

  • Uses the existing .skeleton shimmer CSS class from globals.css — zero new dependencies
  • aria-busy="true" + aria-label on the skeleton root for screen reader support
  • Build verified: npm run build passes with no errors or warnings

The dashboard previously showed a bare spinner + "Loading results..." text
while waiting for the /api/results fetch. This gave no visual hint of page
structure, causing layout shift when content arrived.

Replaced with a full DashboardSkeleton component that mirrors the real layout:
- Four stat cards (icon, value, sub-label placeholders)
- Two chart panels with proportional bar columns
- Recent Results table with six skeleton rows

Uses the existing .skeleton shimmer CSS class (globals.css) — no new
dependencies. The skeleton renders immediately on mount so the page always
has visible content during the loading state.

Also wires aria-busy='true' and aria-label on the skeleton root so screen
readers know data is loading.

Files: web/src/components/DashboardSkeleton.tsx (new), web/src/app/dashboard/page.tsx
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@bokiko bokiko merged commit aa21698 into main Mar 19, 2026
1 check passed
@bokiko bokiko deleted the auto/improve-2026-03-18-uiux branch March 21, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant