Commit Graph

156 Commits

Author SHA1 Message Date
0f6789becd test(04-01): add failing tests for NotificationSettingsNotifier and NotificationService
- Tests for default state (enabled=false, time=07:00)
- Tests for setEnabled persistence to SharedPreferences
- Tests for setTime persistence to SharedPreferences
- Tests for loading persisted values via _load()
- Tests for NotificationService singleton pattern
- Tests for nextInstanceOf timezone logic (future/past time)
2026-03-16 14:54:39 +01:00
878767138c feat(04-01): Android config, NotificationService, DAO queries, timezone init, ARB strings
- Add flutter_local_notifications ^21.0.0, timezone ^0.11.0, flutter_timezone ^1.0.8 to pubspec.yaml
- Set compileSdk=35, enable core library desugaring in build.gradle.kts
- Add POST_NOTIFICATIONS, RECEIVE_BOOT_COMPLETED permissions and boot receivers to AndroidManifest.xml
- Create NotificationService singleton with initialize, requestPermission, scheduleDailyNotification, cancelAll
- Add getOverdueAndTodayTaskCount and getOverdueTaskCount one-shot queries to DailyPlanDao
- Initialize timezone and NotificationService in main.dart before runApp
- Add 7 notification-related ARB strings to app_de.arb
- All 72 existing tests pass
2026-03-16 14:52:29 +01:00
abc56f032f docs(04): create phase plan 2026-03-16 14:43:37 +01:00
7a2da5f4b8 docs(phase-4): add validation strategy 2026-03-16 14:38:07 +01:00
0bd3cf7cb8 docs(phase-4): research notifications phase
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 14:37:01 +01:00
6d73d5f2fc docs(state): record phase 4 context session 2026-03-16 14:26:24 +01:00
0848a3eb4a docs(04): capture phase context 2026-03-16 14:26:11 +01:00
fd491bf87f docs(phase-3): complete phase execution 2026-03-16 13:00:22 +01:00
8e7afd83e0 docs(03-03): complete Phase 3 verification gate plan
- Phase 3 verification gate passed: dart analyze clean, 72/72 tests
- All 7 requirements verified functional (PLAN-01-06, CLEAN-01)
- Updated STATE.md: Phase 3 complete, progress 100%
- Updated ROADMAP.md: Phase 3 marked complete with 3/3 plans

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:55:49 +01:00
e7e6ed4946 fix(03-03): resolve dart analyze warnings in test files
- Remove unused drift import in daily_plan_dao_test
- Fix unused local variable in tasks_dao_test
- Switch ProviderScope to UncontrolledProviderScope in home_screen_test
  and app_shell_test to resolve riverpod_lint scoped_providers warning

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:51:39 +01:00
a9d6aa7a26 docs(03-02): complete daily plan UI plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:41:30 +01:00
444213ece1 feat(03-02): rewrite HomeScreen with daily plan UI, completion animation, empty states, and tests
- Complete HomeScreen rewrite: progress card, overdue/today/tomorrow sections
- Animated task completion with SizeTransition + SlideTransition on checkbox tap
- "All clear" celebration state when all tasks done, "no tasks" state for first-run
- Room name tags navigate to room task list via context.go
- 6 widget tests covering empty, all-clear, normal state, overdue, tomorrow sections
- Fixed app_shell_test to override dailyPlanProvider for new HomeScreen dependency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:39:04 +01:00
4e3a3ed3c2 feat(03-02): add DailyPlanTaskRow and ProgressCard widgets
- DailyPlanTaskRow: task name, tappable room tag, relative date (coral if overdue), optional checkbox, no row-tap
- ProgressCard: "X von Y erledigt" with LinearProgressIndicator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:35:44 +01:00
67e55f2245 docs(03-01): complete daily plan data layer plan
- SUMMARY.md documenting DailyPlanDao, models, provider, localization keys
- STATE.md updated to Phase 3 Plan 1 complete (8/10 plans, 80%)
- ROADMAP.md progress updated for Phase 3
- Requirements PLAN-01, PLAN-02, PLAN-03, PLAN-05 marked complete

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:33:42 +01:00
1c09a43995 feat(03-01): add daily plan provider with date categorization and localization keys
- dailyPlanProvider: manual StreamProvider.autoDispose with overdue/today/tomorrow partitioning
- Stable progress denominator: remaining overdue + remaining today + completedTodayCount
- 10 new German localization keys for daily plan sections, progress, empty states
- dart analyze clean, full test suite (66/66) passes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:30:58 +01:00
ad70eb7ff1 feat(03-01): implement DailyPlanDao with cross-room join query and completion count
- watchAllTasksWithRoomName: innerJoin tasks+rooms, sorted by nextDueDate asc
- watchCompletionsToday: customSelect with readsFrom for proper stream invalidation
- All 7 DAO unit tests pass

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:29:24 +01:00
74b3bd5543 test(03-01): add failing tests for DailyPlanDao cross-room query and completion count
- 7 failing tests for watchAllTasksWithRoomName and watchCompletionsToday
- DAO stub with UnimplementedError methods registered in AppDatabase
- TaskWithRoom and DailyPlanState model classes defined

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 12:28:21 +01:00
76eee6baa7 docs(03): create phase plan for daily plan and cleanliness 2026-03-16 12:21:59 +01:00
aedfa82248 docs(phase-3): add phase context 2026-03-16 12:16:16 +01:00
1d8ea07f8a docs(phase-3): add validation strategy 2026-03-16 12:15:52 +01:00
a8552538ec docs(phase-3): research daily plan and cleanliness domain 2026-03-16 12:14:47 +01:00
76cd98300d fix: use ValueKey<String> for reorderable grid and add status bar padding
flutter_reorderable_grid_view requires String keys, not int. Also
adds safe area top padding so the room grid doesn't overlap the
system status bar.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:59:24 +01:00
98f42ccb9c docs(phase-2): complete phase execution 2026-03-15 22:29:38 +01:00
6ad42536e9 docs(02-05): complete Phase 2 verification gate plan
- Auto-approved verification checkpoint (59/59 tests, dart analyze clean)
- Phase 2 marked complete in ROADMAP.md (5/5 plans)
- STATE.md updated for Phase 3 readiness

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:24:45 +01:00
165d5fc60c docs(02-04): complete template selection flow plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:21:19 +01:00
03f531f896 feat(02-04): wire template selection flow into room creation
- After createRoom, detect room type via detectRoomType on room name
- Show TemplatePickerSheet if room type matches one of 14 known types
- Create tasks from selected templates with correct frequency, effort, and anchor day
- Navigate to new room after creation (with or without templates)
- Edit mode unchanged: no template prompt on room updates
- Custom rooms (no type match) skip template prompt entirely

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:18:33 +01:00
903567e735 feat(02-04): create template picker bottom sheet with German localization
- Add TemplatePickerSheet StatefulWidget with checklist UI for task templates
- Add showTemplatePickerSheet helper for modal display with DraggableScrollableSheet
- Add 4 German localization keys: templatePickerTitle, Skip, Add, Selected count
- All templates unchecked by default, confirm button only enabled with selection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:17:21 +01:00
08bacecf8a docs(02-03): complete task management UI plan
- Create 02-03-SUMMARY.md with task UI accomplishments and decisions
- Update STATE.md: plan 3/5 complete, 71% progress, task decisions
- Update ROADMAP.md: mark 02-02 and 02-03 complete, 3/5 in progress

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:12:54 +01:00
5a22b8114b docs(02-02): complete room UI plan summary and state updates
- Create 02-02-SUMMARY.md with task commits, deviations, and self-check
- Update STATE.md with position, decisions, metrics, and session info
- Update ROADMAP.md with plan progress

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:12:19 +01:00
b535f57a39 feat(02-03): build task list screen with task row, completion, and overdue highlighting
- TaskListScreen with room name in AppBar, edit/delete room actions
- AsyncValue.when for loading/error/data states with empty state
- TaskRow with leading checkbox, name, German relative due date, frequency label
- Overdue dates highlighted in warm coral (0xFFE07A5F)
- Checkbox marks done immediately (optimistic UI, no undo)
- Row tap navigates to edit form, long-press shows delete confirmation
- FAB for creating new tasks
- ListView.builder for task list sorted by due date

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:09:42 +01:00
652ff0123f feat(02-03): create task providers, form screen with frequency and effort selectors
- TaskActions AsyncNotifier for create, update, delete, complete task mutations
- tasksInRoomProvider manual StreamProvider.family wrapping TasksDao.watchTasksInRoom
- TaskFormScreen with name, frequency (10 presets + custom), effort (3-way segmented),
  description, and initial due date picker (German DD.MM.YYYY format)
