File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
apps/webapp/app/components/run Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,17 @@ export function RunTimeline({ run }: { run: TimelineSpanRun }) {
115
115
116
116
// Centralized function to build all timeline items
117
117
function buildTimelineItems ( run : TimelineSpanRun ) : TimelineItem [ ] {
118
- const state = run . isError ? "error" : run . isFinished ? "complete" : "inprogress" ;
118
+ let state : TimelineEventState ;
119
+ if ( run . isError ) {
120
+ state = "error" ;
121
+ } else if ( run . expiredAt ) {
122
+ state = "error" ;
123
+ } else if ( run . isFinished ) {
124
+ state = "complete" ;
125
+ } else {
126
+ state = "inprogress" ;
127
+ }
128
+
119
129
const items : TimelineItem [ ] = [ ] ;
120
130
121
131
// 1. Triggered Event
@@ -745,8 +755,6 @@ export function createTimelineSpanEventsFromSpanEvents(
745
755
746
756
if ( index === 0 ) {
747
757
markerVariant = "start-cap" ;
748
- } else if ( index === matchingSpanEvents . length - 1 ) {
749
- markerVariant = "end-cap-thick" ;
750
758
}
751
759
752
760
return {
You can’t perform that action at this time.
0 commit comments