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 <Dialog
open={open} open={open}
onOpenChange={(open) => { onOpenChange={(open) => {
onOpenChange(open);
if (!open && !isCreatingSpec) { if (!open && !isCreatingSpec) {
onSkip(); onSkip();
} }

View File

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