mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
fix(medications): English tab slugs in the URL, old links still open
The medication detail tabs put German words into the address for every language (`?tab=verlauf`, `?tab=bestand`). They are overview, effect, schedule, supply, history, injection and advanced now. Every old slug maps to its tab, so a bookmark, a link in an old report or a low-stock notification sent before the change opens where it did. The low-stock push, the list card and the efficacy summary link with the new slugs. The slug vocabulary moves into its own module with a test.
This commit is contained in:
1 parent
2a68b39a85
commit
6be88e777a
17 files changed
+160
-81
No files matched your search
@@ -310,7 +310,7 @@ describe("runMedicationLowStockTick", () => {
|
||||
thresholdDays: 7,
|
||||
unitsRemaining: 5,
|
||||
// Deep link lands on the detail page's Bestand (supply) tab.
|
||||
url: "/medications/med-1?tab=bestand",
|
||||
url: "/medications/med-1?tab=supply",
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -621,7 +621,7 @@ export async function runMedicationLowStockTick(
|
||||
// the service-worker payload's click target. Lands on
|
||||
// the detail page's Bestand (supply) tab, the surface
|
||||
// the alert is about.
|
||||
url: `/medications/${med.id}?tab=bestand`,
|
||||
url: `/medications/${med.id}?tab=supply`,
|
||||
},
|
||||
});
|
||||
if (!outcome.dispatched) {
|
||||
|
||||
@@ -1031,7 +1031,7 @@ const IOS_METADATA_ALLOWLIST = new Set([
|
||||
"phase",
|
||||
"date",
|
||||
// v1.16.11 — MEDICATION_LOW_STOCK deep link + context: the in-app
|
||||
// path the push should open (`/medications/{id}?tab=bestand`) plus
|
||||
// path the push should open (`/medications/{id}?tab=supply`) plus
|
||||
// the runway / threshold figures the iOS handler can surface.
|
||||
"url",
|
||||
"runwayDays",
|
||||
|
||||
Reference in new issue
Block a user