Files
HealthLog/src/components/medications/wizard/steps/Step1Name.tsx
T
Marc-André BombeckandClaude Opus 4.7 0a0af4b772 feat(meds): modal-wizard skeleton + dialog/sheet shell
A new MedicationWizardDialog routes through a Dialog on desktop and
a bottom Sheet on mobile via the existing ResponsiveSheet primitive,
with the wizard's own header inside the body and the footer carrying
Back / Next / Save. The dialog tracks an eight-step state machine
whose visible counter follows the path the user actually walks —
one-shot collapses to 5 steps, daily to 7, every other cadence to 8.
The pure helpers (path table, validation gate, request-body builder,
summary formatter, edit-path hydration) live alongside the dialog
shell so the next commits can plug step content in without touching
the wiring. Step content is empty in this commit; the next commits
fill the eight steps.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 19:33:11 +02:00

13 lines
253 B
TypeScript

"use client";
import type { WizardPayload } from "../wizard-payload";
export interface StepProps {
payload: WizardPayload;
applyPartial: (partial: Partial<WizardPayload>) => void;
}
export function Step1Name(_props: StepProps) {
return null;
}