@burdenoff/microfe-security 2026.625.2 → 2026.731.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/security/pages/AccessReviewPage.js +116 -85
- package/dist/security/pages/AccessReviewPage.js.map +1 -1
- package/dist/security/pages/AuditLogPage.js +32 -26
- package/dist/security/pages/AuditLogPage.js.map +1 -1
- package/dist/security/pages/ImportExportPage.js +23 -17
- package/dist/security/pages/ImportExportPage.js.map +1 -1
- package/dist/security/pages/ProviderDetailPage.js +194 -177
- package/dist/security/pages/ProviderDetailPage.js.map +1 -1
- package/dist/security/pages/ProvidersPage.js +17 -14
- package/dist/security/pages/ProvidersPage.js.map +1 -1
- package/dist/security/pages/SecretCreatePage.js +76 -70
- package/dist/security/pages/SecretCreatePage.js.map +1 -1
- package/dist/security/pages/SecretDetailPage.js +325 -290
- package/dist/security/pages/SecretDetailPage.js.map +1 -1
- package/dist/security/pages/SecurityDashboardPage.js +103 -67
- package/dist/security/pages/SecurityDashboardPage.js.map +1 -1
- package/dist/security/pages/SharedWithMePage.js +16 -12
- package/dist/security/pages/SharedWithMePage.js.map +1 -1
- package/dist/security/pages/VaultCreatePage.js +65 -58
- package/dist/security/pages/VaultCreatePage.js.map +1 -1
- package/dist/security/pages/VaultDetailPage.js +213 -183
- package/dist/security/pages/VaultDetailPage.js.map +1 -1
- package/dist/security/pages/VaultSettingsPage.js +137 -113
- package/dist/security/pages/VaultSettingsPage.js.map +1 -1
- package/dist/security/pages/VaultsDashboardPage.js +83 -79
- package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
- package/package.json +5 -5
|
@@ -5,15 +5,15 @@ import { Badge as r, Button as i, Card as a } from "../components/ui.js";
|
|
|
5
5
|
import { ConfirmDialog as o } from "../components/ConfirmDialog.js";
|
|
6
6
|
import { useDeleteIntegration as s, useTriggerSync as c, useVaultIntegrations as l, useVaultSyncLogs as u } from "../hooks/useProviderQueries.js";
|
|
7
7
|
import { getProviderTypeInfo as d } from "../constants/providers.js";
|
|
8
|
-
import { nativeConfirm as f, nativeImpact as
|
|
9
|
-
import { useState as
|
|
10
|
-
import { useNavigate as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { AlertTriangle as
|
|
13
|
-
import { CTAOverflowMenu as k, ResponsiveTable as A } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { nativeConfirm as f, nativeImpact as ee, nativeNotify as p } from "../../utils/nativeBridge.js";
|
|
9
|
+
import { useState as m } from "react";
|
|
10
|
+
import { useNavigate as h, useParams as g } from "react-router-dom";
|
|
11
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
12
|
+
import { AlertTriangle as y, ArrowLeft as b, CheckCircle as x, Clock as S, Cloud as C, Loader2 as w, RefreshCw as T, Trash2 as te, XCircle as ne } from "lucide-react";
|
|
13
|
+
import { CTAOverflowMenu as re, GlassCard as E, IllustratedEmptyState as D, NextSteps as O, PagePurpose as k, ResponsiveTable as A } from "@burdenoff/fe-libs/ui";
|
|
14
14
|
//#region src/security/pages/ProviderDetailPage.tsx
|
|
15
15
|
function j() {
|
|
16
|
-
let { vaultId: j, providerId: M } =
|
|
16
|
+
let { vaultId: j, providerId: M } = g(), { basePath: N = "/", navigate: P } = e(), F = h(), { data: I, loading: L, error: R } = l(j), z = (I?.getVaultIntegrations?.items ?? []).find((e) => e.id === M), { data: B, loading: V } = u(M), H = B?.getVaultSyncLogs?.items ?? [], [U, { loading: W }] = s(), [G, { loading: K }] = c(), [q, J] = m(!1), Y = (e) => {
|
|
17
17
|
P ? P(e) : F(e);
|
|
18
18
|
}, X = () => Y(`${N}/providers`), Z = async () => {
|
|
19
19
|
if (M) try {
|
|
@@ -23,12 +23,12 @@ function j() {
|
|
|
23
23
|
}
|
|
24
24
|
}, Q = async () => {
|
|
25
25
|
if (M) try {
|
|
26
|
-
await U({ variables: { id: M } }),
|
|
26
|
+
await U({ variables: { id: M } }), p("success"), X();
|
|
27
27
|
} catch (e) {
|
|
28
|
-
console.error("Delete failed:", e),
|
|
28
|
+
console.error("Delete failed:", e), p("error");
|
|
29
29
|
}
|
|
30
|
-
},
|
|
31
|
-
|
|
30
|
+
}, ie = async () => {
|
|
31
|
+
ee("medium");
|
|
32
32
|
let e = await f({
|
|
33
33
|
title: "Delete Provider",
|
|
34
34
|
message: "Delete this provider? This cannot be undone.",
|
|
@@ -41,7 +41,7 @@ function j() {
|
|
|
41
41
|
}
|
|
42
42
|
e && await Q();
|
|
43
43
|
};
|
|
44
|
-
if (L && !z) return /* @__PURE__ */
|
|
44
|
+
if (L && !z) return /* @__PURE__ */ _(n, {
|
|
45
45
|
title: "Loading...",
|
|
46
46
|
breadcrumbs: [{
|
|
47
47
|
label: "Security",
|
|
@@ -50,12 +50,12 @@ function j() {
|
|
|
50
50
|
label: "Providers",
|
|
51
51
|
path: `${N}/providers`
|
|
52
52
|
}],
|
|
53
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ _("div", {
|
|
54
54
|
className: "flex items-center justify-center py-16",
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ _(w, { className: "size-8 animate-spin text-primary" })
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
if (R || !L && !z) return /* @__PURE__ */
|
|
58
|
+
if (R || !L && !z) return /* @__PURE__ */ _(n, {
|
|
59
59
|
title: "Error",
|
|
60
60
|
breadcrumbs: [{
|
|
61
61
|
label: "Security",
|
|
@@ -64,32 +64,32 @@ function j() {
|
|
|
64
64
|
label: "Providers",
|
|
65
65
|
path: `${N}/providers`
|
|
66
66
|
}],
|
|
67
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ _(a, {
|
|
68
68
|
className: "p-6",
|
|
69
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ v("div", {
|
|
70
70
|
className: "flex items-start gap-4",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ _(y, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ v("div", { children: [
|
|
72
|
+
/* @__PURE__ */ _("h3", {
|
|
73
73
|
className: "font-semibold text-status-error-text",
|
|
74
74
|
children: "Provider not found"
|
|
75
75
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ _("p", {
|
|
77
77
|
className: "text-sm text-text-secondary mt-1",
|
|
78
78
|
children: R?.message ?? "The requested provider could not be found."
|
|
79
79
|
}),
|
|
80
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ v(i, {
|
|
81
81
|
variant: "outline",
|
|
82
82
|
size: "sm",
|
|
83
83
|
className: "mt-4",
|
|
84
84
|
onClick: X,
|
|
85
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ _(b, { className: "size-4" }), "Back to Providers"]
|
|
86
86
|
})
|
|
87
87
|
] })]
|
|
88
88
|
})
|
|
89
89
|
})
|
|
90
90
|
});
|
|
91
91
|
let $ = d(z.providerType);
|
|
92
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ v(n, {
|
|
93
93
|
title: z.displayName || $.label,
|
|
94
94
|
description: $.description,
|
|
95
95
|
breadcrumbs: [
|
|
@@ -103,184 +103,201 @@ function j() {
|
|
|
103
103
|
},
|
|
104
104
|
{ label: z.displayName || $.label }
|
|
105
105
|
],
|
|
106
|
-
actions: /* @__PURE__ */
|
|
106
|
+
actions: /* @__PURE__ */ v("div", {
|
|
107
107
|
className: "flex items-center gap-2",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ v(i, {
|
|
109
109
|
variant: "outline",
|
|
110
110
|
size: "sm",
|
|
111
111
|
onClick: X,
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ _(b, { className: "size-4" }), /* @__PURE__ */ _("span", {
|
|
113
113
|
className: "hidden sm:inline",
|
|
114
114
|
children: "Back"
|
|
115
115
|
})]
|
|
116
|
-
}), /* @__PURE__ */
|
|
116
|
+
}), /* @__PURE__ */ _(re, {
|
|
117
117
|
primary: {
|
|
118
118
|
label: K ? "Syncing..." : "Sync Now",
|
|
119
|
-
icon: /* @__PURE__ */
|
|
119
|
+
icon: /* @__PURE__ */ _(T, { className: t("size-4", K && "animate-spin") }),
|
|
120
120
|
disabled: K,
|
|
121
121
|
onSelect: () => void Z()
|
|
122
122
|
},
|
|
123
123
|
actions: [{
|
|
124
124
|
label: "Remove",
|
|
125
|
-
icon: /* @__PURE__ */
|
|
125
|
+
icon: /* @__PURE__ */ _(te, { className: "size-4" }),
|
|
126
126
|
intent: "destructive",
|
|
127
127
|
disabled: W,
|
|
128
|
-
onSelect: () => void
|
|
128
|
+
onSelect: () => void ie()
|
|
129
129
|
}]
|
|
130
130
|
})]
|
|
131
131
|
}),
|
|
132
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ v("div", {
|
|
133
133
|
className: "space-y-6",
|
|
134
|
-
children: [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ _(k, {
|
|
136
|
+
icon: /* @__PURE__ */ _(C, { className: "size-4" }),
|
|
137
|
+
children: "This is one connected provider. It keeps the secrets in this vault in sync with an external secret manager on a schedule. Use it to trigger a sync on demand, confirm the connection is healthy, review the history of past sync runs (including any errors), or remove the connection."
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ _(O, {
|
|
140
|
+
storageKey: "security-provider-detail",
|
|
141
|
+
steps: [{
|
|
142
|
+
id: "sync-now",
|
|
143
|
+
label: "Run a sync now",
|
|
144
|
+
description: "Pull the latest values from the provider immediately.",
|
|
145
|
+
icon: /* @__PURE__ */ _(T, { className: "size-4" }),
|
|
146
|
+
onClick: K ? void 0 : () => void Z()
|
|
147
|
+
}, {
|
|
148
|
+
id: "review-history",
|
|
149
|
+
label: "Review sync history",
|
|
150
|
+
description: "Check recent runs below for failures or drift.",
|
|
151
|
+
icon: /* @__PURE__ */ _(S, { className: "size-4" }),
|
|
152
|
+
href: "#sync-history"
|
|
153
|
+
}]
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ v(E, {
|
|
156
|
+
treatment: "glass",
|
|
157
|
+
glow: !0,
|
|
158
|
+
className: "p-6",
|
|
138
159
|
children: [/* @__PURE__ */ v("div", {
|
|
139
|
-
className: "
|
|
140
|
-
children: /* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
})]
|
|
145
|
-
}), /* @__PURE__ */ y("div", {
|
|
146
|
-
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 text-sm",
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
149
|
-
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
150
|
-
children: "Provider Type"
|
|
151
|
-
}), /* @__PURE__ */ v("p", {
|
|
152
|
-
className: "font-semibold text-text-primary",
|
|
153
|
-
children: $.label
|
|
154
|
-
})] }),
|
|
155
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
156
|
-
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
157
|
-
children: "Sync Direction"
|
|
158
|
-
}), /* @__PURE__ */ v("p", {
|
|
159
|
-
className: "font-semibold text-text-primary capitalize",
|
|
160
|
-
children: z.syncDirection ?? "bidirectional"
|
|
161
|
-
})] }),
|
|
162
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
163
|
-
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
164
|
-
children: "Status"
|
|
165
|
-
}), /* @__PURE__ */ y(r, {
|
|
166
|
-
variant: z.syncEnabled ? "success" : "outline",
|
|
167
|
-
children: [z.syncEnabled && /* @__PURE__ */ v("span", {
|
|
168
|
-
"aria-hidden": "true",
|
|
169
|
-
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse"
|
|
170
|
-
}), z.syncEnabled ? "Enabled" : "Disabled"]
|
|
171
|
-
})] }),
|
|
172
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
173
|
-
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
174
|
-
children: "Sync Interval"
|
|
175
|
-
}), /* @__PURE__ */ y("p", {
|
|
176
|
-
className: "font-semibold text-text-primary",
|
|
177
|
-
children: [z.syncIntervalMinutes ?? 0, " minutes"]
|
|
178
|
-
})] }),
|
|
179
|
-
/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
180
|
-
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
181
|
-
children: "Added On"
|
|
182
|
-
}), /* @__PURE__ */ v("p", {
|
|
183
|
-
className: "font-semibold text-text-primary",
|
|
184
|
-
children: new Date(z.createdAt).toLocaleDateString()
|
|
185
|
-
})] }),
|
|
186
|
-
z.lastSyncAt && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
187
|
-
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
188
|
-
children: "Last Successful Sync"
|
|
189
|
-
}), /* @__PURE__ */ y("div", {
|
|
190
|
-
className: "flex items-center gap-1.5 font-semibold text-text-primary",
|
|
191
|
-
children: [/* @__PURE__ */ v(S, { className: "size-3.5 text-status-success-text" }), new Date(z.lastSyncAt).toLocaleString()]
|
|
192
|
-
})] })
|
|
193
|
-
]
|
|
194
|
-
})]
|
|
195
|
-
}), /* @__PURE__ */ y(a, {
|
|
196
|
-
className: "p-6 shadow-sm border-border-subtle/60",
|
|
197
|
-
children: [/* @__PURE__ */ y("div", {
|
|
198
|
-
className: "flex items-center justify-between mb-6",
|
|
199
|
-
children: [/* @__PURE__ */ y("div", {
|
|
200
|
-
className: "flex items-center gap-2",
|
|
201
|
-
children: [/* @__PURE__ */ v(C, { className: "size-5 text-primary" }), /* @__PURE__ */ v("h2", {
|
|
160
|
+
className: "flex items-center gap-2 mb-6",
|
|
161
|
+
children: [/* @__PURE__ */ _("div", {
|
|
162
|
+
className: "p-2 rounded-lg bg-action-primary-bg/10 text-primary",
|
|
163
|
+
children: /* @__PURE__ */ _(C, { className: "size-5" })
|
|
164
|
+
}), /* @__PURE__ */ _("h2", {
|
|
202
165
|
className: "text-lg font-bold text-text-primary",
|
|
203
|
-
children: "
|
|
166
|
+
children: "Integration Settings"
|
|
204
167
|
})]
|
|
205
|
-
}), /* @__PURE__ */
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
168
|
+
}), /* @__PURE__ */ v("div", {
|
|
169
|
+
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 text-sm",
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
172
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
173
|
+
children: "Provider Type"
|
|
174
|
+
}), /* @__PURE__ */ _("p", {
|
|
175
|
+
className: "font-semibold text-text-primary",
|
|
176
|
+
children: $.label
|
|
177
|
+
})] }),
|
|
178
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
179
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
180
|
+
children: "Sync Direction"
|
|
181
|
+
}), /* @__PURE__ */ _("p", {
|
|
182
|
+
className: "font-semibold text-text-primary capitalize",
|
|
183
|
+
children: z.syncDirection ?? "bidirectional"
|
|
184
|
+
})] }),
|
|
185
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
186
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
187
|
+
children: "Status"
|
|
188
|
+
}), /* @__PURE__ */ v(r, {
|
|
189
|
+
variant: z.syncEnabled ? "success" : "outline",
|
|
190
|
+
children: [z.syncEnabled && /* @__PURE__ */ _("span", {
|
|
191
|
+
"aria-hidden": "true",
|
|
192
|
+
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse"
|
|
193
|
+
}), z.syncEnabled ? "Enabled" : "Disabled"]
|
|
194
|
+
})] }),
|
|
195
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
196
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
197
|
+
children: "Sync Interval"
|
|
198
|
+
}), /* @__PURE__ */ v("p", {
|
|
199
|
+
className: "font-semibold text-text-primary",
|
|
200
|
+
children: [z.syncIntervalMinutes ?? 0, " minutes"]
|
|
201
|
+
})] }),
|
|
202
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
203
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
204
|
+
children: "Added On"
|
|
205
|
+
}), /* @__PURE__ */ _("p", {
|
|
206
|
+
className: "font-semibold text-text-primary",
|
|
207
|
+
children: new Date(z.createdAt).toLocaleDateString()
|
|
208
|
+
})] }),
|
|
209
|
+
z.lastSyncAt && /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
210
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
211
|
+
children: "Last Successful Sync"
|
|
212
|
+
}), /* @__PURE__ */ v("div", {
|
|
213
|
+
className: "flex items-center gap-1.5 font-semibold text-text-primary",
|
|
214
|
+
children: [/* @__PURE__ */ _(x, { className: "size-3.5 text-status-success-text" }), new Date(z.lastSyncAt).toLocaleString()]
|
|
215
|
+
})] })
|
|
216
|
+
]
|
|
209
217
|
})]
|
|
210
|
-
}),
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
218
|
+
}),
|
|
219
|
+
/* @__PURE__ */ v(a, {
|
|
220
|
+
id: "sync-history",
|
|
221
|
+
className: "p-6 shadow-sm border-border-subtle/60",
|
|
222
|
+
children: [/* @__PURE__ */ v("div", {
|
|
223
|
+
className: "flex items-center justify-between mb-6",
|
|
224
|
+
children: [/* @__PURE__ */ v("div", {
|
|
225
|
+
className: "flex items-center gap-2",
|
|
226
|
+
children: [/* @__PURE__ */ _(S, { className: "size-5 text-primary" }), /* @__PURE__ */ _("h2", {
|
|
227
|
+
className: "text-lg font-bold text-text-primary",
|
|
228
|
+
children: "Sync History"
|
|
229
|
+
})]
|
|
230
|
+
}), /* @__PURE__ */ v(r, {
|
|
231
|
+
variant: "outline",
|
|
232
|
+
className: "bg-bg-sunken",
|
|
233
|
+
children: [H.length, " runs"]
|
|
234
|
+
})]
|
|
235
|
+
}), V ? /* @__PURE__ */ _("div", {
|
|
236
|
+
className: "flex justify-center py-12",
|
|
237
|
+
children: /* @__PURE__ */ _(w, { className: "size-8 animate-spin text-primary/40" })
|
|
238
|
+
}) : H.length > 0 ? /* @__PURE__ */ _(A, {
|
|
239
|
+
className: "border border-border-subtle/60 rounded-lg",
|
|
240
|
+
data: H,
|
|
241
|
+
rowKey: (e) => e.id,
|
|
242
|
+
columns: [
|
|
243
|
+
{
|
|
244
|
+
key: "time",
|
|
245
|
+
header: "Time",
|
|
246
|
+
priority: "primary",
|
|
247
|
+
cell: (e) => /* @__PURE__ */ _("span", {
|
|
248
|
+
className: "whitespace-nowrap",
|
|
249
|
+
children: new Date(e.startedAt).toLocaleString()
|
|
250
|
+
})
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
key: "status",
|
|
254
|
+
header: "Status",
|
|
255
|
+
cell: (e) => /* @__PURE__ */ _(r, {
|
|
256
|
+
variant: e.status === "COMPLETED" ? "success" : e.status === "FAILED" ? "destructive" : "warning",
|
|
257
|
+
className: "text-[10px] uppercase",
|
|
258
|
+
children: e.status
|
|
259
|
+
})
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
key: "synced",
|
|
263
|
+
header: "Synced",
|
|
264
|
+
cell: (e) => /* @__PURE__ */ _("span", {
|
|
265
|
+
className: "font-medium text-text-primary tabular-nums",
|
|
266
|
+
children: e.secretsSynced
|
|
267
|
+
})
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
key: "duration",
|
|
271
|
+
header: "Duration",
|
|
272
|
+
cell: (e) => /* @__PURE__ */ _("span", {
|
|
273
|
+
className: "text-text-secondary tabular-nums",
|
|
274
|
+
children: e.durationMs ? `${e.durationMs}ms` : "-"
|
|
275
|
+
})
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
key: "errors",
|
|
279
|
+
header: "Errors",
|
|
280
|
+
cell: (e) => e.errorMessage ? /* @__PURE__ */ v("div", {
|
|
281
|
+
className: "flex items-center gap-1.5 text-status-error-text max-w-xs truncate",
|
|
282
|
+
children: [/* @__PURE__ */ _(ne, { className: "size-3.5" }), /* @__PURE__ */ _("span", {
|
|
283
|
+
className: "truncate",
|
|
284
|
+
title: e.errorMessage,
|
|
285
|
+
children: e.errorMessage
|
|
286
|
+
})]
|
|
287
|
+
}) : /* @__PURE__ */ _("span", {
|
|
288
|
+
className: "text-text-secondary",
|
|
289
|
+
children: "-"
|
|
290
|
+
})
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
}) : /* @__PURE__ */ _(D, {
|
|
294
|
+
illustration: "empty-data",
|
|
295
|
+
title: "No sync logs found",
|
|
296
|
+
description: "Sync history will appear here after the first synchronization run."
|
|
297
|
+
})]
|
|
298
|
+
})
|
|
299
|
+
]
|
|
300
|
+
}), /* @__PURE__ */ _(o, {
|
|
284
301
|
isOpen: q,
|
|
285
302
|
onClose: () => J(!1),
|
|
286
303
|
onConfirm: Q,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderDetailPage.js","names":[],"sources":["../../../src/security/pages/ProviderDetailPage.tsx"],"sourcesContent":["import { useParams, useNavigate } from 'react-router-dom';\nimport {\n ArrowLeft,\n RefreshCw,\n Trash2,\n Cloud,\n Loader2,\n AlertTriangle,\n CheckCircle,\n Clock,\n XCircle,\n Info,\n} from 'lucide-react';\nimport {\n ResponsiveTable,\n type ResponsiveTableColumn,\n GlassCard,\n CTAOverflowMenu,\n} from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../components/PageLayout';\nimport { ConfirmDialog } from '../components/ConfirmDialog';\nimport { Button, Card, Badge } from '../components/ui';\nimport {\n useVaultIntegrations,\n useDeleteIntegration,\n useTriggerSync,\n useVaultSyncLogs,\n} from '../hooks/useProviderQueries';\nimport { useSecurity } from '../providers/SecurityProvider';\nimport { getProviderTypeInfo } from '../constants/providers';\nimport { useState } from 'react';\nimport { cn } from '../utils/cn';\nimport type { ProviderType } from '../types';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../utils/nativeBridge';\n\nexport function ProviderDetailPage() {\n const { vaultId, providerId } = useParams<{ vaultId: string; providerId: string }>();\n const { basePath = '/', navigate: shellNavigate } = useSecurity();\n const routerNavigate = useNavigate();\n\n const { data, loading, error } = useVaultIntegrations(vaultId);\n const providers = data?.getVaultIntegrations?.items ?? [];\n const provider = providers.find((p: any) => p.id === providerId);\n\n const { data: logsData, loading: logsLoading } = useVaultSyncLogs(providerId);\n const syncLogs = logsData?.getVaultSyncLogs?.items ?? [];\n\n const [deleteProvider, { loading: deleting }] = useDeleteIntegration();\n const [triggerSync, { loading: syncing }] = useTriggerSync();\n const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);\n\n const handleNavigate = (path: string) => {\n if (shellNavigate) {\n shellNavigate(path);\n } else {\n routerNavigate(path);\n }\n };\n\n const handleBack = () => handleNavigate(`${basePath}/providers`);\n\n const handleSync = async () => {\n if (!providerId) return;\n try {\n await triggerSync({ variables: { integrationId: providerId } });\n } catch (err) {\n console.error('Sync failed:', err);\n }\n };\n\n const handleDelete = async () => {\n if (!providerId) return;\n try {\n await deleteProvider({ variables: { id: providerId } });\n void nativeNotify('success');\n handleBack();\n } catch (err) {\n console.error('Delete failed:', err);\n void nativeNotify('error');\n }\n };\n\n const requestDelete = async () => {\n void nativeImpact('medium');\n const result = await nativeConfirm({\n title: 'Delete Provider',\n message: 'Delete this provider? This cannot be undone.',\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n if (result === null) {\n setShowDeleteConfirm(true);\n return;\n }\n if (result) {\n await handleDelete();\n }\n };\n\n if (loading && !provider) {\n return (\n <PageLayout\n title=\"Loading...\"\n breadcrumbs={[\n { label: 'Security', path: basePath },\n { label: 'Providers', path: `${basePath}/providers` },\n ]}\n >\n <div className=\"flex items-center justify-center py-16\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n </PageLayout>\n );\n }\n\n if (error || (!loading && !provider)) {\n return (\n <PageLayout\n title=\"Error\"\n breadcrumbs={[\n { label: 'Security', path: basePath },\n { label: 'Providers', path: `${basePath}/providers` },\n ]}\n >\n <Card className=\"p-6\">\n <div className=\"flex items-start gap-4\">\n <AlertTriangle className=\"size-6 text-status-error-text\" />\n <div>\n <h3 className=\"font-semibold text-status-error-text\">Provider not found</h3>\n <p className=\"text-sm text-text-secondary mt-1\">\n {error?.message ?? 'The requested provider could not be found.'}\n </p>\n <Button variant=\"outline\" size=\"sm\" className=\"mt-4\" onClick={handleBack}>\n <ArrowLeft className=\"size-4\" />\n Back to Providers\n </Button>\n </div>\n </div>\n </Card>\n </PageLayout>\n );\n }\n\n const typeInfo = getProviderTypeInfo(provider.providerType as ProviderType);\n\n return (\n <PageLayout\n title={(provider.displayName as string) || typeInfo.label}\n description={typeInfo.description}\n breadcrumbs={[\n { label: 'Security', path: basePath },\n { label: 'Providers', path: `${basePath}/providers` },\n { label: (provider.displayName as string) || typeInfo.label },\n ]}\n actions={\n // Boff UI 2.0: quiet \"Back\", a single primary CTA (\"Sync Now\"), and the\n // destructive \"Remove\" tucked into the overflow menu.\n <div className=\"flex items-center gap-2\">\n <Button variant=\"outline\" size=\"sm\" onClick={handleBack}>\n <ArrowLeft className=\"size-4\" />\n <span className=\"hidden sm:inline\">Back</span>\n </Button>\n <CTAOverflowMenu\n primary={{\n label: syncing ? 'Syncing...' : 'Sync Now',\n icon: <RefreshCw className={cn('size-4', syncing && 'animate-spin')} />,\n disabled: syncing,\n onSelect: () => void handleSync(),\n }}\n actions={[\n {\n label: 'Remove',\n icon: <Trash2 className=\"size-4\" />,\n intent: 'destructive',\n disabled: deleting,\n onSelect: () => void requestDelete(),\n },\n ]}\n />\n </div>\n }\n >\n <div className=\"space-y-6\">\n {/* Configuration */}\n <Card className=\"p-6\">\n <div className=\"flex items-center gap-2 mb-6\">\n <div className=\"p-2 rounded-lg bg-action-primary-bg/10 text-primary\">\n <Cloud className=\"size-5\" />\n </div>\n <h2 className=\"text-lg font-bold text-text-primary\">Integration Settings</h2>\n </div>\n\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 text-sm\">\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Provider Type\n </p>\n <p className=\"font-semibold text-text-primary\">{typeInfo.label}</p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Sync Direction\n </p>\n <p className=\"font-semibold text-text-primary capitalize\">\n {(provider.syncDirection as string) ?? 'bidirectional'}\n </p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Status\n </p>\n <Badge variant={provider.syncEnabled ? 'success' : 'outline'}>\n {provider.syncEnabled && (\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse\"\n />\n )}\n {provider.syncEnabled ? 'Enabled' : 'Disabled'}\n </Badge>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Sync Interval\n </p>\n <p className=\"font-semibold text-text-primary\">\n {(provider.syncIntervalMinutes as number) ?? 0} minutes\n </p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Added On\n </p>\n <p className=\"font-semibold text-text-primary\">\n {new Date(provider.createdAt as string).toLocaleDateString()}\n </p>\n </div>\n {provider.lastSyncAt && (\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Last Successful Sync\n </p>\n <div className=\"flex items-center gap-1.5 font-semibold text-text-primary\">\n <CheckCircle className=\"size-3.5 text-status-success-text\" />\n {new Date(provider.lastSyncAt as string).toLocaleString()}\n </div>\n </div>\n )}\n </div>\n </Card>\n\n {/* Sync History */}\n <Card className=\"p-6 shadow-sm border-border-subtle/60\">\n <div className=\"flex items-center justify-between mb-6\">\n <div className=\"flex items-center gap-2\">\n <Clock className=\"size-5 text-primary\" />\n <h2 className=\"text-lg font-bold text-text-primary\">Sync History</h2>\n </div>\n <Badge variant=\"outline\" className=\"bg-bg-sunken\">\n {syncLogs.length} runs\n </Badge>\n </div>\n\n {logsLoading ? (\n <div className=\"flex justify-center py-12\">\n <Loader2 className=\"size-8 animate-spin text-primary/40\" />\n </div>\n ) : syncLogs.length > 0 ? (\n <ResponsiveTable<any>\n className=\"border border-border-subtle/60 rounded-lg\"\n data={syncLogs}\n rowKey={(log) => log.id}\n columns={\n [\n {\n key: 'time',\n header: 'Time',\n priority: 'primary',\n cell: (log) => (\n <span className=\"whitespace-nowrap\">\n {new Date(log.startedAt).toLocaleString()}\n </span>\n ),\n },\n {\n key: 'status',\n header: 'Status',\n cell: (log) => (\n <Badge\n variant={\n log.status === 'COMPLETED'\n ? 'success'\n : log.status === 'FAILED'\n ? 'destructive'\n : 'warning'\n }\n className=\"text-[10px] uppercase\"\n >\n {log.status}\n </Badge>\n ),\n },\n {\n key: 'synced',\n header: 'Synced',\n cell: (log) => (\n <span className=\"font-medium text-text-primary tabular-nums\">\n {log.secretsSynced}\n </span>\n ),\n },\n {\n key: 'duration',\n header: 'Duration',\n cell: (log) => (\n <span className=\"text-text-secondary tabular-nums\">\n {log.durationMs ? `${log.durationMs}ms` : '-'}\n </span>\n ),\n },\n {\n key: 'errors',\n header: 'Errors',\n cell: (log) =>\n log.errorMessage ? (\n <div className=\"flex items-center gap-1.5 text-status-error-text max-w-xs truncate\">\n <XCircle className=\"size-3.5\" />\n <span className=\"truncate\" title={log.errorMessage}>\n {log.errorMessage}\n </span>\n </div>\n ) : (\n <span className=\"text-text-secondary\">-</span>\n ),\n },\n ] satisfies ResponsiveTableColumn<any>[]\n }\n />\n ) : (\n <div className=\"text-center py-12 border-2 border-dashed border-border-subtle/40 rounded-xl bg-bg-sunken/10\">\n <Info className=\"size-12 text-text-secondary/30 mx-auto mb-3\" />\n <p className=\"text-sm text-text-secondary font-medium\">No sync logs found.</p>\n <p className=\"text-xs text-text-secondary mt-1\">\n Sync history will appear here after the first synchronization run.\n </p>\n </div>\n )}\n </Card>\n </div>\n\n <ConfirmDialog\n isOpen={showDeleteConfirm}\n onClose={() => setShowDeleteConfirm(false)}\n onConfirm={handleDelete}\n title=\"Remove Provider\"\n description={`Are you sure you want to remove this ${typeInfo.label} connection? Synced secrets will remain but will no longer auto-update.`}\n confirmLabel={deleting ? 'Removing...' : 'Remove Provider'}\n variant=\"destructive\"\n />\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAmCA,SAAgB,IAAqB;CACnC,IAAM,EAAE,YAAS,kBAAe,GAAoD,EAC9E,EAAE,cAAW,KAAK,UAAU,MAAkB,GAAa,EAC3D,IAAiB,GAAa,EAE9B,EAAE,SAAM,YAAS,aAAU,EAAqB,EAAQ,EAExD,KADY,GAAM,sBAAsB,SAAS,EAAE,EAC9B,MAAM,MAAW,EAAE,OAAO,EAAW,EAE1D,EAAE,MAAM,GAAU,SAAS,MAAgB,EAAiB,EAAW,EACvE,IAAW,GAAU,kBAAkB,SAAS,EAAE,EAElD,CAAC,GAAgB,EAAE,SAAS,OAAc,GAAsB,EAChE,CAAC,GAAa,EAAE,SAAS,OAAa,GAAgB,EACtD,CAAC,GAAmB,KAAwB,EAAS,GAAM,EAE3D,KAAkB,MAAiB;AACvC,EAAI,IACF,EAAc,EAAK,GAEnB,EAAe,EAAK;IAIlB,UAAmB,EAAe,GAAG,EAAS,YAAY,EAE1D,IAAa,YAAY;AACxB,QACL,KAAI;AACF,SAAM,EAAY,EAAE,WAAW,EAAE,eAAe,GAAY,EAAE,CAAC;WACxD,GAAK;AACZ,WAAQ,MAAM,gBAAgB,EAAI;;IAIhC,IAAe,YAAY;AAC1B,QACL,KAAI;AAGF,GAFA,MAAM,EAAe,EAAE,WAAW,EAAE,IAAI,GAAY,EAAE,CAAC,EAClD,EAAa,UAAU,EAC5B,GAAY;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AD;GACE,QAAQ;GACR,eAAe,EAAqB,GAAM;GAC1C,WAAW;GACX,OAAM;GACN,aAAa,wCAAwC,EAAS,MAAM;GACpE,cAAc,IAAW,gBAAgB;GACzC,SAAQ;GACR,CAAA,CACS"}
|
|
1
|
+
{"version":3,"file":"ProviderDetailPage.js","names":[],"sources":["../../../src/security/pages/ProviderDetailPage.tsx"],"sourcesContent":["import { useParams, useNavigate } from 'react-router-dom';\nimport {\n ArrowLeft,\n RefreshCw,\n Trash2,\n Cloud,\n Loader2,\n AlertTriangle,\n CheckCircle,\n Clock,\n XCircle,\n} from 'lucide-react';\nimport {\n ResponsiveTable,\n type ResponsiveTableColumn,\n GlassCard,\n CTAOverflowMenu,\n IllustratedEmptyState,\n PagePurpose,\n NextSteps,\n} from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../components/PageLayout';\nimport { ConfirmDialog } from '../components/ConfirmDialog';\nimport { Button, Card, Badge } from '../components/ui';\nimport {\n useVaultIntegrations,\n useDeleteIntegration,\n useTriggerSync,\n useVaultSyncLogs,\n} from '../hooks/useProviderQueries';\nimport { useSecurity } from '../providers/SecurityProvider';\nimport { getProviderTypeInfo } from '../constants/providers';\nimport { useState } from 'react';\nimport { cn } from '../utils/cn';\nimport type { ProviderType } from '../types';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../utils/nativeBridge';\n\nexport function ProviderDetailPage() {\n const { vaultId, providerId } = useParams<{ vaultId: string; providerId: string }>();\n const { basePath = '/', navigate: shellNavigate } = useSecurity();\n const routerNavigate = useNavigate();\n\n const { data, loading, error } = useVaultIntegrations(vaultId);\n const providers = data?.getVaultIntegrations?.items ?? [];\n const provider = providers.find((p: any) => p.id === providerId);\n\n const { data: logsData, loading: logsLoading } = useVaultSyncLogs(providerId);\n const syncLogs = logsData?.getVaultSyncLogs?.items ?? [];\n\n const [deleteProvider, { loading: deleting }] = useDeleteIntegration();\n const [triggerSync, { loading: syncing }] = useTriggerSync();\n const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);\n\n const handleNavigate = (path: string) => {\n if (shellNavigate) {\n shellNavigate(path);\n } else {\n routerNavigate(path);\n }\n };\n\n const handleBack = () => handleNavigate(`${basePath}/providers`);\n\n const handleSync = async () => {\n if (!providerId) return;\n try {\n await triggerSync({ variables: { integrationId: providerId } });\n } catch (err) {\n console.error('Sync failed:', err);\n }\n };\n\n const handleDelete = async () => {\n if (!providerId) return;\n try {\n await deleteProvider({ variables: { id: providerId } });\n void nativeNotify('success');\n handleBack();\n } catch (err) {\n console.error('Delete failed:', err);\n void nativeNotify('error');\n }\n };\n\n const requestDelete = async () => {\n void nativeImpact('medium');\n const result = await nativeConfirm({\n title: 'Delete Provider',\n message: 'Delete this provider? This cannot be undone.',\n okButtonTitle: 'Delete',\n cancelButtonTitle: 'Cancel',\n });\n if (result === null) {\n setShowDeleteConfirm(true);\n return;\n }\n if (result) {\n await handleDelete();\n }\n };\n\n if (loading && !provider) {\n return (\n <PageLayout\n title=\"Loading...\"\n breadcrumbs={[\n { label: 'Security', path: basePath },\n { label: 'Providers', path: `${basePath}/providers` },\n ]}\n >\n <div className=\"flex items-center justify-center py-16\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n </PageLayout>\n );\n }\n\n if (error || (!loading && !provider)) {\n return (\n <PageLayout\n title=\"Error\"\n breadcrumbs={[\n { label: 'Security', path: basePath },\n { label: 'Providers', path: `${basePath}/providers` },\n ]}\n >\n <Card className=\"p-6\">\n <div className=\"flex items-start gap-4\">\n <AlertTriangle className=\"size-6 text-status-error-text\" />\n <div>\n <h3 className=\"font-semibold text-status-error-text\">Provider not found</h3>\n <p className=\"text-sm text-text-secondary mt-1\">\n {error?.message ?? 'The requested provider could not be found.'}\n </p>\n <Button variant=\"outline\" size=\"sm\" className=\"mt-4\" onClick={handleBack}>\n <ArrowLeft className=\"size-4\" />\n Back to Providers\n </Button>\n </div>\n </div>\n </Card>\n </PageLayout>\n );\n }\n\n const typeInfo = getProviderTypeInfo(provider.providerType as ProviderType);\n\n return (\n <PageLayout\n title={(provider.displayName as string) || typeInfo.label}\n description={typeInfo.description}\n breadcrumbs={[\n { label: 'Security', path: basePath },\n { label: 'Providers', path: `${basePath}/providers` },\n { label: (provider.displayName as string) || typeInfo.label },\n ]}\n actions={\n // Boff UI 2.0: quiet \"Back\", a single primary CTA (\"Sync Now\"), and the\n // destructive \"Remove\" tucked into the overflow menu.\n <div className=\"flex items-center gap-2\">\n <Button variant=\"outline\" size=\"sm\" onClick={handleBack}>\n <ArrowLeft className=\"size-4\" />\n <span className=\"hidden sm:inline\">Back</span>\n </Button>\n <CTAOverflowMenu\n primary={{\n label: syncing ? 'Syncing...' : 'Sync Now',\n icon: <RefreshCw className={cn('size-4', syncing && 'animate-spin')} />,\n disabled: syncing,\n onSelect: () => void handleSync(),\n }}\n actions={[\n {\n label: 'Remove',\n icon: <Trash2 className=\"size-4\" />,\n intent: 'destructive',\n disabled: deleting,\n onSelect: () => void requestDelete(),\n },\n ]}\n />\n </div>\n }\n >\n <div className=\"space-y-6\">\n <PagePurpose icon={<Cloud className=\"size-4\" />}>\n This is one connected provider. It keeps the secrets in this vault in sync with an external\n secret manager on a schedule. Use it to trigger a sync on demand, confirm the connection is\n healthy, review the history of past sync runs (including any errors), or remove the\n connection.\n </PagePurpose>\n\n <NextSteps\n storageKey=\"security-provider-detail\"\n steps={[\n {\n id: 'sync-now',\n label: 'Run a sync now',\n description: 'Pull the latest values from the provider immediately.',\n icon: <RefreshCw className=\"size-4\" />,\n onClick: syncing ? undefined : () => void handleSync(),\n },\n {\n id: 'review-history',\n label: 'Review sync history',\n description: 'Check recent runs below for failures or drift.',\n icon: <Clock className=\"size-4\" />,\n href: '#sync-history',\n },\n ]}\n />\n\n {/* Configuration — the single emphasis zone on this page */}\n <GlassCard treatment=\"glass\" glow className=\"p-6\">\n <div className=\"flex items-center gap-2 mb-6\">\n <div className=\"p-2 rounded-lg bg-action-primary-bg/10 text-primary\">\n <Cloud className=\"size-5\" />\n </div>\n <h2 className=\"text-lg font-bold text-text-primary\">Integration Settings</h2>\n </div>\n\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 text-sm\">\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Provider Type\n </p>\n <p className=\"font-semibold text-text-primary\">{typeInfo.label}</p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Sync Direction\n </p>\n <p className=\"font-semibold text-text-primary capitalize\">\n {(provider.syncDirection as string) ?? 'bidirectional'}\n </p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Status\n </p>\n <Badge variant={provider.syncEnabled ? 'success' : 'outline'}>\n {provider.syncEnabled && (\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse\"\n />\n )}\n {provider.syncEnabled ? 'Enabled' : 'Disabled'}\n </Badge>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Sync Interval\n </p>\n <p className=\"font-semibold text-text-primary\">\n {(provider.syncIntervalMinutes as number) ?? 0} minutes\n </p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Added On\n </p>\n <p className=\"font-semibold text-text-primary\">\n {new Date(provider.createdAt as string).toLocaleDateString()}\n </p>\n </div>\n {provider.lastSyncAt && (\n <div>\n <p className=\"text-xs font-medium text-text-secondary uppercase tracking-wider mb-1\">\n Last Successful Sync\n </p>\n <div className=\"flex items-center gap-1.5 font-semibold text-text-primary\">\n <CheckCircle className=\"size-3.5 text-status-success-text\" />\n {new Date(provider.lastSyncAt as string).toLocaleString()}\n </div>\n </div>\n )}\n </div>\n </GlassCard>\n\n {/* Sync History */}\n <Card id=\"sync-history\" className=\"p-6 shadow-sm border-border-subtle/60\">\n <div className=\"flex items-center justify-between mb-6\">\n <div className=\"flex items-center gap-2\">\n <Clock className=\"size-5 text-primary\" />\n <h2 className=\"text-lg font-bold text-text-primary\">Sync History</h2>\n </div>\n <Badge variant=\"outline\" className=\"bg-bg-sunken\">\n {syncLogs.length} runs\n </Badge>\n </div>\n\n {logsLoading ? (\n <div className=\"flex justify-center py-12\">\n <Loader2 className=\"size-8 animate-spin text-primary/40\" />\n </div>\n ) : syncLogs.length > 0 ? (\n <ResponsiveTable<any>\n className=\"border border-border-subtle/60 rounded-lg\"\n data={syncLogs}\n rowKey={(log) => log.id}\n columns={\n [\n {\n key: 'time',\n header: 'Time',\n priority: 'primary',\n cell: (log) => (\n <span className=\"whitespace-nowrap\">\n {new Date(log.startedAt).toLocaleString()}\n </span>\n ),\n },\n {\n key: 'status',\n header: 'Status',\n cell: (log) => (\n <Badge\n variant={\n log.status === 'COMPLETED'\n ? 'success'\n : log.status === 'FAILED'\n ? 'destructive'\n : 'warning'\n }\n className=\"text-[10px] uppercase\"\n >\n {log.status}\n </Badge>\n ),\n },\n {\n key: 'synced',\n header: 'Synced',\n cell: (log) => (\n <span className=\"font-medium text-text-primary tabular-nums\">\n {log.secretsSynced}\n </span>\n ),\n },\n {\n key: 'duration',\n header: 'Duration',\n cell: (log) => (\n <span className=\"text-text-secondary tabular-nums\">\n {log.durationMs ? `${log.durationMs}ms` : '-'}\n </span>\n ),\n },\n {\n key: 'errors',\n header: 'Errors',\n cell: (log) =>\n log.errorMessage ? (\n <div className=\"flex items-center gap-1.5 text-status-error-text max-w-xs truncate\">\n <XCircle className=\"size-3.5\" />\n <span className=\"truncate\" title={log.errorMessage}>\n {log.errorMessage}\n </span>\n </div>\n ) : (\n <span className=\"text-text-secondary\">-</span>\n ),\n },\n ] satisfies ResponsiveTableColumn<any>[]\n }\n />\n ) : (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title=\"No sync logs found\"\n description=\"Sync history will appear here after the first synchronization run.\"\n />\n )}\n </Card>\n </div>\n\n <ConfirmDialog\n isOpen={showDeleteConfirm}\n onClose={() => setShowDeleteConfirm(false)}\n onConfirm={handleDelete}\n title=\"Remove Provider\"\n description={`Are you sure you want to remove this ${typeInfo.label} connection? Synced secrets will remain but will no longer auto-update.`}\n confirmLabel={deleting ? 'Removing...' : 'Remove Provider'}\n variant=\"destructive\"\n />\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAqCA,SAAgB,IAAqB;CACnC,IAAM,EAAE,YAAS,kBAAe,GAAoD,EAC9E,EAAE,cAAW,KAAK,UAAU,MAAkB,GAAa,EAC3D,IAAiB,GAAa,EAE9B,EAAE,SAAM,YAAS,aAAU,EAAqB,EAAQ,EAExD,KADY,GAAM,sBAAsB,SAAS,EAAE,EAC9B,MAAM,MAAW,EAAE,OAAO,EAAW,EAE1D,EAAE,MAAM,GAAU,SAAS,MAAgB,EAAiB,EAAW,EACvE,IAAW,GAAU,kBAAkB,SAAS,EAAE,EAElD,CAAC,GAAgB,EAAE,SAAS,OAAc,GAAsB,EAChE,CAAC,GAAa,EAAE,SAAS,OAAa,GAAgB,EACtD,CAAC,GAAmB,KAAwB,EAAS,GAAM,EAE3D,KAAkB,MAAiB;AACvC,EAAI,IACF,EAAc,EAAK,GAEnB,EAAe,EAAK;IAIlB,UAAmB,EAAe,GAAG,EAAS,YAAY,EAE1D,IAAa,YAAY;AACxB,QACL,KAAI;AACF,SAAM,EAAY,EAAE,WAAW,EAAE,eAAe,GAAY,EAAE,CAAC;WACxD,GAAK;AACZ,WAAQ,MAAM,gBAAgB,EAAI;;IAIhC,IAAe,YAAY;AAC1B,QACL,KAAI;AAGF,GAFA,MAAM,EAAe,EAAE,WAAW,EAAE,IAAI,GAAY,EAAE,CAAC,EAClD,EAAa,UAAU,EAC5B,GAAY;WACL,GAAK;AAEP,GADL,QAAQ,MAAM,kBAAkB,EAAI,EAC/B,EAAa,QAAQ;;IAIxB,KAAgB,YAAY;AAC3B,KAAa,SAAS;EAC3B,IAAM,IAAS,MAAM,EAAc;GACjC,OAAO;GACP,SA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