feat(debugbar): collapse panel to stylized W logo - #3559
Merged
Conversation
Replace the floating "Debug" restore button with an in-place slide: the X shrinks the bar to a logo-sized black strip on the left, and clicking the red W expands it back across the bottom of the page. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Peter Amiri <peter@alurium.com>
The collapsed-state CSS used a [data-wdb-reload-refused] selector, so the attribute string appeared in every debug-bar render and broke the #3311 "no notice" assertions. Hide non-chrome children with :not(.wdb-bar) instead. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Peter Amiri <peter@alurium.com>
bpamiri
marked this pull request as ready for review
September 9, 2026 17:45
18 tasks
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.
Summary
Closes the debug bar to a logo-sized black strip with the stylized red W, instead of a floating "Debug" button. Clicking the collapsed logo expands the bar back across the bottom of the page.
When the bar is open, chrome stays as specified: stylized W first, X last. The X animates a CSS
widthtransition from100%to40px(left-anchored), so the page underneath is revealed as the bar shrinks. Session restore still usessessionStorage(wdb-hidden), without playing the animation on load.Related Issue
Closes #3547
Type of Change
Feature Completeness Checklist
Signed-off-by:DebugBarCollapseSpecasserts logo-first / X-last chrome, no floating Debug button, and CSS/JS collapse hookschangelog.d/3547-debugbar-collapse.changed.mdTest Plan
wdb-logofirst andwdb-closelast#wdb-minimized/ floating "Debug" button.wdb-collapsedat40pxwith a width transition.wdb-collapsedinstead ofdisplay:nonebash tools/test-local.sh wheels.tests.specs.eventsApproach
Keep collapse inside
#wheels-debugbar(no sibling restore control).wdbMinimize()adds.wdb-collapsed;wdbLogoClick()restores when collapsed and still opens the Request panel when expanded. Overflow clips the tabs as the bar shrinks left, which is the slide.Collapsed extras (panels, reload-refused banner) are hidden with
#wheels-debugbar.wdb-collapsed > :not(.wdb-bar)so the CSS does not contain thedata-wdb-reload-refusedstring that the #3311 notice specs scan for.Out of scope: other debug tab content.