Skip to content

feat(med): say when a reminder cannot fire - #170

Merged
rmh78 merged 4 commits into
mainfrom
feat/109-remind-honesty
Nov 11, 2026
Merged

rmh78 merged 4 commits into
mainfrom
feat/109-remind-honesty

Conversation

@rmh78

@rmh78 rmh78 commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

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

  • Turn on writes the app Reminders switch through the same path as More, including the permission request. The sheet stays open and the typed fields stay. If the switch ends up on, the line disappears. If iOS denies notifications, the sheet shows "Notifications are off in iOS." and Open Settings.
  • The outside-block lines show only while this medication's own reminder switch is on.
  • The app-off line is "App reminders are off." in English and "Erinnerungen in der App sind aus." in German. The action is Turn on and Einschalten.

Scope

  • Covers turning app reminders on from the medication sheet, and hiding the lines when this medication's switch is off.
  • Reminder scheduling is unchanged. A new medication still starts with reminders on. Cancel does not turn app reminders back off.

Tradeoffs

  • The app switch is a global setting. Cancel after Turn on leaves it on.

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 verify printed verify: ok on 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. testTurnOnKeepsTheDraftAndEnablesAppReminders passed. testUserFlow passed. The screen catalog check found 24 PNGs.
  • The default medication sheet picture is unchanged, so sheet-med-en.png stays as it was.
  • The pictures below are iPhone 17e at normal text size. The English app-off frame is scrolled so the name sits above the sheet. Dose, both take times, the line, and Turn on are on screen. The German app-off frame shows the name and the line. Einschalten sits under Abbrechen. Both frames after Turn on show the filled sheet still open and the line gone.
  • An iOS-denied picture was not taken. simctl privacy is not permitted on this machine, and the denied line never appeared.

English, app reminders off, fields kept

English, after Turn on

German, app reminders off, fields kept

German, after Turn on

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.

rmh78 added 3 commits November 9, 2026 19:23
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 rmh78 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 rmh78 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Software Architect: approve; at 67013d6, Turn on uses More’s shared permission/refresh path in place, preserves the medication draft and global setting after Cancel, and leaves domain and scheduling internals unchanged.

@rmh78 rmh78 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 rmh78 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Agent Optimizer: approve

@rmh78 rmh78 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI Manager: approve at 67013d6; required ui passed on the targeted rerun in run 42897321191 attempt 2, with ids/openspec/domain green from attempt 1; the honesty UI test remains outside PR smoke.

@rmh78
rmh78 merged commit f4b9a37 into main Nov 11, 2026
13 of 14 checks passed
@rmh78
rmh78 deleted the feat/109-remind-honesty branch November 11, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Medication sheet: say when app reminders are off or iOS notifications are denied

1 participant