Skip to content

Commit 3234269

Browse files
atrakhConvex, Inc.
authored andcommitted
dashboard: surface started at time for log metadata (#41738)
GitOrigin-RevId: e2f61334183a3bb1507899937d21cf21f1e77635
1 parent 28504cc commit 3234269

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

npm-packages/dashboard-common/src/features/logs/components/LogMetadata.tsx

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,25 @@ function RequestInfoList({
529529
</span>
530530
</li>
531531
<li className="grid grid-cols-2 items-center gap-2 py-1.5">
532-
<span className="text-content-secondary">Completed At</span>
532+
<span className="text-content-secondary">Started at</span>
533+
<span
534+
className={
535+
outcomeNode?.endTime && outcomeNode?.executionTime
536+
? "truncate text-content-primary"
537+
: "truncate text-content-tertiary"
538+
}
539+
>
540+
{outcomeNode?.endTime && outcomeNode?.executionTime ? (
541+
new Date(
542+
outcomeNode.endTime - outcomeNode.executionTime,
543+
).toLocaleString()
544+
) : (
545+
<Running />
546+
)}
547+
</span>
548+
</li>
549+
<li className="grid grid-cols-2 items-center gap-2 py-1.5">
550+
<span className="text-content-secondary">Completed at</span>
533551
<span
534552
className={
535553
outcomeNode?.endTime
@@ -627,7 +645,25 @@ function ExecutionInfoList({
627645
</span>
628646
</li>
629647
<li className="grid min-w-fit grid-cols-2 items-center gap-2 py-1.5">
630-
<span className="text-content-secondary">Completed At</span>
648+
<span className="text-content-secondary">Started at</span>
649+
<span
650+
className={
651+
outcomeNode?.endTime && outcomeNode?.executionTime
652+
? "truncate text-content-primary"
653+
: "truncate text-content-tertiary"
654+
}
655+
>
656+
{outcomeNode?.endTime && outcomeNode?.executionTime ? (
657+
new Date(
658+
outcomeNode.endTime - outcomeNode.executionTime,
659+
).toLocaleString()
660+
) : (
661+
<Running />
662+
)}
663+
</span>
664+
</li>
665+
<li className="grid min-w-fit grid-cols-2 items-center gap-2 py-1.5">
666+
<span className="text-content-secondary">Completed at</span>
631667
<span
632668
className={
633669
outcomeNode?.endTime

0 commit comments

Comments
 (0)