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:
- Kanban Board Layout: Render a Kanban board with at least three predefined columns (e.g., "To Do", "In Progress", "Done").
- Card Display: Each column should display multiple "cards". Each card must show a title and optionally a brief description.
- Drag-and-Drop (Reordering): Implement functionality allowing users to drag a card and reorder it within the same column.
- 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.
- 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.
- 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.