feat(ST-1111.7): add job status pill with spinner on solo task cards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b9c65eb145
commit
dace4271a3
2 changed files with 45 additions and 4 deletions
21
components/shared/job-status.ts
Normal file
21
components/shared/job-status.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { ClaudeJobStatusApi } from '@/lib/job-status'
|
||||
|
||||
export const JOB_STATUS_LABELS: Record<ClaudeJobStatusApi, string> = {
|
||||
queued: 'Wacht…',
|
||||
claimed: 'Geclaimd…',
|
||||
running: 'Bezig…',
|
||||
done: 'Klaar',
|
||||
failed: 'Mislukt',
|
||||
cancelled: 'Geannuleerd',
|
||||
}
|
||||
|
||||
export const JOB_STATUS_COLORS: Record<ClaudeJobStatusApi, string> = {
|
||||
queued: 'bg-status-todo/15 text-status-todo border-status-todo/30',
|
||||
claimed: 'bg-status-in-progress/15 text-status-in-progress border-status-in-progress/30',
|
||||
running: 'bg-status-in-progress/15 text-status-in-progress border-status-in-progress/30',
|
||||
done: 'bg-status-done/15 text-status-done border-status-done/30',
|
||||
failed: 'bg-status-blocked/15 text-status-blocked border-status-blocked/30',
|
||||
cancelled: 'bg-muted text-muted-foreground border-border',
|
||||
}
|
||||
|
||||
export const JOB_STATUS_ACTIVE = new Set<ClaudeJobStatusApi>(['queued', 'claimed', 'running'])
|
||||
Loading…
Add table
Add a link
Reference in a new issue