feat(stammbaum): family network — graph, badge, edit card, /stammbaum page (#358) #360

Merged
marcel merged 57 commits from feat/stammbaum-issue-358 into main 2026-04-28 19:33:33 +02:00
Showing only changes of commit fa1dfbc99d - Show all commits

View File

@@ -113,7 +113,12 @@ function getFullName(person: Person): string {
{#each displayedReceivers as receiver, i (receiver.id)}
{@render personCard(
receiver,
i === 0 ? (inferredRelationship?.labelFromB ?? null) : null
// Badge only shown when there is exactly one receiver — with multiple
// receivers the inferred label is computed from the sender's viewpoint
// and cannot be attributed to a specific receiver.
i === 0 && receivers.length === 1
? (inferredRelationship?.labelFromB ?? null)
: null
)}
{/each}
</div>