Repository navigation
Open the sidebar update card in a drawer on touch and match the footer icons - #7237
Merged
ymichael merged 2 commits intoNov 7, 2026
Merged
Conversation
Radix HoverCard can't open from a touch, and tapping the update button navigated straight to Settings › Updates while also focusing the link, which is HoverCard's open trigger. On devices without hover, the button now opens the same card through the responsive Popover: a bottom drawer on phones and a floating card on tablets. Details closes the drawer and the mobile sidebar. Desktop keeps the hover card and click-through to Updates. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ions The machine warning was still an outlined pill from the old chip row and the update button was a fixed 28px circle, so neither matched the footer's icon buttons or grew for touch. Both now render through SidebarMenuButton with the shared footer action class: the warning looks like the plugin attention glyph, and the update button keeps its filled circle at the footer's size and icon size. Adds a Ladle story with an offline machine next to pending updates. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/fix-mobile-sidebar-hover-interaction-thr_fmkuebcvab
branch
November 7, 2026 18:45
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.
Human comments
What was wrong
#7213 replaced the sidebar's update chips with one update button whose details live in a Radix HoverCard wrapped around a link to Settings › Updates. Touch devices have no hover, so on a phone the card never opened. Tapping the button navigated straight to Settings, and the tap also focused the link. Focus is one of HoverCard's open triggers, so the card could appear after the tap, away from the sidebar. #7213 also left the offline-machine warning as an outlined pill from the old chip row, and gave the update button its own 28px size with a 14px icon. Neither matched the footer's icon buttons, and neither grew for touch like the footer's other buttons.
What changed
useResponsiveOverlayBehavior().supportsHoveris false),SidebarUpdateButtonis a plain button. Tapping it opens the same card through the responsivePopover: the shared bottom drawer on phones, a floating card on tablets. Details closes the drawer and the mobile sidebar, then goes to Settings › Updates. Update all and Restart now work inside the drawer; Restart now's confirmation stacks as its own drawer. Desktop is unchanged: hovering opens the HoverCard, and a click goes to Updates. Both paths render one sharedSidebarUpdateCardBody.SidebarMenuButtonwithSIDEBAR_FOOTER_ACTION_CLASS. The warning looks like the existing plugin attention glyph: a plain warning-coloured icon with a tooltip. The update button keeps its filled circle but takes the footer size and icon size: 28px with a 16px icon on fine pointers, 36px with a 20px icon on coarse pointers. Each sits in its ownSidebarMenuItem, so footer spacing applies.SidebarUpdateButtonpropdefaultOpenwas never passed, so it is removed. A new Ladle story,sidebar/Update button › Updates with machine offline, shows the warning next to pending updates.There are no wire, CLI, or settings changes.
How you verified
New test in
SidebarUpdatesBadge.test.tsx: at a compact viewport, a tap opens the card without navigating, Update all starts the CLI update, and Details navigates, callsonNavigate, and closes the drawer.SidebarNavigationRail.test.tsxused to reach Updates by tapping the button at compact width; it now goes through the drawer's Details link. The badge tests now render insideSidebarProvider, whichSidebarMenuButtonrequires.pnpm exec turbo run test --filter=@bb/app -- src/components/sidebar/: 15 files, 146 tests pass.pnpm exec turbo run typecheck lint --filter=@bb/app: clean, with no new lint warnings.Ladle with dev-browser and CDP touch emulation:
Measured the footer controls:
pnpm start:worktreeon this branch with real provider CLI updates and a fake offline host in the dev database: the footer shows the warning and the update button at desktop and phone widths.🤖 Generated with Claude Code