med-det-samme/app/src/main/java/no/naiv/meddetsamme
Ole-Morten Duesund 608d84236b 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>
2026-06-11 16:21:25 +02:00
..
alarm Rx-expiry ongoing alert (7-day lead), configurable morning check, Felleskatalogen links 2026-06-11 16:21:25 +02:00
backup Inventory split: InventoryItem entity, schema v2 with tested migration, Lager screen 2026-06-10 15:13:28 +02:00
data Inventory split: InventoryItem entity, schema v2 with tested migration, Lager screen 2026-06-10 15:13:28 +02:00
domain Inventory split: InventoryItem entity, schema v2 with tested migration, Lager screen 2026-06-10 15:13:28 +02:00
fest FEST: in-repo flattener bundles slim.json; release builds auto-refresh when stale 2026-06-10 15:19:49 +02:00
notify Rx-expiry ongoing alert (7-day lead), configurable morning check, Felleskatalogen links 2026-06-11 16:21:25 +02:00
pdf Inventory split: InventoryItem entity, schema v2 with tested migration, Lager screen 2026-06-10 15:13:28 +02:00
settings Rx-expiry ongoing alert (7-day lead), configurable morning check, Felleskatalogen links 2026-06-11 16:21:25 +02:00
ui Rx-expiry ongoing alert (7-day lead), configurable morning check, Felleskatalogen links 2026-06-11 16:21:25 +02:00
MainActivity.kt UI buildout: today screen, med editor with FEST autocomplete, schedule editor, settings 2026-06-10 14:22:29 +02:00
MedDetSammeApp.kt Backup: versioned JSON serializer, SigV4 + S3 client, JCE crypto, daily worker 2026-06-10 13:54:13 +02:00