Skip to content

fix: confirm saved template deletion - #91

Open
ArianMoeini wants to merge 1 commit into
CopilotKit:mainfrom
ArianMoeini:fix/38-confirm-template-delete
Open

ArianMoeini wants to merge 1 commit into
CopilotKit:mainfrom
ArianMoeini:fix/38-confirm-template-delete

Conversation

@ArianMoeini

Copy link
Copy Markdown

Closes #38.

Saved templates were removed immediately when the Delete button was clicked. This adds an inline confirmation in the template card: the first click shows the consequence, Cancel or Escape keeps the template, and only “Delete template” calls the removal handler. Focus moves to Cancel when the prompt opens and returns to Delete if it is dismissed. Seed templates still have no delete action.

Verification: app tests 100 passed; TypeScript typecheck and ESLint on the changed files passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add delete confirmation for user-saved templates

1 participant