diff --git a/frontend/src/lib/components/dataset-review/CompiledSQLPreview.svelte b/frontend/src/lib/components/dataset-review/CompiledSQLPreview.svelte index e2facbe0..d3c9b37b 100644 --- a/frontend/src/lib/components/dataset-review/CompiledSQLPreview.svelte +++ b/frontend/src/lib/components/dataset-review/CompiledSQLPreview.svelte @@ -22,6 +22,7 @@ @@ -23,20 +24,12 @@
{job.description}
diff --git a/frontend/src/routes/validation-tasks/[policyId]/+page.svelte b/frontend/src/routes/validation-tasks/[policyId]/+page.svelte index c1dfd2b9..11cbf363 100644 --- a/frontend/src/routes/validation-tasks/[policyId]/+page.svelte +++ b/frontend/src/routes/validation-tasks/[policyId]/+page.svelte @@ -14,7 +14,7 @@ import { goto } from '$app/navigation'; import { ROUTES } from '$lib/routes'; import { t } from '$lib/i18n/index.svelte.js'; - import { EmptyState } from '$lib/ui'; + import { Badge, EmptyState } from '$lib/ui'; import { addToast } from '$lib/toasts.svelte.js'; import { triggerValidationRun as triggerRun, deleteValidationTask as deleteTask, getValidationRuns as fetchRuns } from '$lib/api.js'; import { page } from '$app/state'; @@ -43,22 +43,7 @@ // Derived status let isScheduled = $derived(task?.schedule_days?.length > 0); - /** @param {string} status */ - function getStatusBadgeClass(status) { - const map = { - PASS: 'bg-success-light text-success', - WARN: 'bg-warning-light text-warning', - FAIL: 'bg-destructive-light text-destructive', - UNKNOWN: 'bg-surface-muted text-text-muted', - RUNNING: 'bg-primary-light text-primary', - PENDING: 'bg-warning-light text-warning', - COMPLETED: 'bg-success-light text-success', - }; - return map[status] || 'bg-surface-muted text-text-muted'; - } - /** @param {string} status */ - const getRunStatusBadgeClass = getStatusBadgeClass; /** @param {number} ms */ function formatDuration(ms) { @@ -166,22 +151,14 @@