@burdenoff/microfe-integrations 2026.624.4 → 2026.625.2
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/integrations/components/AddConnectionDialog.js +69 -65
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.js +27 -26
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ProviderCard.js +67 -66
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/pages/AddConnectionWizard.js +268 -283
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.js +241 -245
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.js +118 -119
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.js +68 -70
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.js +67 -67
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/dist/integrations/pages/IntegrationsSettings.js +71 -71
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.js +46 -46
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.js +214 -215
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/pages/ProviderEditorPage.js +152 -154
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
- package/dist/integrations/utils/constants.js +1 -0
- package/dist/integrations/utils/constants.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,40 +2,41 @@ import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
|
|
|
2
2
|
import { cn as t } from "../utils/cn.js";
|
|
3
3
|
import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
|
|
4
4
|
import { formatDate as r } from "../utils/integrationsHelpers.js";
|
|
5
|
-
import { LOG_ACTION_OPTIONS as i, LOG_LEVEL_OPTIONS as
|
|
6
|
-
import { INTEGRATION_FEATURE_FLAGS as
|
|
5
|
+
import { LOG_ACTION_OPTIONS as i, LOG_LEVEL_OPTIONS as ee } from "../utils/constants.js";
|
|
6
|
+
import { INTEGRATION_FEATURE_FLAGS as a } from "../constants/featureFlags.js";
|
|
7
7
|
import { useIntegrationLogs as o } from "../hooks/useLogs.js";
|
|
8
|
-
import { useId as
|
|
9
|
-
import { Activity as
|
|
10
|
-
import { usePermissions as
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import { useFeatureFlag as
|
|
8
|
+
import { useId as s, useMemo as c, useState as l } from "react";
|
|
9
|
+
import { Activity as u, AlertCircle as d, AlertTriangle as f, ArrowLeft as p, Bug as m, ChevronLeft as te, ChevronRight as ne, Download as re, FileText as h, Filter as g, Info as _, Loader2 as v, RefreshCw as y, Search as b, X as x } from "lucide-react";
|
|
10
|
+
import { usePermissions as S } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
11
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
12
|
+
import { useFeatureFlag as E } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
13
|
+
import { Button as D } from "@burdenoff/fe-libs/ui";
|
|
13
14
|
//#region src/integrations/pages/ConnectionLogs.tsx
|
|
14
15
|
function O(e) {
|
|
15
16
|
switch (e) {
|
|
16
|
-
case "error": return /* @__PURE__ */
|
|
17
|
+
case "error": return /* @__PURE__ */ w(d, {
|
|
17
18
|
size: 14,
|
|
18
19
|
className: "text-status-error-text"
|
|
19
20
|
});
|
|
20
|
-
case "warn": return /* @__PURE__ */
|
|
21
|
+
case "warn": return /* @__PURE__ */ w(f, {
|
|
21
22
|
size: 14,
|
|
22
23
|
className: "text-status-warning-text"
|
|
23
24
|
});
|
|
24
|
-
case "info": return /* @__PURE__ */
|
|
25
|
+
case "info": return /* @__PURE__ */ w(_, {
|
|
25
26
|
size: 14,
|
|
26
27
|
className: "text-status-info-text"
|
|
27
28
|
});
|
|
28
|
-
case "debug": return /* @__PURE__ */
|
|
29
|
+
case "debug": return /* @__PURE__ */ w(m, {
|
|
29
30
|
size: 14,
|
|
30
31
|
className: "text-text-tertiary"
|
|
31
32
|
});
|
|
32
|
-
default: return /* @__PURE__ */
|
|
33
|
+
default: return /* @__PURE__ */ w(u, {
|
|
33
34
|
size: 14,
|
|
34
35
|
className: "text-text-tertiary"
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function k(e) {
|
|
39
40
|
switch (e) {
|
|
40
41
|
case "error": return "text-status-error-text bg-status-error-bg-subtle border-border-default";
|
|
41
42
|
case "warn": return "text-status-warning-text bg-status-warning-bg-subtle border-border-default";
|
|
@@ -44,10 +45,10 @@ function re(e) {
|
|
|
44
45
|
default: return "text-text-secondary bg-bg-sunken border-border-subtle";
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function A(e) {
|
|
48
49
|
return `"${String(e ?? "").replaceAll("\"", "\"\"")}"`;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function ie(e) {
|
|
51
52
|
let t = [[
|
|
52
53
|
"Created At",
|
|
53
54
|
"Level",
|
|
@@ -64,72 +65,72 @@ function A(e) {
|
|
|
64
65
|
e.requestMethod,
|
|
65
66
|
e.requestUrl,
|
|
66
67
|
e.responseStatus
|
|
67
|
-
])].map((e) => e.map(
|
|
68
|
+
])].map((e) => e.map(A).join(",")).join("\n"), n = new Blob([t], { type: "text/csv;charset=utf-8" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
68
69
|
i.href = r, i.download = `integration-logs-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, i.click(), URL.revokeObjectURL(r);
|
|
69
70
|
}
|
|
70
71
|
function j() {
|
|
71
|
-
let { basePath:
|
|
72
|
+
let { basePath: u = "/", navigate: f } = e(), { hasPermission: m, isLoading: _ } = S(), A = m(n.LOG_READ), j = E(a.CSV_EXPORT, !0), M = s(), N = `${M}-level`, P = `${M}-action`, [F, I] = l(""), [L, R] = l("all"), [z, B] = l("all"), [V, H] = l(!1), [U, W] = l(1), { logs: G, total: K, loading: q, error: J, refetch: Y } = o({
|
|
72
73
|
level: L === "all" ? void 0 : L,
|
|
73
74
|
action: z === "all" ? void 0 : z,
|
|
74
75
|
page: U,
|
|
75
76
|
pageSize: 20,
|
|
76
|
-
skip:
|
|
77
|
-
}), X =
|
|
77
|
+
skip: _ || !A
|
|
78
|
+
}), X = c(() => {
|
|
78
79
|
if (!F) return G ?? [];
|
|
79
80
|
let e = F.toLowerCase();
|
|
80
81
|
return (G ?? []).filter((t) => t.message.toLowerCase().includes(e) || (t.requestUrl?.toLowerCase().includes(e) ?? !1));
|
|
81
82
|
}, [G, F]), Z = Math.ceil((K ?? 0) / 20), Q = F || L !== "all" || z !== "all", $ = () => {
|
|
82
83
|
I(""), R("all"), B("all"), W(1);
|
|
83
84
|
};
|
|
84
|
-
return
|
|
85
|
+
return _ ? /* @__PURE__ */ w("div", {
|
|
85
86
|
className: "flex items-center justify-center py-20",
|
|
86
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ w(v, {
|
|
87
88
|
size: 48,
|
|
88
89
|
className: "animate-spin text-primary"
|
|
89
90
|
})
|
|
90
|
-
}) :
|
|
91
|
+
}) : A ? /* @__PURE__ */ T("div", {
|
|
91
92
|
className: "space-y-6 p-6 max-w-7xl mx-auto",
|
|
92
93
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
className: "
|
|
95
|
-
children:
|
|
96
|
-
className: "
|
|
94
|
+
/* @__PURE__ */ w("div", {
|
|
95
|
+
className: "rounded-xl border border-border-seam bg-accent-wash p-6",
|
|
96
|
+
children: /* @__PURE__ */ T("div", {
|
|
97
|
+
className: "flex items-center gap-4",
|
|
97
98
|
children: [
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
/* @__PURE__ */ w(D, {
|
|
100
|
+
variant: "ghost",
|
|
101
|
+
size: "icon",
|
|
102
|
+
onClick: () => f?.(u),
|
|
102
103
|
"aria-label": "Back",
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
+
children: /* @__PURE__ */ w(p, { size: 20 })
|
|
104
105
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ w("div", {
|
|
106
107
|
className: "p-2.5 rounded-lg bg-action-primary-bg/10",
|
|
107
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ w(h, {
|
|
108
109
|
size: 24,
|
|
109
110
|
className: "text-primary"
|
|
110
111
|
})
|
|
111
112
|
}),
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
|
|
113
114
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
114
115
|
children: "Activity Logs"
|
|
115
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ w("p", {
|
|
116
117
|
className: "text-sm text-text-secondary mt-0.5",
|
|
117
118
|
children: "Track integration activity and debug issues"
|
|
118
119
|
})] })
|
|
119
120
|
]
|
|
120
|
-
})
|
|
121
|
+
})
|
|
121
122
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ T("div", {
|
|
123
124
|
className: "space-y-4",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ T("div", {
|
|
125
126
|
className: "flex flex-col sm:flex-row gap-3",
|
|
126
127
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ T("div", {
|
|
128
129
|
className: "flex-1 relative group",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ w(b, {
|
|
130
131
|
size: 18,
|
|
131
132
|
className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
|
|
132
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ w("input", {
|
|
133
134
|
type: "text",
|
|
134
135
|
"aria-label": "Search activity logs",
|
|
135
136
|
placeholder: "Search logs...",
|
|
@@ -138,85 +139,83 @@ function j() {
|
|
|
138
139
|
className: "w-full pl-10 pr-4 py-2.5 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
|
|
139
140
|
})]
|
|
140
141
|
}),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ T("button", {
|
|
142
143
|
type: "button",
|
|
143
144
|
onClick: () => H(!V),
|
|
144
145
|
"aria-expanded": V,
|
|
145
146
|
className: t("inline-flex items-center gap-2 px-4 py-2.5 rounded-lg border text-sm font-medium transition-all", V || Q ? "bg-action-primary-bg text-action-primary-text border-primary" : "bg-bg-surface text-text-primary border-border-subtle hover:bg-accent"),
|
|
146
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ w(g, { size: 16 }), " Filter"]
|
|
147
148
|
}),
|
|
148
|
-
j && /* @__PURE__ */
|
|
149
|
-
|
|
149
|
+
j && /* @__PURE__ */ T(D, {
|
|
150
|
+
variant: "outline",
|
|
150
151
|
onClick: () => {
|
|
151
|
-
|
|
152
|
+
ie(X);
|
|
152
153
|
},
|
|
153
154
|
disabled: X.length === 0,
|
|
154
|
-
|
|
155
|
-
children: [/* @__PURE__ */ T(g, { size: 16 }), " Export CSV"]
|
|
155
|
+
children: [/* @__PURE__ */ w(re, { size: 16 }), " Export CSV"]
|
|
156
156
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
|
|
157
|
+
/* @__PURE__ */ T(D, {
|
|
158
|
+
variant: "outline",
|
|
159
159
|
onClick: () => Y(),
|
|
160
|
-
|
|
161
|
-
children: [/* @__PURE__ */ T(x, { size: 16 }), " Refresh"]
|
|
160
|
+
children: [/* @__PURE__ */ w(y, { size: 16 }), " Refresh"]
|
|
162
161
|
})
|
|
163
162
|
]
|
|
164
|
-
}), V && /* @__PURE__ */
|
|
165
|
-
className: "rounded-xl border border-border-
|
|
166
|
-
children: [/* @__PURE__ */
|
|
163
|
+
}), V && /* @__PURE__ */ T("div", {
|
|
164
|
+
className: "rounded-xl border border-border-seam bg-bg-surface p-5 animate-in slide-in-from-top-2 duration-200",
|
|
165
|
+
children: [/* @__PURE__ */ T("div", {
|
|
167
166
|
className: "flex items-center justify-between mb-4",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ T("h3", {
|
|
169
168
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ w(g, {
|
|
171
170
|
size: 16,
|
|
172
171
|
className: "text-primary"
|
|
173
172
|
}), " Filters"]
|
|
174
|
-
}), Q && /* @__PURE__ */
|
|
173
|
+
}), Q && /* @__PURE__ */ T("button", {
|
|
175
174
|
type: "button",
|
|
176
175
|
onClick: $,
|
|
177
176
|
className: "text-sm text-text-secondary hover:text-status-error-text flex items-center gap-1",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ w(x, { size: 14 }), " Clear All"]
|
|
179
178
|
})]
|
|
180
|
-
}), /* @__PURE__ */
|
|
179
|
+
}), /* @__PURE__ */ T("div", {
|
|
181
180
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
182
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ T("div", {
|
|
183
182
|
className: "space-y-2",
|
|
184
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ w("label", {
|
|
185
184
|
htmlFor: N,
|
|
186
185
|
className: "block text-sm font-medium text-text-primary",
|
|
187
186
|
children: "Log Level"
|
|
188
|
-
}), /* @__PURE__ */
|
|
187
|
+
}), /* @__PURE__ */ T("select", {
|
|
189
188
|
id: N,
|
|
190
189
|
value: L,
|
|
191
190
|
onChange: (e) => {
|
|
192
191
|
R(e.target.value), W(1);
|
|
193
192
|
},
|
|
194
193
|
className: "w-full px-3 py-2 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
194
|
+
children: [/* @__PURE__ */ w("option", {
|
|
196
195
|
value: "all",
|
|
197
196
|
children: "All Levels"
|
|
198
|
-
}),
|
|
197
|
+
}), ee.map((e) => /* @__PURE__ */ w("option", {
|
|
199
198
|
value: e.value,
|
|
200
199
|
children: e.label
|
|
201
200
|
}, e.value))]
|
|
202
201
|
})]
|
|
203
|
-
}), /* @__PURE__ */
|
|
202
|
+
}), /* @__PURE__ */ T("div", {
|
|
204
203
|
className: "space-y-2",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ w("label", {
|
|
206
205
|
htmlFor: P,
|
|
207
206
|
className: "block text-sm font-medium text-text-primary",
|
|
208
207
|
children: "Action"
|
|
209
|
-
}), /* @__PURE__ */
|
|
208
|
+
}), /* @__PURE__ */ T("select", {
|
|
210
209
|
id: P,
|
|
211
210
|
value: z,
|
|
212
211
|
onChange: (e) => {
|
|
213
212
|
B(e.target.value), W(1);
|
|
214
213
|
},
|
|
215
214
|
className: "w-full px-3 py-2 border border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ w("option", {
|
|
217
216
|
value: "all",
|
|
218
217
|
children: "All Actions"
|
|
219
|
-
}), i.map((e) => /* @__PURE__ */
|
|
218
|
+
}), i.map((e) => /* @__PURE__ */ w("option", {
|
|
220
219
|
value: e.value,
|
|
221
220
|
children: e.label
|
|
222
221
|
}, e.value))]
|
|
@@ -225,117 +224,117 @@ function j() {
|
|
|
225
224
|
})]
|
|
226
225
|
})]
|
|
227
226
|
}),
|
|
228
|
-
J && /* @__PURE__ */
|
|
227
|
+
J && /* @__PURE__ */ T("div", {
|
|
229
228
|
className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-5 flex items-start gap-4",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ w(d, {
|
|
231
230
|
size: 24,
|
|
232
231
|
className: "text-status-error-text"
|
|
233
|
-
}), /* @__PURE__ */
|
|
232
|
+
}), /* @__PURE__ */ T("div", {
|
|
234
233
|
className: "flex-1",
|
|
235
234
|
children: [
|
|
236
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ w("h3", {
|
|
237
236
|
className: "font-semibold text-status-error-text mb-1",
|
|
238
237
|
children: "Error loading logs"
|
|
239
238
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ w("p", {
|
|
241
240
|
className: "text-sm text-status-error-text mb-3",
|
|
242
241
|
children: J.message
|
|
243
242
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ T("button", {
|
|
245
244
|
type: "button",
|
|
246
245
|
onClick: () => Y(),
|
|
247
246
|
className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg bg-status-error-bg-subtle text-status-error-text hover:bg-status-error-bg-subtle/80 transition-colors",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
247
|
+
children: [/* @__PURE__ */ w(y, { size: 14 }), " Try Again"]
|
|
249
248
|
})
|
|
250
249
|
]
|
|
251
250
|
})]
|
|
252
251
|
}),
|
|
253
|
-
q && /* @__PURE__ */
|
|
252
|
+
q && /* @__PURE__ */ w("div", {
|
|
254
253
|
className: "flex items-center justify-center py-12",
|
|
255
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ w(v, {
|
|
256
255
|
size: 24,
|
|
257
256
|
className: "animate-spin text-text-secondary"
|
|
258
257
|
})
|
|
259
258
|
}),
|
|
260
|
-
!q && !J && /* @__PURE__ */
|
|
261
|
-
className: "rounded-xl border border-border-
|
|
262
|
-
children: /* @__PURE__ */
|
|
263
|
-
className: "divide-y divide-border
|
|
264
|
-
children: X.map((e) => /* @__PURE__ */
|
|
259
|
+
!q && !J && /* @__PURE__ */ T(C, { children: [X.length > 0 ? /* @__PURE__ */ w("div", {
|
|
260
|
+
className: "rounded-xl border border-border-seam bg-bg-surface overflow-hidden",
|
|
261
|
+
children: /* @__PURE__ */ w("div", {
|
|
262
|
+
className: "divide-y divide-border-seam",
|
|
263
|
+
children: X.map((e) => /* @__PURE__ */ T("div", {
|
|
265
264
|
className: "flex items-start gap-3 px-5 py-3.5 hover:bg-accent/30 transition-colors",
|
|
266
265
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ w("div", {
|
|
268
267
|
className: "mt-0.5",
|
|
269
268
|
children: O(e.level)
|
|
270
269
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ T("div", {
|
|
272
271
|
className: "flex-1 min-w-0",
|
|
273
272
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ T("div", {
|
|
275
274
|
className: "flex items-center gap-2 flex-wrap",
|
|
276
275
|
children: [
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
className: t("text-xs px-2 py-0.5 rounded-full border font-medium",
|
|
276
|
+
/* @__PURE__ */ w("span", {
|
|
277
|
+
className: t("text-xs px-2 py-0.5 rounded-full border font-medium", k(e.level)),
|
|
279
278
|
children: e.level.toUpperCase()
|
|
280
279
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ w("span", {
|
|
282
281
|
className: "text-xs px-2 py-0.5 rounded-full bg-bg-sunken text-text-secondary",
|
|
283
282
|
children: e.action.replace(/_/g, " ")
|
|
284
283
|
}),
|
|
285
|
-
e.responseStatus && /* @__PURE__ */
|
|
284
|
+
e.responseStatus && /* @__PURE__ */ w("span", {
|
|
286
285
|
className: t("text-xs px-2 py-0.5 rounded-full border font-mono", e.responseStatus >= 400 ? "text-status-error-text bg-status-error-bg-subtle border-border-default" : "text-status-success-text bg-status-success-bg-subtle border-border-default"),
|
|
287
286
|
children: e.responseStatus
|
|
288
287
|
})
|
|
289
288
|
]
|
|
290
289
|
}),
|
|
291
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ w("p", {
|
|
292
291
|
className: "text-sm text-text-primary mt-1",
|
|
293
292
|
children: e.message
|
|
294
293
|
}),
|
|
295
|
-
e.requestUrl && /* @__PURE__ */
|
|
294
|
+
e.requestUrl && /* @__PURE__ */ T("p", {
|
|
296
295
|
className: "text-xs text-text-secondary font-mono mt-0.5 truncate",
|
|
297
|
-
children: [e.requestMethod && /* @__PURE__ */
|
|
296
|
+
children: [e.requestMethod && /* @__PURE__ */ T("span", {
|
|
298
297
|
className: "font-semibold",
|
|
299
298
|
children: [e.requestMethod, " "]
|
|
300
299
|
}), e.requestUrl]
|
|
301
300
|
})
|
|
302
301
|
]
|
|
303
302
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ w("span", {
|
|
305
304
|
className: "text-xs text-text-secondary whitespace-nowrap flex-shrink-0",
|
|
306
305
|
children: r(e.createdAt)
|
|
307
306
|
})
|
|
308
307
|
]
|
|
309
308
|
}, e.id))
|
|
310
309
|
})
|
|
311
|
-
}) : /* @__PURE__ */
|
|
310
|
+
}) : /* @__PURE__ */ T("div", {
|
|
312
311
|
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
313
312
|
children: [
|
|
314
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ w("div", {
|
|
315
314
|
className: "p-4 rounded-full bg-bg-sunken/50 mb-4",
|
|
316
|
-
children: /* @__PURE__ */
|
|
315
|
+
children: /* @__PURE__ */ w(h, {
|
|
317
316
|
size: 32,
|
|
318
317
|
className: "text-text-secondary"
|
|
319
318
|
})
|
|
320
319
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ w("h3", {
|
|
322
321
|
className: "font-semibold text-text-primary mb-1",
|
|
323
322
|
children: Q ? "No matching logs" : "No activity logs yet"
|
|
324
323
|
}),
|
|
325
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ w("p", {
|
|
326
325
|
className: "text-sm text-text-secondary max-w-sm",
|
|
327
326
|
children: Q ? "Try adjusting your filters." : "Activity logs will appear here once you start using integrations."
|
|
328
327
|
}),
|
|
329
|
-
Q && /* @__PURE__ */
|
|
330
|
-
|
|
328
|
+
Q && /* @__PURE__ */ T(D, {
|
|
329
|
+
variant: "outline",
|
|
330
|
+
className: "mt-4",
|
|
331
331
|
onClick: $,
|
|
332
|
-
|
|
333
|
-
children: [/* @__PURE__ */ T(S, { size: 14 }), " Clear Filters"]
|
|
332
|
+
children: [/* @__PURE__ */ w(x, { size: 14 }), " Clear Filters"]
|
|
334
333
|
})
|
|
335
334
|
]
|
|
336
|
-
}), Z > 1 && /* @__PURE__ */
|
|
335
|
+
}), Z > 1 && /* @__PURE__ */ T("div", {
|
|
337
336
|
className: "flex items-center justify-between px-2",
|
|
338
|
-
children: [/* @__PURE__ */
|
|
337
|
+
children: [/* @__PURE__ */ T("p", {
|
|
339
338
|
className: "text-sm text-text-secondary",
|
|
340
339
|
children: [
|
|
341
340
|
"Showing ",
|
|
@@ -345,18 +344,18 @@ function j() {
|
|
|
345
344
|
" of ",
|
|
346
345
|
K
|
|
347
346
|
]
|
|
348
|
-
}), /* @__PURE__ */
|
|
347
|
+
}), /* @__PURE__ */ T("div", {
|
|
349
348
|
className: "flex items-center gap-2",
|
|
350
349
|
children: [
|
|
351
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ w("button", {
|
|
352
351
|
type: "button",
|
|
353
352
|
onClick: () => W((e) => Math.max(1, e - 1)),
|
|
354
353
|
disabled: U === 1,
|
|
355
354
|
"aria-label": "Previous page",
|
|
356
355
|
className: "p-2 rounded-lg border border-border-subtle hover:bg-accent disabled:opacity-50 transition-colors",
|
|
357
|
-
children: /* @__PURE__ */
|
|
356
|
+
children: /* @__PURE__ */ w(te, { size: 16 })
|
|
358
357
|
}),
|
|
359
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ T("span", {
|
|
360
359
|
className: "text-sm text-text-primary px-3 py-1.5 rounded-lg bg-bg-sunken",
|
|
361
360
|
children: [
|
|
362
361
|
U,
|
|
@@ -364,38 +363,38 @@ function j() {
|
|
|
364
363
|
Z
|
|
365
364
|
]
|
|
366
365
|
}),
|
|
367
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ w("button", {
|
|
368
367
|
type: "button",
|
|
369
368
|
onClick: () => W((e) => Math.min(Z, e + 1)),
|
|
370
369
|
disabled: U === Z,
|
|
371
370
|
"aria-label": "Next page",
|
|
372
371
|
className: "p-2 rounded-lg border border-border-subtle hover:bg-accent disabled:opacity-50 transition-colors",
|
|
373
|
-
children: /* @__PURE__ */
|
|
372
|
+
children: /* @__PURE__ */ w(ne, { size: 16 })
|
|
374
373
|
})
|
|
375
374
|
]
|
|
376
375
|
})]
|
|
377
376
|
})] })
|
|
378
377
|
]
|
|
379
|
-
}) : /* @__PURE__ */
|
|
378
|
+
}) : /* @__PURE__ */ T("div", {
|
|
380
379
|
className: "flex flex-col items-center justify-center py-20 text-center p-6",
|
|
381
380
|
children: [
|
|
382
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ w(d, {
|
|
383
382
|
size: 48,
|
|
384
383
|
className: "text-text-secondary mb-4"
|
|
385
384
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ w("h2", {
|
|
387
386
|
className: "text-xl font-bold text-text-primary mb-2",
|
|
388
387
|
children: "Access Denied"
|
|
389
388
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ w("p", {
|
|
391
390
|
className: "text-sm text-text-secondary mb-6 max-w-sm",
|
|
392
391
|
children: "You don't have permission to view activity logs."
|
|
393
392
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ T("button", {
|
|
395
394
|
type: "button",
|
|
396
|
-
onClick: () =>
|
|
395
|
+
onClick: () => f?.(u),
|
|
397
396
|
className: "inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ w(p, { size: 16 }), " Back to Overview"]
|
|
399
398
|
})
|
|
400
399
|
]
|
|
401
400
|
});
|