feat(persons): clean filterable paginated directory with crash fix

Rewrite /persons: server-side filter chips (type, family-only, has-documents)
that AND within the clean reader default (familyMember OR documentCount > 0),
a writer-only show-all/Zu-prüfen toggle, and reused Pagination. Extract
PersonCard (fixes the null-lastName render crash and never shows a "?" initial —
provisional/UNKNOWN/"?" entries get a neutral placeholder avatar + a text+icon
"unbestätigt" badge, WCAG 1.4.1) and PersonFilterBar (44px aria-pressed chips,
role=switch toggle with the count in its accessible name). The loader applies
the reader restriction unless review=1 and surfaces a cheap needsReviewCount.
i18n keys added for de/en/es.

Refs #667

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-27 13:55:18 +02:00
parent 67272178a9
commit 888adcb185
12 changed files with 802 additions and 87 deletions

View File

@@ -130,6 +130,29 @@
"persons_search_placeholder": "Search names...",
"persons_empty_heading": "No persons found.",
"persons_empty_text": "Try a different search term.",
"persons_empty_filtered": "No persons match these filters.",
"persons_filter_group_label": "Filter",
"persons_filter_type_person": "Person",
"persons_filter_type_group": "Group",
"persons_filter_type_institution": "Institution",
"persons_filter_family_only": "Family only",
"persons_filter_has_documents": "With documents",
"persons_toggle_show_all": "Show all",
"persons_toggle_needs_review": "Needs review ({count})",
"person_badge_unconfirmed": "unconfirmed",
"persons_review_heading": "Review persons",
"persons_review_intro": "Import-generated persons not yet confirmed. Merge, rename, confirm or delete.",
"persons_review_action_merge": "Merge",
"persons_review_action_rename": "Rename",
"persons_review_action_confirm": "Confirm",
"persons_review_action_delete": "Delete",
"persons_review_action_cancel": "Cancel",
"persons_review_action_save": "Save",
"persons_review_empty": "No persons to review.",
"persons_review_delete_confirm_title": "Delete person",
"persons_review_delete_confirm_text": "This person will be permanently deleted. Document references are kept but lose this person.",
"persons_review_delete_confirm_button": "Delete person",
"persons_review_merge_label": "Merge into which person?",
"persons_new_heading": "New person",
"persons_section_details": "Person details",
"person_edit_heading": "Edit person",