Skip to content

Commit 53b8ecf

Browse files
committed
Completed waitpoints display better
1 parent 31293b9 commit 53b8ecf

File tree

1 file changed

+18
-11
lines changed
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.v3.$projectParam.runs.$runParam.spans.$spanParam

1 file changed

+18
-11
lines changed

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

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,18 +1136,25 @@ function SpanEntity({ span }: { span: Span }) {
11361136
</div>
11371137
</Property.Value>
11381138
</Property.Item>
1139+
{span.waitpoint.status === "PENDING" ? (
1140+
<CompleteWaitpointForm waitpoint={span.waitpoint} />
1141+
) : span.waitpoint.output ? (
1142+
<PacketDisplay
1143+
title="Output"
1144+
data={span.waitpoint.output}
1145+
dataType={span.waitpoint.outputType}
1146+
/>
1147+
) : span.waitpoint.completedAfter ? (
1148+
<Property.Item>
1149+
<Property.Label>Completed at</Property.Label>
1150+
<Property.Value>
1151+
<DateTimeAccurate date={span.waitpoint.completedAfter} />
1152+
</Property.Value>
1153+
</Property.Item>
1154+
) : (
1155+
"Completed with no output"
1156+
)}
11391157
</Property.Table>
1140-
{span.waitpoint.status === "PENDING" ? (
1141-
<CompleteWaitpointForm waitpoint={span.waitpoint} />
1142-
) : span.waitpoint.output ? (
1143-
<PacketDisplay
1144-
title="Output"
1145-
data={span.waitpoint.output}
1146-
dataType={span.waitpoint.outputType}
1147-
/>
1148-
) : (
1149-
"No output"
1150-
)}
11511158
</>
11521159
);
11531160
}

0 commit comments

Comments
 (0)