site: Vite/React/Tailwind scaffold, landing page, API client (plan Task 10) #14

Closed
opened 2026-08-28 15:06:47 +00:00 by ben · 2 comments
Owner

Plan

docs/superpowers/plans/2026-08-27-coa-phase-0-1.md Task 10.

Deliverable

Workspace package site (@coa/site) per the plan's file list: Vite 7 + React 19 + Tailwind 3.4 (matou-website conventions), vite.config.ts proxying /api → localhost:8787, src/pages/Landing.tsx, src/api/types.ts (BackendReport/ProbeResult/ProbeName/Issue/SubmitResult — same shapes as the server), src/api/client.ts (makeApi(fetch), api.validateBackend(url), api.submit(submission, logo)), src/api/client.test.ts, vitest + jsdom + testing-library setup.

Acceptance

  • pnpm --filter @coa/site test passes the plan's two client tests (JSON body for validate-backend; FormData body and surfaced status for submit).
  • pnpm --filter @coa/site build produces site/dist; landing page links to /apply.
  • Copy on the landing page matches the plan ("Your community. Your app." + the four-platform sentence).
  • pnpm -r typecheck && pnpm -r test exit 0; lockfile committed.

depends_on

  • schema: backend, ClientConfig and submission schemas (Task 4)

out_of_scope

the form itself.

depends_on (issue refs)

## Plan `docs/superpowers/plans/2026-08-27-coa-phase-0-1.md` **Task 10**. ## Deliverable Workspace package `site` (`@coa/site`) per the plan's file list: Vite 7 + React 19 + Tailwind 3.4 (matou-website conventions), `vite.config.ts` proxying `/api` → `localhost:8787`, `src/pages/Landing.tsx`, `src/api/types.ts` (`BackendReport`/`ProbeResult`/`ProbeName`/`Issue`/`SubmitResult` — same shapes as the server), `src/api/client.ts` (`makeApi(fetch)`, `api.validateBackend(url)`, `api.submit(submission, logo)`), `src/api/client.test.ts`, vitest + jsdom + testing-library setup. ## Acceptance - `pnpm --filter @coa/site test` passes the plan's two client tests (JSON body for validate-backend; `FormData` body and surfaced status for submit). - `pnpm --filter @coa/site build` produces `site/dist`; landing page links to `/apply`. - Copy on the landing page matches the plan ("Your community. Your app." + the four-platform sentence). - `pnpm -r typecheck && pnpm -r test` exit 0; lockfile committed. ## depends_on - schema: backend, ClientConfig and submission schemas (Task 4) ## out_of_scope the form itself. ## depends_on (issue refs) - #8

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: enhancement + ready-for-agent (was needs-triage).

  • Category — enhancement. New phase-1 code (plan Task 10); nothing is broken, so not a bug.
  • Not already implemented. No packages/ / server/ / site/ / tools/ / e2e/ in the tree yet (#7 is the first code ticket); no matching .out-of-scope/ rejection. Redundancy and prior-rejection checks both clear.
  • Fully specified — no grilling needed. The body (Deliverable · Interfaces · Acceptance · out_of_scope) together with plan Task 10, cited verbatim as the contract, is the agent brief; I'm not duplicating it.
  • Dependencies: #8 — registered on the tracker and enforced by the claim gate, so labelling the whole chain ready-for-agent now cannot let a worker start out of order.

Why a two-way door. The outcome is a label, reverted by a later label change, and every acceptance criterion is provable by the plan's own tests (pnpm -r typecheck && pnpm -r test). It touches no credential, emails no community contact, dispatches no build or release, provisions no shared-infra tenant, writes no real communities/ data, widens no security posture, and changes no form contract the spec does not already state — none of this repo's one-way doors.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** `enhancement` + `ready-for-agent` (was `needs-triage`). - **Category — enhancement.** New phase-1 code (plan Task 10); nothing is broken, so not a bug. - **Not already implemented.** No `packages/` / `server/` / `site/` / `tools/` / `e2e/` in the tree yet (#7 is the first code ticket); no matching `.out-of-scope/` rejection. Redundancy and prior-rejection checks both clear. - **Fully specified — no grilling needed.** The body (Deliverable · Interfaces · Acceptance · out_of_scope) together with plan **Task 10**, cited verbatim as the contract, *is* the agent brief; I'm not duplicating it. - **Dependencies:** #8 — registered on the tracker and enforced by the claim gate, so labelling the whole chain `ready-for-agent` now cannot let a worker start out of order. **Why a two-way door.** The outcome is a label, reverted by a later label change, and every acceptance criterion is provable by the plan's own tests (`pnpm -r typecheck && pnpm -r test`). It touches no credential, emails no community contact, dispatches no build or release, provisions no shared-infra tenant, writes no real `communities/` data, widens no security posture, and changes no form contract the spec does not already state — none of this repo's one-way doors.
Author
Owner

Ruled by agent under the two-way-door doctrine — veto anytime. The worker that opened PR #23 died before its close-report (no verdict row; dev-factory #114). The PR was green; main had drifted only in pnpm-lock.yaml and STATUS.md, resolved in a session worktree as 2a77bb2; seam green; merged by the interactive session under agent-after-green. Closing #14 — acceptance is provable by the seam (pnpm -r typecheck && pnpm -r test) on main. No close-report envelope exists for this ticket; this comment is the record.

**Ruled by agent under the two-way-door doctrine — veto anytime.** The worker that opened PR #23 died before its close-report (no verdict row; dev-factory #114). The PR was green; main had drifted only in `pnpm-lock.yaml` and `STATUS.md`, resolved in a session worktree as `2a77bb2`; seam green; merged by the interactive session under `agent-after-green`. Closing #14 — acceptance is provable by the seam (`pnpm -r typecheck && pnpm -r test`) on main. No close-report envelope exists for this ticket; this comment is the record.
ben 2026-08-28 20:00:05 +00:00
Sign in to join this conversation.
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.

Reference
Matou/coa#14
No description provided.