feat(CustomizableDashboard): widget catalog + DashboardCustomizePanel - #390
Open
ebellamy-bh wants to merge 3 commits into
Open
feat(CustomizableDashboard): widget catalog + DashboardCustomizePanel#390ebellamy-bh wants to merge 3 commits into
ebellamy-bh wants to merge 3 commits into
Conversation
Adds a WidgetDefinition catalog and a slide-in customize panel (Sheet + Switch) with category grouping, show/hide toggles, and layout reset — UX generalized from waggleline's board-column config. When 'widgets' is set the dashboard toolbar gains a Customize button; visibility persists via storageKey or hiddenIds/onHiddenChange.
…ize-panel # Conflicts: # src/components/CustomizableDashboard/MAINTAINERS.md
Deploying ui with
|
| Latest commit: |
bb9fcd8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://25061e8e.ui-6d0.pages.dev |
| Branch Preview URL: | https://feat-dashboard-customize-pan.ui-6d0.pages.dev |
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.
Adds the add/remove layer to
CustomizableDashboard: aWidgetDefinitioncatalog and a slide-inDashboardCustomizePanelwhere users show/hide widgets and reset the layout — the customization UX waggleline's dashboard "Customize" button has been waiting on (its TODO), generalized from waggleline's board-column config offcanvas.What it does
WidgetDefinitioncatalog type (id,title,description, lucideicon,category)DashboardCustomizePanel—Sheet+Switchcomposition: widgets grouped by category, show/hide toggles, "N of M widgets shown" count, optional Reset layout action. Exported standalone for hosts that render their own trigger or persist visibility elsewhere.CustomizableDashboardintegration — passingwidgetsadds a toolbar Customize button that opens the panel; hiding filters at render time so a widget keeps its column slot and unhiding restores its previous position{storageKey}-dashboard-hiddenin localStorage, or controlledhiddenIds/onHiddenChange(+defaultHiddenIds)Screenshots
Panel open with Vitals toggled off — note the widget removed live from the grid behind, the muted hidden row, and the count:
Provenance
UX generalized from waggleline's
BoardColumnConfigModal(add/remove/reorder offcanvas for kanban columns), minus the column-specific color/emoji editing. Downstream: waggleline's dashboard Customize TODO and echart-sim's per-page widget catalogs (adoption PRs planned after release).Testing
WithWidgetCatalog)typecheck/lint/format/rtl:scanclean; full suite 596/596