#35 site: Done links community page; Review handles 409 slug-taken #62

Merged
matou-build-agent merged 1 commit from sandcastle/worker/20260830-164344-f36cfb into main 2026-08-30 17:00:33 +00:00

Closes the site side of phase-2 Task 8 (#35).

  • SubmitResult mirrors the server: 200 {accepted,slug,pageUrl}, 409 {error:'slug-taken',slug}.
  • Review routes to /done?slug=…&page=… on 200; on 409 jumps to the brand step and flags brand.slug.
  • /done links the live community page and carries the build-pending copy.
  • Tests: new Done.test.tsx; two new Review.test.tsx cases.

pnpm -r typecheck, pnpm -r test, pnpm --filter @coa/site build all green.

Closes the site side of phase-2 Task 8 (#35). - `SubmitResult` mirrors the server: 200 `{accepted,slug,pageUrl}`, 409 `{error:'slug-taken',slug}`. - `Review` routes to `/done?slug=…&page=…` on 200; on 409 jumps to the brand step and flags `brand.slug`. - `/done` links the live community page and carries the build-pending copy. - Tests: new `Done.test.tsx`; two new `Review.test.tsx` cases. `pnpm -r typecheck`, `pnpm -r test`, `pnpm --filter @coa/site build` all green.
sandcastle: site Done links the community page; Review handles 409 (#35)
All checks were successful
ci / seam (pull_request) Successful in 38s
6cdf44bdb5
Wire the phase-2 site side to the /api/submit pipeline (phase-2 plan Task 8).

- site/src/api/types.ts: SubmitResult mirrors the server — 200 gains
  `pageUrl`, new 409 `{error:'slug-taken', slug}`.
- site/src/form/Review.tsx: on 200 navigate to
  `/done?slug=…&page=<encodeURIComponent(pageUrl)>`; on 409 jump to the brand
  step and flag `brand.slug` with "That short name is already taken — choose
  another" (also surfaced in Review's alert list for the directly-rendered
  test harness).
- site/src/pages/Done.tsx: link the live community page (`<a href={page}>`) and
  carry the "build pending" copy.
- Tests: new site/src/pages/Done.test.tsx; two new Review.test.tsx cases
  (200→/done with page= in the search, 409→role=alert "already taken");
  existing 200 case updated for the new pageUrl body.
- STATUS.md: header + log — phase-2 site side lands; only #36 e2e remains.

pnpm -r typecheck, pnpm -r test, pnpm --filter @coa/site build all green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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!62
No description provided.