@burdenoff/microfe-integrations 2026.828.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.
Files changed (75) hide show
  1. package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
  2. package/dist/integrations/components/AddConnectionDialog.js +151 -152
  3. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  4. package/dist/integrations/components/AuthMethodSelector.d.ts.map +1 -1
  5. package/dist/integrations/components/AuthMethodSelector.js +48 -40
  6. package/dist/integrations/components/AuthMethodSelector.js.map +1 -1
  7. package/dist/integrations/components/AuthMethodsEditor.d.ts.map +1 -1
  8. package/dist/integrations/components/AuthMethodsEditor.js +207 -190
  9. package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
  10. package/dist/integrations/components/ConnectionCard.d.ts.map +1 -1
  11. package/dist/integrations/components/ConnectionCard.js +102 -98
  12. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  13. package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +1 -1
  14. package/dist/integrations/components/ConnectionStatusBadge.js +9 -5
  15. package/dist/integrations/components/ConnectionStatusBadge.js.map +1 -1
  16. package/dist/integrations/components/CredentialStorageSelector.d.ts.map +1 -1
  17. package/dist/integrations/components/CredentialStorageSelector.js +124 -121
  18. package/dist/integrations/components/CredentialStorageSelector.js.map +1 -1
  19. package/dist/integrations/components/ProviderCard.d.ts.map +1 -1
  20. package/dist/integrations/components/ProviderCard.js +25 -65
  21. package/dist/integrations/components/ProviderCard.js.map +1 -1
  22. package/dist/integrations/components/SchemaForm.d.ts.map +1 -1
  23. package/dist/integrations/components/SchemaForm.js +116 -111
  24. package/dist/integrations/components/SchemaForm.js.map +1 -1
  25. package/dist/integrations/hooks/useFormatDate.d.ts +7 -0
  26. package/dist/integrations/hooks/useFormatDate.d.ts.map +1 -0
  27. package/dist/integrations/hooks/useFormatDate.js +17 -0
  28. package/dist/integrations/hooks/useFormatDate.js.map +1 -0
  29. package/dist/integrations/hooks/useFormatLastUsed.d.ts +9 -0
  30. package/dist/integrations/hooks/useFormatLastUsed.d.ts.map +1 -0
  31. package/dist/integrations/hooks/useFormatLastUsed.js +15 -0
  32. package/dist/integrations/hooks/useFormatLastUsed.js.map +1 -0
  33. package/dist/integrations/hooks/useLabel.d.ts +13 -0
  34. package/dist/integrations/hooks/useLabel.d.ts.map +1 -0
  35. package/dist/integrations/hooks/useLabel.js +20 -0
  36. package/dist/integrations/hooks/useLabel.js.map +1 -0
  37. package/dist/integrations/hooks/useTr.d.ts +17 -0
  38. package/dist/integrations/hooks/useTr.d.ts.map +1 -0
  39. package/dist/integrations/hooks/useTr.js +14 -0
  40. package/dist/integrations/hooks/useTr.js.map +1 -0
  41. package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -1
  42. package/dist/integrations/pages/AddConnectionWizard.js +396 -387
  43. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  44. package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -1
  45. package/dist/integrations/pages/ConnectionDetail.js +128 -128
  46. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  47. package/dist/integrations/pages/ConnectionLogs.d.ts.map +1 -1
  48. package/dist/integrations/pages/ConnectionLogs.js +210 -181
  49. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  50. package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -1
  51. package/dist/integrations/pages/ConnectionsList.js +136 -115
  52. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  53. package/dist/integrations/pages/IntegrationsOverview.d.ts.map +1 -1
  54. package/dist/integrations/pages/IntegrationsOverview.js +76 -77
  55. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  56. package/dist/integrations/pages/IntegrationsSettings.d.ts.map +1 -1
  57. package/dist/integrations/pages/IntegrationsSettings.js +59 -61
  58. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  59. package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +1 -1
  60. package/dist/integrations/pages/IntegrationsUserLandingPage.js +29 -28
  61. package/dist/integrations/pages/IntegrationsUserLandingPage.js.map +1 -1
  62. package/dist/integrations/pages/ProviderCatalog.d.ts.map +1 -1
  63. package/dist/integrations/pages/ProviderCatalog.js +99 -141
  64. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  65. package/dist/integrations/pages/ProviderDetail.d.ts.map +1 -1
  66. package/dist/integrations/pages/ProviderDetail.js +208 -220
  67. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  68. package/dist/integrations/pages/ProviderEditorPage.d.ts.map +1 -1
  69. package/dist/integrations/pages/ProviderEditorPage.js +262 -261
  70. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  71. package/dist/integrations/translations/en.d.ts +731 -0
  72. package/dist/integrations/translations/en.d.ts.map +1 -0
  73. package/dist/integrations/utils/integrationsHelpers.js +2 -16
  74. package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
  75. package/package.json +1 -1
