Sync shared snapshot from 7b5a4e6

This commit is contained in:
Gabriel20xx committed 2026-09-03 00:16:55 +02:00
1 parent 695ff742d6
commit 68f6dd5a87
47 files changed
+587 -726

No files matched your search

@@ -1,14 +1,8 @@
<script lang="ts">
import { Activity, ArrowRight, CheckCircle2, CloudDownload, Film, Upload, WandSparkles, X } from '@lucide/svelte'
import { onMount } from 'svelte'
import { notify } from '@gabriel20xx/web-ui'
import { Badge, Button, Card, EmptyState, Metric, notify, SectionTitle } from '@gabriel20xx/web-ui'
import { get, post } from '$lib/api'
import SectionTitle from '$lib/components/SectionTitle.svelte'
import Card from '$lib/components/ui/card.svelte'
import Button from '$lib/components/ui/button.svelte'
import Badge from '$lib/components/ui/badge.svelte'
import Metric from '$lib/components/ui/metric.svelte'
import EmptyState from '$lib/components/EmptyState.svelte'
type Json = Record<string, unknown>
@@ -258,7 +252,7 @@
label="Active queue"
value={queue.length}
detail="Waiting or running"
tone={queue.length ? 'warning' : 'default'}
variant={queue.length ? 'warning' : 'default'}
/><Metric label="Recent jobs" value={jobs.length} detail="Retained workflow history" /><Metric
label="Schedules"
value={schedules.length}
@@ -286,7 +280,7 @@
<div>
<div class="flex items-center gap-2">
<p class="text-sm font-medium text-fg">{schedule.name || schedule.tool || 'Workflow schedule'}</p>
<Badge tone={schedule.enabled === false ? 'neutral' : 'success'}
<Badge variant={schedule.enabled === false ? 'default' : 'success'}
>{schedule.enabled === false ? 'Paused' : 'Enabled'}</Badge
>
</div>
@@ -456,7 +450,7 @@
<div class="flex items-center justify-between gap-2">
<p class="truncate text-sm font-medium text-fg">{job.tool || 'workflow'}</p>
<Badge
tone={job.status === 'completed' || job.status === 'complete'
variant={job.status === 'completed' || job.status === 'complete'
? 'success'
: job.status === 'error'
? 'danger'