-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add UI to webhooks plugin #262
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
feat: Add UI to webhooks plugin #262
Conversation
|
ℹ️ Download the latest wp-graphql-headless-webhooks plugin zip from this PR |
…list.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
…er.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom). |
There was a problem hiding this 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 adds a complete WordPress admin interface for managing webhooks, including a test REST endpoint, updated repository methods using array parameters, and an enhanced admin UI with associated JavaScript and CSS assets.
- Implements a REST endpoint for testing webhooks with detailed logging and error handling.
- Updates repository API methods to accept data arrays and support configurable HTTP methods.
- Introduces new admin views, a custom list table, and improved AJAX interactions for managing and testing webhooks.
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Rest/WebhookTestEndpoint.php | Adds a REST endpoint for testing webhooks with structured logging and error handling. |
| Repository/WebhookRepository.php | Updates methods to receive webhook data as an array and allows filtering of HTTP methods. |
| Repository/Interfaces/WebhookRepositoryInterface.php | Aligns interface docblocks and methods with the updated repository API. |
| Plugin.php | Initializes the admin UI and REST endpoints conditionally based on the admin context. |
| Handlers/WebhookHandler.php | Enhances webhook dispatch with configurable timeout, SSL verification, and detailed logging. |
| Events/WebhookEventManager.php | Registers a test webhook event handler to trigger blocking test requests for debugging purposes. |
| Admin/views/*.php & partials | Introduces new admin views and partials for listing, creating, and editing webhook configurations. |
| Admin/WebhooksListTable.php | Implements a custom WP_List_Table for displaying and managing webhooks in the admin area. |
| assets/js/admin.js | Provides AJAX functionality and UI interactions for managing headers and testing webhooks. |
| assets/css/admin.css | Adds custom styles to support the updated admin UI for webhook management. |
| examples/next/webhooks-isr/.wp-env.json | Updates local environment configuration to PHP 8.0 and adds an additional WPGraphQL plugin. |
b1548b1
into
feat-webhooks-smart-cache-integration
Adds complete WordPress admin interface for webhook management.
Settings: WPGraphQL → Webhooks