Skip to content

Commit 9c3aeb3

Browse files
authored
Adds friendly formatting for max duration values (#2011)
1 parent df0bce3 commit 9c3aeb3

File tree

1 file changed

+6
-1
lines changed
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam

1 file changed

+6
-1
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam.spans.$spanParam/route.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,12 @@ function RunBody({
647647
<Property.Item>
648648
<Property.Label>Max duration</Property.Label>
649649
<Property.Value>
650-
{run.maxDurationInSeconds ? `${run.maxDurationInSeconds}s` : "–"}
650+
{run.maxDurationInSeconds
651+
? `${run.maxDurationInSeconds}s (${formatDurationMilliseconds(
652+
run.maxDurationInSeconds * 1000,
653+
{ style: "short" }
654+
)})`
655+
: "–"}
651656
</Property.Value>
652657
</Property.Item>
653658
<Property.Item>

0 commit comments

Comments
 (0)