Skip to content

M6 dashboard: page shell + stat cards#37

Merged
bstruong merged 1 commit into
mainfrom
feature/m6-dashboard-shell
May 14, 2026
Merged

M6 dashboard: page shell + stat cards#37
bstruong merged 1 commit into
mainfrom
feature/m6-dashboard-shell

Conversation

@bstruong
Copy link
Copy Markdown
Owner

@bstruong bstruong commented May 14, 2026

Summary

  • Time-of-day greeting + display name from current user email
  • Three stat cards (Time to reconnect, Coming up soon, In your circle) wired to /api/dashboard/{reconnect,upcoming} and
    /api/people via TanStack Query
  • MSW handlers for the new endpoints; smoke test re-pointed off the removed dashboard heading
  • ESLint override for vendored shadcn components/ui/** (Button + buttonVariants co-export)

This lands piece 1 of three for M6. Next: reconnect card list, then expand-to-log interactions.

Test plan

  • npm --prefix client run lint clean
  • npm --prefix client run test green (3 tests)
  • npm --prefix client run build succeeds (tsc + vite)
  • Manual: signed in at http://localhost:5173, greeting + three stat cards render with seed-data counts
  • CI green on the PR

    - Time-of-day greeting using `getGreeting` with display name
      derived from the current user's email.
    - Three `StatCard`s wired through TanStack Query:
      `Time to reconnect` (orange) from `/api/dashboard/reconnect`,
      `Coming up soon` from `/api/dashboard/upcoming`,
      `In your circle` from `/api/people`.
    - New API modules `api/dashboard.ts` and `api/people.ts`;
      query hooks live in `dashboard/hooks.ts` next to the route.
    - MSW handlers stub the three dashboard endpoints so the
      auth-shell smoke test still passes; assertion now keys off
      `Time to reconnect` since the dashboard heading is now the
      greeting.
    - ESLint: skip `react-refresh/only-export-components` for
      vendored `src/components/ui/**` (shadcn `Button` co-exports
      `buttonVariants`).

    Lands piece 1 of three for M6 Dashboard. Next pieces are the
    reconnect card list and its expand-to-log interactions.
@bstruong bstruong merged commit 094609f into main May 14, 2026
3 checks passed
@bstruong bstruong deleted the feature/m6-dashboard-shell branch May 14, 2026 04:04
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