sandcastle: backend step, Review, submit + Done page (plan Task 13, #17) #51

Closed
matou-build-agent wants to merge 0 commits from sandcastle/worker/20260829-072150-d137ee into main

Implements plan Task 13 (#17): backend step with live per-probe validation, Review step (toSubmission/stepForPath, submit → 200 /done, 400 issue lines, 422 backend report), and the /done page. Wizard placeholders replaced; tests BackendStep.test.tsx + Review.test.tsx.

Verification: pnpm -r typecheck and pnpm -r test exit 0 (schema 36, server 13, site 15); pnpm --filter @coa/site build green.

Refs #17

Implements plan Task 13 (#17): backend step with live per-probe validation, Review step (toSubmission/stepForPath, submit → 200 /done, 400 issue lines, 422 backend report), and the /done page. Wizard placeholders replaced; tests BackendStep.test.tsx + Review.test.tsx. Verification: `pnpm -r typecheck` and `pnpm -r test` exit 0 (schema 36, server 13, site 15); `pnpm --filter @coa/site build` green. Refs #17
sandcastle: backend step, Review, submit + Done page (plan Task 13, #17)
All checks were successful
ci / seam (pull_request) Successful in 39s
3b5ab4304f
Replaces the wizard's backend/review placeholders with real steps and
completes the /apply → /done flow.

- site/src/form/steps/BackendStep.tsx: shared (default, fee checkbox) vs
  self-hosted (config server URL + "Test my backend" → api.validateBackend,
  per-probe pass/fail list with aria-label, "N of M checks failed").
- site/src/form/Review.tsx: toSubmission (SubmissionSchema.parse) + stepForPath;
  submit → 200 navigates to /done?slug=…, 400 renders path: message lines and
  jumps to the failing step, 422 stores the report and jumps to backend.
- site/src/pages/Done.tsx + /done route; Wizard wires BackendStep/Review.
- Tests: BackendStep.test.tsx, Review.test.tsx.

Decisions:
- Narrowed the submit response with `in`-checks — the site's SubmitResult
  carries a {status:number} fallback member that defeats plain discriminant
  narrowing.
- Typed the Review test's submit mock so mock.calls destructures under tsc.
- Reworded the self-hosted radio copy so it no longer collides with the
  "config server url" label lookup in the test.

STATUS.md updated in the same commit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Owner

Closing: duplicate of PR #52 (agent/issue-17, same head 3b5ab43, carries closes #17), which the interactive session is landing. Swept.

Closing: duplicate of PR #52 (`agent/issue-17`, same head 3b5ab43, carries `closes #17`), which the interactive session is landing. Swept.
ben closed this pull request 2026-08-29 14:10:44 +00:00
All checks were successful
ci / seam (pull_request) Successful in 39s

Pull request closed

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!51
No description provided.