New. Settings. Add certified plugins tab.#670
Open
svfcode wants to merge 24 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
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_dataand appends rows on scroll. - Hooks the new tab endpoint into
spbct_get_tab_dataand 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.
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>
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>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
task https://app.doboard.com/1/task/49914