Note Editor
Feature Detail
Description
The Note Editor feature allows peer mentors and coordinators to create, view, and edit free-text notes linked to a specific contact. The editor supports plain text input with optional speech-to-text dictation, a linked contact selector, and a timestamp that defaults to the current date and time. Notes can be saved as drafts or submitted immediately. Existing notes can be reopened for editing or deleted, with a confirmation prompt before destructive actions.
User Flow
Analysis
Free-text notes capture qualitative context that structured activity logs cannot — emotional state of a contact, topics discussed, agreed next steps, or concerns to escalate to a coordinator. For organisations like Blindeforbundet, a structured note after a home visit is a formal deliverable that feeds back into coordinator workflows. Providing a low-friction editor with speech-to-text reduces the barrier to note-taking for users with motor or visual impairments, directly supporting WCAG 2.2 AA goals and the needs of HLF and Blindeforbundet users who prefer dictation over typing. Well-documented contacts improve care quality and reduce risk for the organisations.
Implemented as a Flutter form screen backed by a TextEditingController with autosave to local draft storage. Speech-to-text integration delegates to the STT Service and STT Provider Adapter, injecting transcribed text at the cursor position. The contact selector reuses the Contact Search Widget from the Contacts area. Save and delete actions call the REST API and update the local SQLite cache. Optimistic UI updates are applied immediately with rollback on API error. The editor must meet WCAG 2.2 AA requirements: the text field must be labelled, font must scale to 200%, and the delete confirmation dialog must be keyboard-navigable.
Components (112)
Shared Components
These components are reused across multiple features
User Interface (12)
Service Layer (34)
Data Layer (22)
Infrastructure (38)
User Stories
No user stories have been generated for this feature yet.