Add persisted local state and baseline CRUD flows
This commit is contained in:
@@ -2,6 +2,31 @@
|
||||
|
||||
Updated: 2026-02-15
|
||||
|
||||
## Latest Milestone (2026-02-15): Local Persistence + CRUD Baseline
|
||||
|
||||
Implemented the first real local data foundation pass (replacing static demo-only reads):
|
||||
|
||||
- Added persisted local state using `shared_preferences`:
|
||||
- `lib/features/local/local_repository.dart`
|
||||
- schema key/version scaffold + seed fallback + persistence logic
|
||||
- Upgraded local models with serialization/copy methods:
|
||||
- `lib/features/local/local_models.dart`
|
||||
- Added local CRUD operations:
|
||||
- people: add, edit, delete
|
||||
- moments: add, delete
|
||||
- dashboard tasks: done/undone toggle
|
||||
- Wired views to async persisted state:
|
||||
- `DashboardView`, `PeopleView`, `MomentsView`
|
||||
- Updated signals fallback to read from persisted local state:
|
||||
- `lib/features/signals/signals_controller.dart`
|
||||
- Added local repository tests:
|
||||
- `test/features/local/local_repository_test.dart`
|
||||
|
||||
Validation for this milestone:
|
||||
|
||||
- `flutter analyze` -> pass
|
||||
- `flutter test` -> pass
|
||||
|
||||
## Workflow Rule
|
||||
|
||||
- After every sensible change, the final step is a Git commit with a clear message.
|
||||
|
||||
Reference in New Issue
Block a user