Frontend School

Interactive Kanban Board with Task Status Updates

Machine Coding
medium

Interactive Kanban Board with Task Status Updates

Medium
React
TypeScript
UI
State Management
Kanban

Overview

Kanban boards are powerful visual tools used in agile project management to track work through different stages, from "To Do" to "Done." They provide a clear overview of progress, bottlenecks, and priorities. In this problem, you will build a simplified, interactive Kanban board that allows users to visualize tasks and update their statuses.

What you need to do / Task

Your goal is to implement a functional Kanban board with the following features:

  1. Display Columns: Render a series of columns, each representing a distinct task status (e.g., "To Do", "In Progress", "Done"). The columns should be clearly separated and visually distinct.
  2. Display Tasks: Within each column, display a list of task cards. Each task card should clearly show the task's title and description. Use the provided mock data for initial tasks.
  3. Update Task Status: Implement a mechanism within each task card (e.g., a dropdown or a set of buttons) that allows users to change the task's status. When a task's status is updated, it should visually move to the corresponding column.
  4. Add New Tasks: Provide a simple input form (e.g., title and description fields) to add new tasks. Newly added tasks should initially appear in the "To Do" column.

UI/UX expectations

  • The Kanban board should be laid out horizontally, with columns side-by-side.
  • Each column should have a distinct header displaying its status name.
  • Task cards within columns should be clearly delineated, perhaps with a border or background color.
  • The status update mechanism (e.g., dropdown) within a task card should be easy to use and visually clear.
  • The "Add New Task" form should be accessible and straightforward.
  • Basic styling for readability and a clean appearance is expected, but pixel-perfect design is not the focus.

Acceptance criteria

  • The initial set of tasks is rendered correctly across their respective columns.
  • Changing a task's status via the provided UI (e.g., dropdown) successfully moves the task card to the target column.
  • Adding a new task via the form creates a new task card that appears in the "To Do" column.
  • The board's layout is functional and readable, with distinct columns and task cards.
  • No console errors are present during normal operation.

Constraints

Constraints & assumptions

  • You must use React with TypeScript.
  • All data will be managed client-side; no backend API calls or local storage persistence are required.
  • Focus on core functionality and state management.
  • Initial mock data for tasks and statuses will be provided.
  • The target time for completion is approximately 45 minutes.

Out of scope

  • Drag-and-drop functionality for moving tasks.
  • Saving/loading tasks to/from a backend or local storage.
  • Advanced features like task editing, deleting, filtering, or sorting.
  • Complex animations or highly responsive layouts for different screen sizes (basic responsiveness is fine).
  • User authentication or authorization.

What interviewers evaluate

  • Component Structure and Modularity: How well the application is broken down into logical, reusable React components.
  • State Management: The effectiveness and correctness of managing the application's state (tasks, statuses) using React hooks.
  • Event Handling and User Interaction: How accurately user interactions (status updates, new task creation) are handled and reflected in the UI.
  • TypeScript Usage: The appropriate and consistent application of TypeScript for type safety and code clarity.

Loading editor...