Skip to content

wc_spam_order_details.ag#812

Open
alexandergull wants to merge 9 commits into
devfrom
wc_spam_order_details.ag
Open

wc_spam_order_details.ag#812
alexandergull wants to merge 9 commits into
devfrom
wc_spam_order_details.ag

Conversation

@alexandergull

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 17, 2026 11:13
# Conflicts:
#	js/apbct-public-bundle.min.js
#	js/apbct-public-bundle_ext-protection.min.js
#	js/apbct-public-bundle_ext-protection_gathering.min.js
#	js/apbct-public-bundle_full-protection.min.js
#	js/apbct-public-bundle_full-protection_gathering.min.js
#	js/apbct-public-bundle_gathering.min.js
#	js/apbct-public-bundle_int-protection.min.js
#	js/apbct-public-bundle_int-protection_gathering.min.js
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 65.78947% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 26.64%. Comparing base (6695732) to head (27e3bf0).

Files with missing lines Patch % Lines
lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php 69.44% 11 Missing ⚠️
...ntalk/Antispam/IntegrationsByClass/Woocommerce.php 0.00% 1 Missing ⚠️
lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (65.78%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev     #812      +/-   ##
============================================
+ Coverage     26.57%   26.64%   +0.06%     
- Complexity     5676     5691      +15     
============================================
  Files           269      269              
  Lines         24258    24290      +32     
============================================
+ Hits           6446     6471      +25     
- Misses        17812    17819       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds an admin “See details” action for stored WooCommerce spam orders, exposing an authenticated AJAX endpoint to fetch full order/customer JSON and rendering it in a modal in the admin UI.

Changes:

  • Added apbct_details_spam_order AJAX handler and a shared response-prep helper for returning decoded order/customer details.
  • Added a new row action (“See details”) to the WooCommerce spam orders list and a modal-based UI to display the details.
  • Added unit tests covering WcSpamOrdersFunctions::prepareDetailsOrderResponse() behavior across error and success scenarios.

Reviewed changes

Copilot reviewed 14 out of 25 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tests/ApbctWP/TestWcSpamOrdersFunctions.php New unit tests for prepareDetailsOrderResponse() (validation, not-found, happy path).
lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php Adds “See details” row action link for spam orders.
lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php Fixes wording (“not found”) and adds details AJAX handler + response helper.
lib/Cleantalk/Antispam/IntegrationsByClass/Woocommerce.php Registers the new admin AJAX action.
js/src/cleantalk-admin.js Adds click handler + modal rendering helper for viewing spam order details.
css/src/cleantalk-admin.css Styles for the new modal content/table rendering.
js/cleantalk-admin.min.js.map Rebuilt source map including new admin JS logic.
js/cleantalk-admin.min.js Rebuilt minified admin bundle including new modal logic.
css/cleantalk-admin.min.css Rebuilt minified admin CSS including new styles.
js/cleantalk-users-editscreen.min.js.map Rebuilt map (unrelated build output change).
js/cleantalk-users-editscreen.min.js Rebuilt minified file (unrelated build output change).
js/cleantalk-comments-editscreen.min.js.map Rebuilt map (unrelated build output change).
js/cleantalk-comments-editscreen.min.js Rebuilt minified file (unrelated build output change).
Files not reviewed (1)
  • css/cleantalk-admin.min.css: Generated file

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

Comment thread js/src/cleantalk-admin.js Outdated
Comment thread js/src/cleantalk-admin.js
Comment thread js/src/cleantalk-admin.js Outdated
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread tests/ApbctWP/TestWcSpamOrdersFunctions.php
Comment thread tests/ApbctWP/TestWcSpamOrdersFunctions.php Outdated
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php Outdated
Copilot AI review requested due to automatic review settings June 23, 2026 11:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 25 changed files in this pull request and generated 6 comments.

Files not reviewed (1)
  • css/cleantalk-admin.min.css: Generated file

Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php Outdated
Comment thread js/src/cleantalk-admin.js
Comment thread js/src/cleantalk-admin.js
Comment thread tests/ApbctWP/TestWcSpamOrdersFunctions.php
Copilot AI review requested due to automatic review settings June 24, 2026 12:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 25 changed files in this pull request and generated 11 comments.

Files not reviewed (1)
  • css/cleantalk-admin.min.css: Generated file

Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread js/src/cleantalk-admin.js
Comment thread tests/ApbctWP/TestWcSpamOrdersFunctions.php
Comment thread js/prebuild/apbct-public-bundle.js Outdated
Comment thread js/prebuild/apbct-public-bundle_int-protection.js Outdated
Comment thread js/prebuild/apbct-public-bundle_gathering.js Outdated
Comment thread js/prebuild/apbct-public-bundle_full-protection.js Outdated
Comment thread js/prebuild/apbct-public-bundle_full-protection_gathering.js Outdated
Comment thread js/prebuild/apbct-public-bundle_ext-protection.js Outdated
Comment thread js/prebuild/apbct-public-bundle_ext-protection_gathering.js Outdated
Copilot AI review requested due to automatic review settings June 24, 2026 12:21
@alexandergull alexandergull force-pushed the wc_spam_order_details.ag branch from 5fb9ac1 to 1531a0f Compare June 24, 2026 12:24
# Conflicts:
#	js/prebuild/apbct-public-bundle.js
#	js/prebuild/apbct-public-bundle_ext-protection.js
#	js/prebuild/apbct-public-bundle_ext-protection_gathering.js
#	js/prebuild/apbct-public-bundle_full-protection.js
#	js/prebuild/apbct-public-bundle_full-protection_gathering.js
#	js/prebuild/apbct-public-bundle_gathering.js
#	js/prebuild/apbct-public-bundle_int-protection.js
#	js/prebuild/apbct-public-bundle_int-protection_gathering.js

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 18 changed files in this pull request and generated 6 comments.

Files not reviewed (1)
  • css/cleantalk-admin.min.css: Generated file

Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php Outdated
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php Outdated
Comment thread js/src/cleantalk-admin.js
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 24, 2026 12:28
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
alexandergull and others added 2 commits June 24, 2026 17:30
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Files not reviewed (1)
  • css/cleantalk-admin.min.css: Generated file

Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php Outdated
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersFunctions.php
Comment thread js/src/cleantalk-admin.js
Comment thread css/src/cleantalk-admin.css
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.

3 participants