Skip to content

New. Settings. Add certified plugins tab.#670

Open
svfcode wants to merge 24 commits into
devfrom
add-psc-tab
Open

New. Settings. Add certified plugins tab.#670
svfcode wants to merge 24 commits into
devfrom
add-psc-tab

Conversation

@svfcode

@svfcode svfcode commented Jun 11, 2026

Copy link
Copy Markdown
Member

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

Adds a new “certified plugins” (PSC) tab to the plugin’s React-based settings UI, backed by a server-side controller that fetches PSC-certified plugin slugs from a CleanTalk API and renders a WordPress-style plugin install list (with infinite scroll).

Changes:

  • Introduces PSC catalog API client + list table renderer to display certified plugins.
  • Adds a new React tab (and icon/CSS) that loads the list via spbct_get_tab_data and appends rows on scroll.
  • Hooks the new tab endpoint into spbct_get_tab_data and enqueues required WP assets.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/SpbcPluginInstallListTable.php New WP list-table wrapper that builds rows from PSC API results + plugins_api() details.
lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsController.php New controller to add link, serve AJAX HTML/rows, and enqueue WP plugin-install assets.
lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsApi.php New API client for fetching PSC-certified plugin slugs (paged).
lib/CleantalkSP/SpbctWP/SpbcEnqueue.php Enqueues WP list-table/plugin-install assets on the plugin settings page.
js/src/react/config/Tabs.js Adds the new settings tab configuration + icon/component wiring.
js/src/react/components/TabContent/TabSecurityCertificated/TabSecurityCertificated.js New React tab implementation (AJAX fetch + infinite scroll + Thickbox modal binding).
js/src/react/components/TabContent/TabSecurityCertificated/styles.css Styling tweaks for the embedded WP list table + loader/sentinel.
js/src/react/components/TabContent/TabContent.js Enables React “new endpoint” fetching for the new tab (and extends the conditional list).
js/src/react/components/SvgIcons/SecurityCertificatedSvg.js New SVG icon for the tab.
inc/spbc-admin.php Registers controller init and routes security_certificated tab requests to the controller.

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

Comment thread js/src/react/components/TabContent/TabContent.js Outdated
Comment thread js/src/react/config/Tabs.js Outdated
Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsController.php Outdated

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 12 out of 13 changed files in this pull request and generated 9 comments.

Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php Outdated
Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarm.php
Comment thread js/src/react/components/TabContent/TabContent.js Outdated
Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php Outdated
svfcode and others added 6 commits June 25, 2026 17:03
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>
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 12 out of 13 changed files in this pull request and generated 3 comments.

Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/PscCertifiedPluginsController.php Outdated
svfcode and others added 4 commits June 25, 2026 19:12
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 12 out of 13 changed files in this pull request and generated 1 comment.

Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarm.php
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 12 out of 13 changed files in this pull request and generated 2 comments.

Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarmService.php Outdated
Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/SpbcPluginInstallListTable.php Outdated
svfcode and others added 2 commits June 25, 2026 21:38
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 12 out of 13 changed files in this pull request and generated 2 comments.

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 12 out of 13 changed files in this pull request and generated 1 comment.

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 12 out of 13 changed files in this pull request and generated 2 comments.

Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/SpbcPluginInstallListTable.php Outdated
svfcode and others added 2 commits June 26, 2026 06:09
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 12 out of 13 changed files in this pull request and generated 1 comment.

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 12 out of 13 changed files in this pull request and generated 3 comments.

Comment thread lib/CleantalkSP/SpbctWP/VulnerabilityAlarm/VulnerabilityAlarm.php

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 12 out of 13 changed files in this pull request and generated no new comments.

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