mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
merge: W4 vorsorge->checkups rename into v1.22
This commit is contained in:
commit
8ca5974ad6
12 files changed
+91
-76
No files matched your search
@@ -12,7 +12,7 @@ import { VorsorgeSection } from "@/components/measurement-reminders/vorsorge-sec
|
||||
import { queryKeys } from "@/lib/query-keys";
|
||||
|
||||
/**
|
||||
* v1.17.1 — Vorsorge (preventive-care) reminders page. The dedicated
|
||||
* v1.17.1 — Checkups (preventive-care) reminders page. The dedicated
|
||||
* feature surface for "wann muss ich was wo machen". Auth-gated; the
|
||||
* section component owns the list + create flow.
|
||||
*
|
||||
@@ -20,7 +20,7 @@ import { queryKeys } from "@/lib/query-keys";
|
||||
* measurements): a pull invalidates the measurement-reminders read so the
|
||||
* list + server-computed next-due repaint.
|
||||
*/
|
||||
export default function VorsorgePage() {
|
||||
export default function CheckupsPage() {
|
||||
const { isAuthenticated, isLoading } = useAuth();
|
||||
const mounted = useMounted();
|
||||
const queryClient = useQueryClient();
|
||||
@@ -45,17 +45,17 @@ describe("nav-model destination list", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("gives Vorsorge a top-level nav home in the clinical spine (N-3)", () => {
|
||||
it("gives Checkups a top-level nav home in the clinical spine (N-3)", () => {
|
||||
const hrefs = NAV_DESTINATIONS.map((d) => d.href);
|
||||
expect(hrefs).toContain("/vorsorge");
|
||||
const vorsorge = NAV_DESTINATIONS.find((d) => d.href === "/vorsorge");
|
||||
expect(hrefs).toContain("/checkups");
|
||||
const vorsorge = NAV_DESTINATIONS.find((d) => d.href === "/checkups");
|
||||
expect(vorsorge?.tKey).toBe("nav.vorsorge");
|
||||
// v1.19.1 (S4) — the fixed spine is Medications → Vorsorge → Labs →
|
||||
// Illness → Insights, so Vorsorge sits after Medications and before Labs.
|
||||
// v1.19.1 (S4) — the fixed spine is Medications → Checkups → Labs →
|
||||
// Illness → Insights, so Checkups sits after Medications and before Labs.
|
||||
expect(hrefs.indexOf("/medications")).toBeLessThan(
|
||||
hrefs.indexOf("/vorsorge"),
|
||||
hrefs.indexOf("/checkups"),
|
||||
);
|
||||
expect(hrefs.indexOf("/vorsorge")).toBeLessThan(hrefs.indexOf("/labs"));
|
||||
expect(hrefs.indexOf("/checkups")).toBeLessThan(hrefs.indexOf("/labs"));
|
||||
expect(hrefs.indexOf("/labs")).toBeLessThan(hrefs.indexOf("/insights"));
|
||||
});
|
||||
|
||||
@@ -170,7 +170,7 @@ describe("visibleNavDestinations module gate", () => {
|
||||
expect(emptyMap).toContain("/measurements");
|
||||
expect(emptyMap).toContain("/medications");
|
||||
expect(emptyMap).toContain("/insights");
|
||||
expect(emptyMap).toContain("/vorsorge");
|
||||
expect(emptyMap).toContain("/checkups");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -210,7 +210,7 @@ describe("mobileMoreHubDestinations — the F-1 mobile invariant (N-2)", () => {
|
||||
// Feature surfaces that left the always-visible strip stay reachable.
|
||||
expect(hub).toContain("/measurements");
|
||||
expect(hub).toContain("/mood");
|
||||
expect(hub).toContain("/vorsorge");
|
||||
expect(hub).toContain("/checkups");
|
||||
// The shared utility tail rides at the end.
|
||||
expect(hub).toContain("/bugreport");
|
||||
expect(hub).toContain("/settings/account");
|
||||
|
||||
@@ -142,7 +142,7 @@ describe("<SidebarNav> module gating (v1.18.0)", () => {
|
||||
expect(html).toContain('href="/measurements"');
|
||||
expect(html).toContain('href="/medications"');
|
||||
expect(html).toContain('href="/insights"');
|
||||
expect(html).toContain('href="/vorsorge"');
|
||||
expect(html).toContain('href="/checkups"');
|
||||
});
|
||||
|
||||
it("renders a module's nav entry when its module is enabled", () => {
|
||||
|
||||
@@ -104,7 +104,7 @@ export const NAV_DESTINATIONS: ReadonlyArray<NavDestination> = [
|
||||
// render — not buried three taps deep under Settings → Reminders. The
|
||||
// Reminders hub still links to it; this is the direct front door.
|
||||
{
|
||||
href: "/vorsorge",
|
||||
href: "/checkups",
|
||||
tKey: "nav.vorsorge",
|
||||
icon: Stethoscope,
|
||||
tourId: "nav-vorsorge",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*
|
||||
* A compact chart-row card listing the next few due reminders with an
|
||||
* inline primary action per row — the same done-vs-capture branch the
|
||||
* dedicated `/vorsorge` page surfaces, scaled down for the dashboard.
|
||||
* dedicated `/checkups` page surfaces, scaled down for the dashboard.
|
||||
* A free-text / self-planned exam marks done silently; a measurement-
|
||||
* linked reminder opens the real measurement-entry form and satisfies
|
||||
* the reminder in the same action.
|
||||
@@ -109,7 +109,7 @@ export function VorsorgeDashboardCard() {
|
||||
{t("measurementReminders.dashboard.empty")}
|
||||
</p>
|
||||
<Button asChild variant="outline" size="sm">
|
||||
<Link href="/vorsorge">
|
||||
<Link href="/checkups">
|
||||
{t("measurementReminders.dashboard.openLink")}
|
||||
</Link>
|
||||
</Button>
|
||||
|
||||
@@ -137,7 +137,7 @@ const ALL_STOPS: readonly TourStop[] = [
|
||||
id: "vorsorge",
|
||||
targetId: "vorsorge-hero",
|
||||
placement: "bottom",
|
||||
route: "/vorsorge",
|
||||
route: "/checkups",
|
||||
titleKey: "onboarding.tour.steps.vorsorge.title",
|
||||
bodyKey: "onboarding.tour.steps.vorsorge.body",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user