mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
feat(core): Remove code view link from sidebar navigation
Removed the Code View feature from the application: - Removed the Code View navigation item from sidebar - Removed the CodeView component import and case from page.tsx - Removed the code-view.tsx component file - Updated ViewMode type to exclude 'code' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -511,7 +511,15 @@ export function BoardView() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getColumnFeatures = (columnId: ColumnId) => {
|
const getColumnFeatures = (columnId: ColumnId) => {
|
||||||
return features.filter((f) => f.status === columnId);
|
return features.filter((f) => {
|
||||||
|
// If feature has a running agent, always show it in "in_progress"
|
||||||
|
const isRunning = runningAutoTasks.includes(f.id);
|
||||||
|
if (isRunning) {
|
||||||
|
return columnId === "in_progress";
|
||||||
|
}
|
||||||
|
// Otherwise, use the feature's status
|
||||||
|
return f.status === columnId;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleViewOutput = (feature: Feature) => {
|
const handleViewOutput = (feature: Feature) => {
|
||||||
@@ -682,6 +690,7 @@ export function BoardView() {
|
|||||||
title={column.title}
|
title={column.title}
|
||||||
color={column.color}
|
color={column.color}
|
||||||
count={columnFeatures.length}
|
count={columnFeatures.length}
|
||||||
|
isDoubleWidth={column.id === "in_progress"}
|
||||||
>
|
>
|
||||||
<SortableContext
|
<SortableContext
|
||||||
items={columnFeatures.map((f) => f.id)}
|
items={columnFeatures.map((f) => f.id)}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ interface KanbanColumnProps {
|
|||||||
color: string;
|
color: string;
|
||||||
count: number;
|
count: number;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
|
isDoubleWidth?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function KanbanColumn({
|
export function KanbanColumn({
|
||||||
@@ -18,6 +19,7 @@ export function KanbanColumn({
|
|||||||
color,
|
color,
|
||||||
count,
|
count,
|
||||||
children,
|
children,
|
||||||
|
isDoubleWidth = false,
|
||||||
}: KanbanColumnProps) {
|
}: KanbanColumnProps) {
|
||||||
const { setNodeRef, isOver } = useDroppable({ id });
|
const { setNodeRef, isOver } = useDroppable({ id });
|
||||||
|
|
||||||
@@ -25,7 +27,8 @@ export function KanbanColumn({
|
|||||||
<div
|
<div
|
||||||
ref={setNodeRef}
|
ref={setNodeRef}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex flex-col w-72 h-full rounded-lg bg-zinc-900/50 backdrop-blur-sm border border-white/5 transition-colors",
|
"flex flex-col h-full rounded-lg bg-zinc-900/50 backdrop-blur-sm border border-white/5 transition-colors",
|
||||||
|
isDoubleWidth ? "w-[37rem]" : "w-72",
|
||||||
isOver && "bg-zinc-800/50"
|
isOver && "bg-zinc-800/50"
|
||||||
)}
|
)}
|
||||||
data-testid={`kanban-column-${id}`}
|
data-testid={`kanban-column-${id}`}
|
||||||
@@ -40,7 +43,16 @@ export function KanbanColumn({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Column Content */}
|
{/* Column Content */}
|
||||||
<div className="flex-1 overflow-y-auto p-2 space-y-2">{children}</div>
|
<div
|
||||||
|
className={cn(
|
||||||
|
"flex-1 overflow-y-auto p-2",
|
||||||
|
isDoubleWidth
|
||||||
|
? "columns-2 gap-2 [&>*]:break-inside-avoid [&>*]:mb-2"
|
||||||
|
: "space-y-2"
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user