Skip to content

Improve sidebar and pane dragging and docking - #6078

Merged
richtabor merged 3 commits into
trunkfrom
improve-sidebar-drag-and-docking
Nov 19, 2026
Merged

richtabor merged 3 commits into
trunkfrom
improve-sidebar-drag-and-docking

Conversation

@richtabor

@richtabor richtabor commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Have you checked for TypeScript, React or other console errors?

Copilot AI balanced review requested due to automatic review settings November 19, 2026 15:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@richtabor richtabor changed the title Improve sidebar dragging, docking, and divider clarity Improve sidebar and pane dragging and docking Nov 19, 2026
@richtabor
richtabor merged commit 60a72e2 into trunk Nov 19, 2026
11 checks passed
@richtabor
richtabor deleted the improve-sidebar-drag-and-docking branch November 19, 2026 21:59
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.

2 participants