Remove status on webhook data

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-02-13 16:23:38 +01:00
parent 2d2546ee1b
commit 6de906d0a9
11 changed files with 138 additions and 195 deletions

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<e16673382ec7f9083ba5df0b67d76583>>
* @generated SignedSource<<7427d67b4f9b27376c782cbe0601a5ec>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -9,7 +9,7 @@
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
export type WebhookEventStatus = "FAILED" | "SUCCEEDED";
export type WebhookEventStatus = "FAILED" | "PENDING" | "SUCCEEDED";
export type WebhooksSettingsPage_eventsQuery$variables = {
after?: string | null | undefined;
first?: number | null | undefined;

View File

@@ -289,6 +289,9 @@ function EventStatusBadge({ status }: { status: string }) {
if (status === "SUCCEEDED") {
return <Badge variant="success" size="sm">{__("Succeeded")}</Badge>;
}
if (status === "PENDING") {
return <Badge variant="info" size="sm">{__("Pending")}</Badge>;
}
return <Badge variant="danger" size="sm">{__("Failed")}</Badge>;
}