fix: empty state when all dashboard widgets are closed #49
Reference in New Issue
Block a user
Delete Branch "ai/issue-39-empty-state-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?
What
Renders a placeholder on the dashboard once every widget has been closed, instead of a blank grid:
GridStackLayout.resetLayout()alone can't do this — it only repositions widgets still present, and none are left once the dashboard is empty).The placeholder is a plain
DivoutsideGridStackLayout's light DOM — never aGridStackItem, so it's never draggable and never shows up ingetLayout(). Visibility is toggled from every path that adds or removes a widget (initial build, add-widget, undo, and any close, client or programmatic).German copy with English/Spanish translations added to all three bundles. Styled from the existing
--dialect-*token layer (dashed border, matching gridstack's own placeholder aesthetic), correct in light/dark.Tests
DashboardViewTest: closing every widget shows the empty state and hides the grid; adding a widget hides it again; the restore action rebuilds the default layout../mvnw testgreen.Closes #39