sandcastle: @coa/site scaffold, landing page, API client (#14) #23

Merged
ben merged 2 commits from agent/issue-14 into main 2026-08-28 19:59:50 +00:00

Implements plan Task 10 (#14): the @coa/site Vite/React/Tailwind scaffold, landing page and API client.

  • site/: Vite 7 + React 19 + Tailwind 3.4; vite.config proxies /api -> localhost:8787; react-router with / = Landing.
  • Landing copy matches the plan (Your community. Your app. + four-platform sentence); CTA links to /apply.
  • src/api/types.ts: BackendReport/ProbeResult/ProbeName/Issue/SubmitResult re-declared to the server Task-7 shapes.
  • src/api/client.ts: makeApi(fetch) with validateBackend (JSON) and submit (multipart, surfaces status); Submission from @coa/schema.
  • client.test.ts: the two client tests; mocks typed and 400 branch narrowed so strict tsc passes.
  • pnpm-workspace.yaml: @swc/core allowBuilds set to true deliberately (GOTCHAS 1).

pnpm -r typecheck && pnpm -r test pass; pnpm --filter @coa/site build produces site/dist.

Implements plan Task 10 (#14): the @coa/site Vite/React/Tailwind scaffold, landing page and API client. - site/: Vite 7 + React 19 + Tailwind 3.4; vite.config proxies /api -> localhost:8787; react-router with / = Landing. - Landing copy matches the plan (Your community. Your app. + four-platform sentence); CTA links to /apply. - src/api/types.ts: BackendReport/ProbeResult/ProbeName/Issue/SubmitResult re-declared to the server Task-7 shapes. - src/api/client.ts: makeApi(fetch) with validateBackend (JSON) and submit (multipart, surfaces status); Submission from @coa/schema. - client.test.ts: the two client tests; mocks typed and 400 branch narrowed so strict tsc passes. - pnpm-workspace.yaml: @swc/core allowBuilds set to true deliberately (GOTCHAS 1). pnpm -r typecheck && pnpm -r test pass; pnpm --filter @coa/site build produces site/dist.
sandcastle: @coa/site scaffold, landing page, API client (#14)
All checks were successful
ci / seam (pull_request) Successful in 21s
cb7245fc9b
Plan Task 10: the site package the community fills the form in.

- site/: Vite 7 + React 19 + Tailwind 3.4 scaffold (matou-website colours),
  vite.config proxies /api -> localhost:8787, react-router routes with / = Landing.
- Landing page: "Your community. Your app." + the four-platform sentence,
  CTA links to /apply.
- src/api/types.ts: BackendReport/ProbeResult/ProbeName/Issue/SubmitResult
  re-declared to the server Task-7 shapes (site does not import server code).
- src/api/client.ts: makeApi(fetch) with validateBackend (JSON) and submit
  (multipart FormData, surfaces status); imports Submission from @coa/schema.
- src/api/client.test.ts: the plan's two client tests. Mocks typed and the 400
  branch narrowed with an `in` guard so the repo's strict tsc --noEmit passes
  (the SubmitResult catch-all `status: number` defeats `=== 400` narrowing).
- pnpm-workspace.yaml: set the @swc/core allowBuilds entry to true deliberately
  (GOTCHAS 1) — @vitejs/plugin-react-swc needs its native binary.
- STATUS.md: Task 10 (#14) landed.

pnpm -r typecheck && pnpm -r test pass; pnpm --filter @coa/site build produces
site/dist.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
sandcastle: merge main into agent/issue-14 — resolve STATUS.md and pnpm-lock.yaml (#14)
All checks were successful
ci / seam (pull_request) Successful in 45s
2a77bb29f6
ben merged commit 4f6eb2bd5f into main 2026-08-28 19:59:50 +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!23
No description provided.