mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user