Skip to content

Offline PWA: reuse SlotInput.svelte for wizard widget rendering #12

Description

@rec3141

From /code-review feat/offline-pwa (finding #6, reuse). The wizard (src/routes/samples/wizard/+page.svelte) and SiteWizard.svelte each re-implement the select/number/textarea/text widget switch that the existing src/lib/components/SlotInput.svelte already provides (the sample edit page uses it).

Cost: three copies of widget rendering drift — a new widget type, styling tweak, or validation fix must be made in all three, and the wizard inputs won't inherit SlotInput improvements.

Fix: render MIxS-slot questions through SlotInput in both wizard flows; keep only the genuinely-bespoke widgets (gps, project/site selectors, people, photos, datetime) inline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions