Add person-detail page with events timeline and relationships

New /trees/[id]/persons/[personId] view: life-events timeline with add/remove, and relationships grouped into parents/children/partners/siblings with an add form (kind + person picker + qualifier). People in the tree list now link here. Regenerated the OpenAPI client for the new endpoints.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Justin Paul <justin@jpaul.me>
This commit is contained in:
2026-06-06 12:10:56 -04:00
parent d6e2df4a61
commit 1f25eb2f21
4 changed files with 1531 additions and 5 deletions
+9 -5
View File
@@ -81,11 +81,15 @@ export default function TreeDetailPage() {
<ul className="space-y-2">
{persons.map((person) => (
<li key={person.id}>
<Card>
<CardContent className="p-4">
{person.primary_name ?? <span className="text-[var(--muted)]">Unnamed</span>}
</CardContent>
</Card>
<Link href={`/trees/${treeId}/persons/${person.id}`}>
<Card className="transition-colors hover:border-bronze/50">
<CardContent className="p-4">
{person.primary_name ?? (
<span className="text-[var(--muted)]">Unnamed</span>
)}
</CardContent>
</Card>
</Link>
</li>
))}
</ul>