test: mark the visit, dose and address-book deletes restorable

The three deletes gained an Undo toast that calls the restore route,
but the destructive-control registry still listed them as tombstoned
with no restore, with comments saying they would become restorable the
day a surface offered the undo. The correlation card test's header
still described the disabled "Coming soon" action it no longer tests.
This commit is contained in:
Marc-André Bombeck committed 2026-11-12 12:53:36 +01:00
1 parent 55b223d4ed
commit cad4c89831
2 files changed
+7 -10

No files matched your search

@@ -469,17 +469,15 @@ const REGISTRY: DestructiveEntry[] = [
destroys:
"a visit with its reason, outcome and the links it collected — and, for a booked one, the appointment reminder that would have nudged about it",
triggers: ["components/encounters/encounter-sheet.tsx"],
// The route soft-deletes and a restore route exists, but nothing in the
// product reaches it yet, so from a person's side the visit is gone. This
// becomes "restorable" the day a surface offers the undo, not before.
recovery: "tombstoned-no-restore",
// The delete toast offers the Undo that calls the restore route.
recovery: "restorable",
confirm: ["AlertDialog"],
},
{
file: "hooks/use-practitioners.ts",
destroys: "one address-book entry",
triggers: ["components/practitioners/practitioner-list.tsx"],
recovery: "tombstoned-no-restore",
recovery: "restorable",
confirm: ["AlertDialog"],
},
{
@@ -487,9 +485,8 @@ const REGISTRY: DestructiveEntry[] = [
destroys:
"one logged dose with its lot, site and the document links it collected — the booster reminder it once satisfied is deliberately not rewound",
triggers: ["components/vaccinations/vaccination-sheet.tsx"],
// The route soft-deletes and a restore route exists, but no surface offers
// the undo yet, so from a person's side the dose is gone.
recovery: "tombstoned-no-restore",
// The delete toast offers the Undo that calls the restore route.
recovery: "restorable",
confirm: ["AlertDialog"],
},
@@ -7,9 +7,9 @@ import type { CorrelationResult } from "@/lib/insights/correlations";
* v1.4.20 — `<CorrelationCard>` rendering.
*
* Tests cover:
* 1. OK status renders title + interpretation + source chip + disabled CTA.
* 1. OK status renders title + interpretation + source chip.
* 2. Insufficient status renders the empty-state instead.
* 3. CTA is `disabled` and exposes the "Coming soon" tooltip via `title`.
* 3. The card offers no placeholder action, only ones that work.
* 4. Confidence chip surfaces high / moderate / low.
* 5. Locale-aware copy (EN / DE).
*/