1
0
mirror of https://github.com/avinal/nikki.git synced 2026-07-03 21:40:09 +05:30
avinal 8c3ab59f2f Fix notification scheduling, custom reminder picker, 125 tests
Notification fixes:
- Removed scheduledIds skip — alarms always recomputed on each worker
  run (AlarmManager deduplicates via FLAG_UPDATE_CURRENT)
- Tasks with dueTime but no dueDate now assume today
- Worker runs once immediately on app launch + periodic 15min
- Added debug logging to trace task/alarm computation
- "check reminders now" button in settings triggers immediate check

Custom reminder picker:
- Number input field (digits only) + unit selector (min/hr/day/week)
- Replaces the preset-only list with free-form input
- "save" validates > 0 before applying, "clear" removes reminder

ReminderScheduler extracted to commonMain (testable):
- 18 tests covering: completed/no-date skip, due time alarms,
  default 8am/8pm, duration offsets (min/hr/day/week),
  past alarm filtering, multiple tasks, label preservation

125 tests total, all passing.

Co-Authored-By: Claude Opus 4.6 (1M context)

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
2026-05-21 20:00:48 +05:30
S
Description
No description provided
MIT 427 KiB
Languages
Kotlin 100%