generated from wiz4apps/templates.OnlineShop
💻 Frontend (code) — task list screen with add, toggle, delete #5
Labels
No labels
High Priority
Low Priority
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SemianiakaVY/todo-list#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal — the single task-list screen, wired to the API.
Owner — Code Expert (
w4c-code).Deliverables
/— the task list: an add form (labelled input + submit), the rows with a done checkbox and a delete button, and an open-task counter formatted withtoLocaleString('en-US').POST/PATCH/DELETEon/api/todosand reflect the server response; on a non-2xx response show an error and revert the optimistic change.Acceptance (runtime + command)
http://localhost:9000/: add "write spec" → the row appears; tick it → completed style; delete → it disappears; the counter updates each time.pnpm lint && pnpm typecheck && pnpm build→ exit 0; the page renders the list from seeded data after a server restart.Ref —
docs/PLAN.md§5,SPEC.md§3/§5–§7; skillsstack-nextjs,stack-nextjs-quality.