mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 15:02:04 +00:00
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>
13 lines
253 B
TypeScript
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;
|
|
}
|