Frontend School

Interactive Kanban Board for Trip Planning

Machine Coding
hard

Interactive Kanban Board for Trip Planning

Hard
Frontend
React
State Management
Drag and Drop
UI/UX

Overview

Ixigo is building a new trip planning feature where users can organize their travel itinerary, tasks, and notes. A Kanban board is a natural fit for visualizing and managing these items across different stages of planning (e.g., "Researching", "Booked", "Confirmed", "Completed"). This problem challenges you to build a core part of this system, focusing on interactive task management and intuitive user experience.

What you need to do / Task

Your task is to implement a functional Kanban board with the following capabilities:

  1. Kanban Board Layout: Render a Kanban board with at least three predefined columns (e.g., "To Do", "In Progress", "Done").
  2. Card Display: Each column should display multiple "cards". Each card must show a title and optionally a brief description.
  3. Drag-and-Drop (Reordering): Implement functionality allowing users to drag a card and reorder it within the same column.
  4. Drag-and-Drop (Column Transfer): Implement functionality allowing users to drag a card from one column and drop it into another, thereby changing its status/column.
  5. Add New Card: Provide a mechanism (e.g., a button or input field) to add a new card to a specific column. New cards should appear at the bottom of the target column.
  6. State Management: All board and card data should be managed in the component's state. Changes (reordering, moving, adding) must persist visually.

UI/UX expectations

  • Column Structure: Columns should be clearly distinguishable and arranged horizontally.
  • Card Appearance: Cards should be visually distinct from the column background, with clear borders/shadows.
  • Drag Feedback: While dragging, the dragged card should have a visual indicator (e.g., a ghost image or reduced opacity). Drop zones should visually highlight when a draggable item hovers over them.
  • Responsiveness: A basic responsive layout (e.g., columns wrapping on smaller screens or using overflow-x for horizontal scrolling) is a plus but not the primary focus.

Acceptance criteria

  • The application renders a Kanban board with at least three columns as per the mock data.
  • Each column correctly displays its associated cards.
  • Users can successfully drag a card to reorder it within the same column, and the order persists.
  • Users can successfully drag a card from one column and drop it into another column.
  • After moving a card, its previous position in the source column is removed, and it appears in the target column.
  • There is a functional UI element (input field and button) to add a new card to a specified column.
  • Adding a new card updates the board state and renders the new card in the correct column.

Constraints

Constraints & assumptions

  • You are expected to use React for this implementation.
  • You may use a suitable drag-and-drop library (e.g., @dnd-kit) to expedite development, but be prepared to explain its usage and core concepts. If you choose not to use a library, native HTML5 Drag and Drop APIs are also acceptable.
  • The application should be purely client-side; no backend integration is required. All data persistence is in-memory for the duration of the session.
  • Focus on functional correctness and clean, maintainable code using modern React patterns (hooks, functional components).
  • Time limit: Approximately 45 minutes.

Out of scope

  • Authentication, user management, or complex data models beyond what is provided.
  • Full accessibility features for keyboard-only drag-and-drop beyond basic keyboard navigation provided by the library.
  • Extensive styling or pixel-perfect UI; focus on functionality and clear layout.
  • Real-time updates or collaborative editing.

What interviewers evaluate

  • Architectural Design: How well the component structure is organized, separation of concerns, and choice of state management patterns.
  • Core Functionality: Correctness and robustness of the drag-and-drop implementation, both for reordering within columns and transferring between columns.
  • Code Quality: Readability, maintainability, effective use of modern React patterns (hooks, functional components), and handling of edge cases.
  • UI/UX Implementation: Adherence to specified UI/UX expectations, including visual feedback during interactions and a functional add card feature.

Loading editor...