Import normalizer: offline tool to normalize the raw archive spreadsheets #663

Merged
marcel merged 172 commits from docs/import-migration into main 2026-05-28 15:05:51 +02:00
Showing only changes of commit 929acf6964 - Show all commits

View File

@@ -16,7 +16,9 @@ const isUnconfirmed = $derived(person.provisional === true);
// An empty / "?" last name is a separate, purely defensive concern: it must not crash the
// initials branch (reading lastName[0] on null throws) and must never render a "?" initial.
// It implies the placeholder glyph but — on its own — no "unbestätigt" badge.
const hasNoName = $derived(person.lastName == null || person.lastName.trim() === '' || person.lastName === '?');
const hasNoName = $derived(
person.lastName == null || person.lastName.trim() === '' || person.lastName === '?'
);
// A non-PERSON type (institution/group) gets a typed glyph; a confirmed, named person gets
// initials. Provisional entries and nameless entries fall back to the neutral placeholder glyph.