File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
routes/resources.orgs.$organizationSlug.projects.v3.$projectParam.runs.$runParam.spans.$spanParam Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import {
4040} from "~/utils/pathBuilder" ;
4141import { TraceSpan } from "~/utils/taskEvent" ;
4242import { SpanLink } from "~/v3/eventRepository.server" ;
43- import { isFinalRunStatus } from "~/v3/taskStatus" ;
43+ import { isFailedRunStatus , isFinalRunStatus } from "~/v3/taskStatus" ;
4444import { RunTimelineEvent , RunTimelineLine } from "./InspectorTimeline" ;
4545import { RunTag } from "./RunTag" ;
4646import { TaskRunStatusCombo } from "./TaskRunStatus" ;
@@ -479,6 +479,7 @@ function RunTimeline({ run }: { run: RawRun }) {
479479 const updatedAt = new Date ( run . updatedAt ) ;
480480
481481 const isFinished = isFinalRunStatus ( run . status ) ;
482+ const isError = isFailedRunStatus ( run . status ) ;
482483
483484 return (
484485 < div className = "min-w-fit max-w-80" >
@@ -535,7 +536,7 @@ function RunTimeline({ run }: { run: RawRun }) {
535536 < RunTimelineEvent
536537 title = "Finished"
537538 subtitle = { < DateTimeAccurate date = { updatedAt } /> }
538- state = " complete"
539+ state = { isError ? "error" : " complete"}
539540 />
540541 </ >
541542 ) : (
Original file line number Diff line number Diff line change 77import { RUNNING_STATUSES } from "~/components/runs/v3/TaskRunStatus" ;
88import { eventRepository } from "~/v3/eventRepository.server" ;
99import { machinePresetFromName } from "~/v3/machinePresets.server" ;
10- import { FINAL_ATTEMPT_STATUSES , isFinalRunStatus } from "~/v3/taskStatus" ;
10+ import { FINAL_ATTEMPT_STATUSES , isFailedRunStatus , isFinalRunStatus } from "~/v3/taskStatus" ;
1111import { BasePresenter } from "./basePresenter.server" ;
1212import { getMaxDuration } from "~/v3/utils/maxDuration" ;
1313
@@ -294,6 +294,7 @@ export class SpanPresenter extends BasePresenter {
294294 usageDurationMs : run . usageDurationMs ,
295295 isFinished,
296296 isRunning : RUNNING_STATUSES . includes ( run . status ) ,
297+ isError : isFailedRunStatus ( run . status ) ,
297298 payload,
298299 payloadType : run . payloadType ,
299300 output,
Original file line number Diff line number Diff line change @@ -857,7 +857,7 @@ function RunTimeline({ run }: { run: SpanRun }) {
857857 < RunTimelineEvent
858858 title = "Finished"
859859 subtitle = { < DateTimeAccurate date = { run . updatedAt } /> }
860- state = " complete"
860+ state = { run . isError ? "error" : " complete"}
861861 />
862862 </ >
863863 ) : (
You can’t perform that action at this time.
0 commit comments