From 101c4c45f5c31d166cf0913a12020b431a28e29c Mon Sep 17 00:00:00 2001 From: viettranx Date: Wed, 25 Mar 2026 12:13:06 +0700 Subject: [PATCH] =?UTF-8?q?style(chat):=20improve=20task=20card=20layout?= =?UTF-8?q?=20=E2=80=94=20full=20text,=20progress=20bar=20above=20step=20m?= =?UTF-8?q?essage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/web/src/components/chat/task-panel.tsx | 49 +++++++++++++---------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/ui/web/src/components/chat/task-panel.tsx b/ui/web/src/components/chat/task-panel.tsx index 6e9c0acf..38881807 100644 --- a/ui/web/src/components/chat/task-panel.tsx +++ b/ui/web/src/components/chat/task-panel.tsx @@ -24,14 +24,14 @@ export function TaskPanel({ tasks, open, onClose }: TaskPanelProps) { {/* Task list */} -
+
{tasks.length === 0 ? (

No active tasks

) : ( @@ -43,16 +43,14 @@ export function TaskPanel({ tasks, open, onClose }: TaskPanelProps) { } function TaskCard({ task }: { task: ActiveTeamTask }) { + const pct = task.progressPercent; + return ( -
-
- #{task.taskNumber} - {task.subject} -
- -
+
+ {/* Header: number + owner + counters */} +
+ #{task.taskNumber} {task.ownerDisplayName || task.ownerAgentKey || "unassigned"} - {(task.commentCount ?? 0) > 0 && ( @@ -67,21 +65,30 @@ function TaskCard({ task }: { task: ActiveTeamTask }) {
- {/* Progress bar */} - {task.progressPercent != null && ( + {/* Progress bar — above the step message */} + {pct != null && (
-
- {task.progressStep || "In progress"} - {task.progressPercent}% -
-
-
+
+
+
+
+ {pct}%
)} + + {/* Step message — full text, no truncation */} + {task.progressStep && ( +

+ {task.progressStep} +

+ )} + + {/* Subject — full text */} +

{task.subject}

); }