- Custom frequency: number + unit picker (Tage/Wochen/Monate)
- Calendar-anchored intervals auto-set anchorDay from due date
- Edit mode loads existing task and pre-fills all fields
- 19 new German localization keys for task form, delete, and empty state

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:07:53 +01:00
519a56bef7 feat(02-02): build rooms screen with reorderable card grid and room card
- Replace placeholder RoomsScreen with ConsumerWidget watching roomWithStatsProvider
- Create RoomCard with icon, name, due count badge, cleanliness progress bar
- 2-column ReorderableBuilder grid with drag-and-drop reorder
- Empty state, loading, error states with retry
- Long-press menu for edit/delete with confirmation dialog
- FAB for room creation navigation
- Update app_shell_test with provider override for rooms stream

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:07:09 +01:00
32e61e4bec feat(02-02): create room providers, form screen, icon picker, and router routes
- Add Riverpod providers (roomWithStatsList, RoomActions) connecting to RoomsDao
- Create RoomFormScreen with name field, icon picker preview, create/edit modes
- Create IconPickerSheet bottom sheet with curated Material Icons grid
- Add nested GoRouter routes: /rooms/new, /rooms/:roomId, /rooms/:roomId/edit
- Add placeholder TaskListScreen and TaskFormScreen for Plan 03 routes
- Add 11 new German localization keys for room management UI
- Add flutter_reorderable_grid_view dependency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 22:00:57 +01:00
ead53b4c02 docs(02-01): complete data layer plan summary and state updates
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 21:55:36 +01:00
da270e5457 feat(02-01): German task templates for 14 room types with detectRoomType
- Create TaskTemplate class with name, intervalType, intervalDays, effortLevel
- Add roomTemplates const map with 3-6 templates per room type (14 total)
- Implement detectRoomType with case-insensitive matching and alias support
- Room types: kueche, badezimmer, schlafzimmer, wohnzimmer, flur, buero,
  garage, balkon, waschkueche, keller, kinderzimmer, gaestezimmer, esszimmer, garten
