From 7f086c8685cf1ec3f4dd44bedc96fbd5c6928164 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 30 Apr 2026 16:59:02 -0400 Subject: [PATCH] fix(ui): drop dedicated stage column; render stage chip inline in message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding a separate STAGE column squeezed MESSAGE to 0px at the default 22/52/26 panel split — fixed columns + gaps totalled more than the list panel's available width. Render the stage chip inline at the start of the MESSAGE column when present, restoring the original 7-column grid. The bot's earlier "extra cell mismatch" complaint is still satisfied because there's no longer a row-only cell missing from the header. Also tighten three fixed columns to give MESSAGE more breathing room even on narrower saved panel layouts: - Module 140 -> 120 - Latency 72 -> 64 - Request 112 -> 100 --- ui/src/components/logs/logs-entry-list.tsx | 11 +++---- ui/src/components/logs/logs-row.tsx | 38 ++++++++++------------ ui/src/components/logs/logs-trace-row.tsx | 8 ++--- 3 files changed, 26 insertions(+), 31 deletions(-) diff --git a/ui/src/components/logs/logs-entry-list.tsx b/ui/src/components/logs/logs-entry-list.tsx index f8fe46dc..e88eb2f5 100644 --- a/ui/src/components/logs/logs-entry-list.tsx +++ b/ui/src/components/logs/logs-entry-list.tsx @@ -25,12 +25,12 @@ export interface LogsEntryListProps { } // Column layout shared by the header and every row variant: -// chevron(16) · time(88) · level(64) · stage(72) · module(140) · message(flex) · latency(72) · request(112) -// The dedicated `stage` column is rendered as an empty span on rows that -// have no stage hint so column edges align across leaf, trace head, and -// trace child rows alike. +// chevron(16) · time(88) · level(64) · module(120) · message(flex) · latency(64) · request(100) +// Stage chips render inline at the start of the MESSAGE column rather +// than as a dedicated column. Fixed columns kept lean so MESSAGE has +// breathing room at common saved-layout list-panel widths (~600px). const COLS_TEMPLATE = - 'grid grid-cols-[16px_88px_64px_72px_140px_minmax(0,1fr)_72px_112px] items-center gap-3 px-3'; + 'grid grid-cols-[16px_88px_64px_120px_minmax(0,1fr)_64px_100px] items-center gap-3 px-3'; export function LogsEntryList({ entries, @@ -152,7 +152,6 @@ export function LogsEntryList({