feat(timeline): show provenance token on the event pill (REQ-007)

The derived/curated pill subtitle now reads "{date} · abgeleitet" or
"{date} · kuratiert", keyed off entry.derived so a reader sees both the
date and whether the event was derived from Person data or curated. Only
the single provenance token ships; the spec sheet's "· persönlich" /
"· SEASON" annotations stay out (already covered by the ★ glyph + mint
border and not production UI).

Refs #833
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-06-14 10:42:33 +02:00
parent 808d6efa1a
commit 08d8896cd1
2 changed files with 39 additions and 1 deletions

View File

@@ -16,6 +16,11 @@ let { entry }: { entry: TimelineEntryDTO } = $props();
const config = $derived(getAccentConfig(entry));
const dateLabel = $derived(timelineDateLabel(entry.eventDate, entry.precision, entry.eventDateEnd));
// Provenance reads off entry.derived (not the accent): a derived life-event is
// "abgeleitet", a curated PERSONAL event is "kuratiert" (REQ-007).
const provenance = $derived(
entry.derived ? m.timeline_provenance_derived() : m.timeline_provenance_curated()
);
const canEdit = $derived(!entry.derived && entry.eventId != null);
</script>
@@ -42,7 +47,7 @@ const canEdit = $derived(!entry.derived && entry.eventId != null);
>
{/if}
{#if dateLabel}
<span class="block font-sans text-xs text-ink-3">{dateLabel}</span>
<span class="block font-sans text-xs text-ink-3">{dateLabel} · {provenance}</span>
{/if}
</span>
{#if canEdit}