JavaScript AcademyProfessional Engineering

Level 3 · Interactive Web Applications Project 25 of 60 Runs in the browser

Project 25: Kanban Task Board

A three-column Kanban board rendered from state: add cards, move them with keyboard-friendly buttons, respect a work-in-progress limit and save the board.

Level 3 covers the DOM, events, forms, state and storage, so you write both files: the logic file holds pure state functions and app.js renders the state and handles events. Storage in the website's preview is memory-only; the downloaded project uses your browser's real localStorage.

1 · The problem

A small team tracks work on sticky notes. They want a digital board with To do, Doing and Done columns, cards that move with buttons (so it works with a keyboard and on phones), a limit on how many cards can be in Doing at once, and a board that is still there tomorrow.

User stories

  • As a team member, I want to move a card to Doing.
  • As a lead, I want no more than three things in progress.
  • As a keyboard user, I want every action to be a button.

2 · Requirements

  • Keep the board as { todo: [], doing: [], done: [] } of { id, title } cards.
  • Render each column with a count and its cards; each card has ◀ and ▶ buttons (hidden at the ends) and Delete.
  • Add a card to To do, rejecting empty titles.
  • Move a card left or right; refuse to move into Doing when it already has 3 cards.
  • Announce moves and refusals in a live region.
  • Save and load the board.

Acceptance criteria

  • The board starts with 3 / 2 / 1 cards.
  • Adding 'Write tests' gives To do 4 cards.
  • Moving a fourth card into Doing is refused with 'Doing already has 3 cards.'

Architecture

LayerFileResponsibility
Pageindex.html + style.cssAdd form, three columns, live region.
Stateboard.jsAdd, find, move, remove, counts, WIP limit. Your work.
View and eventsapp.jsColumns, buttons, announcements, storage. Your work.

Flow: Click → moveCard / removeCard / addCard(board, …) → ok? board = result, save, render : announce error

Expected result

Kanban Task Board: finished app
finished app

Screenshots are captured automatically from the solution by the browser test suite.

Build it: guided stages

Pick a stage, load its starter files, follow the steps, then run the app and the tests. Every stage is preserved separately, so loading one never overwrites another.

  1. Stage 1: Render the board · Draw three columns and their cards from state.
  2. Stage 2: Add, move, delete · Change the board through buttons and announce every result.
  3. Stage 3: Save the board · Keep the board between visits.

Troubleshooting

Moving a card duplicates it.
Remove it from the old column and add it to the new one in the same new board object.
Keyboard focus disappears after a move.
render() rebuilds the buttons; the live region tells screen-reader users what happened. An extension moves focus to the moved card.
The WIP limit lets a fourth card in.
Check the target column's length before moving.

Extension challenges

  1. Move focus to the moved card's button after render.
  2. Add drag and drop as well as the buttons.
  3. Let the user change the WIP limit.

Downloads

Browser projects open directly from index.html. Node.js unit tests: run node --test in the project folder.

AI development prompts

Context: I am building the academy's Kanban Task Board. Task: explain how computed property names like [from] help me build the new board. Constraints: explain the idea and point to the line that matters; do not write the whole solution. Expected behaviour: I can finish the stage myself. Testing: suggest two inputs that would show whether my code is right.
Context: My Kanban Task Board passes the visible tests. Task: check my board for accessibility: labels, announcements and focus. Constraints: do not rewrite my code; list issues in order of importance. Expected behaviour: I understand each issue and can fix it. Testing: give one test case per issue.
Context: I finished the Kanban Task Board. Task: help me plan this extension: move focus to the moved card. Constraints: keep the logic file free of page code; existing tests must still pass. Expected behaviour: a short plan with the functions to add or change. Testing: describe the new tests I should write first.

Source

Repository folder: projects/project-25-kanban-task-board/ · view on GitHub