@@ -32,6 +36,9 @@ export function KanbanBoard({ features, onFeatureClick }: KanbanBoardProps) {
features={features.pending}
color="pending"
onFeatureClick={onFeatureClick}
+ onAddFeature={onAddFeature}
+ onExpandProject={onExpandProject}
+ showExpandButton={hasFeatures}
/>
void
+ onAddFeature?: () => void
+ onExpandProject?: () => void
+ showExpandButton?: boolean
}
const colorMap = {
@@ -21,6 +25,9 @@ export function KanbanColumn({
features,
color,
onFeatureClick,
+ onAddFeature,
+ onExpandProject,
+ showExpandButton,
}: KanbanColumnProps) {
return (
-
- {title}
- {count}
-
+
+
+ {title}
+ {count}
+
+ {(onAddFeature || onExpandProject) && (
+
+ {onAddFeature && (
+
+ )}
+ {onExpandProject && showExpandButton && (
+
+ )}
+
+ )}
+
{/* Cards */}