fix(visits): open an upcoming appointment where it lives

Visits are the second tab of `/checkups`, and the bare path opens the
first one, the preventive-care list, which never shows an appointment.
Every surface that listed an upcoming appointment linked it there: the
dashboard's next-appointment line, the Today rail item, the Today
overview fact and the appointment's push notification. A tap on the
appointment landed on the list it is not on.

Each now opens the visit itself (`/checkups?visit=<id>`), or the visits
tab (`/checkups?view=visits`) for a line naming several appointments.
The checkups page reads `view` to pick a tab. The rail item stops
borrowing the check-up item's action: it carries its own label
("View appointment") and intent `visit.view`. The appointment push names
its visit through the producer's `metadata.url` override; a check-up's
push keeps the checkups list.

The same mis-route sat on three links that lead to visits without
being upcoming: a condition's visit rows, the address book's back link
and the onboarding and timeline prompts to add a visit.

`visit-link-guard.test.ts` keeps the visit paths in the builder and
counts every bare `/checkups` per file, each with the reason it names
the checkups list.
This commit is contained in:
Marc-André Bombeck committed 2026-10-21 12:22:36 +02:00
1 parent 78bacb0d86
commit 0dcafeeb70
29 files changed
+591 -23

No files matched your search

+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "Dosis erfassen",
"reconnect": "Neu verbinden",
"viewCheckups": "Vorsorge ansehen",
"viewAppointment": "Termin ansehen",
"viewAppointments": "Termine ansehen",
"checkinKeep": "Behalten",
"checkinAdjust": "Anpassen",
"checkinLetGo": "Loslassen",
+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "Log dose",
"reconnect": "Reconnect",
"viewCheckups": "View check-ups",
"viewAppointment": "View appointment",
"viewAppointments": "View appointments",
"checkinKeep": "Keep it",
"checkinAdjust": "Adjust",
"checkinLetGo": "Let it go",
+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "Registrar dosis",
"reconnect": "Reconectar",
"viewCheckups": "Ver revisiones",
"viewAppointment": "Ver cita",
"viewAppointments": "Ver citas",
"checkinKeep": "Conservar",
"checkinAdjust": "Ajustar",
"checkinLetGo": "Dejarlo ir",
+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "Enregistrer la dose",
"reconnect": "Reconnecter",
"viewCheckups": "Voir les examens",
"viewAppointment": "Voir le rendez-vous",
"viewAppointments": "Voir les rendez-vous",
"checkinKeep": "Garder",
"checkinAdjust": "Ajuster",
"checkinLetGo": "Laisser tomber",
+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "Registra dose",
"reconnect": "Riconnetti",
"viewCheckups": "Vedi controlli",
"viewAppointment": "Vedi appuntamento",
"viewAppointments": "Vedi appuntamenti",
"checkinKeep": "Mantieni",
"checkinAdjust": "Modifica",
"checkinLetGo": "Lascia andare",
+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "복용 기록",
"reconnect": "다시 연결",
"viewCheckups": "건강검진 보기",
"viewAppointment": "예약 보기",
"viewAppointments": "예약 목록 보기",
"checkinKeep": "계속하기",
"checkinAdjust": "조정",
"checkinLetGo": "놓아주기",
+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "Dosis registreren",
"reconnect": "Opnieuw verbinden",
"viewCheckups": "Controles bekijken",
"viewAppointment": "Afspraak bekijken",
"viewAppointments": "Afspraken bekijken",
"checkinKeep": "Aanhouden",
"checkinAdjust": "Aanpassen",
"checkinLetGo": "Loslaten",
+2
View File
@@ -11997,6 +11997,8 @@
"logDose": "Zapisz dawkę",
"reconnect": "Połącz ponownie",
"viewCheckups": "Zobacz badania",
"viewAppointment": "Zobacz wizytę",
"viewAppointments": "Zobacz wizyty",
"checkinKeep": "Zachowaj",
"checkinAdjust": "Dostosuj",
"checkinLetGo": "Odpuść",