Webhook Log
ProNewA webhook's deliveries with status, event, attempt and timing. A row opens in place to show the request and the response, each with a copy button, and a failed delivery can be sent again.
Installation
pnpm dlx shadcn@latest add @viewport/webhook-log
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| deliveries* | Delivery[] | — |
| onResend | (id: string) => void | Promise<void>Sends a delivery again. Return a promise to show progress until it settles. | — |
| className | string | — |
Accessibility
- Each row is a button with aria-expanded; the closed detail is inert.
- Failed is a word as well as a color, and a status of none reads as “No reply”.
- “Failed only” is a toggle with a pressed state, and the count is announced.
- Payloads are focusable so they can be scrolled from the keyboard.