Repository navigation
feat(med): say when a reminder cannot fire - #170
Conversation
MedicationReminderNotices.notices returns an ordered list. App reminders off comes first. iOS denied comes second. The medication switch is not an input. iosDenied is only the raw denial flag, so an undecided permission stays off the list.
A dose reminder fires only when the medication switch, the More Reminders switch, and iOS notifications all allow it. The sheet showed that switch on even when one of the other two blocked it. Under the switch, one muted line and one action appear for each outside block. Turn on opens More and leaves the Reminders switch off. Open Settings opens this app's page in iOS Settings. The label is Remind me. A new medication still starts with reminders on. Scheduling is unchanged.
The catalog picture of the new-medication sheet uses the shorter reminder label.
rmh78
left a comment
There was a problem hiding this comment.
CI Manager: approve at 6b656e4; ids/openspec/domain/ui green in run 42679513892 (attempt 1) with MedicationReminderNoticesTests passing, but PR smoke ran only testUserFlow, so MedicationReminderHonestyTests did not execute in required CI and stays unproven until full/nightly runs it.
Turn on used the Cancel path, so the typed name, dose, and take times were discarded and the app switch stayed off. Turn on now writes the app Reminders switch through the same path as More, including the permission request, and the sheet stays open. The outside-block lines show only while this medication's own reminder switch is on. Cancel does not turn the app switch back off.
rmh78
left a comment
There was a problem hiding this comment.
UX Designer: EN/DE screenshots show the filled sheet preserved after Turn on / Einschalten, with the app-off notice removed; source and test coverage support enabling reminders in place.
UX Designer: iOS-denied copy was checked in source only; runtime, VoiceOver and tests were not independently executed.
UX Designer: approve
rmh78
left a comment
There was a problem hiding this comment.
AI Agent Optimizer: approve
Why
Turn on on the medication sheet used the Cancel path. The typed name, dose, and take times were discarded, and app reminders stayed off.
The outside-block lines also showed when this medication's own reminder switch was off.
What changed
Scope
Tradeoffs
Blast Radius
A person adding or editing a medication can turn app reminders on without losing what they typed. The More switch reads the same setting.
Verification
control-perimedi verifyprintedverify: okon iPhone 17e. PeriMediDomainTests ran 197 tests with 0 failures. PeriMediTests ran 44 tests with 0 failures, including the medication-switch-off case. PeriMediUITests ran 9 tests, skipped 4 shot writers, and had 0 failures.testTurnOnKeepsTheDraftAndEnablesAppReminderspassed.testUserFlowpassed. The screen catalog check found 24 PNGs.sheet-med-en.pngstays as it was.simctl privacyis not permitted on this machine, and the denied line never appeared.Fixes #109
Do not merge; open the PR and stop. Product Owner merges after the four bot reviews.
Merge also requires independent critical product acceptance.