sandcastle: form state, wizard shell, Brand + Features steps (#15) #41

Merged
ben merged 3 commits from agent/issue-15 into main 2026-08-29 05:30:18 +00:00

closes #15

closes #15
sandcastle: form state, wizard shell, Brand + Features steps (#15)
Some checks failed
ci / seam (pull_request) Has been cancelled
b0bcd493d2
Plan Task 11. Adds the multi-step form scaffold in @coa/site:

- site/src/form/FormState.tsx — FormProvider, useForm, initialFormData,
  validateStep, slugify, STEPS. validateStep reuses @coa/schema
  (BrandSchema/OnboardingSchema/BackendSchema, LOGO_MIME/LOGO_MAX_BYTES) —
  the single source of truth; error keys are brand.*, logo, onboarding.*,
  backend.feeAcknowledged, backend.report. initialFormData() seeds
  primaryColour '#0a5c6b' / secondaryColour '#f2b134' so colour inputs
  validate without a change event.
- form/Wizard.tsx — progress header, Back/Next (Next runs validateStep and
  blocks on errors), with interim Placeholder components for onboarding,
  backend and review (real interim components per plan, replaced in 12–13).
- form/steps/BrandStep.tsx — derives slug from name until slug is edited.
- form/steps/FeaturesStep.tsx — identity checked+disabled; five toggles.
- components/Field.tsx, pages/Apply.tsx; /apply route in App.tsx.
- Tests: FormState.test.tsx, BrandStep.test.tsx (both from the plan).

Decision: narrowed the plan's r.data.configServerUrl on the parsed `kind`
so the BackendSchema discriminated union typechecks (plan snippet did not).

STATUS.md updated (header + log). No lockfile change (no dep edits).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ci: re-trigger pull_request seam (#15)
All checks were successful
ci / seam (pull_request) Successful in 22s
c1bae377b4
Empty commit to fire a pull_request synchronize event — the initial
push registered a pending ci/seam status but Forgejo never dispatched
the task (the pull_request-event flakiness ci.yml's header warns about).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sandcastle: merge main into agent/issue-15 — resolve STATUS.md (#15)
All checks were successful
ci / seam (pull_request) Successful in 25s
3a26495390
ben merged commit 0b93f4f694 into main 2026-08-29 05:30:18 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!41
No description provided.