Repository navigation
fix(desktop): ports chip no longer moves when a sidebar row is hovered - #8592
Conversation
…er moves on row hover idle, so the chip still jumped 20 px toward the row edge on every hover. Take #8549's shape instead: one flex row of queued badge + diff stats → ⌘N hint → ports chip → ×, where only the × reserves its width (invisible, not hidden); the hint and diff stats swap to the chip's left where they cannot move it. On a bulk-selected row the × stays rendered-but-invisible for the same reason. The chip hover-suppression hook loses the pointer-enter hold and the `suppressWorkspaceCardOn` option: the hold begins in onOpenChange(true) and ends on close for both the ports and agents chips, so brushing across a chip no longer dismisses the row's workspace hover card. Measured over CDP on five seeded rows (1, 2, 3, 5 and 12 ports): chip x is 224 idle and hovered on a ⌘3 row and on the 9+ row; before the swap it was 244 → 224.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryKeeps the legacy sidebar’s ports chip in place when a workspace row is hovered.
No actionable issues were found. This review checked the code paths; it did not repeat the reported browser checks or test run. Reviews (1) · Last reviewed commit: "fix(desktop): reserve the delete button'..." · Reviewed by Greptile |
Summary
×to its right wasdisplay:noneuntil hover. The×now reserves its width (invisible, nothidden), and the⌘Nhint and diff stats sit left of the chip, where they can't move it. This is fix(desktop): sidebar ports chip sits left of ×, hover card survives a brush across chips #8549's layout, applied toDashboardSidebarLegacyExpandedWorkspaceRow— the row that's shown while the new-sidebar experiment is off. The experiment's redesigned row from feat(desktop): cloud workspaces in the sidebar, a single-indicator row, and environments that set themselves up #8528 is untouched.useDashboardSidebarChipHoverSuppressiondrops the pointer-enter hold and thesuppressWorkspaceCardOnoption. The hold now starts when the chip's card opens and ends when it closes, for both the ports and agents chips. So brushing across a chip doesn't dismiss the row's workspace hover card.Supersedes #8549 (conflicting with main).
Testing
python3 -m http.serverlisteners (1, 2, 3, 5 and 12 ports):⌘3row and on the9+row.console.error.bun testin the DashboardSidebar folder: 208 pass. Biome is clean on the changed files.Summary by cubic
Fixes the sidebar ports chip jumping ~20 px left whenever a row is hovered, because the delete button next to it was hidden until hover.
invisibleinstead ofdisplay:none, and row content is reordered so the shortcut hint and diff stats sit left of the chip where they can't shift it.Written for commit 99eaa82. Summary will update on new commits.
Summary by CodeRabbit