@burdenoff/microfe-channel 2026.520.1 → 2026.525.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.js +226 -224
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.js +4 -4
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.js +2 -2
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelUsersPage.js +65 -57
- package/dist/channel/modules/channels/pages/ChannelUsersPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelsListPage.js +43 -41
- package/dist/channel/modules/channels/pages/ChannelsListPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js +1 -1
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ConnectionsListPage.js +1 -1
- package/dist/channel/modules/channels/pages/ConnectionsListPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js +183 -179
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/EditChannelPage.js +2 -2
- package/dist/channel/modules/channels/pages/EditChannelPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/WebhookEventsPage.js +165 -159
- package/dist/channel/modules/channels/pages/WebhookEventsPage.js.map +1 -1
- package/package.json +1 -1
- package/dist/channel/ChannelRoot.d.ts +0 -32
- package/dist/channel/ChannelRoot.d.ts.map +0 -1
- package/dist/channel/ChannelRoutes.d.ts +0 -10
- package/dist/channel/ChannelRoutes.d.ts.map +0 -1
- package/dist/channel/components/AdapterCredentialsForm.d.ts +0 -20
- package/dist/channel/components/AdapterCredentialsForm.d.ts.map +0 -1
- package/dist/channel/components/FeatureNotEnabled.d.ts +0 -13
- package/dist/channel/components/FeatureNotEnabled.d.ts.map +0 -1
- package/dist/channel/components/PermissionGuard.d.ts +0 -15
- package/dist/channel/components/PermissionGuard.d.ts.map +0 -1
- package/dist/channel/config/adapterCredentials.d.ts +0 -44
- package/dist/channel/config/adapterCredentials.d.ts.map +0 -1
- package/dist/channel/constants/permissions.d.ts +0 -32
- package/dist/channel/constants/permissions.d.ts.map +0 -1
- package/dist/channel/graphql/global-client.d.ts +0 -11
- package/dist/channel/graphql/global-client.d.ts.map +0 -1
- package/dist/channel/hooks/useChannelOrgSettings.d.ts +0 -22
- package/dist/channel/hooks/useChannelOrgSettings.d.ts.map +0 -1
- package/dist/channel/hooks/useChannelSubscription.d.ts +0 -36
- package/dist/channel/hooks/useChannelSubscription.d.ts.map +0 -1
- package/dist/channel/hooks/useChannels.d.ts +0 -228
- package/dist/channel/hooks/useChannels.d.ts.map +0 -1
- package/dist/channel/index.d.ts +0 -12
- package/dist/channel/index.d.ts.map +0 -1
- package/dist/channel/modules/channels/hooks/useExport.d.ts +0 -45
- package/dist/channel/modules/channels/hooks/useExport.d.ts.map +0 -1
- package/dist/channel/modules/channels/i18n.d.ts +0 -14
- package/dist/channel/modules/channels/i18n.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts +0 -14
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts +0 -12
- package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts +0 -11
- package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/EditChannelPage.d.ts +0 -8
- package/dist/channel/modules/channels/pages/EditChannelPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts +0 -10
- package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/SendMessagePage.d.ts +0 -8
- package/dist/channel/modules/channels/pages/SendMessagePage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts +0 -7
- package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/index.d.ts +0 -18
- package/dist/channel/modules/channels/pages/index.d.ts.map +0 -1
- package/dist/channel/pages/ChannelLandingPage.d.ts +0 -9
- package/dist/channel/pages/ChannelLandingPage.d.ts.map +0 -1
- package/dist/channel/providers/ChannelProvider.d.ts +0 -16
- package/dist/channel/providers/ChannelProvider.d.ts.map +0 -1
- package/dist/channel/types/index.d.ts +0 -89
- package/dist/channel/types/index.d.ts.map +0 -1
- package/dist/channel/utils/shellBridge.d.ts +0 -59
- package/dist/channel/utils/shellBridge.d.ts.map +0 -1
- package/dist/dev/App.d.ts +0 -6
- package/dist/dev/App.d.ts.map +0 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -1549
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23527
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/translations/en.d.ts +0 -260
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -5,13 +5,13 @@ import { useChannel as i } from "../../../hooks/useChannels.js";
|
|
|
5
5
|
import { PermissionGuard as a } from "../../../components/PermissionGuard.js";
|
|
6
6
|
import { CHANNEL_PERMISSIONS as o } from "../../../constants/permissions.js";
|
|
7
7
|
import { useExportWebhookEvents as s } from "../hooks/useExport.js";
|
|
8
|
-
import { useCallback as c, useEffect as l,
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import { AlertCircle as
|
|
11
|
-
import { useNavigate as
|
|
12
|
-
import { Fragment as
|
|
8
|
+
import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
|
|
9
|
+
import { useI18n as f } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
10
|
+
import { AlertCircle as p, ArrowLeft as m, CheckCircle2 as h, ChevronLeft as g, ChevronRight as ee, Clock as _, Download as v, Eye as y, EyeOff as b, Loader2 as x, RefreshCw as S, XCircle as C } from "lucide-react";
|
|
11
|
+
import { useNavigate as te, useParams as ne } from "react-router-dom";
|
|
12
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
13
13
|
//#region src/channel/modules/channels/pages/WebhookEventsPage.tsx
|
|
14
|
-
var
|
|
14
|
+
var D = {
|
|
15
15
|
PENDING: {
|
|
16
16
|
label: "Pending",
|
|
17
17
|
color: "text-muted-foreground bg-muted",
|
|
@@ -25,7 +25,7 @@ var k = {
|
|
|
25
25
|
COMPLETED: {
|
|
26
26
|
label: "Completed",
|
|
27
27
|
color: "text-status-success-text bg-status-success-bg-subtle",
|
|
28
|
-
icon:
|
|
28
|
+
icon: h
|
|
29
29
|
},
|
|
30
30
|
FAILED: {
|
|
31
31
|
label: "Failed",
|
|
@@ -38,287 +38,293 @@ var k = {
|
|
|
38
38
|
icon: b
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
function
|
|
42
|
-
let { channelId:
|
|
41
|
+
function O() {
|
|
42
|
+
let { channelId: h } = ne(), _ = te(), { t: C } = f(), O = (e, t) => {
|
|
43
43
|
let n = C(e);
|
|
44
44
|
return n === e ? t : n;
|
|
45
|
-
}, { organizationId:
|
|
46
|
-
if (
|
|
47
|
-
|
|
45
|
+
}, { organizationId: k } = e(), { triggerExport: A, isExporting: j, exportError: M } = s(k ?? void 0, h), [N, P] = d(!0), [F, I] = d([]), [re, ie] = d(null), [L, R] = d(25), [z, B] = d(0), [V, H] = d([void 0]), [U, W] = d(0), { channel: G, isLoading: K, error: q, fetchWebhookEvents: J } = i(h), Y = c(async (e) => {
|
|
46
|
+
if (h) {
|
|
47
|
+
P(!0);
|
|
48
48
|
try {
|
|
49
|
-
let t = await
|
|
50
|
-
return
|
|
49
|
+
let t = await J(L, e);
|
|
50
|
+
return I(t.items), B(t.total), t.nextCursor;
|
|
51
51
|
} finally {
|
|
52
|
-
|
|
52
|
+
P(!1);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
]);
|
|
56
|
+
h,
|
|
57
|
+
J,
|
|
58
|
+
L
|
|
59
|
+
]), X = u(Y), Z = u(V), Q = u(U);
|
|
60
|
+
l(() => {
|
|
61
|
+
X.current = Y, Z.current = V, Q.current = U;
|
|
62
|
+
});
|
|
63
|
+
let $ = u(!0);
|
|
60
64
|
l(() => {
|
|
61
65
|
Promise.resolve().then(() => {
|
|
62
|
-
|
|
66
|
+
H([void 0]), W(0), X.current(void 0);
|
|
63
67
|
});
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
}, [L]), l(() => {
|
|
69
|
+
if ($.current) {
|
|
70
|
+
$.current = !1;
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
Promise.resolve().then(() => X.current(Z.current[U]));
|
|
74
|
+
}, [U]);
|
|
75
|
+
let ae = c(async () => {
|
|
76
|
+
let e = await Y(V[U]);
|
|
77
|
+
e && H((t) => {
|
|
72
78
|
let n = [...t];
|
|
73
|
-
return n[
|
|
74
|
-
}),
|
|
79
|
+
return n[U + 1] || (n[U + 1] = e), n;
|
|
80
|
+
}), W((e) => e + 1);
|
|
75
81
|
}, [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
]),
|
|
80
|
-
let e =
|
|
81
|
-
|
|
82
|
+
V,
|
|
83
|
+
U,
|
|
84
|
+
Y
|
|
85
|
+
]), oe = c(() => {
|
|
86
|
+
let e = U - 1;
|
|
87
|
+
W(e), Y(V[e]);
|
|
82
88
|
}, [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
]),
|
|
89
|
+
V,
|
|
90
|
+
U,
|
|
91
|
+
Y
|
|
92
|
+
]), se = F.length === L, ce = U > 0;
|
|
87
93
|
r({
|
|
88
94
|
query: n,
|
|
89
|
-
variables: { channelId:
|
|
95
|
+
variables: { channelId: h },
|
|
90
96
|
operationName: "WebhookReceived",
|
|
91
|
-
enabled: !!
|
|
92
|
-
onData: () => {
|
|
93
|
-
t("webhook.received", { channelId:
|
|
94
|
-
},
|
|
95
|
-
pollFn: () => {
|
|
96
|
-
|
|
97
|
-
},
|
|
97
|
+
enabled: !!h,
|
|
98
|
+
onData: c(() => {
|
|
99
|
+
t("webhook.received", { channelId: h }), X.current(Z.current[Q.current]);
|
|
100
|
+
}, [h]),
|
|
101
|
+
pollFn: c(() => {
|
|
102
|
+
X.current(Z.current[Q.current]);
|
|
103
|
+
}, []),
|
|
98
104
|
pollIntervalMs: 6e4
|
|
99
105
|
});
|
|
100
|
-
let
|
|
101
|
-
return
|
|
106
|
+
let le = (e) => D[e] || D.PENDING;
|
|
107
|
+
return K ? /* @__PURE__ */ T("div", {
|
|
102
108
|
className: "flex items-center justify-center min-h-screen",
|
|
103
|
-
children: /* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ T(x, {
|
|
104
110
|
size: 32,
|
|
105
111
|
className: "animate-spin text-accent-primary"
|
|
106
112
|
})
|
|
107
|
-
}) :
|
|
113
|
+
}) : q || !G ? /* @__PURE__ */ T("div", {
|
|
108
114
|
className: "p-6",
|
|
109
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ E("div", {
|
|
110
116
|
className: "flex items-center gap-3 p-4 bg-status-error-bg-subtle border border-status-error-border rounded-lg",
|
|
111
117
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ T(p, {
|
|
113
119
|
size: 20,
|
|
114
120
|
className: "text-status-error-text"
|
|
115
121
|
}),
|
|
116
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ T("div", { children: /* @__PURE__ */ T("p", {
|
|
117
123
|
className: "text-sm font-medium text-status-error-text",
|
|
118
|
-
children:
|
|
124
|
+
children: q || "Channel not found"
|
|
119
125
|
}) }),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
onClick: () => _(`/channels/${
|
|
126
|
+
/* @__PURE__ */ T("button", {
|
|
127
|
+
onClick: () => _(`/channels/${h}`),
|
|
122
128
|
className: "ml-auto px-3 py-1 text-sm text-status-error-text hover:bg-status-error-bg-subtle rounded transition-colors",
|
|
123
129
|
children: "Go Back"
|
|
124
130
|
})
|
|
125
131
|
]
|
|
126
132
|
})
|
|
127
|
-
}) : /* @__PURE__ */
|
|
133
|
+
}) : /* @__PURE__ */ T(a, {
|
|
128
134
|
permission: o.CHANNEL_WEBHOOK_READ,
|
|
129
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ E("div", {
|
|
130
136
|
className: "space-y-6 p-3 sm:p-6",
|
|
131
137
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ E("div", {
|
|
133
139
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
134
|
-
children: [/* @__PURE__ */
|
|
140
|
+
children: [/* @__PURE__ */ E("div", {
|
|
135
141
|
className: "flex items-center gap-3",
|
|
136
|
-
children: [/* @__PURE__ */
|
|
137
|
-
onClick: () => _(`/channels/${
|
|
138
|
-
"aria-label":
|
|
142
|
+
children: [/* @__PURE__ */ T("button", {
|
|
143
|
+
onClick: () => _(`/channels/${h}`),
|
|
144
|
+
"aria-label": O("channel.backToChannel", "Back to channel"),
|
|
139
145
|
className: "p-2 text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors",
|
|
140
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ T(m, {
|
|
141
147
|
size: 20,
|
|
142
148
|
"aria-hidden": "true"
|
|
143
149
|
})
|
|
144
|
-
}), /* @__PURE__ */
|
|
150
|
+
}), /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
|
|
145
151
|
className: "text-xl sm:text-2xl font-bold text-foreground",
|
|
146
|
-
children:
|
|
147
|
-
}), /* @__PURE__ */
|
|
152
|
+
children: O("channel.webhookEvents", "Webhook Events")
|
|
153
|
+
}), /* @__PURE__ */ E("p", {
|
|
148
154
|
className: "text-sm text-muted-foreground mt-1",
|
|
149
|
-
children: [
|
|
155
|
+
children: [G.name, " - Event history"]
|
|
150
156
|
})] })]
|
|
151
|
-
}), /* @__PURE__ */
|
|
157
|
+
}), /* @__PURE__ */ E("div", {
|
|
152
158
|
className: "flex items-center gap-3",
|
|
153
159
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
value:
|
|
156
|
-
onChange: (e) =>
|
|
160
|
+
/* @__PURE__ */ E("select", {
|
|
161
|
+
value: L,
|
|
162
|
+
onChange: (e) => R(Number(e.target.value)),
|
|
157
163
|
className: "px-3 py-2 text-sm bg-surface border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-action-primary-bg/50 text-foreground",
|
|
158
164
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ T("option", {
|
|
160
166
|
value: 10,
|
|
161
167
|
children: "10 results"
|
|
162
168
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ T("option", {
|
|
164
170
|
value: 25,
|
|
165
171
|
children: "25 results"
|
|
166
172
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ T("option", {
|
|
168
174
|
value: 50,
|
|
169
175
|
children: "50 results"
|
|
170
176
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ T("option", {
|
|
172
178
|
value: 100,
|
|
173
179
|
children: "100 results"
|
|
174
180
|
})
|
|
175
181
|
]
|
|
176
182
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
onClick: () => void
|
|
179
|
-
disabled:
|
|
183
|
+
/* @__PURE__ */ E("button", {
|
|
184
|
+
onClick: () => void Y(V[U]),
|
|
185
|
+
disabled: N,
|
|
180
186
|
className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted rounded-lg transition-colors disabled:opacity-50",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
187
|
+
children: [/* @__PURE__ */ T(S, {
|
|
182
188
|
size: 16,
|
|
183
|
-
className:
|
|
184
|
-
}),
|
|
189
|
+
className: N ? "animate-spin" : ""
|
|
190
|
+
}), O("channel.refresh", "Refresh")]
|
|
185
191
|
}),
|
|
186
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ T(a, {
|
|
187
193
|
permission: o.CHANNEL_ADMIN,
|
|
188
|
-
children: /* @__PURE__ */
|
|
189
|
-
onClick: () => void
|
|
190
|
-
disabled:
|
|
194
|
+
children: /* @__PURE__ */ E("button", {
|
|
195
|
+
onClick: () => void A(),
|
|
196
|
+
disabled: j,
|
|
191
197
|
className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-fg border border-border hover:bg-bg-elevated rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
192
|
-
title:
|
|
193
|
-
children: [
|
|
198
|
+
title: O("channel.exportCSV", "Export to CSV"),
|
|
199
|
+
children: [j ? /* @__PURE__ */ T(x, {
|
|
194
200
|
size: 16,
|
|
195
201
|
className: "animate-spin"
|
|
196
|
-
}) : /* @__PURE__ */
|
|
202
|
+
}) : /* @__PURE__ */ T(v, { size: 16 }), O("channel.export", "Export")]
|
|
197
203
|
})
|
|
198
204
|
})
|
|
199
205
|
]
|
|
200
206
|
})]
|
|
201
207
|
}),
|
|
202
|
-
|
|
208
|
+
M && /* @__PURE__ */ E("div", {
|
|
203
209
|
className: "p-4 bg-status-error-bg-subtle border border-status-error-border rounded-lg flex items-center gap-3",
|
|
204
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ T(p, {
|
|
205
211
|
size: 20,
|
|
206
212
|
className: "text-status-error-text"
|
|
207
|
-
}), /* @__PURE__ */
|
|
213
|
+
}), /* @__PURE__ */ T("p", {
|
|
208
214
|
className: "text-sm text-status-error-text flex-1",
|
|
209
|
-
children:
|
|
215
|
+
children: M
|
|
210
216
|
})]
|
|
211
217
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ T("div", {
|
|
213
219
|
className: "p-4 bg-surface border border-border rounded-lg",
|
|
214
|
-
children: /* @__PURE__ */
|
|
220
|
+
children: /* @__PURE__ */ T("p", {
|
|
215
221
|
className: "text-sm text-muted-foreground",
|
|
216
222
|
children: "Webhook events show all incoming webhooks received by this channel. Data is retained for 7 days."
|
|
217
223
|
})
|
|
218
224
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ T("div", {
|
|
220
226
|
className: "bg-surface border border-border rounded-lg overflow-hidden",
|
|
221
|
-
children: /* @__PURE__ */
|
|
227
|
+
children: /* @__PURE__ */ T("div", {
|
|
222
228
|
className: "overflow-x-auto min-w-full",
|
|
223
|
-
children: /* @__PURE__ */
|
|
229
|
+
children: /* @__PURE__ */ E("table", {
|
|
224
230
|
className: "w-full min-w-[600px]",
|
|
225
|
-
children: [/* @__PURE__ */
|
|
231
|
+
children: [/* @__PURE__ */ T("thead", {
|
|
226
232
|
className: "bg-muted/50 border-b border-border",
|
|
227
|
-
children: /* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ E("tr", { children: [
|
|
234
|
+
/* @__PURE__ */ T("th", {
|
|
229
235
|
className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
|
|
230
|
-
children:
|
|
236
|
+
children: O("channel.status", "Status")
|
|
231
237
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ T("th", {
|
|
233
239
|
className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
|
|
234
|
-
children:
|
|
240
|
+
children: O("channel.eventType", "Event Type")
|
|
235
241
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ T("th", {
|
|
237
243
|
className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
|
|
238
|
-
children:
|
|
244
|
+
children: O("channel.duplicate", "Duplicate")
|
|
239
245
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ T("th", {
|
|
241
247
|
className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
|
|
242
|
-
children:
|
|
248
|
+
children: O("channel.processedAt", "Processed At")
|
|
243
249
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ T("th", {
|
|
245
251
|
className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
|
|
246
|
-
children:
|
|
252
|
+
children: O("channel.error", "Error")
|
|
247
253
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ T("th", {
|
|
249
255
|
className: "px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",
|
|
250
|
-
children:
|
|
256
|
+
children: O("channel.actions", "Actions")
|
|
251
257
|
})
|
|
252
258
|
] })
|
|
253
|
-
}), /* @__PURE__ */
|
|
259
|
+
}), /* @__PURE__ */ T("tbody", {
|
|
254
260
|
className: "divide-y divide-border",
|
|
255
|
-
children:
|
|
261
|
+
children: F.length === 0 ? /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
|
|
256
262
|
colSpan: 6,
|
|
257
263
|
className: "px-4 py-8 text-center text-muted-foreground",
|
|
258
|
-
children:
|
|
259
|
-
}) }) :
|
|
260
|
-
let t =
|
|
261
|
-
return /* @__PURE__ */
|
|
264
|
+
children: O("channel.noWebhookEventsFound", "No webhook events found")
|
|
265
|
+
}) }) : F.map((e) => {
|
|
266
|
+
let t = le(e.status), n = t.icon, r = re === e.id;
|
|
267
|
+
return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("tr", {
|
|
262
268
|
className: "hover:bg-muted/30 transition-colors",
|
|
263
269
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ T("td", {
|
|
265
271
|
className: "px-4 py-3",
|
|
266
|
-
children: /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ E("div", {
|
|
267
273
|
className: "flex items-center gap-2",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ T(n, {
|
|
269
275
|
size: 14,
|
|
270
276
|
className: t.color.split(" ")[0]
|
|
271
|
-
}), /* @__PURE__ */
|
|
277
|
+
}), /* @__PURE__ */ T("span", {
|
|
272
278
|
className: `text-sm font-medium ${t.color}`,
|
|
273
279
|
children: t.label
|
|
274
280
|
})]
|
|
275
281
|
})
|
|
276
282
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ T("td", {
|
|
278
284
|
className: "px-4 py-3 text-sm font-mono text-foreground",
|
|
279
285
|
children: e.eventType
|
|
280
286
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ T("td", {
|
|
282
288
|
className: "px-4 py-3",
|
|
283
|
-
children: e.isDuplicate ? /* @__PURE__ */
|
|
289
|
+
children: e.isDuplicate ? /* @__PURE__ */ T("span", {
|
|
284
290
|
className: "text-xs text-status-warning-text bg-status-warning-bg-subtle px-2 py-1 rounded",
|
|
285
291
|
children: "Duplicate"
|
|
286
|
-
}) : /* @__PURE__ */
|
|
292
|
+
}) : /* @__PURE__ */ T("span", {
|
|
287
293
|
className: "text-xs text-muted-foreground",
|
|
288
294
|
children: "No"
|
|
289
295
|
})
|
|
290
296
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ T("td", {
|
|
292
298
|
className: "px-4 py-3 text-sm text-muted-foreground",
|
|
293
299
|
children: e.processedAt ? new Date(e.processedAt).toLocaleString() : "-"
|
|
294
300
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ T("td", {
|
|
296
302
|
className: "px-4 py-3 text-sm text-status-error-text max-w-xs truncate",
|
|
297
303
|
children: e.errorMessage || "-"
|
|
298
304
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ T("td", {
|
|
300
306
|
className: "px-4 py-3",
|
|
301
|
-
children: /* @__PURE__ */
|
|
302
|
-
onClick: () =>
|
|
303
|
-
"aria-label": r ?
|
|
307
|
+
children: /* @__PURE__ */ T("button", {
|
|
308
|
+
onClick: () => ie(r ? null : e.id),
|
|
309
|
+
"aria-label": r ? O("channel.hidePayload", "Hide payload") : O("channel.viewPayload", "View payload"),
|
|
304
310
|
"aria-expanded": r,
|
|
305
311
|
className: "p-1 text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors",
|
|
306
|
-
children:
|
|
312
|
+
children: T(r ? b : y, {
|
|
307
313
|
size: 16,
|
|
308
314
|
"aria-hidden": "true"
|
|
309
315
|
})
|
|
310
316
|
})
|
|
311
317
|
})
|
|
312
318
|
]
|
|
313
|
-
}, e.id), r && /* @__PURE__ */
|
|
319
|
+
}, e.id), r && /* @__PURE__ */ T("tr", { children: /* @__PURE__ */ T("td", {
|
|
314
320
|
colSpan: 6,
|
|
315
321
|
className: "px-4 py-3 bg-muted/30",
|
|
316
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ E("div", {
|
|
317
323
|
className: "text-xs",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ E("p", {
|
|
319
325
|
className: "text-muted-foreground mb-1",
|
|
320
|
-
children: [
|
|
321
|
-
}), /* @__PURE__ */
|
|
326
|
+
children: [O("channel.payload", "Payload"), ":"]
|
|
327
|
+
}), /* @__PURE__ */ T("pre", {
|
|
322
328
|
className: "bg-surface p-2 rounded border border-border overflow-auto",
|
|
323
329
|
children: JSON.stringify(e.payload, null, 2)
|
|
324
330
|
})]
|
|
@@ -329,37 +335,37 @@ function A() {
|
|
|
329
335
|
})
|
|
330
336
|
})
|
|
331
337
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ E("div", {
|
|
333
339
|
className: "flex items-center justify-between",
|
|
334
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ T("p", {
|
|
335
341
|
className: "text-sm text-muted-foreground",
|
|
336
|
-
children:
|
|
337
|
-
|
|
342
|
+
children: z > 0 && /* @__PURE__ */ E(w, { children: [
|
|
343
|
+
O("channel.page", "Page"),
|
|
338
344
|
" ",
|
|
339
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ T("span", {
|
|
340
346
|
className: "font-medium",
|
|
341
|
-
children:
|
|
347
|
+
children: U + 1
|
|
342
348
|
}),
|
|
343
349
|
" · ",
|
|
344
|
-
|
|
350
|
+
O("channel.totalRecords", "Total"),
|
|
345
351
|
": ",
|
|
346
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ T("span", {
|
|
347
353
|
className: "font-medium",
|
|
348
|
-
children:
|
|
354
|
+
children: z
|
|
349
355
|
})
|
|
350
356
|
] })
|
|
351
|
-
}), /* @__PURE__ */
|
|
357
|
+
}), /* @__PURE__ */ E("div", {
|
|
352
358
|
className: "flex items-center gap-2",
|
|
353
|
-
children: [/* @__PURE__ */
|
|
354
|
-
onClick:
|
|
355
|
-
disabled: !
|
|
359
|
+
children: [/* @__PURE__ */ E("button", {
|
|
360
|
+
onClick: oe,
|
|
361
|
+
disabled: !ce || N,
|
|
356
362
|
className: "flex items-center gap-1 px-3 py-1.5 text-sm border border-border rounded-lg hover:bg-muted transition-colors disabled:opacity-40 disabled:cursor-not-allowed",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
358
|
-
}), /* @__PURE__ */
|
|
359
|
-
onClick: () => void
|
|
360
|
-
disabled: !
|
|
363
|
+
children: [/* @__PURE__ */ T(g, { size: 16 }), O("channel.previous", "Previous")]
|
|
364
|
+
}), /* @__PURE__ */ E("button", {
|
|
365
|
+
onClick: () => void ae(),
|
|
366
|
+
disabled: !se || N,
|
|
361
367
|
className: "flex items-center gap-1 px-3 py-1.5 text-sm border border-border rounded-lg hover:bg-muted transition-colors disabled:opacity-40 disabled:cursor-not-allowed",
|
|
362
|
-
children: [
|
|
368
|
+
children: [O("channel.next", "Next"), /* @__PURE__ */ T(ee, { size: 16 })]
|
|
363
369
|
})]
|
|
364
370
|
})]
|
|
365
371
|
})
|
|
@@ -368,6 +374,6 @@ function A() {
|
|
|
368
374
|
});
|
|
369
375
|
}
|
|
370
376
|
//#endregion
|
|
371
|
-
export {
|
|
377
|
+
export { O as WebhookEventsPage };
|
|
372
378
|
|
|
373
379
|
//# sourceMappingURL=WebhookEventsPage.js.map
|