Skip to content
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

Confirmation Prompt for 'wp scrub all' and 'wp scrub comments' before deleting the comments. #14

Open
1 task done
ankitguptaindia opened this issue May 15, 2024 · 0 comments
Labels
type:enhancement New feature or request.

Comments

@ankitguptaindia
Copy link
Member

Is your enhancement related to a problem? Please describe.

Feature Description:

Currently, when a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber initiates the process of scrubbing all comments without informing the user about the irreversible nature of this action. This can lead to accidental deletion of all comments without any warning.

Proposed Enhancement:

To enhance user experience and prevent accidental data loss, I propose adding a confirmation prompt before executing the 'wp scrub all' or 'wp scrub comments' command. This prompt should inform the user about the irreversible nature of the action and require explicit confirmation from the user before proceeding with the deletion process.

Details:

When a user runs the 'wp scrub all' or 'wp scrub comments' command, WP Scrubber should display a message informing the user about the action's irreversible nature.
The message should clearly state that executing the command will delete all comments from the site and that this action cannot be undone.

The message should prompt the user to confirm their intention to proceed by typing 'yes'.

  • If the user types 'yes', WP Scrubber should proceed with deleting the comments as requested.

  • If the user does not type 'yes' or enters any other input, WP Scrubber should cancel the action and display a message indicating that no changes were made.

Warning: Running this command will delete all comments from the site, and this action cannot be undone.

To proceed, type 'yes'

Recording.647.1.mp4

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ankitguptaindia ankitguptaindia added the type:enhancement New feature or request. label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant