From 952e13677c9998751d3dff17231a6847cf219790 Mon Sep 17 00:00:00 2001 From: Script Generator Date: Fri, 26 Jun 2026 15:10:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(workspace):=20=E4=BC=98=E5=8C=96=E4=BB=8A?= =?UTF-8?q?=E6=97=A5=E6=97=A5=E6=8A=A5=E4=BE=A7=E6=A0=8F=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/workspace/DailyReportPanel.tsx | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/apps/web/components/workspace/DailyReportPanel.tsx b/apps/web/components/workspace/DailyReportPanel.tsx index 089c8af..39ba275 100644 --- a/apps/web/components/workspace/DailyReportPanel.tsx +++ b/apps/web/components/workspace/DailyReportPanel.tsx @@ -46,22 +46,26 @@ export function DailyReportPanel({ report }: Props) { ) : (
- {report.items.map((item) => ( -
-
-

{item.workContent}

- - {formatWorkHoursShort(item.hours)} - + {report.items.map((item) => { + const contextLabel = [item.productName, item.projectName, item.versionName].filter(Boolean).join(' / '); + + return ( +
+
+

{item.workContent}

+ + {formatWorkHoursShort(item.hours)} + +
+

{item.taskTitle}

+ {contextLabel && ( +

+ {contextLabel} +

+ )}
-

{item.taskTitle}

- {(item.productName || item.projectName || item.versionName) && ( -

- {[item.productName, item.projectName, item.versionName].filter(Boolean).join(' / ')} -

- )} -
- ))} + ); + })}
)}