mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
- Extract board-view into organized subfolders following new pattern: - components/: kanban-card, kanban-column - dialogs/: all dialog and modal components (8 files) - hooks/: all board-specific hooks (10 files) - shared/: reusable components between dialogs (model-selector, etc.) - Rename all files to kebab-case convention - Add barrel exports (index.ts) for clean imports - Add docs/folder-pattern.md documenting the folder structure - Reduce board-view.tsx from ~3600 lines to ~490 lines 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
55 lines
1.5 KiB
TypeScript
55 lines
1.5 KiB
TypeScript
"use client";
|
|
|
|
import {
|
|
Dialog,
|
|
DialogContent,
|
|
DialogDescription,
|
|
DialogFooter,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
} from "@/components/ui/dialog";
|
|
import { Button } from "@/components/ui/button";
|
|
import { Trash2 } from "lucide-react";
|
|
|
|
interface DeleteAllVerifiedDialogProps {
|
|
open: boolean;
|
|
onOpenChange: (open: boolean) => void;
|
|
verifiedCount: number;
|
|
onConfirm: () => void;
|
|
}
|
|
|
|
export function DeleteAllVerifiedDialog({
|
|
open,
|
|
onOpenChange,
|
|
verifiedCount,
|
|
onConfirm,
|
|
}: DeleteAllVerifiedDialogProps) {
|
|
return (
|
|
<Dialog open={open} onOpenChange={onOpenChange}>
|
|
<DialogContent data-testid="delete-all-verified-dialog">
|
|
<DialogHeader>
|
|
<DialogTitle>Delete All Verified Features</DialogTitle>
|
|
<DialogDescription>
|
|
Are you sure you want to delete all verified features? This action
|
|
cannot be undone.
|
|
{verifiedCount > 0 && (
|
|
<span className="block mt-2 text-yellow-500">
|
|
{verifiedCount} feature(s) will be deleted.
|
|
</span>
|
|
)}
|
|
</DialogDescription>
|
|
</DialogHeader>
|
|
<DialogFooter>
|
|
<Button variant="ghost" onClick={() => onOpenChange(false)}>
|
|
Cancel
|
|
</Button>
|
|
<Button variant="destructive" onClick={onConfirm} data-testid="confirm-delete-all-verified">
|
|
<Trash2 className="w-4 h-4 mr-2" />
|
|
Delete All
|
|
</Button>
|
|
</DialogFooter>
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
}
|