From 29e263ab23e6a0c4dbafc44ff58a671d5d4812d4 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 | 442 ++++++++++++++++++++++++-------- ui/src/chat/ChatDockLayout.ts | 200 +++++++++++++++ ui/test/chat-dock-float.test.ts | 243 ++++++++++++++++++ 3 files changed, 784 insertions(+), 101 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 1cc9f9d1a..1a6b96e8d 100644 --- a/ui/src/chat/ChatDock.vue +++ b/ui/src/chat/ChatDock.vue @@ -1,6 +1,6 @@