Reminders: Compute updated target time when snoozing in RemindersViewModel
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start in feature/reminders/src/commonMain/kotlin/com/yaan/feature/reminders/RemindersViewModel.kt at the RemindersIntent.SnoozeReminder handling, then check how ReminderRepository.updateReminder persists changes and where its unit tests live. Update the target time using the stated snooze offset and add a test asserting it is in the future; done when the snoozed reminder is persisted with the new timestamp.
Written by the indexing model from the issue text.
Description
Summary
In feature/reminders/src/commonMain/kotlin/com/yaan/feature/reminders/RemindersViewModel.kt, RemindersIntent.SnoozeReminder updates the AlarmAckState to SNOOZED but leaves targetTimeEpochMs unchanged in the past.
Scope
- When snoozing, compute updated
targetTimeEpochMs = Clock.System.now().toEpochMilliseconds() + snoozeOffsetMs(default 10 minutes / 600,000ms). - Persist the rescheduled reminder through
ReminderRepository.updateReminder. - Add unit test asserting new target timestamp is in the future.
- Dominant language
- Kotlin
- Stars
- 1
- Forks
- 0
- Avg merge
- 4m
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentwithyash/yaan
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
developmentwithyash/yaan#65 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
developmentwithyash/yaan#63 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
developmentwithyash/yaan#62 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
developmentwithyash/yaan#60 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
developmentwithyash/yaan#57 ·
Maintainers usually reply within 1 day
All issues in developmentwithyash/yaan
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 4 days
-
bug P2-should size/XS viz
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
albertocavalcante/gvy#1631 ·
Maintainers usually reply within 1 day
-
Auto apply filtersOpenenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
IacobIonut01/ReFra#1410 ·
Maintainers usually reply within 17 days
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rustyrazorblade/easy-db-lab#1087 ·
Maintainers usually reply within 1 day