feat: family relations carousel + chosen-representative thumbnails (spec 063) #1245

Merged
chris merged 1 commit from feat/063-relations-carousel into main 2026-10-15 22:15:04 +02:00
Owner

Family relations section redesign + thumbnail correctness fix.

Web:

  • Compact carousel instead of the stacked list: 80px avatar tiles with name + type label, horizontally scrollable
  • Sorted by relationship degree: partner/spouse → child → parent → sibling → grand* → in-laws; ties alphabetical (utils/personRelationSort + unit tests)
  • Remove button replaced by X overlay on the avatar's top-right (hover/focus desktop, always visible on touch), same confirm dialog
  • Trailing dashed + tile opens the add-relation dialog (header keeps only the title; + tile also renders in the empty state)
  • 254 unit tests green incl. sort utils; 126 E2E green

API:

  • Opposite-person thumbnail now uses the same ranked representative rule as person browse (pinned Set-thumbnail → best accepted face → fallbacks) instead of the latest occurrence
  • Share-viewers without owner access get plain media thumbnails, never face crops into another owner's media
  • PersonRelationServicePostgresTest 11/11 incl. precedence-chain test; total PersonRelation suite 22/22

Closes spec 063 tasks S063T006, S063T007.

Family relations section redesign + thumbnail correctness fix. Web: - Compact carousel instead of the stacked list: 80px avatar tiles with name + type label, horizontally scrollable - Sorted by relationship degree: partner/spouse → child → parent → sibling → grand* → in-laws; ties alphabetical (utils/personRelationSort + unit tests) - Remove button replaced by X overlay on the avatar's top-right (hover/focus desktop, always visible on touch), same confirm dialog - Trailing dashed + tile opens the add-relation dialog (header keeps only the title; + tile also renders in the empty state) - 254 unit tests green incl. sort utils; 126 E2E green API: - Opposite-person thumbnail now uses the same ranked representative rule as person browse (pinned Set-thumbnail → best accepted face → fallbacks) instead of the latest occurrence - Share-viewers without owner access get plain media thumbnails, never face crops into another owner's media - PersonRelationServicePostgresTest 11/11 incl. precedence-chain test; total PersonRelation suite 22/22 Closes spec 063 tasks S063T006, S063T007.
feat: family relations carousel + chosen-representative thumbnails (spec 063)
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 3s
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build Android CI image (push) Has been skipped
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 19m45s
136b7cdac3
Web: compact carousel instead of the stacked section — tiles with larger
(80px) avatars, name + type label beneath, X overlay on the avatar's
top-right corner (hover/focus on desktop, always on touch) replacing the
trailing remove button, trailing dashed + tile opens the add dialog.
Order: relationship degree (partner/spouse, child, parent, sibling,
grand*, in-laws), ties alphabetical — extracted to
utils/personRelationSort with unit tests.

API: the opposite person's thumbnail now resolves via the same ranked
representative rule as the person browse (pinned Set-thumbnail wins ->
best accepted face -> fallbacks), instead of the latest occurrence.
Share-viewers without owner access get plain media thumbnails, never
face crops into another owner's media. Verified by a Postgres test
executing the precedence chain.
chris merged commit 66f356663b into main 2026-10-15 22:15:04 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!1245
No description provided.