@@ -1,42 +1,43 @@
1
1
  import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
2
- import { cn as t } from "../utils/cn.js";
3
- import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
4
- import { formatDate as r } from "../utils/integrationsHelpers.js";
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
- import { useIntegrationLogs as te } from "../hooks/useLogs.js";
8
- import { useId as ne, useMemo as re, useState as o } from "react";
9
- import { Activity as s, AlertCircle as c, AlertTriangle as l, ArrowLeft as u, Bug as d, ChevronLeft as f, ChevronRight as p, Download as m, FileText as h, Filter as g, Info as _, Loader2 as v, RefreshCw as y, Search as ie, X as b } from "lucide-react";
10
- import { usePermissions as x } from "@burdenoff/fe-libs/shared/providers/shell";
11
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
12
- import { useFeatureFlag as T } from "@burdenoff/fe-libs/shared/feature-flags";
13
- import { Button as E, EmphasisPanel as D, IllustratedEmptyState as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
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 ae(e) {
16
+ function E(e) {
16
17
  switch (e) {
17
- case "error": return /* @__PURE__ */ C(c, {
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__ */ C(l, {
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__ */ C(_, {
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__ */ C(d, {
30
+ case "debug": return /* @__PURE__ */ b(p, {
30
31
  size: 14,
31
32
  className: "text-text-tertiary"
32
33
  });
33
- default: return /* @__PURE__ */ C(s, {
34
+ default: return /* @__PURE__ */ b(l, {
34
35
  size: 14,
35
36
  className: "text-text-tertiary"
36
37
  });
37
38
  }
38
39
  }
39
- function oe(e) {
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 A(e) {
49
+ function O(e) {
49
50
  return `"${String(e ?? "").replaceAll("\"", "\"\"")}"`;
50
51
  }
51
- function se(e) {
52
- let t = [[
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(A).join(",")).join("\n"), n = new Blob([t], { type: "text/csv;charset=utf-8" }), r = URL.createObjectURL(n), i = document.createElement("a");
69
- i.href = r, i.download = `integration-logs-${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.csv`, i.click(), URL.revokeObjectURL(r);
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 j() {
72
- let { basePath: l = "/", navigate: d } = e(), { hasPermission: _, isLoading: A } = x(), j = _(n.LOG_READ), ce = T(a.CSV_EXPORT, !0), M = ne(), N = `${M}-level`, P = `${M}-action`, [F, I] = o(""), [L, R] = o("all"), [z, B] = o("all"), [V, H] = o(!1), [U, W] = o(1), { logs: G, total: K, loading: q, error: J, refetch: Y } = te({
73
- level: L === "all" ? void 0 : L,
74
- action: z === "all" ? void 0 : z,
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: A || !j
78
- }), X = re(() => {
79
- if (!F) return G ?? [];
80
- let e = F.toLowerCase();
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, F]), Z = Math.ceil((K ?? 0) / 20), Q = F || L !== "all" || z !== "all", $ = () => {
83
- I(""), R("all"), B("all"), W(1);
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 A ? /* @__PURE__ */ C("div", {
86
+ return j ? /* @__PURE__ */ b("div", {
86
87
  className: "flex items-center justify-center py-20",
87
- children: /* @__PURE__ */ C(v, {
88
+ children: /* @__PURE__ */ b(_, {
88
89
  size: 48,
89
90
  className: "animate-spin text-primary"
90
91
  })
91
- }) : j ? /* @__PURE__ */ w("div", {
92
+ }) : M ? /* @__PURE__ */ x("div", {
92
93
  className: "space-y-6 p-6 max-w-7xl mx-auto",
93
94
  children: [
94
- /* @__PURE__ */ C("div", {
95
+ /* @__PURE__ */ b("div", {
95
96
  className: "rounded-xl border border-border-seam bg-accent-wash p-6",
96
- children: /* @__PURE__ */ w("div", {
97
+ children: /* @__PURE__ */ x("div", {
97
98
  className: "flex items-center gap-4",
98
99
  children: [
99
- /* @__PURE__ */ C(E, {
100
+ /* @__PURE__ */ b(S, {
100
101
  variant: "ghost",
101
102
  size: "icon",
102
- onClick: () => d?.(l),
103
- "aria-label": "Back",
104
- children: /* @__PURE__ */ C(u, { size: 20 })
103
+ onClick: () => p?.(d),
104
+ "aria-label": g("integrations.logs.actions.backAriaLabel", "Back"),
105
+ children: /* @__PURE__ */ b(f, { size: 20 })
105
106
  }),
106
- /* @__PURE__ */ C("div", {
107
+ /* @__PURE__ */ b("div", {
107
108
  className: "p-2.5 rounded-lg bg-action-primary-bg/10",
108
- children: /* @__PURE__ */ C(h, {
109
+ children: /* @__PURE__ */ b(m, {
109
110
  size: 24,
110
111
  className: "text-primary"
111
112
  })
112
113
  }),
113
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h1", {
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__ */ C("p", {
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__ */ C(k, {
124
- icon: /* @__PURE__ */ C(h, { size: 16 }),
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__ */ w("div", {
128
+ /* @__PURE__ */ x("div", {
128
129
  className: "space-y-4",
129
- children: [/* @__PURE__ */ w("div", {
130
+ children: [/* @__PURE__ */ x("div", {
130
131
  className: "flex flex-col sm:flex-row gap-3",
131
132
  children: [
132
- /* @__PURE__ */ w("div", {
133
+ /* @__PURE__ */ x("div", {
133
134
  className: "flex-1 relative group",
134
- children: [/* @__PURE__ */ C(ie, {
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__ */ C("input", {
138
+ }), /* @__PURE__ */ b("input", {
138
139
  type: "text",
139
- "aria-label": "Search activity logs",
140
- placeholder: "Search logs...",
141
- value: F,
142
- onChange: (e) => I(e.target.value),
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__ */ w("button", {
147
+ /* @__PURE__ */ x("button", {
147
148
  type: "button",
148
- onClick: () => H(!V),
149
- "aria-expanded": V,
150
- 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"),
151
- children: [/* @__PURE__ */ C(g, { size: 16 }), " Filter"]
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
- ce && /* @__PURE__ */ w(E, {
158
+ ue && /* @__PURE__ */ x(S, {
154
159
  variant: "outline",
155
160
  onClick: () => {
156
- se(X);
161
+ k(X, g);
157
162
  },
158
163
  disabled: X.length === 0,
159
- children: [/* @__PURE__ */ C(m, { size: 16 }), " Export CSV"]
164
+ children: [
165
+ /* @__PURE__ */ b(ae, { size: 16 }),
166
+ " ",
167
+ g("integrations.logs.actions.exportCsv", "Export CSV")
168
+ ]
160
169
  }),
161
- /* @__PURE__ */ w(E, {
170
+ /* @__PURE__ */ x(S, {
162
171
  variant: "outline",
163
172
  onClick: () => Y(),
164
- children: [/* @__PURE__ */ C(y, { size: 16 }), " Refresh"]
173
+ children: [
174
+ /* @__PURE__ */ b(v, { size: 16 }),
175
+ " ",
176
+ g("integrations.logs.actions.refresh", "Refresh")
177
+ ]
165
178
  })
166
179
  ]
167
- }), V && /* @__PURE__ */ w("div", {
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__ */ w("div", {
182
+ children: [/* @__PURE__ */ x("div", {
170
183
  className: "flex items-center justify-between mb-4",
171
- children: [/* @__PURE__ */ w("h3", {
184
+ children: [/* @__PURE__ */ x("h3", {
172
185
  className: "font-semibold text-text-primary flex items-center gap-2",
173
- children: [/* @__PURE__ */ C(g, {
174
- size: 16,
175
- className: "text-primary"
176
- }), " Filters"]
177
- }), Q && /* @__PURE__ */ w("button", {
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: [/* @__PURE__ */ C(b, { size: 14 }), " Clear All"]
198
+ children: [
199
+ /* @__PURE__ */ b(y, { size: 14 }),
200
+ " ",
201
+ g("integrations.logs.filters.clearAll", "Clear All")
202
+ ]
182
203
  })]
183
- }), /* @__PURE__ */ w("div", {
204
+ }), /* @__PURE__ */ x("div", {
184
205
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
185
- children: [/* @__PURE__ */ w("div", {
206
+ children: [/* @__PURE__ */ x("div", {
186
207
  className: "space-y-2",
187
- children: [/* @__PURE__ */ C("label", {
188
- htmlFor: N,
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__ */ w("select", {
192
- id: N,
193
- value: L,
211
+ children: g("integrations.logs.filters.logLevel", "Log Level")
212
+ }), /* @__PURE__ */ x("select", {
213
+ id: P,
214
+ value: R,
194
215
  onChange: (e) => {
195
- R(e.target.value), W(1);
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__ */ C("option", {
219
+ children: [/* @__PURE__ */ b("option", {
199
220
  value: "all",
200
- children: "All Levels"
201
- }), ee.map((e) => /* @__PURE__ */ C("option", {
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__ */ w("div", {
227
+ }), /* @__PURE__ */ x("div", {
207
228
  className: "space-y-2",
208
- children: [/* @__PURE__ */ C("label", {
209
- htmlFor: P,
229
+ children: [/* @__PURE__ */ b("label", {
230
+ htmlFor: F,
210
231
  className: "block text-sm font-medium text-text-primary",
211
- children: "Action"
212
- }), /* @__PURE__ */ w("select", {
213
- id: P,
214
- value: z,
232
+ children: g("integrations.logs.filters.action", "Action")
233
+ }), /* @__PURE__ */ x("select", {
234
+ id: F,
235
+ value: B,
215
236
  onChange: (e) => {
216
- B(e.target.value), W(1);
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__ */ C("option", {
240
+ children: [/* @__PURE__ */ b("option", {
220
241
  value: "all",
221
- children: "All Actions"
222
- }), i.map((e) => /* @__PURE__ */ C("option", {
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__ */ w("div", {
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__ */ C(c, {
254
+ children: [/* @__PURE__ */ b(u, {
234
255
  size: 24,
235
256
  className: "text-status-error-text"
236
- }), /* @__PURE__ */ w("div", {
257
+ }), /* @__PURE__ */ x("div", {
237
258
  className: "flex-1",
238
259
  children: [
239
- /* @__PURE__ */ C("h3", {
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__ */ C("p", {
264
+ /* @__PURE__ */ b("p", {
244
265
  className: "text-sm text-status-error-text mb-3",
245
266
  children: J.message
246
267
  }),
247
- /* @__PURE__ */ w("button", {
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: [/* @__PURE__ */ C(y, { size: 14 }), " Try Again"]
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__ */ C("div", {
281
+ q && /* @__PURE__ */ b("div", {
257
282
  className: "flex items-center justify-center py-12",
258
- children: /* @__PURE__ */ C(v, {
283
+ children: /* @__PURE__ */ b(_, {
259
284
  size: 24,
260
285
  className: "animate-spin text-text-secondary"
261
286
  })
262
287
  }),
263
- !q && !J && /* @__PURE__ */ w(S, { children: [X.length > 0 ? /* @__PURE__ */ w(D, {
288
+ !q && !J && /* @__PURE__ */ x(ce, { children: [X.length > 0 ? /* @__PURE__ */ x(C, {
264
289
  className: "overflow-hidden p-0",
265
- children: [/* @__PURE__ */ w("div", {
290
+ children: [/* @__PURE__ */ x("div", {
266
291
  className: "flex items-center gap-2 p-5 border-b border-border-seam",
267
- children: [/* @__PURE__ */ C(s, {
292
+ children: [/* @__PURE__ */ b(l, {
268
293
  size: 18,
269
294
  className: "text-primary"
270
- }), /* @__PURE__ */ C("h2", {
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__ */ C("div", {
299
+ }), /* @__PURE__ */ b("div", {
275
300
  className: "divide-y divide-border-seam",
276
- children: X.map((e) => /* @__PURE__ */ w("div", {
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__ */ C("div", {
304
+ /* @__PURE__ */ b("div", {
280
305
  className: "mt-0.5",
281
- children: ae(e.level)
306
+ children: E(e.level)
282
307
  }),
283
- /* @__PURE__ */ w("div", {
308
+ /* @__PURE__ */ x("div", {
284
309
  className: "flex-1 min-w-0",
285
310
  children: [
286
- /* @__PURE__ */ w("div", {
311
+ /* @__PURE__ */ x("div", {
287
312
  className: "flex items-center gap-2 flex-wrap",
288
313
  children: [
289
- /* @__PURE__ */ C("span", {
290
- className: t("text-xs px-2 py-0.5 rounded-full border font-medium", oe(e.level)),
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__ */ C("span", {
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__ */ C("span", {
298
- 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"),
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__ */ C("p", {
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__ */ w("p", {
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__ */ w("span", {
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__ */ C("span", {
341
+ /* @__PURE__ */ b("span", {
317
342
  className: "text-xs text-text-secondary whitespace-nowrap flex-shrink-0",
318
- children: r(e.createdAt)
343
+ children: O(e.createdAt)
319
344
  })
320
345
  ]
321
346
  }, e.id))
322
347
  })]
323
- }) : /* @__PURE__ */ C(O, {
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__ */ w(E, {
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: [/* @__PURE__ */ C(b, { size: 14 }), " Clear Filters"]
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__ */ w("div", {
361
+ }), Z > 1 && /* @__PURE__ */ x("div", {
333
362
  className: "flex items-center justify-between px-2",
334
- children: [/* @__PURE__ */ w("p", {
363
+ children: [/* @__PURE__ */ b("p", {
335
364
  className: "text-sm text-text-secondary",
336
- children: [
337
- "Showing ",
338
- (U - 1) * 20 + 1,
339
- "-",
340
- Math.min(U * 20, K ?? 0),
341
- " of ",
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__ */ C("button", {
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__ */ C(f, { size: 16 })
379
+ children: /* @__PURE__ */ b(re, { size: 16 })
354
380
  }),
355
- /* @__PURE__ */ w("span", {
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
- Z
361
- ]
383
+ children: g("integrations.logs.pagination.pageOf", "{{page}} / {{total}}", {
384
+ page: U,
385
+ total: Z
386
+ })
362
387
  }),
363
- /* @__PURE__ */ C("button", {
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__ */ C(p, { size: 16 })
394
+ children: /* @__PURE__ */ b(ie, { size: 16 })
370
395
  })
371
396
  ]
372
397
  })]
373
398
  })] })
374
399
  ]
375
- }) : /* @__PURE__ */ w("div", {
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__ */ C(c, {
403
+ /* @__PURE__ */ b(u, {
379
404
  size: 48,
380
405
  className: "text-text-secondary mb-4"
381
406
  }),
382
- /* @__PURE__ */ C("h2", {
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__ */ C("p", {
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__ */ w("button", {
415
+ /* @__PURE__ */ x("button", {
391
416
  type: "button",
392
- onClick: () => d?.(l),
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: [/* @__PURE__ */ C(u, { size: 16 }), " Back to Overview"]
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 { j as ConnectionLogs };
429
+ export { A as ConnectionLogs };
401
430
 
402
431
  //# sourceMappingURL=ConnectionLogs.js.map