From d6863d1228ca85263c88efcfa8db31cdf442e1cf Mon Sep 17 00:00:00 2001 From: hamzamerzic <10846014+hamzamerzic@users.noreply.github.com> Date: Tue, 21 Jul 2026 22:43:40 +0000 Subject: [PATCH 1/5] Fix chat activity timing and visual hierarchy --- .../components/ChatView/ActivityStretch.jsx | 7 +++- frontend/src/components/ChatView/ChatView.css | 32 +++++++++++++------ .../components/ChatView/MessageSources.jsx | 5 +-- .../src/components/ChatView/ToolBlock.jsx | 3 +- .../__tests__/accessibilityHardening.test.js | 4 ++- .../ChatView/__tests__/streamReducers.test.js | 20 ++++++++++++ .../__tests__/toolBlockPresentation.test.js | 8 +++++ .../src/components/ChatView/streamReducers.js | 13 ++++++-- 8 files changed, 73 insertions(+), 19 deletions(-) diff --git a/frontend/src/components/ChatView/ActivityStretch.jsx b/frontend/src/components/ChatView/ActivityStretch.jsx index 96c09673b..0f4570208 100644 --- a/frontend/src/components/ChatView/ActivityStretch.jsx +++ b/frontend/src/components/ChatView/ActivityStretch.jsx @@ -138,7 +138,12 @@ function SingleActivity({ entry, chatId, live }) { && Object.keys(item.subagent).length > 0 return ( <> - + {hasHelpers && } ) diff --git a/frontend/src/components/ChatView/ChatView.css b/frontend/src/components/ChatView/ChatView.css index 7c44f21a8..9bcd53915 100644 --- a/frontend/src/components/ChatView/ChatView.css +++ b/frontend/src/components/ChatView/ChatView.css @@ -754,6 +754,27 @@ border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border-light)); /* CONTRACT: 1px line mixing accent with hairline */ } +/* A lone activity is already one disclosure row; putting a card boundary + around it adds hierarchy without information and makes a single command + look heavier than the surrounding answer. Multi-step children keep their + timeline rail, while the one-step surface stays the same quiet line used by + the collapsed activity summary. Its expanded detail remains available. */ +.chat__tool--compact.chat__tool--running, +.chat__tool--compact.chat__tool--done { + background: none; + border: 0; + border-radius: 0; +} + +.chat__tool--compact .chat__tool-header { + padding-inline: 0; +} + +.chat__tool--compact .chat__tool-detail { + margin-inline-start: 20px; + padding-inline: 0; +} + /* The header is a real