[PR #1886] [MERGED] feat: test webhook functionality #1907

Closed
opened 2026-02-26 20:31:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1886
Author: @catalinpit
Created: 7/9/2025
Status: Merged
Merged: 7/14/2025
Merged by: @dguyen

Base: mainHead: feat/test-webhook-functionality


📝 Commits (8)

  • 314d83e feat: test webhook functionality
  • 634b336 feat: sample webhook data
  • 7e48485 chore: revert types removed by mistake
  • 1595409 chore: webhook sample data matches webhook payloads
  • 1701ff2 chore: remove redundant code
  • ec1a2eb chore: refactor sample data
  • 26d0ba7 chore: refactor
  • 6d658ab fix: invalid nested forms

📊 Changes

9 files changed (+808 additions, -32 deletions)

View changed files

apps/remix/app/components/dialogs/webhook-test-dialog.tsx (+170 -0)
📝 apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.webhooks.$id.tsx (+61 -13)
📝 apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.webhooks._index.tsx (+1 -1)
📝 packages/lib/server-only/webhooks/get-webhook-by-id.ts (+8 -17)
packages/lib/server-only/webhooks/trigger-test-webhook.ts (+44 -0)
packages/lib/server-only/webhooks/trigger/generate-sample-data.ts (+485 -0)
📝 packages/lib/types/webhook-payload.ts (+8 -1)
📝 packages/trpc/server/webhook-router/router.ts (+23 -0)
📝 packages/trpc/server/webhook-router/schema.ts (+8 -0)

📄 Description

Description

Allow users to trigger test webhooks for testing purposes.

Changes Made

Added a test webhook dialog that lets users select and trigger specific webhook events.

Testing Performed

Tested the webhooks locally.

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

Additional Notes

https://github.com/user-attachments/assets/eb8b6b9f-ae49-410e-9d08-18120d0b6ee5


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1886 **Author:** [@catalinpit](https://github.com/catalinpit) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/14/2025 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `feat/test-webhook-functionality` --- ### 📝 Commits (8) - [`314d83e`](https://github.com/documenso/documenso/commit/314d83edeb8d93a3a7c652ee1c53521400e607a5) feat: test webhook functionality - [`634b336`](https://github.com/documenso/documenso/commit/634b33645f72098096d15aae2b9a07104bd2ee9c) feat: sample webhook data - [`7e48485`](https://github.com/documenso/documenso/commit/7e4848509dd0eef439203bab2324e22514ac26b3) chore: revert types removed by mistake - [`1595409`](https://github.com/documenso/documenso/commit/15954090c9b0a53a91911248f886e1f5786ebc4f) chore: webhook sample data matches webhook payloads - [`1701ff2`](https://github.com/documenso/documenso/commit/1701ff29446f91c223229c75d58f1bd9946ce728) chore: remove redundant code - [`ec1a2eb`](https://github.com/documenso/documenso/commit/ec1a2ebde0693b6b996a11a9727dee35410434e0) chore: refactor sample data - [`26d0ba7`](https://github.com/documenso/documenso/commit/26d0ba788f2c1b82b35793b5798622c23d301f1e) chore: refactor - [`6d658ab`](https://github.com/documenso/documenso/commit/6d658ab67a6548abc072a51ae2b4f84a40e89642) fix: invalid nested forms ### 📊 Changes **9 files changed** (+808 additions, -32 deletions) <details> <summary>View changed files</summary> ➕ `apps/remix/app/components/dialogs/webhook-test-dialog.tsx` (+170 -0) 📝 `apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.webhooks.$id.tsx` (+61 -13) 📝 `apps/remix/app/routes/_authenticated+/t.$teamUrl+/settings.webhooks._index.tsx` (+1 -1) 📝 `packages/lib/server-only/webhooks/get-webhook-by-id.ts` (+8 -17) ➕ `packages/lib/server-only/webhooks/trigger-test-webhook.ts` (+44 -0) ➕ `packages/lib/server-only/webhooks/trigger/generate-sample-data.ts` (+485 -0) 📝 `packages/lib/types/webhook-payload.ts` (+8 -1) 📝 `packages/trpc/server/webhook-router/router.ts` (+23 -0) 📝 `packages/trpc/server/webhook-router/schema.ts` (+8 -0) </details> ### 📄 Description ## Description Allow users to trigger test webhooks for testing purposes. ## Changes Made Added a test webhook dialog that lets users select and trigger specific webhook events. ## Testing Performed Tested the webhooks locally. ## Checklist - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [ ] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [ ] I have addressed the code review feedback from the previous submission, if applicable. ## Additional Notes https://github.com/user-attachments/assets/eb8b6b9f-ae49-410e-9d08-18120d0b6ee5 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:31:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1907
No description provided.