mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
https://www.loom.com/share/abbd19d1deaa4b3d8f8ae9c1f2f9b098?sid=d105ee21-f380-4c37-85f1-a58610cfff9d <!-- Make sure you've read the CONTRIBUTING.md guidelines: https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md --> <!-- RECURSEML_SUMMARY:START --> ## High-level PR Summary This PR adds webhook testing functionality to the dashboard, allowing users to send test events to their configured webhook endpoints and verify they're working correctly. The implementation adds a new backend API endpoint that creates a `stack.test` event via Svix, verifies successful delivery, and provides clear feedback. The dashboard UI is enhanced with a test dialog that shows a preview of the test payload and displays success or error messages, with the test action accessible both from the endpoint creation flow and the action menu for existing endpoints. ⏱️ Estimated Review Time: 15-30 minutes <details> <summary>💡 Review Order Suggestion</summary> | Order | File Path | |-------|-----------| | 1 | `packages/stack-shared/src/interface/admin-interface.ts` | | 2 | `packages/template/src/lib/stack-app/apps/interfaces/admin-app.ts` | | 3 | `packages/template/src/lib/stack-app/apps/implementations/admin-app-impl.ts` | | 4 | `apps/backend/src/app/api/latest/internal/send-test-webhook/route.tsx` | | 5 | `apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/webhooks/page-client.tsx` | </details> [](https://discord.gg/n3SsVDAW6U) [![Analyze latest changes]( |
||
|---|---|---|
| .. | ||
| backend | ||
| dashboard | ||
| dev-launchpad | ||
| e2e | ||
| mock-oauth-server | ||
| oauth-mock-server | ||