Add delete confirmation dialog for kanban cards

When clicking the trash icon to delete a feature card, users now see a
confirmation dialog asking them to confirm the deletion. This prevents
accidental deletions and provides a clear cancel option.

- Added Dialog component with confirm/cancel buttons to kanban-card
- Updated mock electron API to support test feature injection via __mockFeatures
- Added test utilities for delete confirmation dialog interactions
- Fixed test infrastructure to properly load mock features

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Cody Seibert
2025-12-09 08:42:11 -05:00
parent 243c84178e
commit 5e606726eb
6 changed files with 260 additions and 35 deletions

View File

@@ -990,7 +990,7 @@ export function BoardView() {
<DialogContent
data-testid="add-feature-dialog"
onKeyDown={(e) => {
if (e.shiftKey && e.key === "Enter" && newFeature.description) {
if ((e.metaKey || e.ctrlKey) && e.key === "Enter" && newFeature.description) {
e.preventDefault();
handleAddFeature();
}
@@ -1091,7 +1091,7 @@ export function BoardView() {
className="ml-2 px-1.5 py-0.5 text-[10px] font-mono rounded bg-white/10 border border-white/20"
data-testid="shortcut-confirm-add-feature"
>
</span>
</Button>
</DialogFooter>