Skip to content

fix: wrap widget library in DetailDrawerProvider#115

Merged
WhiteMuush merged 1 commit into
mainfrom
fix/widget-library-drawer
Jul 11, 2026
Merged

fix: wrap widget library in DetailDrawerProvider#115
WhiteMuush merged 1 commit into
mainfrom
fix/widget-library-drawer

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

Pre-existing bug shipped in v1.0.0 (introduced by e31586b on June 29, before the release hardening): the detail drawer commit added useDetailDrawer to 8 dashboard widgets, but /dashboard/widgets renders those widgets as previews outside DetailDrawerProvider, so the page crashes with 'useDetailDrawer must be used within DetailDrawerProvider'. Nothing covered that page: unit tests do not render pages and the smoke test stopped at dashboard/alerts.

Fix: wrap the widget library page in DetailDrawerProvider (self-contained, mounts the drawer portal itself), so previews render and are even clickable like on the real dashboard.

Smoke test hardened to catch this class of bug: a pageerror collector fails the run on any uncaught client error on visited pages, and the spec now visits /dashboard/widgets and asserts real content (Widget Library heading, Alert Severity widget). Verified RED with the bug, GREEN with the fix.

@WhiteMuush WhiteMuush merged commit bb12b79 into main Jul 11, 2026
11 of 12 checks passed
@WhiteMuush WhiteMuush deleted the fix/widget-library-drawer branch July 11, 2026 11:38
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