Skip to content

Float the sidebar and page header as cards - #4

Merged
pei-tinybird merged 1 commit into
mainfrom
feature/dashboard-card-layout
Oct 13, 2026
Merged

pei-tinybird merged 1 commit into
mainfrom
feature/dashboard-card-layout

Conversation

@pei-tinybird

Copy link
Copy Markdown
Collaborator

Summary

Dashboard polish to match the RawTree product: floating card sidebar and page header, gray nav highlights, stat cards with the change next to the number, flat chart fills, light tooltips, and a refreshed sign-in preview.

Changes

  • app/(dashboard)/layout.tsx: the app shell moves out of the root layout into a route group, so /sign-in never shows the sidebar (it did on /sign-in?expired=1, where the session cookie is still set). URLs are unchanged. The sidebar is a full-height floating card; sign out has an icon.
  • components/ui.tsx: PageToolbar is a sticky row card aligned with the sidebar card, 16px above the content like the other card gaps.
  • components/sidebar-nav.tsx: active page and section use gray instead of blue.
  • components/charts.tsx: stat cards show the change beside the number (its dotted underline sits on the number's baseline) and the sparkline below with more space. Sparklines and trend charts use a flat fill instead of a gradient.
  • components/tooltip.tsx: light card tooltips, matching the chart ones.
  • components/console/console-app.tsx: viewport height accounts for the new top padding.
  • public/overview.jpg: retaken from ~1.47M synthetic events in a separate demo_events table; the real events table is untouched.
  • README.md, AGENTS.md, lib/queries.ts: paths updated for the route group.

Test plan

  • npm run typecheck
  • npm test (47 + 48 passing)
  • /sign-in?expired=1 renders without the sidebar
  • Delta underline within 0.5px of the number baseline on every stat and chart card (Chrome)

🤖 Generated with Claude Code

- Sidebar and page toolbar are floating cards; active nav items are gray.
- Dashboard pages move into the app/(dashboard) route group, so /sign-in
  never shows the sidebar, even with an expired session cookie.
- Stat cards put the change next to the number, with the sparkline below
  it; charts use flat fills instead of gradients.
- Tooltips match the light chart tooltips; sign out gets an icon.
- public/overview.jpg retaken with a larger synthetic dataset.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@pei-tinybird
pei-tinybird requested a review from a team as a code owner October 13, 2026 10:10
@pei-tinybird pei-tinybird self-assigned this Oct 13, 2026
@pei-tinybird
pei-tinybird merged commit 96a50d7 into main Oct 13, 2026
1 check passed
@pei-tinybird
pei-tinybird deleted the feature/dashboard-card-layout branch October 13, 2026 10:13
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