Tighten the setup flow after a review of the whole diff

The done screen moves focus to its heading like every other screen; the
confirm screen's preference list holds only dt/dd pairs and the settings
link stands beside it; Back from Q1 is not offered once the flow has
been entered, because the front door would resume past the welcome and
bounce straight back; the medication task records no target on the
ledger, as the contract says, and keeps the id on the screen; and the
two success affordances go through the outcome module rather than a
hand-rolled tick. The error-code catalogue lists the answers and restart
codes and no longer the retired step ones, and the session-surface guard
learns the one new deriving helper the onboarding pages read through.
This commit is contained in:
Marc-André Bombeck committed 2026-09-10 16:09:18 +02:00
1 parent 2686da2803
commit 8c7cdcfc2b
9 files changed
+78 -89

No files matched your search

+3 -3
View File
@@ -18,12 +18,12 @@ export const onboardingKeys = {
/** `POST /api/onboarding/disclaimer` — the one-time acknowledgment. */
onboardingDisclaimerMutation: () => ["onboarding", "disclaimer"] as const,
/**
* The latest reading of one type, read back after the first-result step
* The latest reading of one area, read back after the first-result step
* logged it so the screen can show the value on its tile. Rides under the
* `["measurements"]` prefix so `measurementDependentKeys` evicts it.
*/
onboardingLatestReading: (type: string) =>
["measurements", "onboarding-latest", type] as const,
onboardingLatestReading: (area: string) =>
["measurements", "onboarding-latest", area] as const,
/**
* The upcoming-visit count the checklist's "prepare the visit" row reads
* off the visits list's meta. Its own key under the `["encounters"]`