Some checks failed
CI / Unit & Component Tests (pull_request) Failing after 3m21s
CI / OCR Service Tests (pull_request) Successful in 29s
CI / Backend Unit Tests (pull_request) Failing after 3m1s
CI / Unit & Component Tests (push) Failing after 3m28s
CI / OCR Service Tests (push) Successful in 28s
CI / Backend Unit Tests (push) Failing after 3m3s
statusLabel() was a one-line alias for formatDocumentStatus() with no additional behaviour. Remove it and update DocumentStatusChip.svelte to call formatDocumentStatus() directly. Remove the corresponding alias test suite from the spec file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
445 B
Svelte
23 lines
445 B
Svelte
<script lang="ts">
|
|
import {
|
|
formatDocumentStatus,
|
|
statusDotClass,
|
|
type DocumentStatus
|
|
} from '$lib/document/documentStatusLabel';
|
|
|
|
type Props = {
|
|
status: DocumentStatus;
|
|
};
|
|
|
|
let { status }: Props = $props();
|
|
|
|
const dotClass = $derived(statusDotClass(status));
|
|
const label = $derived(formatDocumentStatus(status));
|
|
</script>
|
|
|
|
<span
|
|
class="hidden shrink-0 md:block {dotClass} h-4 w-4 rounded-full"
|
|
title={label}
|
|
aria-label={label}
|
|
></span>
|