Add person editor validation and duplicate warnings

This commit is contained in:
Rijad Zuzo
2026-02-22 23:15:18 +01:00
parent 0233288506
commit 058e2c1787
2 changed files with 176 additions and 8 deletions
+19
View File
@@ -7,6 +7,25 @@ Updated: 2026-02-22
- After every sensible code/documentation change set, create a git commit as
the last step so the next agent session can pick up from clean checkpoints.
## Latest Milestone (2026-02-22): Person Editor Inline Validation + Duplicate Warning
Improved the People add/edit profile experience to make validation explicit and
support safer profile creation in a sharing-first workflow.
- `lib/features/people/people_view.dart`
- added inline required-field validation for `Name` and `Relationship`
(no more silent no-op when save is pressed with empty required fields)
- added live duplicate-name warning banner in add/edit form:
- checks normalized profile names against existing local profiles
- excludes the current profile during edit
- warns before save while still allowing save (with follow-up merge flow)
- routed existing profile list into the responsive editor panel/sheet so
duplicate detection works on mobile + desktop/web
- Validation
- `flutter analyze` -> pass
- `flutter test` -> pass
## Latest Milestone (2026-02-22): Responsive People Add/Edit Form (Sheet + Dialog)
Aligned the People profile creation/edit flow with the newer insights-style UI