feat(documents): honest handling of undated documents in browse & search (Phase 6, #668) #682

Merged
marcel merged 19 commits from feature/668-undated-documents into docs/import-migration 2026-05-27 21:26:50 +02:00
Showing only changes of commit 19cd17d9cd - Show all commits

View File

@@ -187,16 +187,15 @@ function safeTagColor(color: string | null | undefined): string {
<!-- Right column — desktop only --> <!-- Right column — desktop only -->
<div class="hidden flex-col gap-2 pl-4 font-sans text-sm text-ink-2 sm:flex sm:w-44 lg:w-56"> <div class="hidden flex-col gap-2 pl-4 font-sans text-sm text-ink-2 sm:flex sm:w-44 lg:w-56">
<div> <div>
{#if doc.documentDate} <!-- An undated document is an absence, not an error (#668): DocumentDate
<DocumentDate defensively maps a null date to the "Datum unbekannt" badge, so we
iso={doc.documentDate} always render it — never a bare em-dash fallback. -->
precision={doc.metaDatePrecision} <DocumentDate
end={doc.metaDateEnd} iso={doc.documentDate}
showRaw={false} precision={doc.metaDatePrecision}
/> end={doc.metaDateEnd}
{:else} showRaw={false}
/>
{/if}
</div> </div>
<div> <div>
<span class="font-bold tracking-wide text-ink-3 uppercase">{m.docs_list_from()}</span> <span class="font-bold tracking-wide text-ink-3 uppercase">{m.docs_list_from()}</span>