Add preference review UI to person insights

This commit is contained in:
Rijad Zuzo
2026-02-22 23:46:41 +01:00
parent 5ffe970179
commit 1f31a0e769
4 changed files with 605 additions and 7 deletions
+35
View File
@@ -7,6 +7,41 @@ 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): Preference Review UI (People + Graph Insights)
Exposed the new chat-derived preference signals in the main person detail
surfaces and added a user review loop to confirm or dismiss inferred context.
- `lib/features/people/people_view.dart`
- added `Chat-derived preferences` section to the People detail workspace
- shows inferred/confirmed/dismissed signals sorted by status/confidence
- per-signal actions:
- `Why?` (evidence preview bottom sheet)
- `Confirm`
- `Dismiss`
- evidence preview includes:
- signal metadata (category/polarity/confidence)
- evidence snippets extracted from shared chat messages
- source app list
- added explicit `Close` action in evidence sheet (better UX + testability)
- `lib/features/dashboard/dashboard_view.dart`
- added matching `Chat-derived preferences` section to graph long-press
`Person Insights` page
- same confirm/dismiss/why review flow and evidence preview
- keeps profile review experience aligned between People page and graph flow
- `test/features/dashboard/dashboard_graph_interactions_test.dart`
- extended graph interaction test to:
- seed an inferred preference signal
- assert section renders in `Person Insights`
- open `Why?` evidence preview
- confirm signal and verify local status updates to `confirmed`
- Validation
- `flutter analyze` -> pass
- `flutter test` -> pass
## Latest Milestone (2026-02-22): MVP Chat Preference Extractor + Ingest Enrichment
Implemented the first local semantic-enrichment pass so shared chat messages can