Skip to content

Fix: Obey delete task popup cancel #5260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025
Merged

Conversation

canvrno
Copy link
Contributor

@canvrno canvrno commented Jul 30, 2025

Related Issue

Issue: #5259

Description

Fixes an issue where cancelling/closing the delete task popup was still deleting the task. Introduced in #4745.

Test Procedure

Try to delete a task, hit cancel (or close the popup), and confirm the task is deleted. Test again, but confirm that confirming does delete it.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Fixes issue in deleteTasksWithIds.ts where canceling the delete task popup still deleted the task by checking userChoice.selectedOption.

  • Behavior:
    • Fixes issue in deleteTasksWithIds.ts where canceling the delete task popup still deleted the task.
    • Now checks if userChoice.selectedOption is not "Delete" before proceeding with deletion.
  • Misc:
    • Adds a changeset file green-falcons-itch.md for the patch update.

This description was created by Ellipsis for 8f5aad6. You can customize this summary. It will automatically update as commits are pushed.

Copy link

changeset-bot bot commented Jul 30, 2025

🦋 Changeset detected

Latest commit: 8f5aad6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
claude-dev Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

✅ Coverage increased or remained the same

Overall Assessment

Test coverage has been maintained or improved

Last updated: 2025-07-30T20:09:13.228315

@canvrno canvrno marked this pull request as ready for review July 30, 2025 21:37
@canvrno canvrno requested a review from abeatrix July 30, 2025 23:17
Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally and confirmed clicking on Cancel will not delete the task

@canvrno canvrno merged commit 768df13 into main Aug 1, 2025
17 checks passed
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.

2 participants