Skip to content

[claude-sim] F1: Todo collection; list, add, complete, delete - #9

Merged
yogex merged 8 commits into
simulation/claudefrom
claude/f1-todos
Nov 29, 2026
Merged

yogex merged 8 commits into
simulation/claudefrom
claude/f1-todos

Conversation

@yogex

@yogex yogex commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Closes #5. Risk tier: normal.

Built by the Archon build engine:

  • Spec, plan and tasks: run 1e299a9e (Spec Kit specify, clarify, plan, tasks). Spec in specs/001-todo-list/.
  • Implementation: same run. The implement loop finished all 26 tasks in 1 iteration (10m57s).
  • Checks, review and push: run b63f4cf5 (bengine-ship). Run 1e299a9e was cancelled by a harness bug in the checks node (missing mkdir), not by the app.
  • Plain checks passed in round 0: install, typecheck, lint, unit, e2e desktop+phone, secrets. 0 fix rounds.
  • Fresh-context review 1 requested changes: 1 major, 4 minor. The builder added T027–T029. Review 2 approved with minor notes. Reviewer outputs: evidence/review/f1-*.json.txt on the harness branch.

Known follow-ups the reviewer raised:

  • Todos.ts has an afterError hook that works around Payload's production error formatter (research.md R10). The root cause is unconfirmed.
  • Todos access is open (() => true) until F4, as the spec allows.

Simulated decisions D2–D5 are in decisions/SIMULATED.md.


Generated by Claude Code

…T008)

- src/lib/todoTitle.ts: shared validate/normalize rule with unit tests (AC1, AC3, AC6)
- Todos collection with open access until F4, registered in payload config
- Generated migration 20261129_034046_todos and regenerated payload-types.ts
- e2e helpers clearTodos/createTodo/listTodos

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, T009-T013)

- Server page reads todos via Local API (force-dynamic) into TodoList client component
- e2e: AC2 list/empty state, AC1 server-side title validation via REST
- Todos afterError hook restores ValidationError field messages in 400 responses,
  which the production build otherwise drops

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… T014-T016)

- Enter/Add creates via POST /api/todos, prepends doc, clears and refocuses input
- Client-side validateTodoTitle, server 400 field messages, generic save error
- Double-submit guard; 44px input/button, wrapping form
- e2e: AC3 journeys incl. validation, rapid Enter and server failure

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… T017-T019)

- Controlled checkbox per todo, disabled while saving, updated in place on 2xx
- Error alert and unchanged state on failure; data-completed strikes title
- 44x44 label hit area around the checkbox
- e2e: AC4 toggle, reload persistence, position and failure

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…S4, T020-T022)

- Per-todo Delete button (44px), disabled while deleting, removed on 2xx
- Error alert keeps the todo on failure
- e2e: AC5 delete, reload persistence, empty state and failure

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lish (T023-T026)

- AC2: no horizontal scroll (project viewport and 375px) and 44px targets with a 200-char title
- AC3: markup in titles renders as plain text
- Confirm AC-prefixed test titles and AC1-AC6 coverage; full checks.sh gate green
- T026: curl server-validation check done; browser walkthrough covered by phone/desktop e2e

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- T027: confirm the todos migration snapshot JSON is committed (since
  ed7bcdb). A scratch DB with all migrations applied gives
  "No schema changes detected" from `payload migrate:create`
- T028: document the afterError ValidationError workaround (suspected
  duplicate module instance breaking instanceof) in research.md R10,
  with a follow-up to remove it
- T029: rapid-submit test now fires two same-tick submits and asserts
  a single POST, so the re-entry guard is exercised; escape regex
  metacharacters in the US4 item() helper

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yogex
yogex merged commit eca4536 into simulation/claude Nov 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants