feat(dashboards): richer, coherent redesign of all four role dashboards (grounded in real data)#143
Merged
Merged
Conversation
…ds (grounded in real data)
Elevate the visual design of every role dashboard while keeping every number
backed by data the API actually returns — no fabricated metrics, no new calls.
Shared primitives (components/dashboard/primitives.tsx):
- DonutChart: a proportional ring + legend + center total, themed via design
tokens (light/dark), with an empty state. A richer read than flat bars for a
status/composition breakdown.
- StatusPill: a small tinted chip that encodes state in colour as well as text.
Student:
- Applications-by-status is now a DonutChart (center = total applications).
- The redundant 9-tile nav grid (a duplicate of the sidebar) is replaced by a
real "My applications" list: the most-recently-updated active applications
with an avatar, provider + relative time, and a StatusPill. A STATUS_META map
keeps donut colours and pill tones in sync.
Provider:
- Applications-by-status → DonutChart fed from the server status-counts
aggregate (all applications, not one page).
- New "recent applications" list (student, scholarship, submitted-time, status
pill) replacing the nav-tile grid; 8/4 grid for coherence.
Consultant:
- Bookings-by-status → DonutChart (keeps the merged no-show bucket).
- New "upcoming sessions" list from the real confirmed+future bookings.
Admin:
- Application funnel → DonutChart (real funnel counts). User-growth area chart
with its 7/30/90 toggle + {{days}} subtitle, the real Users delta, and the
audit-log feed are all preserved.
All four verified rendering with live seeded data (student/provider/consultant/
admin); tsc + eslint (--max-warnings 0) clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Elevates the visual design of all four role dashboards while keeping every figure backed by data the API actually returns — no fabricated metrics, no new API calls, no fake deltas (this repo just removed several; none reintroduced).
Shared primitives
DonutChart— proportional ring + legend + center total, themed via design tokens (light/dark), with an empty state. A richer read than flat bars for status/composition.StatusPill— small tinted chip encoding state in colour + text.Per dashboard
{{days}}subtitle, real Users delta, and audit feed all preserved.A
STATUS_METAmap per dashboard keeps donut colours and pill tones in sync.Verification
tsc -bclean;eslint --max-warnings 0clean on all five changed files.