feat(web): migrate dashboard to WidgetGrid with layout persistence #497

Merged
jason.woltje merged 2 commits from feat/ms18-widget-grid-migration into main 2026-02-24 00:50:25 +00:00

2 Commits

Author SHA1 Message Date
315b04e1b2 fix(web): suppress lint for never-resolving promise in test
All checks were successful
ci/woodpecker/push/web Pipeline was successful
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 18:44:52 -06:00
c694db5d8c feat(web): migrate dashboard to WidgetGrid with layout persistence
Replace the hardcoded dashboard layout with the WidgetGrid system.
The dashboard now loads/saves user layouts via the UserLayout API
and creates a default layout on first visit with all 7 widgets.

Changes:
- Add layout API client (fetchDefaultLayout, createLayout, updateLayout)
- Add default layout constant with 7-widget arrangement (12-col grid)
- Update BaseWidget + WidgetGrid to use CSS variables for theme compat
- Add responsive container width measurement via ResizeObserver
- Rewrite dashboard page to use WidgetGrid with edit mode toggle
- Update all tests for the new dashboard architecture

Ref: #488

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 18:43:11 -06:00