Repository navigation
Replace sidebar row properties with Pin and Archive on hover (851-3417) - #853
Merged
pondorasti merged 2 commits intoOct 28, 2026
Conversation
Hovering a Code sidebar workspace row now cross-fades its trailing properties (PR badge, machine icon) into its hover actions in the same spot: Pin or Unpin, then Archive, for active workspaces, and Restore for archived ones. A hidden copy of the actions reserves their width, so the title no longer shifts or re-truncates on hover. The actions are still inserted only while hovered, so the accessibility tree is unchanged. Also delete SidebarWorkspaceTabRow, which has had no callers since #834. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The trailing slot now takes a minimum width worked out from the action count (two slots and their spacing for active rows, one for archived) instead of laying out a hidden duplicate of the actions. The minimum keeps an archived row's PR badge and machine icon unclipped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
pondorasti
force-pushed
the
alexandru/851-3417-code-sidebar-item-hover-should-replace-existing-properties
branch
from
October 28, 2026 00:31
cc95de1 to
6a74192
Compare
pondorasti
added a commit
that referenced
this pull request
Oct 29, 2026
#853 kept a sidebar workspace row's trailing slot as wide as its hover actions even when the row wasn't hovered, so titles and subtitles truncated early next to empty space. The row now shows its properties at their natural width and swaps them for Pin and Archive only while hovered. Fixes 851-3667 Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Fixes 851-3417
Summary
accessibilityHidden, so VoiceOver sees the same treeisHoverEnabled: !isReordering)SidebarWorkspaceTabRow.swift, which has had no callers since Generate landing and App Store screenshots from the real app #834. Everything it used (ChatSessionLeadingIcon,ChatSessionUnreadMenuItem,AgentStatusIndicator,PluginIconView,HarnessIcon,FileIcon) still has other callers, so nothing else goes.Tophat
macOS dev app (
bun run dev:macos), on main and on this branch, with the same fixture workspaces:onTogglePinas the context menu and the accessibility "Pin" action, and I did verify that path.Visuals (Linear uploads, also attached to the ticket):
The pre-commit
bun run checkpassed: format, lint, comments, ratchet, boundaries,swift:format:check,swift:lintanddev:scripts:test.Follow-up commit (reserve the actions' width with
.frame(minWidth:)instead of a hidden copy): committed with--no-verifybecause the machine is CPU-constrained. I ranswift format lint --strictand SwiftLint (with the repo baseline) on the touched file, and the macOS dev build compiled. No sidebar test covers this view. In the dev app the layout is unchanged: active rows reserve two slots, and an archived row keeps both its PR badge and machine icon.Known issue, tracked as 851-3459: pinning, unpinning or archiving moves a row under a stationary pointer, and hover can go stale: the moved row keeps its actions shown, and the row that slides under the cursor shows none until the mouse moves. It needs geometry-driven pointer re-checks in the shared hover helper, so it's out of scope here.
🤖 Generated with Claude Code