From 17ea23a1ccc03353cabc57184055cc73099fee0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 28 May 2026 10:10:33 +0200 Subject: [PATCH] fix(meds): cadence picker accepts an allowedKinds filter Lets the wizard and the edit form constrain the radio list so the one-shot kind never appears alongside a medication-level switch that already encodes it. The unfiltered shape is preserved for callers that don't pass the prop. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../medications/scheduling/CadencePicker.tsx | 24 ++++++++++++++++++- .../__tests__/CadencePicker.test.tsx | 23 ++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/src/components/medications/scheduling/CadencePicker.tsx b/src/components/medications/scheduling/CadencePicker.tsx index 6aae641c5..85b886448 100644 --- a/src/components/medications/scheduling/CadencePicker.tsx +++ b/src/components/medications/scheduling/CadencePicker.tsx @@ -17,6 +17,13 @@ * grouped-flat-list semantic (no `RadioGroup` primitive ships in * `src/components/ui/`); shadcn `