medium complexity extracted Contacts Confidence: 100%
7
Components
106
Shared
0
User Stories
Yes
Analyzed

Description

This feature displays the full profile of a contact, including personal details, caregiver relationships, assigned peer mentor, activity history, and notes. Users can edit contact information inline, with field-level validation and save confirmation. The detail screen is the central hub linking to all related records — activities, notes, assignments, and expenses — giving peer mentors and coordinators a complete picture of each contact's situation and history.

User Flow

Contact Detail & Edit user flow
Click to expand

Analysis

Business Value

A complete, editable contact record is essential for the quality of peer mentor work. Without accurate contact details, peer mentors cannot reach contacts, coordinators cannot manage assignments, and Bufdir reporting lacks the data quality required for compliance. The ability to update records in the field — during or immediately after a visit — reduces data loss from delayed entry and ensures the central record reflects current reality. For coordinators, the edit capability supports operational continuity when contacts change phone numbers, addresses, or caregiver arrangements, which is frequent in vulnerable populations.

Implementation Notes

Built as a Flutter screen with a read/edit toggle pattern to reduce accidental edits while keeping the edit flow accessible. Form fields use the shared AppTextField widget with appropriate input types (phone, email, date pickers). All edits are sent via PATCH to the REST API with optimistic UI updates and rollback on error. Sensitive fields (e.g., health notes, address) must trigger a readout warning when a screen reader is active, as required by NHF. Field labels must be fully internationalised using the organisation's custom terminology system so that field names reflect each org's vocabulary.

Components (113)

User Interface (4)

Service Layer (3)

Shared Components

These components are reused across multiple features

Service Layer (34)

Data Layer (22)

Infrastructure (38)

infrastructure Keychain/Keystore Adapter low Shared infrastructure JWT Claims Extractor low Shared infrastructure Organization Labels Adapter low Shared infrastructure Keychain/Keystore Adapter low Shared infrastructure Auth API Client medium Shared infrastructure REST API Client medium Shared infrastructure WCAG Accessibility Adapter low Shared infrastructure Registration API Client low Shared infrastructure Accounting API Client high Shared infrastructure PDF Renderer Adapter medium Shared infrastructure File Share Adapter low Shared infrastructure FCM/APNs Adapter high Shared infrastructure Share Sheet Adapter low Shared infrastructure Share Plus Adapter low Shared infrastructure Platform Accessibility Bridge medium Shared infrastructure Semantics Override Adapter high Shared infrastructure URL Launcher Adapter low Shared infrastructure Markdown Content Renderer low Shared infrastructure Network Connectivity Monitor low Shared infrastructure Expense Receipt Storage Adapter low Shared infrastructure Audit Log Writer low Shared infrastructure Feature Flag Checker low Shared infrastructure Logo Upload Adapter low Shared infrastructure Terminology Constants Registry low Shared infrastructure Feature Flag Cache Adapter low Shared infrastructure Org Scope JWT Resolver medium Shared infrastructure Association Audit Logger low Shared infrastructure Token Blocklist medium Shared infrastructure Analytics Tracker low Shared infrastructure SEO Metadata Config low Shared infrastructure Analytics Tracker low Shared infrastructure Analytics Tracker low Shared infrastructure Sales Analytics Tracker low Shared infrastructure Email Provider Adapter low Shared infrastructure Terms of Service Content Provider low Shared infrastructure Legal PDF Asset Provider low Shared infrastructure Consent-Gated Script Loader low Shared infrastructure Legal Page Layout low Shared

User Stories

No user stories have been generated for this feature yet.