Repository navigation
feat(mobile): let the phone switch task-finished reminders off - #1336
Merged
Merged
Conversation
The completion reminder every phone now shows had no way to silence it. Add a phone-local preference, on by default, on the phone's own settings screen; the notification path reads it, so off means no scheduled reminder and no in-app stand-in alert either. Turning reminders back on is when the OS is asked for permission, which preparation skipped while they were off.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The mobile app raises a reminder when a task finishes, and until now nothing could silence it. This adds a phone-local switch on the phone's own settings screen: on by default, persisted in
AsyncStorage, and read by the notification path, so "off" means no scheduled reminder and no in-app stand-in alert either. Turning reminders back on is when the OS permission is requested, so a phone with reminders off is never asked.The preference belongs to the phone, not to the desktop that ran the task: the reminder is drawn on the phone, so one choice covers every paired machine — including one made with no machine connected at all.
Commits
taskFinishedReminderspreference module (get/subscribe/set, default on, tolerant of unreadable storage), the notification path gated on it, a switch on the mobile settings screen, i18n strings, and tests for the preference, the notification path and the settings screen.Verification
Local, before opening the PR (
mobile/, Node 22 — the pinned CI line, since mobile jest does not run on this machine's Node 26):npx tsc --noEmit→ cleannpx eslint src/features/settings/SettingsScreen.tsx src/features/settings/__tests__/SettingsScreen.test.ts src/i18n/locales.ts src/notifications→ cleannpx jest --runInBand src/notifications src/features/settings→ 11 suites, 216 tests passedNotes