Caregiver Link Widget
Component Detail
User Interface
medium complexity
mobile
2
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Collapsible Flutter widget rendered inside the contact detail screen, listing linked relatives with their role tags and providing add, edit, and remove actions gated by coordinator role. All touch targets meet WCAG 2.2 AA minimum (24Ă—24 px) and the role picker dropdown is fully keyboard-navigable with a semantic label.
caregiver-link-widget
Sources & reasoning
Primary UI surface for caregiver registration. Implementation notes explicitly describe a collapsible section inside the contact detail screen with role tags, add/edit/remove actions gated by coordinator role, WCAG 2.2 AA touch targets (≥24×24 px), and keyboard-navigable role picker with semantic label.
-
docs/source/likeperson.md · line 121Pårørende-database: Barnekreftforeningen jobber primært med familier rundt barn med kreft, ikke kun med de berørte selv. Appen må støtte registrering av pårørende (foreldre, søsken, nærmeste omsorgsperson) som egne kontaktsubjekter knyttet til samme
-
docs/source/likeperson.md · line 151Pårørende database | ✓ | - | - | - | MUST (Barnekreft) | 1
-
docs/source/likeperson.md · line 428Pårørende-database er Fase 1 MUST for Barnekreftforeningen (se §4 matrisen).
Responsibilities
- Render collapsible section listing linked relatives with role tags for a given contact
- Provide add, edit, and remove actions gated by coordinator role guard
- Display role picker dropdown populated from relative_roles lookup table
- Enforce WCAG 2.2 AA touch targets and keyboard navigation on all interactive elements
Interfaces
build(contactId) → Widget
onAddRelative(contactId) → void
onEditRelative(relativeId) → void
onRemoveRelative(relativeId) → void
loadRoleTags() → List<RelativeRole>
Relationships
Dependencies (2)
Components this component depends on
Related Data Entities (2)
Data entities managed by this component