Compare commits
2 Commits
c6137a26a2
...
45e63307bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45e63307bb | ||
|
|
995471082e |
@@ -101,6 +101,7 @@
|
||||
"docs_list_unknown": "Unbekannt",
|
||||
"docs_group_undated": "Undatiert",
|
||||
"docs_filter_undated_only": "Nur undatierte",
|
||||
"docs_filter_undated_count_label": "{count} undatierte Dokumente",
|
||||
"docs_range_excludes_undated": "Ein Datumsfilter schließt undatierte Dokumente aus, da sie keinem Zeitraum zugeordnet werden können.",
|
||||
"docs_group_unknown": "Unbekannt",
|
||||
"doc_section_who_when": "Wer & Wann",
|
||||
|
||||
@@ -101,6 +101,7 @@
|
||||
"docs_list_unknown": "Unknown",
|
||||
"docs_group_undated": "Undated",
|
||||
"docs_filter_undated_only": "Undated only",
|
||||
"docs_filter_undated_count_label": "{count} undated documents",
|
||||
"docs_range_excludes_undated": "A date range filter excludes undated documents, because they cannot belong to any time span.",
|
||||
"docs_group_unknown": "Unknown",
|
||||
"doc_section_who_when": "Who & When",
|
||||
|
||||
@@ -101,6 +101,7 @@
|
||||
"docs_list_unknown": "Desconocido",
|
||||
"docs_group_undated": "Sin fecha",
|
||||
"docs_filter_undated_only": "Solo sin fecha",
|
||||
"docs_filter_undated_count_label": "{count} documentos sin fecha",
|
||||
"docs_range_excludes_undated": "Un filtro de intervalo de fechas excluye los documentos sin fecha, ya que no pueden pertenecer a ningún periodo.",
|
||||
"docs_group_unknown": "Desconocido",
|
||||
"doc_section_who_when": "Quién & Cuándo",
|
||||
|
||||
@@ -154,10 +154,11 @@ describe('DocumentRow', () => {
|
||||
await expect.element(page.getByTestId('doc-summary')).toBeVisible();
|
||||
});
|
||||
|
||||
it('renders an em-dash for missing documentDate', async () => {
|
||||
it("renders 'Datum unbekannt' for a missing documentDate", async () => {
|
||||
render(DocumentRow, { props: { item: baseItem({ documentDate: null }) } });
|
||||
|
||||
// Multiple em-dashes possible; just ensure at least one is rendered
|
||||
expect(document.body.textContent).toContain('—');
|
||||
// #668: an undated document renders the "Datum unbekannt" badge (via
|
||||
// <DocumentDate>), never a bare em-dash.
|
||||
await expect.element(page.getByText('Datum unbekannt').first()).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -281,12 +281,17 @@ $effect(() => {
|
||||
pages (not the page slice). Stays visible regardless of the toggle
|
||||
state so it advertises the triage backlog size (issue #668). -->
|
||||
{#if undatedCount > 0}
|
||||
<!-- The bare number "42" reads as meaningless next to the toggle label
|
||||
(a screen reader would announce "Nur undatierte 42"). The chip carries
|
||||
a self-describing accessible name ("42 undatierte Dokumente") and its
|
||||
purely-visual digit is hidden from assistive tech (issue #668, Leonie). -->
|
||||
<span
|
||||
data-testid="undated-count"
|
||||
aria-label={m.docs_filter_undated_count_label({ count: undatedCount })}
|
||||
class="inline-flex min-w-[1.5rem] items-center justify-center rounded-full px-1.5 py-0.5 text-[0.65rem] leading-none tabular-nums {undated
|
||||
? 'bg-primary-fg/20 text-primary-fg'
|
||||
: 'bg-line text-ink-2'}"
|
||||
>{undatedCount}</span
|
||||
><span aria-hidden="true">{undatedCount}</span></span
|
||||
>
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user