Skip to content

refactor(dashboard): split the dashboard page - #52

Merged
WhiteMuush merged 3 commits into
developfrom
refactor/split-dashboard-page
Oct 13, 2026
Merged

WhiteMuush merged 3 commits into
developfrom
refactor/split-dashboard-page

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

Part of #30. The dashboard page and its data builders are split into smaller files under 200 lines.

The preset loader gets its own unit tests. No behaviour change: the same scripted session renders the same dashboard before and after.

dashboard.ts goes from 408 to 192 lines: the source-filterable series move to dashboard-series.ts with their tests, the other widget breakdowns to dashboard-breakdowns.ts, and an unused re-export of the risk helpers goes. getDashboardData and the three series for every provider return identical JSON on the demo data.
page.tsx goes from 345 to 85 lines: the default and library widget lists move to their own factories and preset loading to src/lib/dashboard-presets.ts. The server-rendered HTML is identical and the RSC payload differs only by bundle file names.
@WhiteMuush WhiteMuush closed this Oct 13, 2026
@WhiteMuush WhiteMuush reopened this Oct 13, 2026
@WhiteMuush
WhiteMuush merged commit 1ceb359 into develop Oct 13, 2026
25 of 27 checks passed
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