Problem Brief
Build a 3-column Kanban board (Todo, In Progress, Done) supporting card creation and moving cards cleanly across stages.
Requirements
- Render columns `[data-col="todo"]`, `[data-col="in-progress"]`, and `[data-col="done"]`.
- Add new cards to `todo` via `[data-testid="card-input"]` and `[data-testid="add-card"]`.
- Clicking `.move-right` moves a card from `todo` -> `in-progress` -> `done`.
- Clicking `.move-left` moves a card back left (`done` -> `in-progress` -> `todo`).
Progressive Hints (1)
- Define `const STAGES = ["todo", "in-progress", "done"]` and shift `stageIndex + 1` or `stageIndex - 1`.
Reference Solution
Stuck? Load the verified reference code into your editor.
Automated Test Suite
5 Test Cases Ready- Renders 3 Kanban columns with initial card in TodoTodo column starts with 1 .kanban-card
- Adds new ticket into Todo columnSubmitting card-input adds card inside [data-col="todo"]
- Moves card right from Todo to In ProgressClicking .move-right shifts card to [data-col="in-progress"]
- Moves card right again to DoneSecond .move-right moves card to [data-col="done"]
- Moves card back left cleanlyClicking .move-left from In Progress returns card to Todo
Live Sandboxed Previewiframe sandbox