Repository navigation
Add right-sidebar edge peek (extracted from #7423) - #8015
brennanb2025 wants to merge 11 commits into
Conversation
Arc-style hover peek: when the right sidebar is closed, hovering the window's right edge reveals it as a floating overlay without reflowing the editor; moving away dismisses it, and an explicit open pins it. Extracted unchanged from PR #7423 so it can be reviewed on its own. Co-authored-by: Orca <[email protected]>
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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. Comment |
Teach the edge-hover gesture via the existing toggle tooltip and a one-shot first-close coachmark, and make Arc-style edge peek opt-out in Appearance settings (default on).
|
Caution Review failedAn error occurred during the review process. Please try again later. 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. Comment |
|
Caution Review failedAn error occurred during the review process. Please try again later. 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. Comment |
Show a quiet right-edge tooltip for one second after the first sidebar close instead of a heavy sonner toast, and keep the one-shot dismiss behavior.
Point the one-shot hint at the titlebar toggle icon, hang it left so it stays on-screen, and mention Settings for opt-out.
Update tip copy for the edge gesture and add a clickable Settings › Appearance › Right Sidebar Edge Peek link that opens the control.
Keep the deep-link target as Appearance › Right Sidebar Edge Peek; only the visible label is shorter.
Keep sidebar-owned dialogs alive while interacting outside the overlay, isolate Git and file-watch subscriptions from the App render tree, and restore localization catalog parity for the one-shot tip.
Suppress arming during/after pointer and scroll gestures, skip when the pointer is over a vertical scrollbar gutter or Monaco/xterm thumbs, and re-check the cool-down when the open timer fires.
|
Moving this PR to draft because it has been untouched for more than 80 days (latest recorded PR activity or commit timestamp: 2026-07-17T02:25:34Z; checked on 2026-10-27). This keeps the review queue focused on active work while preserving the proposal. Please mark it ready for review when work resumes. |
|
Closing: its issue #14651 is closed. |
Extracted from
#7423(authored by @hmrserver; commit credit preserved) so the subagents feature could land independently while this UX receives focused review.What it does
Adds Arc-style edge peek for the right sidebar. When the sidebar is closed, hovering within 6px of the window's right edge for 250ms reveals it as a floating overlay without reflowing the editor. Moving left of the overlay dismisses it after 300ms; leaving or blurring the window dismisses immediately; explicitly opening the sidebar pins it.
Detection is window-geometry-based rather than an invisible DOM strip, so scrollbar clicks flush against the edge are not intercepted. Pressed-button movement and mousedown cancel arming, the top 36px titlebar zone is excluded for Windows/Linux custom chrome, portaled sidebar menus remain usable, and reduced-motion disables the slide-in animation.
The behavior is enabled by default and can be disabled under Appearance → Window & Sidebar → Advanced → Right Sidebar Edge Peek. A brief one-shot tooltip appears on the right edge after the user's first explicit close; successfully discovering the gesture dismisses it.
Electron validation
One-shot coachmark
Brief tooltip under the right-sidebar toggle after first close:
Close-up:
Edge peek overlay
Settings opt-out
Testing
pnpm typecheckpasses (node, CLI, and web).pnpm build:electron-vitepasses, including the production renderer bundle.oxlintandoxfmt --checkpass.AI Review Report
The branch was reconciled with current
mainbefore review so the feature preserves the latest git-status scheduler, watcher cancellation, Source Control, SSH/runtime, and terminal-creation architecture.Review found and fixed:
Performance checks:
Security Audit
This feature adds no IPC surface, subprocess, filesystem write, network endpoint, provider-specific behavior, or dependency. It uses renderer-local pointer events, transient non-persisted UI state, and existing settings persistence. The geometry detector intentionally renders no DOM hit target at the window edge.
Notes
pnpm lintcurrently reaches an unrelated current-mainexhaustiveness error inskill-freshness-group.tsx; the 30 PR files pass changed-file lint.