Rx-expiry ongoing alert (7-day lead), configurable morning check, Felleskatalogen links
The daily digest splits in two: low stock stays an auto-cancel notification re-posted each morning while below the per-item limit; prescription renewal becomes a separate ONGOING notification starting 7 days before rx expiry — survives 'Clear all', swipe-dismissable on Android 14+, returns each morning until the rx date is updated, and cancels itself once renewed (post-or-cancel in SupplyCheckReceiver). Check time is now configurable (Innstillinger → Varsler, M3 TimePicker, default 10:00); same PendingIntent so re-arming replaces. 'Slå opp i Felleskatalogen' buttons on the item editor and the med editor's summary card open the browser — decision #8 clarified: the ban covers Felleskatalogen as a data source, not human-facing links. Emulator-verified: both notifications post with correct flags (ONGOING_EVENT vs AUTO_CANCEL), auto-clear after renewal/restock, alarm follows the configured time (10:00 → 07:30), FK button opens Chrome. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
909d03fcb3
commit
608d84236b
9 changed files with 142 additions and 15 deletions
|
|
@ -41,6 +41,8 @@ The name says the brief: nag me to take the dose *now*.
|
|||
is a SOAP/WCF M30 XML dump. `tools/fest_flatten.py` (in-repo, amended 2026-06) flattens
|
||||
it into a slim JSON bundled as an APK asset; release builds auto-refresh it when >30
|
||||
days old. Autocomplete is offline; a downloaded file via Settings can override the bundle.
|
||||
The ban covers Felleskatalogen as a *data source* — browser links to felleskatalogen.no
|
||||
for human reading are fine (added 2026-06).
|
||||
9. Refill is **derived** from inventory + consumption. Prescription renewal
|
||||
(`rxExpiryEpochDay`, `refillsRemaining`) is tracked **separately** from stock.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue