Log inBook a Demo
RefactorSeniorFrontendAuto-graded

Make a prototype feedback board production-ready

Add tests to a working feedback board, rebuild it in React and make it usable on a phone, working with your coding agent.Pulse is a small Kanban board for customer feedback. You can add a card, drag it between columns and delete it, and the board survives a refresh through localStorage. It works, but it's plain JavaScript with no tests and a layout made for a laptop. With your coding agent, move the board logic into src/board.js and test it with npm test, rebuild the UI in React without losing a feature, and make it work on a phone: columns that stack, buttons at least 44px tall and a delete button that doesn't need hover. Preview it live from the Ports panel as you go.
30 min
JavaScript · React · Vite

Goals

  • npm test runs your test suite once and passes.
  • Your tests catch a broken helper: if addCard, moveCard, removeCard or saveCards stops working, npm test fails.
  • The UI is a React app (react and react-dom in package.json, mounted with createRoot), and its components keep every feature: the columns, the add-card dialog, drag and drop, delete and saving, through the helpers in src/board.js.
  • src/board.js exports addCard, moveCard and removeCard, which work as in the prototype and return a new array without changing the one they are given.
  • loadCards and saveCards in src/board.js keep the board in localStorage: a saved board loads back after a reload, and with nothing saved, or a saved value that can't be read, you get the six sample cards.
  • On a phone-sized screen the columns stack or wrap so the page never scrolls sideways, and index.html keeps its viewport meta tag.
  • Buttons are at least 44px tall, and the delete button shows without hovering, since a phone has no hover.

What it measures

Test coverageTests for `addCard`, `moveCard`, `removeCard` and saved state, run with `npm test`.
React migrationThe UI rebuilt as React components, with every existing feature still working.
Mobile layoutA board you can use on a phone, with tappable controls and no sideways scrolling.
Directing the agentHow you split the work, review what the agent writes and check the result in the browser.

Your environment

Terminal + editorA full shell in the browser
Coding agentAlready signed in, no API key to set up
Isolated workspaceOnly yours, wiped when you finish

Start this lab

30 min
Start labYou'll need to sign in to Anthropos first. The lab opens in a private cloud workspace with your coding agent ready to use.
AI Labs is part of Anthropos Workforce. Not on your plan yet? Book a demo