@burdenoff/microfe-integrations 2026.624.3 → 2026.625.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/integrations/components/AddConnectionDialog.js +2 -2
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.js +27 -26
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ProviderCard.js +67 -66
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/pages/AddConnectionWizard.js +268 -283
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.js +241 -245
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionLogs.js +118 -119
- package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.js +68 -70
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.js +67 -67
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/dist/integrations/pages/IntegrationsSettings.js +71 -71
- package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.js +46 -46
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.js +214 -215
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/pages/ProviderEditorPage.js +152 -154
- package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,76 +4,76 @@ import { INTEGRATION_PERMISSIONS as n } from "../constants/permissions.js";
|
|
|
4
4
|
import { joinPath as r } from "../utils/navigation.js";
|
|
5
5
|
import { formatDate as i, formatLastUsed as ee, getAuthTypeLabel as te } from "../utils/integrationsHelpers.js";
|
|
6
6
|
import { useConnection as ne, useDeleteConnection as re, useRefreshToken as ie, useRevokeConnection as a, useTestConnection as o } from "../hooks/useConnections.js";
|
|
7
|
-
import { ProviderIcon as
|
|
8
|
-
import { ConnectionStatusBadge as
|
|
9
|
-
import { INTEGRATION_FEATURE_FLAGS as
|
|
10
|
-
import { ConfirmDialog as
|
|
11
|
-
import { nativeConfirm as
|
|
12
|
-
import { useState as
|
|
13
|
-
import { Activity as
|
|
14
|
-
import { useParams as
|
|
15
|
-
import { useI18n as
|
|
16
|
-
import { jsx as
|
|
17
|
-
import { useFeatureFlag as
|
|
18
|
-
import { AlertDialog as
|
|
7
|
+
import { ProviderIcon as ae } from "../components/ProviderIcon.js";
|
|
8
|
+
import { ConnectionStatusBadge as oe } from "../components/ConnectionStatusBadge.js";
|
|
9
|
+
import { INTEGRATION_FEATURE_FLAGS as se } from "../constants/featureFlags.js";
|
|
10
|
+
import { ConfirmDialog as ce } from "../components/ConfirmDialog.js";
|
|
11
|
+
import { nativeConfirm as le, nativeImpact as ue, nativeNotify as s } from "../../utils/nativeBridge.js";
|
|
12
|
+
import { useState as c } from "react";
|
|
13
|
+
import { Activity as de, AlertCircle as l, ArrowLeft as u, CheckCircle2 as d, Clock as fe, Key as f, Loader2 as p, Mail as pe, RefreshCw as m, RotateCcw as me, Shield as h, Trash2 as g, User as he, XCircle as _, Zap as ge } from "lucide-react";
|
|
14
|
+
import { useParams as _e } from "react-router-dom";
|
|
15
|
+
import { useI18n as ve, usePermissions as ye } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
16
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
17
|
+
import { useFeatureFlag as be } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
18
|
+
import { AlertDialog as xe, AlertDialogAction as Se, AlertDialogCancel as b, AlertDialogContent as x, AlertDialogDescription as S, AlertDialogFooter as C, AlertDialogHeader as w, AlertDialogTitle as T, Button as E, CTAOverflowMenu as D, GlassCard as O, ShowMore as k } from "@burdenoff/fe-libs/ui";
|
|
19
19
|
//#region src/integrations/pages/ConnectionDetail.tsx
|
|
20
|
-
function
|
|
21
|
-
let { connectionId:
|
|
22
|
-
let r =
|
|
20
|
+
function A() {
|
|
21
|
+
let { connectionId: A } = _e(), { basePath: j = "/", navigate: M } = e(), { t: Ce } = ve(), N = (e, t, n) => {
|
|
22
|
+
let r = Ce(e, n);
|
|
23
23
|
return r === e ? n ? Object.entries(n).reduce((e, [t, n]) => e.replace(`{{${t}}}`, String(n)).replace(`{${t}}`, String(n)), t) : t : r;
|
|
24
|
-
}, { connection:
|
|
24
|
+
}, { connection: P, loading: we, error: F, refetch: I } = ne(A ?? ""), { testConnection: Te, loading: L } = o(), { refreshToken: Ee, loading: De } = ie(), { revokeConnection: Oe, loading: R } = a(), { deleteConnection: ke, loading: z } = re(), Ae = be(se.OAUTH_REFRESH, !0), { hasPermission: B, isLoading: je } = ye(), V = B(n.CONNECTION_UPDATE), H = B(n.CONNECTION_DELETE), [U, Me] = c(null), [W, G] = c(null), [Ne, K] = c(!1), [q, J] = c(!1), [Pe, Y] = c(!1), X = (e, t) => {
|
|
25
25
|
G({
|
|
26
26
|
type: e,
|
|
27
27
|
message: t
|
|
28
28
|
}), setTimeout(() => G(null), 5e3);
|
|
29
29
|
};
|
|
30
|
-
if (
|
|
30
|
+
if (we || je) return /* @__PURE__ */ y("div", {
|
|
31
31
|
className: "flex flex-col items-center justify-center py-20",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ v(p, {
|
|
33
33
|
size: 48,
|
|
34
34
|
className: "animate-spin text-primary"
|
|
35
|
-
}), /* @__PURE__ */
|
|
35
|
+
}), /* @__PURE__ */ v("span", {
|
|
36
36
|
className: "mt-6 text-sm font-medium text-text-secondary",
|
|
37
|
-
children:
|
|
37
|
+
children: N("integrations.connectionDetail.loading", "Loading connection details...")
|
|
38
38
|
})]
|
|
39
39
|
});
|
|
40
|
-
if (
|
|
40
|
+
if (F || !P) return /* @__PURE__ */ v("div", {
|
|
41
41
|
className: "p-6 max-w-4xl mx-auto",
|
|
42
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ y("div", {
|
|
43
43
|
className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ v(l, {
|
|
45
45
|
size: 24,
|
|
46
46
|
className: "text-status-error-text flex-shrink-0"
|
|
47
|
-
}), /* @__PURE__ */
|
|
47
|
+
}), /* @__PURE__ */ y("div", {
|
|
48
48
|
className: "flex-1",
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ v("h3", {
|
|
51
51
|
className: "font-semibold text-status-error-text mb-1",
|
|
52
|
-
children:
|
|
52
|
+
children: N("integrations.connectionDetail.error.title", "Connection not found")
|
|
53
53
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ v("p", {
|
|
55
55
|
className: "text-sm text-status-error-text mb-3",
|
|
56
|
-
children:
|
|
56
|
+
children: F?.message || N("integrations.connectionDetail.error.description", "The requested connection could not be loaded.")
|
|
57
57
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ y("div", {
|
|
59
59
|
className: "flex gap-2",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ y("button", {
|
|
61
61
|
type: "button",
|
|
62
|
-
onClick: () =>
|
|
62
|
+
onClick: () => I(),
|
|
63
63
|
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",
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ v(m, { size: 14 }),
|
|
66
66
|
" ",
|
|
67
|
-
|
|
67
|
+
N("integrations.connectionDetail.error.retry", "Try Again")
|
|
68
68
|
]
|
|
69
|
-
}), /* @__PURE__ */
|
|
69
|
+
}), /* @__PURE__ */ y("button", {
|
|
70
70
|
type: "button",
|
|
71
|
-
onClick: () =>
|
|
71
|
+
onClick: () => M?.(r(j, "connections")),
|
|
72
72
|
className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors",
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ v(u, { size: 14 }),
|
|
75
75
|
" ",
|
|
76
|
-
|
|
76
|
+
N("integrations.connectionDetail.error.back", "Back to Connections")
|
|
77
77
|
]
|
|
78
78
|
})]
|
|
79
79
|
})
|
|
@@ -81,22 +81,22 @@ function D() {
|
|
|
81
81
|
})]
|
|
82
82
|
})
|
|
83
83
|
});
|
|
84
|
-
let
|
|
85
|
-
let e = await
|
|
86
|
-
e && (
|
|
87
|
-
},
|
|
88
|
-
await
|
|
89
|
-
},
|
|
84
|
+
let Fe = async () => {
|
|
85
|
+
let e = await Te(P.id);
|
|
86
|
+
e && (Me(e), X(e.success ? "success" : "error", e.message));
|
|
87
|
+
}, Ie = async () => {
|
|
88
|
+
await Ee(P.id), X("success", N("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), I();
|
|
89
|
+
}, Le = async () => {
|
|
90
90
|
Y(!0);
|
|
91
|
-
},
|
|
92
|
-
await
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
let e = await
|
|
96
|
-
title:
|
|
97
|
-
message:
|
|
98
|
-
okButtonTitle:
|
|
99
|
-
cancelButtonTitle:
|
|
91
|
+
}, Re = async () => {
|
|
92
|
+
await Oe(P.id), X("success", N("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), Y(!1), I();
|
|
93
|
+
}, ze = async () => {
|
|
94
|
+
ue("medium");
|
|
95
|
+
let e = await le({
|
|
96
|
+
title: N("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
|
|
97
|
+
message: N("integrations.connectionDetail.deleteDialog.message", "Delete this connection? This cannot be undone."),
|
|
98
|
+
okButtonTitle: N("integrations.connectionDetail.deleteDialog.confirm", "Delete"),
|
|
99
|
+
cancelButtonTitle: N("integrations.connectionDetail.deleteDialog.cancel", "Cancel")
|
|
100
100
|
});
|
|
101
101
|
if (e === null) {
|
|
102
102
|
K(!0);
|
|
@@ -105,358 +105,354 @@ function D() {
|
|
|
105
105
|
e && await Z();
|
|
106
106
|
}, Z = async () => {
|
|
107
107
|
try {
|
|
108
|
-
await
|
|
108
|
+
await ke(P.id, q), X("success", N("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), s("success"), K(!1), J(!1), M?.(r(j, "connections"));
|
|
109
109
|
} catch (e) {
|
|
110
|
-
X("error", e instanceof Error ? e.message : "Failed to delete connection"),
|
|
110
|
+
X("error", e instanceof Error ? e.message : "Failed to delete connection"), s("error");
|
|
111
111
|
}
|
|
112
|
-
}, Q =
|
|
113
|
-
return /* @__PURE__ */
|
|
112
|
+
}, Q = L || De || R || z, $ = !!(P.vaultId || P.credentialSecretId);
|
|
113
|
+
return /* @__PURE__ */ y("div", {
|
|
114
114
|
className: "space-y-6 p-6 max-w-5xl mx-auto",
|
|
115
115
|
children: [
|
|
116
|
-
W && /* @__PURE__ */
|
|
116
|
+
W && /* @__PURE__ */ y("div", {
|
|
117
117
|
className: t("fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200", W.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-default" : "bg-status-error-bg-subtle text-status-error-text border-border-default"),
|
|
118
|
-
children: [W.type === "success" ? /* @__PURE__ */
|
|
118
|
+
children: [W.type === "success" ? /* @__PURE__ */ v(d, { size: 20 }) : /* @__PURE__ */ v(_, { size: 20 }), /* @__PURE__ */ v("span", {
|
|
119
119
|
className: "font-medium",
|
|
120
120
|
children: W.message
|
|
121
121
|
})]
|
|
122
122
|
}),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
open:
|
|
123
|
+
/* @__PURE__ */ v(xe, {
|
|
124
|
+
open: Ne,
|
|
125
125
|
onOpenChange: (e) => {
|
|
126
126
|
e || (K(!1), J(!1));
|
|
127
127
|
},
|
|
128
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ y(x, {
|
|
129
129
|
className: "max-w-md",
|
|
130
130
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
$ && /* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ y(w, { children: [/* @__PURE__ */ v(T, { children: "Delete connection" }), /* @__PURE__ */ v(S, { children: "This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it." })] }),
|
|
132
|
+
$ && /* @__PURE__ */ y("label", {
|
|
133
133
|
className: "flex items-start gap-3 rounded-lg border border-border-subtle/60 bg-bg-surface px-4 py-3 cursor-pointer",
|
|
134
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ v("input", {
|
|
135
135
|
type: "checkbox",
|
|
136
136
|
checked: q,
|
|
137
137
|
onChange: (e) => J(e.target.checked),
|
|
138
138
|
className: "mt-0.5",
|
|
139
139
|
"aria-label": "Also remove mapped vault secret"
|
|
140
|
-
}), /* @__PURE__ */
|
|
140
|
+
}), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
141
141
|
className: "text-sm font-medium text-text-primary",
|
|
142
142
|
children: "Also remove mapped vault secret"
|
|
143
|
-
}), /* @__PURE__ */
|
|
143
|
+
}), /* @__PURE__ */ v("p", {
|
|
144
144
|
className: "text-xs text-text-secondary mt-1",
|
|
145
145
|
children: "Use this only if no other connections rely on the same secret."
|
|
146
146
|
})] })]
|
|
147
147
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ y(C, { children: [/* @__PURE__ */ v(b, {
|
|
149
149
|
onClick: () => {
|
|
150
150
|
K(!1), J(!1);
|
|
151
151
|
},
|
|
152
152
|
children: "Cancel"
|
|
153
|
-
}), /* @__PURE__ */
|
|
153
|
+
}), /* @__PURE__ */ y(Se, {
|
|
154
154
|
disabled: z,
|
|
155
155
|
onClick: (e) => {
|
|
156
156
|
e.preventDefault(), Z();
|
|
157
157
|
},
|
|
158
158
|
className: "inline-flex items-center gap-2 bg-status-error-bg text-action-primary-text disabled:opacity-50",
|
|
159
|
-
children: [z ? /* @__PURE__ */
|
|
159
|
+
children: [z ? /* @__PURE__ */ v(p, {
|
|
160
160
|
size: 14,
|
|
161
161
|
className: "animate-spin"
|
|
162
|
-
}) : /* @__PURE__ */
|
|
162
|
+
}) : /* @__PURE__ */ v(g, { size: 14 }), "Delete connection"]
|
|
163
163
|
})] })
|
|
164
164
|
]
|
|
165
165
|
})
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
open:
|
|
169
|
-
title:
|
|
170
|
-
description:
|
|
171
|
-
confirmLabel:
|
|
172
|
-
cancelLabel:
|
|
173
|
-
loading:
|
|
167
|
+
/* @__PURE__ */ v(ce, {
|
|
168
|
+
open: Pe,
|
|
169
|
+
title: N("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
|
|
170
|
+
description: N("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
|
|
171
|
+
confirmLabel: N("integrations.connectionDetail.actions.revoke", "Revoke"),
|
|
172
|
+
cancelLabel: N("integrations.connectionDetail.actions.cancel", "Cancel"),
|
|
173
|
+
loading: R,
|
|
174
174
|
destructive: !0,
|
|
175
|
-
icon: /* @__PURE__ */
|
|
176
|
-
onConfirm:
|
|
175
|
+
icon: /* @__PURE__ */ v(h, { size: 20 }),
|
|
176
|
+
onConfirm: Re,
|
|
177
177
|
onCancel: () => Y(!1)
|
|
178
178
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
180
|
-
className: "
|
|
181
|
-
children:
|
|
182
|
-
className: "
|
|
179
|
+
/* @__PURE__ */ v("div", {
|
|
180
|
+
className: "rounded-xl border border-border-seam bg-accent-wash p-6",
|
|
181
|
+
children: /* @__PURE__ */ y("div", {
|
|
182
|
+
className: "flex items-center gap-4",
|
|
183
183
|
children: [
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"aria-label":
|
|
189
|
-
children: /* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ v(E, {
|
|
185
|
+
variant: "ghost",
|
|
186
|
+
size: "icon",
|
|
187
|
+
onClick: () => M?.(r(j, "connections")),
|
|
188
|
+
"aria-label": N("integrations.connectionDetail.actions.backAriaLabel", "Back"),
|
|
189
|
+
children: /* @__PURE__ */ v(u, { size: 20 })
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
provider:
|
|
191
|
+
/* @__PURE__ */ v(ae, {
|
|
192
|
+
provider: P.provider,
|
|
193
193
|
size: 56
|
|
194
194
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ y("div", {
|
|
196
196
|
className: "flex-1",
|
|
197
|
-
children: [/* @__PURE__ */
|
|
197
|
+
children: [/* @__PURE__ */ y("div", {
|
|
198
198
|
className: "flex items-center gap-3",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
199
|
+
children: [/* @__PURE__ */ v("h1", {
|
|
200
200
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
201
|
-
children:
|
|
202
|
-
}), /* @__PURE__ */
|
|
203
|
-
status:
|
|
201
|
+
children: P.name
|
|
202
|
+
}), /* @__PURE__ */ v(oe, {
|
|
203
|
+
status: P.status,
|
|
204
204
|
size: "md"
|
|
205
205
|
})]
|
|
206
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ y("p", {
|
|
207
207
|
className: "text-sm text-text-secondary mt-0.5",
|
|
208
208
|
children: [
|
|
209
|
-
|
|
209
|
+
P.provider.name,
|
|
210
210
|
" · ",
|
|
211
|
-
te(
|
|
211
|
+
te(P.provider.authType)
|
|
212
212
|
]
|
|
213
213
|
})]
|
|
214
214
|
})
|
|
215
215
|
]
|
|
216
|
-
})
|
|
216
|
+
})
|
|
217
217
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ y("div", {
|
|
219
219
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
221
|
-
className: "
|
|
222
|
-
children: [/* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ y(O, {
|
|
221
|
+
className: "border-border-seam p-5 space-y-4",
|
|
222
|
+
children: [/* @__PURE__ */ y("h2", {
|
|
223
223
|
className: "font-semibold text-text-primary flex items-center gap-2",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ v(de, {
|
|
225
225
|
size: 18,
|
|
226
226
|
className: "text-primary"
|
|
227
|
-
}),
|
|
228
|
-
}), /* @__PURE__ */
|
|
227
|
+
}), N("integrations.connectionDetail.sections.info", "Connection Info")]
|
|
228
|
+
}), /* @__PURE__ */ y("div", {
|
|
229
229
|
className: "space-y-3",
|
|
230
230
|
children: [
|
|
231
|
-
|
|
232
|
-
className: "py-2 border-b border-border-
|
|
233
|
-
children: [/* @__PURE__ */
|
|
231
|
+
P.description && /* @__PURE__ */ y("div", {
|
|
232
|
+
className: "py-2 border-b border-border-seam",
|
|
233
|
+
children: [/* @__PURE__ */ v("span", {
|
|
234
234
|
className: "text-xs text-text-secondary uppercase tracking-wide",
|
|
235
|
-
children:
|
|
236
|
-
}), /* @__PURE__ */
|
|
235
|
+
children: N("integrations.connectionDetail.fields.description", "Description")
|
|
236
|
+
}), /* @__PURE__ */ v("p", {
|
|
237
237
|
className: "text-sm text-text-primary mt-0.5",
|
|
238
|
-
children:
|
|
238
|
+
children: P.description
|
|
239
239
|
})]
|
|
240
240
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
243
|
-
children: [/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ y("div", {
|
|
242
|
+
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
243
|
+
children: [/* @__PURE__ */ v("span", {
|
|
244
244
|
className: "text-sm text-text-secondary",
|
|
245
|
-
children:
|
|
246
|
-
}), /* @__PURE__ */
|
|
245
|
+
children: N("integrations.connectionDetail.fields.provider", "Provider")
|
|
246
|
+
}), /* @__PURE__ */ v("span", {
|
|
247
247
|
className: "text-sm font-medium text-text-primary",
|
|
248
|
-
children:
|
|
248
|
+
children: P.provider.name
|
|
249
249
|
})]
|
|
250
250
|
}),
|
|
251
|
-
|
|
252
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
253
|
-
children: [/* @__PURE__ */
|
|
251
|
+
P.externalAccountEmail && /* @__PURE__ */ y("div", {
|
|
252
|
+
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
253
|
+
children: [/* @__PURE__ */ y("span", {
|
|
254
254
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ v(pe, { size: 14 }),
|
|
257
257
|
" ",
|
|
258
|
-
|
|
258
|
+
N("integrations.connectionDetail.fields.account", "Account")
|
|
259
259
|
]
|
|
260
|
-
}), /* @__PURE__ */
|
|
260
|
+
}), /* @__PURE__ */ v("span", {
|
|
261
261
|
className: "text-sm font-medium text-text-primary",
|
|
262
|
-
children:
|
|
262
|
+
children: P.externalAccountEmail
|
|
263
263
|
})]
|
|
264
264
|
}),
|
|
265
|
-
|
|
266
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
267
|
-
children: [/* @__PURE__ */
|
|
265
|
+
P.externalAccountName && /* @__PURE__ */ y("div", {
|
|
266
|
+
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
267
|
+
children: [/* @__PURE__ */ y("span", {
|
|
268
268
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
269
269
|
children: [
|
|
270
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ v(he, { size: 14 }),
|
|
271
271
|
" ",
|
|
272
|
-
|
|
272
|
+
N("integrations.connectionDetail.fields.name", "Name")
|
|
273
273
|
]
|
|
274
|
-
}), /* @__PURE__ */
|
|
274
|
+
}), /* @__PURE__ */ v("span", {
|
|
275
275
|
className: "text-sm font-medium text-text-primary",
|
|
276
|
-
children:
|
|
276
|
+
children: P.externalAccountName
|
|
277
277
|
})]
|
|
278
278
|
}),
|
|
279
|
-
|
|
280
|
-
className: "py-2 border-b border-border-
|
|
281
|
-
children: [/* @__PURE__ */
|
|
279
|
+
P.errorMessage && /* @__PURE__ */ y("div", {
|
|
280
|
+
className: "py-2 border-b border-border-seam",
|
|
281
|
+
children: [/* @__PURE__ */ v("span", {
|
|
282
282
|
className: "text-xs text-status-error-text uppercase tracking-wide",
|
|
283
|
-
children:
|
|
284
|
-
}), /* @__PURE__ */
|
|
283
|
+
children: N("integrations.connectionDetail.fields.error", "Error")
|
|
284
|
+
}), /* @__PURE__ */ v("p", {
|
|
285
285
|
className: "text-sm text-status-error-text mt-0.5 bg-status-error-bg-subtle rounded-lg p-2",
|
|
286
|
-
children:
|
|
286
|
+
children: P.errorMessage
|
|
287
287
|
})]
|
|
288
288
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
291
|
-
children: [/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ y("div", {
|
|
290
|
+
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
291
|
+
children: [/* @__PURE__ */ y("span", {
|
|
292
292
|
className: "text-sm text-text-secondary flex items-center gap-1",
|
|
293
293
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
294
|
+
/* @__PURE__ */ v(fe, { size: 14 }),
|
|
295
295
|
" ",
|
|
296
|
-
|
|
296
|
+
N("integrations.connectionDetail.fields.lastUsed", "Last Used")
|
|
297
297
|
]
|
|
298
|
-
}), /* @__PURE__ */
|
|
298
|
+
}), /* @__PURE__ */ v("span", {
|
|
299
299
|
className: "text-sm text-text-primary",
|
|
300
|
-
children: ee(
|
|
300
|
+
children: ee(P.lastUsedAt)
|
|
301
301
|
})]
|
|
302
302
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
className: "flex items-center justify-between py-2 border-b border-border-
|
|
305
|
-
children: [/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ y("div", {
|
|
304
|
+
className: "flex items-center justify-between py-2 border-b border-border-seam",
|
|
305
|
+
children: [/* @__PURE__ */ v("span", {
|
|
306
306
|
className: "text-sm text-text-secondary",
|
|
307
|
-
children:
|
|
308
|
-
}), /* @__PURE__ */
|
|
307
|
+
children: N("integrations.connectionDetail.fields.healthCheck", "Health Check")
|
|
308
|
+
}), /* @__PURE__ */ v("span", {
|
|
309
309
|
className: "text-sm text-text-primary",
|
|
310
|
-
children: i(
|
|
310
|
+
children: i(P.lastHealthCheck)
|
|
311
311
|
})]
|
|
312
312
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ y("div", {
|
|
314
314
|
className: "flex items-center justify-between py-2",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
315
|
+
children: [/* @__PURE__ */ v("span", {
|
|
316
316
|
className: "text-sm text-text-secondary",
|
|
317
|
-
children:
|
|
318
|
-
}), /* @__PURE__ */
|
|
317
|
+
children: N("integrations.connectionDetail.fields.created", "Created")
|
|
318
|
+
}), /* @__PURE__ */ v("span", {
|
|
319
319
|
className: "text-sm text-text-primary",
|
|
320
|
-
children: i(
|
|
320
|
+
children: i(P.createdAt)
|
|
321
321
|
})]
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
})]
|
|
325
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ y("div", {
|
|
326
326
|
className: "space-y-4",
|
|
327
327
|
children: [
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
className: "
|
|
330
|
-
children: [/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ y(O, {
|
|
329
|
+
className: "border-border-seam p-5",
|
|
330
|
+
children: [/* @__PURE__ */ y("h2", {
|
|
331
331
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
332
|
-
children: [/* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ v(h, {
|
|
333
333
|
size: 18,
|
|
334
334
|
className: "text-primary"
|
|
335
|
-
}),
|
|
336
|
-
}),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
335
|
+
}), N("integrations.connectionDetail.sections.scopes", "Granted Scopes")]
|
|
336
|
+
}), P.grantedScopes.length > 0 ? /* @__PURE__ */ v(k, {
|
|
337
|
+
collapsedHeight: 88,
|
|
338
|
+
label: "Show all scopes",
|
|
339
|
+
children: /* @__PURE__ */ v("div", {
|
|
340
|
+
className: "flex flex-wrap gap-2",
|
|
341
|
+
children: P.grantedScopes.map((e) => /* @__PURE__ */ v("span", {
|
|
342
|
+
className: "text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary font-mono",
|
|
343
|
+
children: e
|
|
344
|
+
}, e))
|
|
345
|
+
})
|
|
346
|
+
}) : /* @__PURE__ */ v("p", {
|
|
343
347
|
className: "text-sm text-text-secondary",
|
|
344
|
-
children:
|
|
348
|
+
children: N("integrations.connectionDetail.scopes.empty", "No scopes granted.")
|
|
345
349
|
})]
|
|
346
350
|
}),
|
|
347
|
-
U && /* @__PURE__ */
|
|
351
|
+
U && /* @__PURE__ */ y("div", {
|
|
348
352
|
className: t("rounded-xl border p-5", U.success ? "border-border-default bg-status-success-bg-subtle" : "border-border-default bg-status-error-bg-subtle"),
|
|
349
353
|
children: [
|
|
350
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ y("h2", {
|
|
351
355
|
className: t("font-semibold flex items-center gap-2 mb-2", U.success ? "text-status-success-text" : "text-status-error-text"),
|
|
352
|
-
children: [U.success ? /* @__PURE__ */
|
|
356
|
+
children: [U.success ? /* @__PURE__ */ v(d, { size: 18 }) : /* @__PURE__ */ v(_, { size: 18 }), U.success ? N("integrations.connectionDetail.testResult.passed", "Connection Test Passed") : N("integrations.connectionDetail.testResult.failed", "Connection Test Failed")]
|
|
353
357
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ v("p", {
|
|
355
359
|
className: t("text-sm", U.success ? "text-status-success-text" : "text-status-error-text"),
|
|
356
360
|
children: U.message
|
|
357
361
|
}),
|
|
358
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ v("p", {
|
|
359
363
|
className: "text-xs text-text-secondary mt-1",
|
|
360
|
-
children:
|
|
364
|
+
children: N("integrations.connectionDetail.testResult.latency", "Latency: {latency}ms", { latency: U.latencyMs })
|
|
361
365
|
})
|
|
362
366
|
]
|
|
363
367
|
}),
|
|
364
|
-
$ && /* @__PURE__ */
|
|
365
|
-
className: "
|
|
366
|
-
children: [/* @__PURE__ */
|
|
368
|
+
$ && /* @__PURE__ */ y(O, {
|
|
369
|
+
className: "border-border-seam p-5",
|
|
370
|
+
children: [/* @__PURE__ */ y("h2", {
|
|
367
371
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
368
|
-
children: [/* @__PURE__ */
|
|
372
|
+
children: [/* @__PURE__ */ v(f, {
|
|
369
373
|
size: 18,
|
|
370
374
|
className: "text-primary"
|
|
371
375
|
}), "Credential Storage"]
|
|
372
|
-
}), /* @__PURE__ */
|
|
376
|
+
}), /* @__PURE__ */ y("div", {
|
|
373
377
|
className: "space-y-2 text-sm",
|
|
374
378
|
children: [
|
|
375
|
-
|
|
379
|
+
P.vaultId && /* @__PURE__ */ y("div", {
|
|
376
380
|
className: "flex items-center justify-between gap-3",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
381
|
+
children: [/* @__PURE__ */ v("span", {
|
|
378
382
|
className: "text-text-secondary",
|
|
379
383
|
children: "Vault"
|
|
380
|
-
}), /* @__PURE__ */
|
|
384
|
+
}), /* @__PURE__ */ v("span", {
|
|
381
385
|
className: "font-medium text-text-primary break-all",
|
|
382
|
-
children:
|
|
386
|
+
children: P.vaultId
|
|
383
387
|
})]
|
|
384
388
|
}),
|
|
385
|
-
|
|
389
|
+
P.credentialSecretName && /* @__PURE__ */ y("div", {
|
|
386
390
|
className: "flex items-center justify-between gap-3",
|
|
387
|
-
children: [/* @__PURE__ */
|
|
391
|
+
children: [/* @__PURE__ */ v("span", {
|
|
388
392
|
className: "text-text-secondary",
|
|
389
393
|
children: "Secret"
|
|
390
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ v("span", {
|
|
391
395
|
className: "font-medium text-text-primary break-all",
|
|
392
|
-
children:
|
|
396
|
+
children: P.credentialSecretName
|
|
393
397
|
})]
|
|
394
398
|
}),
|
|
395
|
-
|
|
399
|
+
P.credentialSecretId && /* @__PURE__ */ y("div", {
|
|
396
400
|
className: "flex items-center justify-between gap-3",
|
|
397
|
-
children: [/* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ v("span", {
|
|
398
402
|
className: "text-text-secondary",
|
|
399
403
|
children: "Secret ID"
|
|
400
|
-
}), /* @__PURE__ */
|
|
404
|
+
}), /* @__PURE__ */ v("span", {
|
|
401
405
|
className: "font-mono text-xs text-text-primary break-all",
|
|
402
|
-
children:
|
|
406
|
+
children: P.credentialSecretId
|
|
403
407
|
})]
|
|
404
408
|
})
|
|
405
409
|
]
|
|
406
410
|
})]
|
|
407
411
|
}),
|
|
408
|
-
(V || H) && /* @__PURE__ */
|
|
409
|
-
className: "
|
|
410
|
-
children: [/* @__PURE__ */
|
|
412
|
+
(V || H) && /* @__PURE__ */ y(O, {
|
|
413
|
+
className: "border-border-seam p-5",
|
|
414
|
+
children: [/* @__PURE__ */ y("h2", {
|
|
411
415
|
className: "font-semibold text-text-primary flex items-center gap-2 mb-3",
|
|
412
|
-
children: [/* @__PURE__ */
|
|
416
|
+
children: [/* @__PURE__ */ v(f, {
|
|
413
417
|
size: 18,
|
|
414
418
|
className: "text-primary"
|
|
415
|
-
}),
|
|
416
|
-
}), /* @__PURE__ */
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
disabled: Q,
|
|
453
|
-
className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-default text-status-error-text hover:bg-status-error-bg-subtle transition-colors disabled:opacity-50",
|
|
454
|
-
children: [z ? /* @__PURE__ */ y(m, {
|
|
455
|
-
size: 14,
|
|
456
|
-
className: "animate-spin"
|
|
457
|
-
}) : /* @__PURE__ */ y(_, { size: 14 }), j("integrations.connectionDetail.actions.delete", "Delete")]
|
|
458
|
-
})
|
|
459
|
-
]
|
|
419
|
+
}), N("integrations.connectionDetail.sections.actions", "Actions")]
|
|
420
|
+
}), /* @__PURE__ */ v(D, {
|
|
421
|
+
align: "start",
|
|
422
|
+
primary: {
|
|
423
|
+
label: N("integrations.connectionDetail.actions.test", "Test Connection"),
|
|
424
|
+
onSelect: () => {
|
|
425
|
+
Fe();
|
|
426
|
+
},
|
|
427
|
+
disabled: Q,
|
|
428
|
+
icon: L ? /* @__PURE__ */ v(p, {
|
|
429
|
+
size: 14,
|
|
430
|
+
className: "animate-spin"
|
|
431
|
+
}) : /* @__PURE__ */ v(ge, { size: 14 })
|
|
432
|
+
},
|
|
433
|
+
actions: [...V && P.provider.authType === "oauth2" && Ae ? [{
|
|
434
|
+
label: N("integrations.connectionDetail.actions.refreshToken", "Refresh Token"),
|
|
435
|
+
onSelect: () => {
|
|
436
|
+
Ie();
|
|
437
|
+
},
|
|
438
|
+
disabled: Q,
|
|
439
|
+
icon: /* @__PURE__ */ v(me, { size: 14 })
|
|
440
|
+
}] : [], ...H ? [{
|
|
441
|
+
label: N("integrations.connectionDetail.actions.revoke", "Revoke"),
|
|
442
|
+
onSelect: () => {
|
|
443
|
+
Le();
|
|
444
|
+
},
|
|
445
|
+
disabled: Q,
|
|
446
|
+
icon: /* @__PURE__ */ v(h, { size: 14 })
|
|
447
|
+
}, {
|
|
448
|
+
label: N("integrations.connectionDetail.actions.delete", "Delete"),
|
|
449
|
+
onSelect: () => {
|
|
450
|
+
ze();
|
|
451
|
+
},
|
|
452
|
+
intent: "destructive",
|
|
453
|
+
disabled: Q,
|
|
454
|
+
icon: /* @__PURE__ */ v(g, { size: 14 })
|
|
455
|
+
}] : []]
|
|
460
456
|
})]
|
|
461
457
|
})
|
|
462
458
|
]
|
|
@@ -466,6 +462,6 @@ function D() {
|
|
|
466
462
|
});
|
|
467
463
|
}
|
|
468
464
|
//#endregion
|
|
469
|
-
export {
|
|
465
|
+
export { A as ConnectionDetail };
|
|
470
466
|
|
|
471
467
|
//# sourceMappingURL=ConnectionDetail.js.map
|