Makes the chat dock a free-floating window on desktop-width screens.
Header drags the window to any position (not just edge pinning); the move handle also moves it by arrow keys (Shift = larger steps).
All 8 edges/corners resize by pointer and keyboard; each handle is role=separator, focusable, with aria-label, aria-orientation, aria-valuenow/min/max. The pinned split keeps its divider.
Explicit Left / Float / Right segmented control in the header (aria-pressed, labels "Pin chat to left edge" / "Float window" / "Pin chat to right edge").
Dragging near a side edge shows the snap preview and commits the pin on release.
Minimise in place: the collapsed bar stays at the window's position and is draggable (padding + move handle); Ctrl+/ toggles open/closed; Escape still collapses.
Layout (mode, x, y, w, h) persists via useStorage under archie.chat.dock.v2; the old archie.chat.dock {side,width} key is migrated and removed.
Invariants kept: dock stays mounted outside the app shell (session and in-flight turns survive navigation), --chat-dock-clear reserves collapsed-dock height (0 when the bar floats above the bottom quarter), --chat-pin-l/r still reflow the page when pinned. Phone width keeps the full-width bottom bar. App.vue unchanged.
Files: ui/src/chat/ChatDock.vue, ui/src/chat/ChatDockLayout.ts (new pure geometry/persistence module, ChatDock-prefixed), ui/test/chat-dock-float.test.ts (new).
Verified: pnpm test (113 pass, incl. 9 new dock-layout tests), pnpm run typecheck, pnpm run build, task check (exit 0) on this tree. Browser check against the vite dev server (headless Chrome, dock mounted in isolation because the local backend requires org setup): drag-anywhere with snap commit to right pin, unpin by dragging to the middle, 8 handles with correct ARIA in float mode, keyboard resize/move, Left/Float/Right switching pin vars, minimise in place + bar drag, Escape, Ctrl+/ toggle, legacy-key migration in localStorage, phone width keeps the bottom bar.
Makes the chat dock a free-floating window on desktop-width screens.
- Header drags the window to any position (not just edge pinning); the move handle also moves it by arrow keys (Shift = larger steps).
- All 8 edges/corners resize by pointer and keyboard; each handle is role=separator, focusable, with aria-label, aria-orientation, aria-valuenow/min/max. The pinned split keeps its divider.
- Explicit Left / Float / Right segmented control in the header (aria-pressed, labels "Pin chat to left edge" / "Float window" / "Pin chat to right edge").
- Dragging near a side edge shows the snap preview and commits the pin on release.
- Minimise in place: the collapsed bar stays at the window's position and is draggable (padding + move handle); Ctrl+/ toggles open/closed; Escape still collapses.
- Layout (mode, x, y, w, h) persists via useStorage under archie.chat.dock.v2; the old archie.chat.dock {side,width} key is migrated and removed.
- Invariants kept: dock stays mounted outside the app shell (session and in-flight turns survive navigation), --chat-dock-clear reserves collapsed-dock height (0 when the bar floats above the bottom quarter), --chat-pin-l/r still reflow the page when pinned. Phone width keeps the full-width bottom bar. App.vue unchanged.
Files: ui/src/chat/ChatDock.vue, ui/src/chat/ChatDockLayout.ts (new pure geometry/persistence module, ChatDock-prefixed), ui/test/chat-dock-float.test.ts (new).
Verified: pnpm test (113 pass, incl. 9 new dock-layout tests), pnpm run typecheck, pnpm run build, task check (exit 0) on this tree. Browser check against the vite dev server (headless Chrome, dock mounted in isolation because the local backend requires org setup): drag-anywhere with snap commit to right pin, unpin by dragging to the middle, 8 handles with correct ARIA in float mode, keyboard resize/move, Left/Float/Right switching pin vars, minimise in place + bar drag, Escape, Ctrl+/ toggle, legacy-key migration in localStorage, phone width keeps the bottom bar.
Closes #1904
The chat dock is now a free-floating window on desktop-width screens:
the header drags it to any position, all eight edges and corners resize
it by pointer and keyboard (role=separator with aria-orientation and
valuenow), and Left / Float / Right controls in the header switch
modes explicitly. Dragging near a side edge shows the pinned split
preview and commits on release; minimising leaves the bar in place and
draggable; Ctrl+/ toggles the window. The layout persists under
archie.chat.dock.v2, migrating and removing the old archie.chat.dock
key. Phone width keeps the full-width bottom bar.
The chat dock is now a free-floating window on desktop-width screens:
the header drags it to any position, all eight edges and corners resize
it by pointer and keyboard (role=separator with aria-orientation and
valuenow), and Left / Float / Right controls in the header switch
modes explicitly. Dragging near a side edge shows the pinned split
preview and commits on release; minimising leaves the bar in place and
draggable; Ctrl+/ toggles the window. The layout persists under
archie.chat.dock.v2, migrating and removing the old archie.chat.dock
key. Phone width keeps the full-width bottom bar.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Makes the chat dock a free-floating window on desktop-width screens.
Files: ui/src/chat/ChatDock.vue, ui/src/chat/ChatDockLayout.ts (new pure geometry/persistence module, ChatDock-prefixed), ui/test/chat-dock-float.test.ts (new).
Verified: pnpm test (113 pass, incl. 9 new dock-layout tests), pnpm run typecheck, pnpm run build, task check (exit 0) on this tree. Browser check against the vite dev server (headless Chrome, dock mounted in isolation because the local backend requires org setup): drag-anywhere with snap commit to right pin, unpin by dragging to the middle, 8 handles with correct ARIA in float mode, keyboard resize/move, Left/Float/Right switching pin vars, minimise in place + bar drag, Escape, Ctrl+/ toggle, legacy-key migration in localStorage, phone width keeps the bottom bar.
Closes #1904