Files
familienarchiv/frontend/src/lib/geschichte
Marcel 7d70add709 test(geschichte): cover GeschichtenCard branches
Empty list early return, populated section, write-action link gated on
canWrite, visible-cap of 3, footer show-all link visibility based on
overflow, author name vs email fallback.

9 tests covering ~25 of GeschichtenCard's branches.

Refs #496.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 02:02:18 +02:00
..

geschichte (frontend)

UI for family stories: the rich-text editor, story cards, and story list view.

What this domain owns

Components: GeschichteEditor.svelte, GeschichtenCard.svelte.

What this domain does NOT own

  • Comment/discussion UI — shared via shared/discussion/ (same component used for document comments)
  • Person display — person/PersonChip.svelte is used inside story content (cross-domain import)
  • Document display — document references in stories use components from document/

Key components

Component Used in Notes
GeschichteEditor.svelte /geschichten/new, /geschichten/[id]/edit Rich-text editor with person/document @-mentions and inline embeds
GeschichtenCard.svelte /geschichten (list), dashboard Story preview card with cover image and publish status

Audience note

The /geschichten route primarily serves readers (younger family members on mobile). Cards must have ≥ 44 px touch targets. Status must not rely on color alone.

Cross-domain imports

  • person/PersonChip.svelte — inline person references in story content
  • document/DocumentThumbnail.svelte — inline document references
  • shared/discussion/ — comment thread below published stories

Backend counterpart

backend/src/main/java/org/raddatz/familienarchiv/geschichte/README.md