sandcastle: onboarding design step (#16) #46

Merged
ben merged 2 commits from agent/issue-16 into main 2026-08-29 07:05:32 +00:00

closes #16

site: Onboarding design step (plan Task 12). Replaces the wizard placeholder with OnboardingStep editing data.onboarding; welcome/info-pages(0–3)/approval-select/endorsements-required/pending. Adds afterEach(cleanup) to test-setup so the plan two-test suite passes. pnpm -r typecheck && pnpm -r test && site build all green.

closes #16 site: Onboarding design step (plan Task 12). Replaces the wizard placeholder with OnboardingStep editing data.onboarding; welcome/info-pages(0–3)/approval-select/endorsements-required/pending. Adds afterEach(cleanup) to test-setup so the plan two-test suite passes. pnpm -r typecheck && pnpm -r test && site build all green.
sandcastle: POST /api/submit validates submission + logo, no persistence (#13)
All checks were successful
ci / seam (pull_request) Successful in 22s
d4e2eb9663
Plan Task 9. Phase-1 validate-only endpoint.

- server/src/multipart.ts: parseSubmissionForm(form) -> {ok,submission,logo}
  | {ok:false, issues[]}; validates submission JSON via @coa/schema
  SubmissionSchema and logo against LOGO_MIME / LOGO_MAX_BYTES, collecting
  field-path issues.
- server/src/routes/submit.ts: POST /api/submit -> 200 accepted (shared or
  passing self-hosted, backendReport included), 400 validation, 422 backend
  when a self-hosted probeBackend fails. Validate only; no persistence.
- server/src/app.ts: mount /api/submit + app.onError -> 500 JSON.
- server/test/submit.test.ts: the plan's five acceptance tests.
- STATUS.md: header + log updated.

Phase gate held: nothing written to communities/, nothing rendered, no email.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sandcastle: merge main into worker branch — resolve STATUS.md (#13)
Some checks failed
ci / seam (pull_request) Has been cancelled
3bef37ab53
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sandcastle: re-fire seam (GOTCHAS 10, #13)
All checks were successful
ci / seam (pull_request) Successful in 44s
135882357e
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sandcastle: onboarding design step (plan Task 12, #16)
Some checks failed
ci / seam (pull_request) Has been cancelled
af83a02eb7
Replace the wizard's onboarding placeholder with OnboardingStep, editing
data.onboarding via useForm:
- welcome page (w-heading/w-body)
- 0–3 info pages (ip-title-<i>/ip-body-<i>; Add disabled at 3, Remove per page)
- approval <select id=mode> over APPROVAL_MODES with the plan's labels
  (incl. whakawhanaungatanga session)
- "Endorsements required" (id=required, default 2, 1–20) only for the two
  endorsement modes
- pending page (p-heading/p-body/p-next)

Wired into Wizard.tsx. Added afterEach(cleanup) to site/src/test-setup.ts so
multi-it React suites don't leak DOM between tests (the plan's two-test file
relies on auto-cleanup). Updated STATUS.md.

Files: site/src/form/steps/OnboardingStep.tsx (+ .test.tsx),
site/src/form/Wizard.tsx, site/src/test-setup.ts, STATUS.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sandcastle: re-fire seam (GOTCHAS 10, #16)
All checks were successful
ci / seam (pull_request) Successful in 25s
54ac2d4383
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
ben merged commit 9058aa5311 into main 2026-08-29 07:05:32 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!46
No description provided.