sandcastle: backend step, Review, submit + Done page (plan Task 13, #17) #51
No reviewers
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa!51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "sandcastle/worker/20260829-072150-d137ee"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 typecheckandpnpm -r testexit 0 (schema 36, server 13, site 15);pnpm --filter @coa/site buildgreen.Refs #17
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>Closing: duplicate of PR #52 (
agent/issue-17, same head3b5ab43, carriescloses #17), which the interactive session is landing. Swept.Pull request closed