Skip to content

Commit efe359b

Browse files
committed
Added progress state to dequeued
1 parent 9c651b1 commit efe359b

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

apps/webapp/app/components/run/RunTimeline.tsx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,19 @@ function EventMarker({
387387
? "bg-success"
388388
: state === "error"
389389
? "bg-error"
390+
: state === "inprogress"
391+
? "animate-tile-scroll-offset bg-pending"
390392
: "bg-text-dimmed"
391393
)}
394+
style={
395+
state === "inprogress"
396+
? {
397+
height: "100%",
398+
backgroundImage: `url(${tileBgPath})`,
399+
backgroundSize: "8px 8px",
400+
}
401+
: undefined
402+
}
392403
/>
393404
<div
394405
className={cn(
@@ -397,6 +408,8 @@ function EventMarker({
397408
? "border-success"
398409
: state === "error"
399410
? "border-error"
411+
: state === "inprogress"
412+
? "border-pending"
400413
: "border-text-dimmed"
401414
)}
402415
/>
@@ -407,8 +420,19 @@ function EventMarker({
407420
? "bg-success"
408421
: state === "error"
409422
? "bg-error"
423+
: state === "inprogress"
424+
? "animate-tile-scroll-offset bg-pending"
410425
: "bg-text-dimmed"
411426
)}
427+
style={
428+
state === "inprogress"
429+
? {
430+
height: "100%",
431+
backgroundImage: `url(${tileBgPath})`,
432+
backgroundSize: "8px 8px",
433+
}
434+
: undefined
435+
}
412436
/>
413437
</>
414438
);
@@ -431,7 +455,7 @@ function EventMarker({
431455
: state === "error"
432456
? "bg-error"
433457
: state === "inprogress"
434-
? "animate-tile-move-offset bg-pending"
458+
? "animate-tile-scroll-offset bg-pending"
435459
: "bg-text-dimmed"
436460
)}
437461
style={

apps/webapp/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ module.exports = {
260260
"accordion-down": "accordion-down 0.2s ease-out",
261261
"accordion-up": "accordion-up 0.2s ease-out",
262262
"tile-scroll": "tile-move 0.5s infinite linear",
263-
"tile-move-offset": "tile-move-offset 0.5s infinite linear",
263+
"tile-scroll-offset": "tile-move-offset 0.5s infinite linear",
264264
},
265265
backgroundImage: {
266266
"gradient-radial": "radial-gradient(closest-side, var(--tw-gradient-stops))",

0 commit comments

Comments
 (0)