refactor: merge DashboardView and GridStackView into a single dashboard (#19) #31
Reference in New Issue
Block a user
Delete Branch "ai/issue-19-merge-dashboard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #19
DashboardViewandGridStackViewrendered the same three charts from the same hardcoded data — every chart factory method existed twice. The dashboard is now the grid-based variant at@Route("").Changes
GridStackViewdeleted. ItsGridStackLayout, toolbar (add widget / reset layout), status span and chart factories moved intoDashboardView. Widgets stay draggable/resizable and the layout still restores fromlocalStorage.DashboardViewshowed aNotificationon chart point/slice click; the listeners moved over so that behaviour isn't lost.width: 100%/height: 100%); the fixed400pxis gone.MainLayout: one dashboardSideNavItem, thenav.gridstackentry is gone.nav.gridstackandpage.gridstackremoved from all three bundles (de/en/es); the remaininggridstack.*andcard.gridstackHintkeys are still used by the toolbar and hint widget.gridstack-demo→dashboard. A layout saved under the old route is not reused — the merged dashboard starts from the default positions once.Fa.GRIDis left in the icon enum, unused.GridStackViewTest→DashboardViewTest(git-tracked rename, same five cases against the new route) plus a new case asserting the line/bar/pie charts render.Tests
./mvnw test→Tests run: 11, Failures: 0, Errors: 0, Skipped: 0(DashboardViewTest6,FormViewPlaywrightTest5).🤖 Generated with Claude Code
https://claude.ai/code/session_0124BiJikbhbiEsNfJxdWM69
DashboardView and GridStackView rendered the same three charts from the same hardcoded data, so every chart factory method existed twice. The dashboard is now the GridStackLayout variant at @Route(""): - GridStackView deleted, its grid/toolbar/chart factories moved into DashboardView, which keeps the point-click notifications the old dashboard had. - Charts size to their widget (100%/100%) instead of a fixed 400px. - MainLayout has one dashboard entry; nav.gridstack/page.gridstack keys dropped from all three bundles. - Storage key is "dashboard" (was "gridstack-demo"), so a saved layout from the old route is not reused. - GridStackViewTest renamed to DashboardViewTest, plus a test asserting the three charts render. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0124BiJikbhbiEsNfJxdWM69