Skip to content

fix(desktop): ports chip no longer moves when a sidebar row is hovered - #8592

Merged
saddlepaddle merged 1 commit into
mainfrom
saddlepaddle/fix-port-icon-layout-8b9a43d9
Oct 17, 2026
Merged

saddlepaddle merged 1 commit into
mainfrom
saddlepaddle/fix-port-icon-layout-8b9a43d9

Conversation

@saddlepaddle

@saddlepaddle saddlepaddle commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Supersedes #8549 (conflicting with main).

Testing

  • Dev app over CDP, five rows seeded with real python3 -m http.server listeners (1, 2, 3, 5 and 12 ports):
    • Chip x: before, 244 idle → 224 on hover. After, 224 both idle and hovered on a ⌘3 row and on the 9+ row.
    • Ran 25 pointer journeys across chip, card and rows: brush, dwell, click toggle, into the card and out, far jumps, stopping in the safe-triangle cone, oscillation, drag-off, and scrolling under the pointer. Each one ended with the row hover card's suppression released. No console.error.
  • bun test in 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.

  • The delete button now reserves its width with invisible instead of display:none, and row content is reordered so the shortcut hint and diff stats sit left of the chip where they can't shift it.
  • The chip hover-suppression hook now holds the workspace hover card only while the chip's card is open, instead of from pointer-enter. Brushing across a chip no longer dismisses the row's workspace hover card, and a chip unmounting mid-hover still releases the hold.

Written for commit 99eaa82. Summary will update on new commits.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Bug Fixes
    • Workspace hover cards now remain suppressed only while a sidebar chip’s card is open, and are restored when it closes or is unmounted.
  • Style
    • Workspace status details now appear together in a single row.
    • The close button is hidden by default on unselected workspace rows and appears when you hover over or focus a row.

…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.
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12bd15a3-83cb-420f-a0de-14829d86e9d7
📥 Commits

Reviewing files that changed from the base of the PR and between b3162c8 and 99eaa82.

📒 Files selected for processing: 6
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarPortsChip/DashboardSidebarPortsChip.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/components/DashboardSidebarAgentsChip/DashboardSidebarAgentsChip.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/hooks/useDashboardSidebarChipHoverSuppression/useDashboardSidebarChipHoverSuppression.test.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/hooks/useDashboardSidebarChipHoverSuppression/useDashboardSidebarChipHoverSuppression.ts
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarLegacyExpandedWorkspaceRow/DashboardSidebarLegacyExpandedWorkspaceRow.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarLegacyExpandedWorkspaceRow/components/DashboardSidebarWorkspaceDiffStats/DashboardSidebarWorkspaceDiffStats.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

📝 Walkthrough

The changes update workspace-chip hover suppression and the layout of the legacy expanded workspace row. Chip cards now suppress the workspace hover card while open. The legacy row renders its status indicators in one flex row and changes how its close button is hidden.

Changes: Chip hover-card suppression

Layer / File(s) Summary
Open chip suppression lifecycle
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebarExpandedWorkspaceRow/hooks/useDashboardSidebarChipHoverSuppression/*, apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarPortsChip/DashboardSidebarPortsChip.tsx, apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/components/DashboardSidebarAgentsChip/DashboardSidebarAgentsChip.tsx
The hook starts and ends suppression when a chip card opens and closes. Pointer leave does not release suppression while the card is open. Unmounting an open chip releases suppression. Both chip triggers remove their pointer-enter handlers. Tests cover these behaviors.

Legacy expanded workspace row

Layer / File(s) Summary
Status and close-button layout
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarLegacyExpandedWorkspaceRow/DashboardSidebarLegacyExpandedWorkspaceRow.tsx, apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarLegacyExpandedWorkspaceRow/components/DashboardSidebarWorkspaceDiffStats/DashboardSidebarWorkspaceDiffStats.tsx
The status indicators now render in one flex row with their existing display conditions. The diff-stats container no longer uses justify-self-end. The close button is invisible by default and appears on hover or focus when the row is not selected.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Suggested reviewers: avipeltz

Merge Risk: ⚪ Minimal · up to 99eaa

This change fixes the ports chip shifting when a sidebar row is hovered and simplifies hover-card suppression. No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 37.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 6 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title uses conventional commit format and clearly identifies the primary fix: preventing the desktop ports chip from moving when a sidebar row is hovered.
Description check Passed The description clearly explains the layout problem, the hover-suppression changes, and the testing performed. It omits the template's Checklist section, but the description is otherwise complete and …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description clearly explains the layout problem, the hover-suppression changes, and the testing performed. It omits the template's Checklist section, but the description is otherwise complete and relevant.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ✅ Neon database branch

Thank you for your contribution! 🎉

@greptile-apps

greptile-apps Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Keeps the legacy sidebar’s ports chip in place when a workspace row is hovered.

  • The ports chip stays in place when you hover over a workspace row.
  • Chip cards suppress the workspace hover card only while they are open.

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

@saddlepaddle
saddlepaddle merged commit 94d9b9f into main Oct 17, 2026
17 checks passed

This branch was previously deployed

1 inactive deployment
preview — 99eaa823 Deployed Oct 17, 2026 by saddlepaddle via Deploy Web #12116
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