From 9daf42036d1610298f95eb680e3f6f8d74cb135c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Thu, 6 Aug 2026 23:28:59 +0000 Subject: [PATCH] fix the dark-mode palette, the task tray, and the dead attach menu items MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --duck-dark inverts to near-white in dark mode, so every place the chat used it as a text or border colour was drawing light-on-light: the composer's own text, the question prompts, the launcher textarea, the session detail bar, the "send a message to start" placeholder. all of it moves to the semantic tokens, along with the raw red-500s, which had no dark story at all. the background task tray had seven labels below the 12px floor, including the live log itself, and hardcoded green-600/red-600/amber-500 where the shared tones exist. its detail panel was capped at a flat max-h-64 while the composer it docks in is shrink-0 and the transcript above is flex-1 — so in a short panel an open task could leave almost no conversation visible. capped against the viewport too. a failed background task drew the same CircleSlash as a stopped one: the two outcomes you most need to tell apart were one glyph. the attach menu offered four things and did two — "Text File" and "PDF" had no onSelect at all. text files now inline into the composer as a fenced block with the filename, size-capped and rejected if they turn out to be binary. PDF is removed rather than faked: nothing in the platform extracts PDF text. Co-Authored-By: Claude Opus 5 --- .../apps/Chat/ChatLauncher/ChatLauncher.tsx | 9 ++- .../src/apps/Chat/components/AttachButton.tsx | 65 ++++++++++++++++-- .../apps/Chat/components/AttachmentList.tsx | 10 +-- .../Chat/components/BackgroundTaskTray.tsx | 66 ++++++++++++------- .../src/apps/Chat/components/CopyButton.tsx | 2 +- .../src/apps/Chat/components/InputArea.tsx | 16 +++-- .../apps/Chat/components/MessageBubble.tsx | 8 +-- .../src/apps/Chat/components/MessageList.tsx | 2 +- .../apps/Chat/components/QuestionActivity.tsx | 14 ++-- .../apps/Chat/components/WebpageDialog.tsx | 2 +- .../src/apps/ChatHistory/ChatDetailPanel.tsx | 12 ++-- .../src/apps/ChatHistory/DirPickerModal.tsx | 23 +++++-- .../src/apps/ChatHistory/PwdSelector.tsx | 10 +-- 13 files changed, 161 insertions(+), 78 deletions(-) diff --git a/src/workspaces/officerdev/src/apps/Chat/ChatLauncher/ChatLauncher.tsx b/src/workspaces/officerdev/src/apps/Chat/ChatLauncher/ChatLauncher.tsx index 53c74bbe..23885579 100644 --- a/src/workspaces/officerdev/src/apps/Chat/ChatLauncher/ChatLauncher.tsx +++ b/src/workspaces/officerdev/src/apps/Chat/ChatLauncher/ChatLauncher.tsx @@ -72,7 +72,12 @@ export function ChatLauncher({
- setUrlDialogOpen(true)} /> + setUrlDialogOpen(true)} + onAttachText={(text) => setInput((prev) => (prev.trim() ? `${prev.replace(/\s+$/, '')}\n\n${text}` : text))} + />