You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 60a72e2
Browse filesBrowse the repository at this point in the historyBrowse files
Improve sidebar and pane dragging and docking (#6078)
## Related issues
Follow-up to the local workspace interaction review; no linked issue.
## How AI was used in this PR
Codex isolated these changes from a larger workspace-layout experiment,
implemented Rich's Electron-review feedback, and ran lint, typecheck,
unit tests, and rendered interaction checks. Rich requested grouping
sidebar and chat/preview drag-to-hide behavior in this PR.
## Proposed Changes
- Let the sidebar, chat, and preview pane close when their divider is
dragged 64px beyond the minimum width and released. Reopening restores
the width from before that collapse gesture.
- Keep the sidebar hover flyout's entrance animation while docking it
immediately, preserving focus and scroll position without briefly
remounting the flyout.
- Keep the sidebar resize highlight crisp on Retina displays at its
existing thickness.
## Testing Instructions
1. In a desktop-width window, drag the sidebar divider to resize it.
Drag left past the collapse threshold and release; reopen the sidebar
and confirm its previous width returns. Releasing just before the
threshold should keep it open.
2. With chat and preview visible, drag their divider toward the preview
until it closes. Reopen it with the panel control and confirm the
previous split returns. Repeat in the other direction to hide chat, then
restore chat with the existing icon-only control.
3. Close the sidebar, hover its toggle to reveal the flyout, then click
to dock. The entrance should animate, but docking should be immediate
with no second slide. Check keyboard focus and scrolling.
4. Hover or focus the sidebar resize divider in light and dark mode on a
Retina display; the accent line should have crisp edges.
5. Narrow the window and confirm the sidebar still behaves as an
overlay.
Validation:
- Modified-file ESLint, `git diff --check`, and `npm run typecheck`
passed.
- 174 tests passed across sidebar layout, panel split frame, panel
controls, workspace behavior, and layout telemetry, including threshold
boundaries and preserved widths.
- Electron review verified sidebar hover/dock behavior and the highlight
in light/dark; pixel sampling at 2× showed three solid accent pixels
without blended edges.
- The PR branch's real-component browser preview passed light/dark
sidebar resize/collapse, immediate docking, chat/preview drag-to-hide in
both directions, and width restoration, with no page errors.
- Static-host behavior was not separately exercised.
## Pre-merge Checklist
- [x] Have you checked for TypeScript, React or other console errors?
0 commit comments