- All 11 template tests passing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 21:52:05 +01:00
d2e452655c feat(02-01): Drift tables, DAOs, scheduling utility, domain models with tests
- Add Rooms, Tasks, TaskCompletions Drift tables with schema v2 migration
- Create RoomsDao with CRUD, watchAll, watchWithStats, cascade delete, reorder
- Create TasksDao with CRUD, watchInRoom (sorted by due), completeTask, overdue detection
- Implement calculateNextDueDate and catchUpToPresent pure scheduling functions
- Define IntervalType enum (8 types), EffortLevel enum, FrequencyInterval model
- Add formatRelativeDate German formatter and curatedRoomIcons icon list
- Enable PRAGMA foreign_keys in beforeOpen migration strategy
- All 30 unit tests passing (17 scheduling + 6 rooms DAO + 7 tasks DAO)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 21:50:12 +01:00
515304b432 docs(02): create phase plan — 5 plans in 4 waves covering rooms, tasks, templates, and verification 2026-03-15 21:40:40 +01:00
988a8fdade docs(phase-2): add validation strategy 2026-03-15 21:31:51 +01:00
f84bd01bef docs(phase-2): research rooms and tasks domain 2026-03-15 21:30:31 +01:00
f1cb786de8 docs(phase-1): complete phase execution 2026-03-15 20:15:24 +01:00
bb3f39bf8a docs(01-02): complete navigation shell and screens plan
- SUMMARY.md with 3 task commits, 1 deviation, self-check passed
- STATE.md updated: Phase 1 complete, 2/2 plans done
- ROADMAP.md Phase 1 marked complete (2/2)
- REQUIREMENTS.md FOUND-04 marked complete

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:10:52 +01:00
014722a850 feat(01-02): wire app.dart and main.dart for launchable app
- App widget with MaterialApp.router, theme/darkTheme from AppTheme, themeMode from ThemeNotifier
- German localization delegates configured, debug banner disabled
- main.dart wraps App in ProviderScope with ensureInitialized
- All 16 tests pass, dart analyze clean, flutter build apk succeeds

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:06:53 +01:00
f2dd737e9e feat(01-02): create router, navigation shell, screens, and app shell test
- GoRouter with StatefulShellRoute.indexedStack and 3 branches (Home, Rooms, Settings)
- AppShell with NavigationBar using localized labels and thematic icons
- HomeScreen with empty state and cross-navigation to Rooms tab
- RoomsScreen with empty state and placeholder action button
- SettingsScreen with SegmentedButton theme switcher and About section
- Widget test verifying 3 navigation destinations with correct German labels

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:04:59 +01:00
cd1ce21f3f docs(01-01): complete project scaffold plan
- SUMMARY.md with execution results, deviations, and self-check
- STATE.md updated with position and decisions
- ROADMAP.md updated with Phase 1 progress (1/2)
- REQUIREMENTS.md: FOUND-01, FOUND-02, FOUND-03, THEME-01, THEME-02 marked complete

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:02:08 +01:00
51738f78bc feat(01-01): add core infrastructure, localization, and Wave 0 tests
- AppDatabase with schemaVersion 1, in-memory executor for testing
- Database provider with @Riverpod(keepAlive: true)
- AppTheme with sage green seed ColorScheme and warm surface overrides
- ThemeNotifier with SharedPreferences persistence, defaults to system
- Full German ARB localization (15 keys) with proper umlauts
- Minimal main.dart with ProviderScope placeholder
- Drift schema v1 captured via make-migrations
- All .g.dart files generated via build_runner
- Wave 0 tests: database (3), color scheme (6), theme (3), localization (2) -- 14 total, all passing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 19:59:44 +01:00
4b27aeadf6 chore(01-01): scaffold Flutter project with all dependencies and tooling
- Flutter project created with flutter create (Android platform)
- Runtime deps: flutter_riverpod, riverpod_annotation, drift 2.31, drift_flutter, go_router, path_provider, shared_preferences, flutter_localizations, intl
- Dev deps: riverpod_generator, drift_dev 2.31, build_runner
- Pinned drift/drift_dev to 2.31 for analyzer ^9.0.0 compatibility with riverpod_generator
- Configured l10n.yaml, build.yaml (Drift), analysis_options.yaml (riverpod_lint)
- Minimal ARB file for localization tooling to resolve

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 19:55:46 +01:00
29b2e8cca6 fix(01-foundation): revise plans based on checker feedback 2026-03-15 19:49:44 +01:00
f2e1d715f4 docs(01-foundation): create phase plan 2026-03-15 19:42:30 +01:00
71312b1122 docs(phase-1): add context, research, and validation strategy 2026-03-15 19:34:42 +01:00
ef7e7baf19 docs(01-foundation): research phase domain 2026-03-15 19:33:29 +01:00