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