From 4e9745d5c64354264b772b9c25b4d7c53216684a Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 13 Nov 2026 00:30:52 +1100 Subject: [PATCH] feat(chat): float the chat dock anywhere on screen (#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. --- ui/src/chat/ChatDock.vue | 391 +++++++++++++++++++++++++------- ui/src/chat/ChatDockLayout.ts | 176 ++++++++++++++ ui/test/chat-dock-float.test.ts | 203 +++++++++++++++++ 3 files changed, 693 insertions(+), 77 deletions(-) create mode 100644 ui/src/chat/ChatDockLayout.ts create mode 100644 ui/test/chat-dock-float.test.ts diff --git a/ui/src/chat/ChatDock.vue b/ui/src/chat/ChatDock.vue index c7b2fbbb6..dbf2b3d46 100644 --- a/ui/src/chat/ChatDock.vue +++ b/ui/src/chat/ChatDock.vue @@ -1,6 +1,6 @@