Skip to content

Conversation

@josephfusco
Copy link
Member

@josephfusco josephfusco commented Jun 17, 2025

Adds complete WordPress admin interface for webhook management.

Settings: WPGraphQL → Webhooks

@josephfusco josephfusco changed the base branch from main to feat-webhooks-smart-cache-integration June 17, 2025 17:29
@github-actions
Copy link

ℹ️ Download the latest wp-graphql-headless-webhooks plugin zip from this PR
(See the 'Artifacts' section at the bottom)

@josephfusco josephfusco requested review from Copilot and theodesp June 17, 2025 17:34
@josephfusco josephfusco marked this pull request as ready for review June 17, 2025 17:34
@josephfusco josephfusco requested a review from a team as a code owner June 17, 2025 17:34

This comment was marked as outdated.

…list.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom).

@theodesp theodesp requested a review from Copilot June 18, 2025 09:56

This comment was marked as outdated.

…er.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@theodesp theodesp requested a review from Copilot June 18, 2025 09:58
@github-actions
Copy link

ℹ️ Download the wp-graphql-headless-webhooks plugin artifact from this workflow run (see the 'Artifacts' section at the bottom).

Copy link
Contributor

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 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.

@josephfusco josephfusco merged commit b1548b1 into feat-webhooks-smart-cache-integration Jun 18, 2025
2 of 3 checks passed
@josephfusco josephfusco deleted the feat-webhooks-ui branch June 18, 2025 14:57
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.

4 participants