site: form state, wizard shell, Brand and Features steps (plan Task 11) #15

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

Plan

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

Deliverable

site/src/form/FormState.tsx (FormProvider, useForm, initialFormData, validateStep, slugify, STEPS), form/Wizard.tsx (with interim placeholders for onboarding/backend/review), form/steps/BrandStep.tsx, form/steps/FeaturesStep.tsx, components/Field.tsx, pages/Apply.tsx; route /apply; tests FormState.test.tsx, BrandStep.test.tsx.

Acceptance

  • validateStep error keys are exactly brand.*, logo, onboarding.*, backend.feeAcknowledged, backend.report as the plan's test asserts (logo message: "Upload your logo (SVG or PNG, up to 2 MB)"; backend report message contains "Test your backend").
  • Brand step derives the slug from the name until the slug is edited (test in plan).
  • initialFormData() seeds primaryColour '#0a5c6b' / secondaryColour '#f2b134' so colour inputs validate without a change event.
  • Features step: identity shown checked + disabled; five toggles labelled per the plan.
  • pnpm -r typecheck && pnpm -r test exit 0.

depends_on

  • site: scaffold, landing, API client (Task 10)

depends_on (issue refs)

## Plan `docs/superpowers/plans/2026-08-27-coa-phase-0-1.md` **Task 11**. ## Deliverable `site/src/form/FormState.tsx` (`FormProvider`, `useForm`, `initialFormData`, `validateStep`, `slugify`, `STEPS`), `form/Wizard.tsx` (with interim placeholders for onboarding/backend/review), `form/steps/BrandStep.tsx`, `form/steps/FeaturesStep.tsx`, `components/Field.tsx`, `pages/Apply.tsx`; route `/apply`; tests `FormState.test.tsx`, `BrandStep.test.tsx`. ## Acceptance - `validateStep` error keys are exactly `brand.*`, `logo`, `onboarding.*`, `backend.feeAcknowledged`, `backend.report` as the plan's test asserts (logo message: "Upload your logo (SVG or PNG, up to 2 MB)"; backend report message contains "Test your backend"). - Brand step derives the slug from the name until the slug is edited (test in plan). - `initialFormData()` seeds `primaryColour '#0a5c6b'` / `secondaryColour '#f2b134'` so colour inputs validate without a change event. - Features step: identity shown checked + disabled; five toggles labelled per the plan. - `pnpm -r typecheck && pnpm -r test` exit 0. ## depends_on - site: scaffold, landing, API client (Task 10) ## depends_on (issue refs) - #14

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 11); 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 11, cited verbatim as the contract, is the agent brief; I'm not duplicating it.
  • Dependencies: #14 — 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 11); 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 11**, cited verbatim as the contract, *is* the agent brief; I'm not duplicating it. - **Dependencies:** #14 — 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.

Blocked — CI pull_request event not firing (cannot-proceed)

The implementation is complete and green locally. All Task 11 deliverables
landed on branch agent/issue-15 (PR #41):
site/src/form/FormState.tsx (FormProvider/useForm/initialFormData/validateStep/slugify/STEPS),
form/Wizard.tsx (with interim onboarding/backend/review placeholders),
form/steps/BrandStep.tsx, form/steps/FeaturesStep.tsx,
components/Field.tsx, pages/Apply.tsx, the /apply route, and the tests
FormState.test.tsx + BrandStep.test.tsx. Verified:

  • pnpm install --frozen-lockfile → 0
  • pnpm -r typecheck → 0
  • pnpm -r test → 0 (site 9/9, server 6/6, schema, tools all pass)
  • pnpm --filter @coa/site build → 0

What blocks it: the repo's Forgejo pull_request event has silently stopped
dispatching ci.yml seam tasks. Since run 30837 (#27, 2026-08-28 20:31Z) no
event=pull_request task has been created, while push/schedule/dispatch/issues
tasks keep running fine. PR #41 registered a ci / seam (pull_request) pending
status on both b0bcd49 and an empty re-trigger c1bae37, but no runner task
was ever created for either — it is stuck pending. Under
MERGE_AUTHORITY=agent-after-green the PR cannot merge without that check going
green, so the change cannot reach origin/main and I cannot file a success
close-report.

This is CI infrastructure outside this ticket's slice; .forgejo/workflows/ci.yml
is a protected path I cannot edit. Filed as #43 (ready-for-session): a
session re-pushes ci.yml to re-register the pull_request event (per ci.yml's
own header note), or an operator restarts the repo's Actions runner/event source.

To re-arm: once #43 is resolved and pull_request seam tasks dispatch again,
merge PR #41 (it is mergeable, no conflicts) and re-add ready-for-agent here
so the close-report can run. No code change is needed on this branch.

## Blocked — CI `pull_request` event not firing (cannot-proceed) The implementation is **complete and green locally**. All Task 11 deliverables landed on branch `agent/issue-15` (PR #41): `site/src/form/FormState.tsx` (`FormProvider`/`useForm`/`initialFormData`/`validateStep`/`slugify`/`STEPS`), `form/Wizard.tsx` (with interim onboarding/backend/review placeholders), `form/steps/BrandStep.tsx`, `form/steps/FeaturesStep.tsx`, `components/Field.tsx`, `pages/Apply.tsx`, the `/apply` route, and the tests `FormState.test.tsx` + `BrandStep.test.tsx`. Verified: - `pnpm install --frozen-lockfile` → 0 - `pnpm -r typecheck` → 0 - `pnpm -r test` → 0 (site 9/9, server 6/6, schema, tools all pass) - `pnpm --filter @coa/site build` → 0 **What blocks it:** the repo's Forgejo `pull_request` event has silently stopped dispatching `ci.yml` seam tasks. Since run 30837 (#27, 2026-08-28 20:31Z) no `event=pull_request` task has been created, while push/schedule/dispatch/issues tasks keep running fine. PR #41 registered a `ci / seam (pull_request) pending` status on both `b0bcd49` and an empty re-trigger `c1bae37`, but no runner task was ever created for either — it is stuck `pending`. Under `MERGE_AUTHORITY=agent-after-green` the PR cannot merge without that check going green, so the change cannot reach `origin/main` and I cannot file a success close-report. This is CI infrastructure outside this ticket's slice; `.forgejo/workflows/ci.yml` is a protected path I cannot edit. Filed as **#43** (`ready-for-session`): a session re-pushes `ci.yml` to re-register the `pull_request` event (per ci.yml's own header note), or an operator restarts the repo's Actions runner/event source. **To re-arm:** once #43 is resolved and `pull_request` seam tasks dispatch again, merge PR #41 (it is `mergeable`, no conflicts) and re-add `ready-for-agent` here so the close-report can run. No code change is needed on this branch.
ben closed this issue 2026-08-29 05:30:18 +00:00
Author
Owner

Ruled by agent under the two-way-door doctrine — veto anytime. #43 was resolved (ci.yml re-registered, 97f1a3c) and PR #41 went green at 00:21Z; main had drifted only in STATUS.md, resolved in a session worktree, seam green again, merged by the interactive session under agent-after-green (closes #15 closed this). Provable by the seam on main. Label sweep done; no close-report envelope exists — this comment is the record.

**Ruled by agent under the two-way-door doctrine — veto anytime.** #43 was resolved (ci.yml re-registered, `97f1a3c`) and PR #41 went green at 00:21Z; main had drifted only in `STATUS.md`, resolved in a session worktree, seam green again, merged by the interactive session under `agent-after-green` (`closes #15` closed this). Provable by the seam on main. Label sweep done; no close-report envelope exists — this comment is the record.
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#15
No description provided.