fix(ui): link the adherence tile straight to the medication wizard and drop dead rail rules

The empty adherence tile linked to the retired /medications/new route,
which only redirects. The sidebar's short-touch rules keyed on a touch
screen at most 520 px tall, where the phone shell hides the rail, so
they could never apply.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 22:57:47 +02:00
1 parent c1144b3c4c
commit 04084dd6e2
4 files changed
+61 -16

No files matched your search

@@ -564,7 +564,7 @@ export function MedicationComplianceChart({
action={
canWriteDomain("medications") ? (
<Button asChild size="sm">
<Link href="/medications/new">
<Link href="/medications?new=1">
{t("charts.medicationsEmptyAction")}
</Link>
</Button>