Skip to content

Enhanced confirmation dialog for deleting product groups#581

Merged
Soare-Robert-Daniel merged 3 commits intodevelopmentfrom
bugfix/pro/666
Apr 28, 2026
Merged

Enhanced confirmation dialog for deleting product groups#581
Soare-Robert-Daniel merged 3 commits intodevelopmentfrom
bugfix/pro/666

Conversation

@girishpanchal30
Copy link
Copy Markdown
Contributor

@girishpanchal30 girishpanchal30 commented Apr 21, 2026

Summary

Enhanced confirmation dialog for deleting product groups.

Will affect visual aspect of the product

YES

Screenshots

image image

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/ppom-pro/issues/666

@girishpanchal30 girishpanchal30 requested a review from Copilot April 21, 2026 05:29
@girishpanchal30 girishpanchal30 added the pr-checklist-skip Allow this Pull Request to skip checklist. label Apr 21, 2026
@pirate-bot pirate-bot added pr-checklist-complete The Pull Request checklist is complete. (automatic label) labels Apr 21, 2026
@pirate-bot
Copy link
Copy Markdown
Contributor

pirate-bot commented Apr 21, 2026

Plugin build for 9f59ed0 is ready 🛎️!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the admin “delete field group(s)” confirmation experience by including selected group names in the dialog and adjusting popup styling to better communicate destructive actions (issue #666).

Changes:

  • Adds group name metadata to the field-group list checkboxes so JS can reference the selected names.
  • Updates the bulk-delete confirmation flow to interpolate selected group name(s) into the popup title.
  • Tweaks shared popup UI styling (title size and confirm button colors).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.

File Description
templates/admin/existing-meta.php Adds data-name to group checkbox inputs for later use in confirmation UI.
js/admin/ppom-meta-table.js Builds a confirmation title containing selected group name(s) before executing bulk delete.
css/ppom-admin.css Updates shared popup title size and confirm button styling.
classes/fields.class.php Changes localized popup confirmation title string to include a %s placeholder for the group name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread css/ppom-admin.css
Comment on lines +1403 to +1409
.ppom-popup-actions .ppom-btn-confirm {
background-color: #ff0f0f;
}

.ppom-popup-actions .ppom-btn-confirm:hover {
background-color: #ef6060;
}
Comment thread js/admin/ppom-meta-table.js Outdated
Comment thread classes/fields.class.php
Comment thread js/admin/ppom-meta-table.js Outdated
Comment thread js/admin/ppom-meta-table.js Outdated
Comment thread css/ppom-admin.css
Comment on lines 1362 to 1365
.ppom-popup-title {
font-size: 2.5em;
font-size: 1.5em;
margin: 0;
line-height: 1.3;
Comment thread js/admin/ppom-meta-table.js Outdated
Comment thread templates/admin/existing-meta.php Outdated
Comment thread js/admin/ppom-meta-table.js Outdated
@Soare-Robert-Daniel
Copy link
Copy Markdown
Contributor

@girishpanchal30; can we also add here and E2E for it? It should test both the actions along with the title check.

@girishpanchal30
Copy link
Copy Markdown
Contributor Author

@Soare-Robert-Daniel I have added test cases for it. Please check it and let me know if any changes are needed. Thanks!

@Soare-Robert-Daniel Soare-Robert-Daniel merged commit b3316c4 into development Apr 28, 2026
11 checks passed
@Soare-Robert-Daniel Soare-Robert-Daniel deleted the bugfix/pro/666 branch April 28, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants