@burdenoff/microfe-integrations 2026.1113.1 → 2026.1113.3

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