/**
* FeaturesKanban Documentation Section
*
* Covers the Kanban board, feature cards, dependency graph view,
* adding/editing features, dependencies, expanding with AI,
* and priority ordering.
*/
import { Badge } from '@/components/ui/badge'
export function FeaturesKanban() {
return (
{/* Kanban Board Overview */}
Kanban Board Overview
The main view organizes features into three columns representing their current status:
|
Column
|
Color
|
Meaning
|
| Pending |
Yellow
|
Waiting to be picked up |
| In Progress |
Cyan
|
An agent is actively working on it |
| Done |
Green
|
Implemented and passing |
Each feature appears as a card showing its name, priority, and category. The board updates
in real time as agents work.
{/* Feature Cards */}
Feature Cards
-
Each card displays a priority badge (P1 through{' '}
P5), a category tag, and the feature name
- Status icons indicate the current state of the feature
- Click a card to open the detail modal with the full description and test steps
-
Cards in the "In Progress" column show which agent is currently working on them
{/* Dependency Graph View */}
Dependency Graph View
An alternative to the Kanban board that visualizes feature relationships as a directed graph.
-
Press G to toggle between Kanban and Graph view
- Uses the dagre layout engine for automatic node positioning
-
Nodes are colored by status — pending, in-progress, and done each have
distinct colors
- Arrows show dependency relationships between features
- Click any node to open the feature detail modal
- Supports both horizontal and vertical layout orientations
{/* Adding Features */}
Adding Features
-
Press N to open the Add Feature form
- Fill in: name, description, category, and priority
- Optionally define steps (test criteria the agent must pass to complete the feature)
- New features are added to the Pending column immediately
{/* Editing & Deleting Features */}
Editing & Deleting Features
- Click a feature card to open the detail modal
-
Click Edit to modify the name, description,
category, priority, or steps
-
Delete removes the feature permanently
-
Skip moves a feature to the end of the queue
without deleting it
{/* Feature Dependencies */}
Feature Dependencies
Features can declare dependencies on other features, ensuring they are implemented in the
correct order.
- Set dependencies in the feature edit modal
-
Cycle detection prevents circular dependencies (uses Kahn's algorithm combined
with DFS)
-
Blocked features display a lock icon and cannot be claimed by agents until their
dependencies are met
- The Dependency Graph view makes these relationships easy to visualize
{/* Expanding Project with AI */}
Expanding Project with AI
-
Press E to open the Expand Project modal
- Chat with Claude to describe the new features you want to add
- Supports image attachments for UI mockups or design references
- Claude creates properly structured features with appropriate dependencies
- New features appear on the board immediately after creation
{/* Priority & Ordering */}
Priority & Ordering
-
Features are ordered by priority: P1 is the highest
and P5 is the lowest
- Within the same priority level, features are ordered by creation time
- Agents always pick up the highest-priority ready feature first
)
}