fix: update ProjectSetupDialog to correctly handle open state and improve BoardView layout

- Added missing onOpenChange call in ProjectSetupDialog to ensure proper state management.
- Reformatted the COLUMNS array in BoardView for improved readability and consistency.
- Adjusted DragOverlay component's formatting for better code clarity.
This commit is contained in:
Cody Seibert
2025-12-15 01:13:37 -05:00
parent 2c8add3b54
commit 25b1789b0a
2 changed files with 22 additions and 7 deletions

View File

@@ -39,6 +39,7 @@ export function ProjectSetupDialog({
<Dialog
open={open}
onOpenChange={(open) => {
onOpenChange(open);
if (!open && !isCreatingSpec) {
onSkip();
}

View File

@@ -114,9 +114,21 @@ type ColumnId = Feature["status"];
const COLUMNS: { id: ColumnId; title: string; colorClass: string }[] = [
{ id: "backlog", title: "Backlog", colorClass: "bg-[var(--status-backlog)]" },
{ id: "in_progress", title: "In Progress", colorClass: "bg-[var(--status-in-progress)]" },
{ id: "waiting_approval", title: "Waiting Approval", colorClass: "bg-[var(--status-waiting)]" },
{ id: "verified", title: "Verified", colorClass: "bg-[var(--status-success)]" },
{
id: "in_progress",
title: "In Progress",
colorClass: "bg-[var(--status-in-progress)]",
},
{
id: "waiting_approval",
title: "Waiting Approval",
colorClass: "bg-[var(--status-waiting)]",
},
{
id: "verified",
title: "Verified",
colorClass: "bg-[var(--status-success)]",
},
];
type ModelOption = {
@@ -2238,10 +2250,12 @@ export function BoardView() {
})}
</div>
<DragOverlay dropAnimation={{
duration: 200,
easing: 'cubic-bezier(0.18, 0.67, 0.6, 1.22)',
}}>
<DragOverlay
dropAnimation={{
duration: 200,
easing: "cubic-bezier(0.18, 0.67, 0.6, 1.22)",
}}
>
{activeFeature && (
<Card className="w-72 rotate-2 shadow-2xl shadow-black/25 border-primary/50 bg-card/95 backdrop-blur-sm transition-transform">
<CardHeader className="p-3">