fix: show a running job with a fading play ring on home and the runs page (#12671)

* fix: show a play icon, not a spinner, for running items on home

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: fade the ring of a running job's play icon on home and the runs page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Guilhem
2026-11-30 14:21:06 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent a57f2df2c8
commit e3d5b04350
4 changed files with 25 additions and 16 deletions
@@ -1,16 +1,9 @@
<script lang="ts">
import { goto } from '$app/navigation'
import { workspaceStore } from '$lib/stores'
import {
CircleCheck,
CircleSlash,
CircleX,
EyeOff,
Hourglass,
Loader2,
Wrench
} from 'lucide-svelte'
import { CircleCheck, CircleSlash, CircleX, EyeOff, Hourglass, Wrench } from 'lucide-svelte'
import { Button } from '$lib/components/common'
import RunningStatusIcon from '$lib/components/runs/RunningStatusIcon.svelte'
import DropdownV2 from '$lib/components/DropdownV2.svelte'
import { useRoleCapabilities } from '$lib/operatorWriteRights'
import {
@@ -114,11 +107,9 @@
>
<span class="flex w-3.5 shrink-0 justify-center">
{#if item.status === 'running'}
<Loader2 size={14} class="animate-spin text-yellow-500" />
<span class="flex text-yellow-500" title="Running"><RunningStatusIcon /></span>
{:else if item.status === 'suspended'}
<span class="text-violet-500" title="Awaiting approval"
><Hourglass size={14} /></span
>
<span class="text-violet-500" title="Awaiting approval"><Hourglass size={14} /></span>
{:else if failing}
<CircleX size={14} class="text-red-500" />
{:else if item.status === 'resolved'}
@@ -9,11 +9,11 @@
Gauge,
Hourglass,
Moon,
Play,
ShieldQuestion,
Wrench,
X
} from 'lucide-svelte'
import RunningStatusIcon from './RunningStatusIcon.svelte'
import type { Job } from '$lib/gen'
import { isSuspended } from '../agentRequest'
@@ -92,7 +92,7 @@
</Badge>
{:else if 'running' in job && job.running}
<Badge color="yellow" {roundedFull} baseClass={roundedFull ? '' : '!px-1.5'}>
<Play size={14} />
<RunningStatusIcon />
</Badge>
{:else if 'running' in job && heldByConcurrency}
<Badge
@@ -0,0 +1,13 @@
<script lang="ts">
import { CirclePlay } from 'lucide-svelte'
interface Props {
size?: number
}
let { size = 14 }: Props = $props()
</script>
<!-- A running job: only the circle fades, so the play triangle stays legible. A spinner here would
read as "still loading", which is what it means everywhere else in the app. -->
<CirclePlay {size} class="motion-safe:[&_circle]:animate-ring-fade" />
+6 -1
View File
@@ -552,7 +552,8 @@ const config = {
'spin-counter-clockwise': 'spin-counter-clockwise 1s linear infinite',
'zoom-in': 'zoom-in 0.25s ease-in-out',
'fade-out': 'fade-out 1s ease-in-out',
shake: 'shake 0.2s linear both'
shake: 'shake 0.2s linear both',
'ring-fade': 'ring-fade 1.6s ease-in-out infinite'
},
keyframes: {
'spin-counter-clockwise': {
@@ -569,6 +570,10 @@ const config = {
'fade-out': {
'0%': { opacity: '1' },
'100%': { opacity: '0' }
},
'ring-fade': {
'0%, 100%': { opacity: '1' },
'50%': { opacity: '0.2' }
}
}
}