CRITICAL story-contact-detail-edit-screen-coordinator-002 5 pts
5
Story Points
Critical
Priority
Contact Detail & Edit Screen
Feature

User Story

As a Coordinator
I want to edit a contact's profile information including name, phone number, address, and notes, with real-time validation feedback
So that I can keep contact records accurate and up-to-date without requiring IT support or administrator intervention

Acceptance Criteria

  • Given I am on the contact detail screen, When I tap the edit button, Then the edit contact screen opens with all current field values pre-populated
  • Given I am on the edit contact screen, When I clear a required field and tap outside it, Then a plain-language error message appears beneath that field
  • Given I am editing a phone number field, When I enter an invalid Norwegian phone number format, Then the field shows an inline validation error before I attempt to save
  • Given I have made valid changes on the edit screen, When I tap the Save button, Then the contact edit service persists the changes and I am navigated back to the detail screen with a success confirmation
  • Given I am on the edit contact screen, When I attempt to edit an encrypted sensitive field, Then a confirmation dialog appears requiring me to acknowledge I am viewing and modifying sensitive personal data
  • Given I am editing a contact, When I tap the back button without saving, Then a discard changes confirmation dialog is shown before navigation proceeds

Business Value

Keeping contact data accurate is critical for correct assignment matching, Bufdir reporting, and legal compliance. Currently coordinators must contact administrators to update basic contact information, creating delays and errors. Enabling direct editing reduces administrative overhead, improves data quality, and ensures coordinators can respond immediately when a peer mentor's contact details change — for example when updating a return date after a period of illness.