@burdenoff/microfe-security 2026.608.1 → 2026.624.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/security/components/ActivityTimeline.js +4 -4
- package/dist/security/components/ActivityTimeline.js.map +1 -1
- package/dist/security/components/BulkActionBar.js +3 -3
- package/dist/security/components/BulkActionBar.js.map +1 -1
- package/dist/security/components/ConfirmDialog.js +29 -38
- package/dist/security/components/ConfirmDialog.js.map +1 -1
- package/dist/security/components/CopyButton.js +2 -2
- package/dist/security/components/CopyButton.js.map +1 -1
- package/dist/security/components/ExportDialog.js +13 -13
- package/dist/security/components/ExportDialog.js.map +1 -1
- package/dist/security/components/ImportWizard.js +98 -105
- package/dist/security/components/ImportWizard.js.map +1 -1
- package/dist/security/components/PageLayout.js +2 -2
- package/dist/security/components/PageLayout.js.map +1 -1
- package/dist/security/components/PasswordGenerator.js +6 -6
- package/dist/security/components/PasswordGenerator.js.map +1 -1
- package/dist/security/components/SecretFormFields.js +12 -12
- package/dist/security/components/SecretFormFields.js.map +1 -1
- package/dist/security/components/SecretRow.js +4 -4
- package/dist/security/components/SecretRow.js.map +1 -1
- package/dist/security/components/SecretShareDialog.js +94 -105
- package/dist/security/components/SecretShareDialog.js.map +1 -1
- package/dist/security/components/SecretTypeBadge.js +1 -1
- package/dist/security/components/SecretTypeBadge.js.map +1 -1
- package/dist/security/components/SecretValueDisplay.js +5 -5
- package/dist/security/components/SecretValueDisplay.js.map +1 -1
- package/dist/security/components/SecurityScoreCard.js +2 -2
- package/dist/security/components/SecurityScoreCard.js.map +1 -1
- package/dist/security/components/VaultCard.js +5 -5
- package/dist/security/components/VaultCard.js.map +1 -1
- package/dist/security/components/VaultFormFields.js +6 -6
- package/dist/security/components/VaultFormFields.js.map +1 -1
- package/dist/security/components/VaultShareDialog.js +27 -41
- package/dist/security/components/VaultShareDialog.js.map +1 -1
- package/dist/security/components/ui.js +13 -13
- package/dist/security/components/ui.js.map +1 -1
- package/dist/security/pages/AccessReviewPage.js +59 -74
- package/dist/security/pages/AccessReviewPage.js.map +1 -1
- package/dist/security/pages/AuditLogPage.js +13 -13
- package/dist/security/pages/AuditLogPage.js.map +1 -1
- package/dist/security/pages/ImportExportPage.js +3 -3
- package/dist/security/pages/ImportExportPage.js.map +1 -1
- package/dist/security/pages/ProviderDetailPage.js +141 -156
- package/dist/security/pages/ProviderDetailPage.js.map +1 -1
- package/dist/security/pages/ProvidersPage.js +12 -12
- package/dist/security/pages/ProvidersPage.js.map +1 -1
- package/dist/security/pages/SecretCreatePage.js +9 -9
- package/dist/security/pages/SecretCreatePage.js.map +1 -1
- package/dist/security/pages/SecretDetailPage.js +222 -227
- package/dist/security/pages/SecretDetailPage.js.map +1 -1
- package/dist/security/pages/SecurityDashboardPage.js +14 -14
- package/dist/security/pages/SecurityDashboardPage.js.map +1 -1
- package/dist/security/pages/SharedWithMePage.js +10 -10
- package/dist/security/pages/SharedWithMePage.js.map +1 -1
- package/dist/security/pages/VaultCreatePage.js +2 -2
- package/dist/security/pages/VaultCreatePage.js.map +1 -1
- package/dist/security/pages/VaultDetailPage.js +9 -9
- package/dist/security/pages/VaultDetailPage.js.map +1 -1
- package/dist/security/pages/VaultSettingsPage.js +28 -28
- package/dist/security/pages/VaultSettingsPage.js.map +1 -1
- package/dist/security/pages/VaultShareViewer.js +21 -21
- package/dist/security/pages/VaultShareViewer.js.map +1 -1
- package/dist/security/pages/VaultsDashboardPage.js +17 -17
- package/dist/security/pages/VaultsDashboardPage.js.map +1 -1
- package/dist/security/routes/routeUtils.js +5 -5
- package/dist/security/routes/routeUtils.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,16 +3,17 @@ import { cn as t } from "../utils/cn.js";
|
|
|
3
3
|
import { PageLayout as n } from "../components/PageLayout.js";
|
|
4
4
|
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
|
-
import { useDeleteIntegration as s, useTriggerSync as c, useVaultIntegrations as
|
|
7
|
-
import { getProviderTypeInfo as
|
|
8
|
-
import { nativeConfirm as
|
|
9
|
-
import { useState as
|
|
10
|
-
import { useNavigate as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { AlertTriangle as
|
|
6
|
+
import { useDeleteIntegration as s, useTriggerSync as c, useVaultIntegrations as ee, useVaultSyncLogs as l } from "../hooks/useProviderQueries.js";
|
|
7
|
+
import { getProviderTypeInfo as u } from "../constants/providers.js";
|
|
8
|
+
import { nativeConfirm as d, nativeImpact as f, 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, Info as w, Loader2 as T, RefreshCw as E, Trash2 as D, XCircle as O } from "lucide-react";
|
|
13
|
+
import { ResponsiveTable as k } from "@burdenoff/fe-libs/ui";
|
|
13
14
|
//#region src/security/pages/ProviderDetailPage.tsx
|
|
14
15
|
function A() {
|
|
15
|
-
let { vaultId: A, providerId: j } =
|
|
16
|
+
let { vaultId: A, providerId: j } = g(), { basePath: M = "/", navigate: N } = e(), P = h(), { data: F, loading: I, error: L } = ee(A), R = (F?.getVaultIntegrations?.items ?? []).find((e) => e.id === j), { data: z, loading: B } = l(j), V = z?.getVaultSyncLogs?.items ?? [], [H, { loading: U }] = s(), [W, { loading: G }] = c(), [K, q] = m(!1), J = (e) => {
|
|
16
17
|
N ? N(e) : P(e);
|
|
17
18
|
}, Y = () => J(`${M}/providers`), X = async () => {
|
|
18
19
|
if (j) try {
|
|
@@ -22,13 +23,13 @@ function A() {
|
|
|
22
23
|
}
|
|
23
24
|
}, Z = async () => {
|
|
24
25
|
if (j) try {
|
|
25
|
-
await H({ variables: { id: j } }),
|
|
26
|
+
await H({ variables: { id: j } }), p("success"), Y();
|
|
26
27
|
} catch (e) {
|
|
27
|
-
console.error("Delete failed:", e),
|
|
28
|
+
console.error("Delete failed:", e), p("error");
|
|
28
29
|
}
|
|
29
30
|
}, Q = async () => {
|
|
30
|
-
|
|
31
|
-
let e = await
|
|
31
|
+
f("medium");
|
|
32
|
+
let e = await d({
|
|
32
33
|
title: "Delete Provider",
|
|
33
34
|
message: "Delete this provider? This cannot be undone.",
|
|
34
35
|
okButtonTitle: "Delete",
|
|
@@ -40,7 +41,7 @@ function A() {
|
|
|
40
41
|
}
|
|
41
42
|
e && await Z();
|
|
42
43
|
};
|
|
43
|
-
if (I && !R) return /* @__PURE__ */
|
|
44
|
+
if (I && !R) return /* @__PURE__ */ _(n, {
|
|
44
45
|
title: "Loading...",
|
|
45
46
|
breadcrumbs: [{
|
|
46
47
|
label: "Security",
|
|
@@ -49,12 +50,12 @@ function A() {
|
|
|
49
50
|
label: "Providers",
|
|
50
51
|
path: `${M}/providers`
|
|
51
52
|
}],
|
|
52
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ _("div", {
|
|
53
54
|
className: "flex items-center justify-center py-16",
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ _(T, { className: "size-8 animate-spin text-primary" })
|
|
55
56
|
})
|
|
56
57
|
});
|
|
57
|
-
if (L || !I && !R) return /* @__PURE__ */
|
|
58
|
+
if (L || !I && !R) return /* @__PURE__ */ _(n, {
|
|
58
59
|
title: "Error",
|
|
59
60
|
breadcrumbs: [{
|
|
60
61
|
label: "Security",
|
|
@@ -63,32 +64,32 @@ function A() {
|
|
|
63
64
|
label: "Providers",
|
|
64
65
|
path: `${M}/providers`
|
|
65
66
|
}],
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ _(a, {
|
|
67
68
|
className: "p-6",
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ v("div", {
|
|
69
70
|
className: "flex items-start gap-4",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
className: "font-semibold text-
|
|
71
|
+
children: [/* @__PURE__ */ _(y, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ v("div", { children: [
|
|
72
|
+
/* @__PURE__ */ _("h3", {
|
|
73
|
+
className: "font-semibold text-status-error-text",
|
|
73
74
|
children: "Provider not found"
|
|
74
75
|
}),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
className: "text-sm text-
|
|
76
|
+
/* @__PURE__ */ _("p", {
|
|
77
|
+
className: "text-sm text-text-secondary mt-1",
|
|
77
78
|
children: L?.message ?? "The requested provider could not be found."
|
|
78
79
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ v(i, {
|
|
80
81
|
variant: "outline",
|
|
81
82
|
size: "sm",
|
|
82
83
|
className: "mt-4",
|
|
83
84
|
onClick: Y,
|
|
84
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ _(b, { className: "size-4" }), "Back to Providers"]
|
|
85
86
|
})
|
|
86
87
|
] })]
|
|
87
88
|
})
|
|
88
89
|
})
|
|
89
90
|
});
|
|
90
|
-
let $ =
|
|
91
|
-
return /* @__PURE__ */
|
|
91
|
+
let $ = u(R.providerType);
|
|
92
|
+
return /* @__PURE__ */ v(n, {
|
|
92
93
|
title: R.displayName || $.label,
|
|
93
94
|
description: $.description,
|
|
94
95
|
breadcrumbs: [
|
|
@@ -102,202 +103,186 @@ function A() {
|
|
|
102
103
|
},
|
|
103
104
|
{ label: R.displayName || $.label }
|
|
104
105
|
],
|
|
105
|
-
actions: /* @__PURE__ */
|
|
106
|
+
actions: /* @__PURE__ */ v("div", {
|
|
106
107
|
className: "flex items-center gap-2",
|
|
107
108
|
children: [
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ v(i, {
|
|
109
110
|
variant: "outline",
|
|
110
111
|
size: "sm",
|
|
111
112
|
onClick: Y,
|
|
112
|
-
children: [/* @__PURE__ */
|
|
113
|
+
children: [/* @__PURE__ */ _(b, { className: "size-4" }), /* @__PURE__ */ _("span", {
|
|
113
114
|
className: "hidden sm:inline",
|
|
114
115
|
children: "Back"
|
|
115
116
|
})]
|
|
116
117
|
}),
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ v(i, {
|
|
118
119
|
variant: "outline",
|
|
119
120
|
size: "sm",
|
|
120
121
|
onClick: X,
|
|
121
122
|
disabled: G,
|
|
122
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ _(E, { className: t("size-4", G && "animate-spin") }), G ? "Syncing..." : "Sync Now"]
|
|
123
124
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ v(i, {
|
|
125
126
|
variant: "destructive",
|
|
126
127
|
size: "sm",
|
|
127
128
|
onClick: () => void Q(),
|
|
128
129
|
disabled: U,
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ _(D, { className: "size-4" }), /* @__PURE__ */ _("span", {
|
|
130
131
|
className: "hidden sm:inline",
|
|
131
132
|
children: "Remove"
|
|
132
133
|
})]
|
|
133
134
|
})
|
|
134
135
|
]
|
|
135
136
|
}),
|
|
136
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ v("div", {
|
|
137
138
|
className: "space-y-6",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
139
|
+
children: [/* @__PURE__ */ v(a, {
|
|
139
140
|
className: "p-6",
|
|
140
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ v("div", {
|
|
141
142
|
className: "flex items-center gap-2 mb-6",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
143
|
-
className: "p-2 rounded-lg bg-primary/10 text-primary",
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
-
}), /* @__PURE__ */
|
|
146
|
-
className: "text-lg font-bold text-
|
|
143
|
+
children: [/* @__PURE__ */ _("div", {
|
|
144
|
+
className: "p-2 rounded-lg bg-action-primary-bg/10 text-primary",
|
|
145
|
+
children: /* @__PURE__ */ _(C, { className: "size-5" })
|
|
146
|
+
}), /* @__PURE__ */ _("h2", {
|
|
147
|
+
className: "text-lg font-bold text-text-primary",
|
|
147
148
|
children: "Integration Settings"
|
|
148
149
|
})]
|
|
149
|
-
}), /* @__PURE__ */
|
|
150
|
+
}), /* @__PURE__ */ v("div", {
|
|
150
151
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 text-sm",
|
|
151
152
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
className: "text-xs font-medium text-
|
|
153
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
154
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
154
155
|
children: "Provider Type"
|
|
155
|
-
}), /* @__PURE__ */
|
|
156
|
-
className: "font-semibold text-
|
|
156
|
+
}), /* @__PURE__ */ _("p", {
|
|
157
|
+
className: "font-semibold text-text-primary",
|
|
157
158
|
children: $.label
|
|
158
159
|
})] }),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
className: "text-xs font-medium text-
|
|
160
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
161
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
161
162
|
children: "Sync Direction"
|
|
162
|
-
}), /* @__PURE__ */
|
|
163
|
-
className: "font-semibold text-
|
|
163
|
+
}), /* @__PURE__ */ _("p", {
|
|
164
|
+
className: "font-semibold text-text-primary capitalize",
|
|
164
165
|
children: R.syncDirection ?? "bidirectional"
|
|
165
166
|
})] }),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
className: "text-xs font-medium text-
|
|
167
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
168
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
168
169
|
children: "Status"
|
|
169
|
-
}), /* @__PURE__ */
|
|
170
|
+
}), /* @__PURE__ */ _(r, {
|
|
170
171
|
variant: R.syncEnabled ? "success" : "outline",
|
|
171
172
|
children: R.syncEnabled ? "Enabled" : "Disabled"
|
|
172
173
|
})] }),
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
className: "text-xs font-medium text-
|
|
174
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
175
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
175
176
|
children: "Sync Interval"
|
|
176
|
-
}), /* @__PURE__ */
|
|
177
|
-
className: "font-semibold text-
|
|
177
|
+
}), /* @__PURE__ */ v("p", {
|
|
178
|
+
className: "font-semibold text-text-primary",
|
|
178
179
|
children: [R.syncIntervalMinutes ?? 0, " minutes"]
|
|
179
180
|
})] }),
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
className: "text-xs font-medium text-
|
|
181
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
182
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
182
183
|
children: "Added On"
|
|
183
|
-
}), /* @__PURE__ */
|
|
184
|
-
className: "font-semibold text-
|
|
184
|
+
}), /* @__PURE__ */ _("p", {
|
|
185
|
+
className: "font-semibold text-text-primary",
|
|
185
186
|
children: new Date(R.createdAt).toLocaleDateString()
|
|
186
187
|
})] }),
|
|
187
|
-
R.lastSyncAt && /* @__PURE__ */
|
|
188
|
-
className: "text-xs font-medium text-
|
|
188
|
+
R.lastSyncAt && /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
|
|
189
|
+
className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
|
|
189
190
|
children: "Last Successful Sync"
|
|
190
|
-
}), /* @__PURE__ */
|
|
191
|
-
className: "flex items-center gap-1.5 font-semibold text-
|
|
192
|
-
children: [/* @__PURE__ */
|
|
191
|
+
}), /* @__PURE__ */ v("div", {
|
|
192
|
+
className: "flex items-center gap-1.5 font-semibold text-text-primary",
|
|
193
|
+
children: [/* @__PURE__ */ _(x, { className: "size-3.5 text-status-success-text" }), new Date(R.lastSyncAt).toLocaleString()]
|
|
193
194
|
})] })
|
|
194
195
|
]
|
|
195
196
|
})]
|
|
196
|
-
}), /* @__PURE__ */
|
|
197
|
-
className: "p-6 shadow-sm border-border/60",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
197
|
+
}), /* @__PURE__ */ v(a, {
|
|
198
|
+
className: "p-6 shadow-sm border-border-subtle/60",
|
|
199
|
+
children: [/* @__PURE__ */ v("div", {
|
|
199
200
|
className: "flex items-center justify-between mb-6",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ v("div", {
|
|
201
202
|
className: "flex items-center gap-2",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
203
|
-
className: "text-lg font-bold text-
|
|
203
|
+
children: [/* @__PURE__ */ _(S, { className: "size-5 text-primary" }), /* @__PURE__ */ _("h2", {
|
|
204
|
+
className: "text-lg font-bold text-text-primary",
|
|
204
205
|
children: "Sync History"
|
|
205
206
|
})]
|
|
206
|
-
}), /* @__PURE__ */
|
|
207
|
+
}), /* @__PURE__ */ v(r, {
|
|
207
208
|
variant: "outline",
|
|
208
|
-
className: "bg-
|
|
209
|
+
className: "bg-bg-sunken",
|
|
209
210
|
children: [V.length, " runs"]
|
|
210
211
|
})]
|
|
211
|
-
}), B ? /* @__PURE__ */
|
|
212
|
+
}), B ? /* @__PURE__ */ _("div", {
|
|
212
213
|
className: "flex justify-center py-12",
|
|
213
|
-
children: /* @__PURE__ */
|
|
214
|
-
}) : V.length > 0 ? /* @__PURE__ */
|
|
215
|
-
className: "
|
|
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
|
-
children: [/* @__PURE__ */ v(k, { className: "size-3.5" }), /* @__PURE__ */ v("span", {
|
|
272
|
-
className: "truncate",
|
|
273
|
-
title: e.errorMessage,
|
|
274
|
-
children: e.errorMessage
|
|
275
|
-
})]
|
|
276
|
-
}) : /* @__PURE__ */ v("span", {
|
|
277
|
-
className: "text-muted-foreground",
|
|
278
|
-
children: "-"
|
|
279
|
-
})
|
|
280
|
-
})
|
|
281
|
-
]
|
|
282
|
-
}, e.id))
|
|
283
|
-
})]
|
|
284
|
-
})
|
|
285
|
-
}) : /* @__PURE__ */ y("div", {
|
|
286
|
-
className: "text-center py-12 border-2 border-dashed border-border/40 rounded-xl bg-muted/10",
|
|
214
|
+
children: /* @__PURE__ */ _(T, { className: "size-8 animate-spin text-primary/40" })
|
|
215
|
+
}) : V.length > 0 ? /* @__PURE__ */ _(k, {
|
|
216
|
+
className: "border border-border-subtle/60 rounded-lg",
|
|
217
|
+
data: V,
|
|
218
|
+
rowKey: (e) => e.id,
|
|
219
|
+
columns: [
|
|
220
|
+
{
|
|
221
|
+
key: "time",
|
|
222
|
+
header: "Time",
|
|
223
|
+
priority: "primary",
|
|
224
|
+
cell: (e) => /* @__PURE__ */ _("span", {
|
|
225
|
+
className: "whitespace-nowrap",
|
|
226
|
+
children: new Date(e.startedAt).toLocaleString()
|
|
227
|
+
})
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
key: "status",
|
|
231
|
+
header: "Status",
|
|
232
|
+
cell: (e) => /* @__PURE__ */ _(r, {
|
|
233
|
+
variant: e.status === "COMPLETED" ? "success" : e.status === "FAILED" ? "destructive" : "warning",
|
|
234
|
+
className: "text-[10px] uppercase",
|
|
235
|
+
children: e.status
|
|
236
|
+
})
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
key: "synced",
|
|
240
|
+
header: "Synced",
|
|
241
|
+
cell: (e) => /* @__PURE__ */ _("span", {
|
|
242
|
+
className: "font-medium text-text-primary tabular-nums",
|
|
243
|
+
children: e.secretsSynced
|
|
244
|
+
})
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
key: "duration",
|
|
248
|
+
header: "Duration",
|
|
249
|
+
cell: (e) => /* @__PURE__ */ _("span", {
|
|
250
|
+
className: "text-text-secondary tabular-nums",
|
|
251
|
+
children: e.durationMs ? `${e.durationMs}ms` : "-"
|
|
252
|
+
})
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
key: "errors",
|
|
256
|
+
header: "Errors",
|
|
257
|
+
cell: (e) => e.errorMessage ? /* @__PURE__ */ v("div", {
|
|
258
|
+
className: "flex items-center gap-1.5 text-status-error-text max-w-xs truncate",
|
|
259
|
+
children: [/* @__PURE__ */ _(O, { className: "size-3.5" }), /* @__PURE__ */ _("span", {
|
|
260
|
+
className: "truncate",
|
|
261
|
+
title: e.errorMessage,
|
|
262
|
+
children: e.errorMessage
|
|
263
|
+
})]
|
|
264
|
+
}) : /* @__PURE__ */ _("span", {
|
|
265
|
+
className: "text-text-secondary",
|
|
266
|
+
children: "-"
|
|
267
|
+
})
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
}) : /* @__PURE__ */ v("div", {
|
|
271
|
+
className: "text-center py-12 border-2 border-dashed border-border-subtle/40 rounded-xl bg-bg-sunken/10",
|
|
287
272
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
className: "text-sm text-
|
|
273
|
+
/* @__PURE__ */ _(w, { className: "size-12 text-text-secondary/30 mx-auto mb-3" }),
|
|
274
|
+
/* @__PURE__ */ _("p", {
|
|
275
|
+
className: "text-sm text-text-secondary font-medium",
|
|
291
276
|
children: "No sync logs found."
|
|
292
277
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
-
className: "text-xs text-
|
|
278
|
+
/* @__PURE__ */ _("p", {
|
|
279
|
+
className: "text-xs text-text-secondary mt-1",
|
|
295
280
|
children: "Sync history will appear here after the first synchronization run."
|
|
296
281
|
})
|
|
297
282
|
]
|
|
298
283
|
})]
|
|
299
284
|
})]
|
|
300
|
-
}), /* @__PURE__ */
|
|
285
|
+
}), /* @__PURE__ */ _(o, {
|
|
301
286
|
isOpen: K,
|
|
302
287
|
onClose: () => q(!1),
|
|
303
288
|
onConfirm: Z,
|
|
@@ -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 { 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-destructive\" />\n <div>\n <h3 className=\"font-semibold text-destructive\">Provider not found</h3>\n <p className=\"text-sm text-muted-foreground 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 <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 <Button variant=\"outline\" size=\"sm\" onClick={handleSync} disabled={syncing}>\n <RefreshCw className={cn('size-4', syncing && 'animate-spin')} />\n {syncing ? 'Syncing...' : 'Sync Now'}\n </Button>\n <Button\n variant=\"destructive\"\n size=\"sm\"\n onClick={() => void requestDelete()}\n disabled={deleting}\n >\n <Trash2 className=\"size-4\" />\n <span className=\"hidden sm:inline\">Remove</span>\n </Button>\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-primary/10 text-primary\">\n <Cloud className=\"size-5\" />\n </div>\n <h2 className=\"text-lg font-bold text-foreground\">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-muted-foreground uppercase tracking-wider mb-1\">\n Provider Type\n </p>\n <p className=\"font-semibold text-foreground\">{typeInfo.label}</p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-1\">\n Sync Direction\n </p>\n <p className=\"font-semibold text-foreground capitalize\">\n {(provider.syncDirection as string) ?? 'bidirectional'}\n </p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-1\">\n Status\n </p>\n <Badge variant={provider.syncEnabled ? 'success' : 'outline'}>\n {provider.syncEnabled ? 'Enabled' : 'Disabled'}\n </Badge>\n </div>\n <div>\n <p className=\"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-1\">\n Sync Interval\n </p>\n <p className=\"font-semibold text-foreground\">\n {(provider.syncIntervalMinutes as number) ?? 0} minutes\n </p>\n </div>\n <div>\n <p className=\"text-xs font-medium text-muted-foreground uppercase tracking-wider mb-1\">\n Added On\n </p>\n <p className=\"font-semibold text-foreground\">\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-muted-foreground uppercase tracking-wider mb-1\">\n Last Successful Sync\n </p>\n <div className=\"flex items-center gap-1.5 font-semibold text-foreground\">\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/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-foreground\">Sync History</h2>\n </div>\n <Badge variant=\"outline\" className=\"bg-muted\">\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 <div className=\"overflow-x-auto border border-border/60 rounded-lg\">\n <table className=\"w-full text-sm\">\n <thead>\n <tr className=\"bg-muted/30 border-b border-border\">\n <th className=\"text-left py-3 px-4 font-semibold text-muted-foreground\">\n Time\n </th>\n <th className=\"text-left py-3 px-4 font-semibold text-muted-foreground\">\n Status\n </th>\n <th className=\"text-left py-3 px-4 font-semibold text-muted-foreground\">\n Synced\n </th>\n <th className=\"text-left py-3 px-4 font-semibold text-muted-foreground\">\n Duration\n </th>\n <th className=\"text-left py-3 px-4 font-semibold text-muted-foreground\">\n Errors\n </th>\n </tr>\n </thead>\n <tbody className=\"divide-y divide-border/40\">\n {syncLogs.map((log: any) => (\n <tr key={log.id} className=\"hover:bg-muted/20 transition-colors\">\n <td className=\"py-3 px-4 whitespace-nowrap\">\n {new Date(log.startedAt).toLocaleString()}\n </td>\n <td className=\"py-3 px-4\">\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 </td>\n <td className=\"py-3 px-4 font-medium text-foreground\">{log.secretsSynced}</td>\n <td className=\"py-3 px-4 text-muted-foreground\">\n {log.durationMs ? `${log.durationMs}ms` : '-'}\n </td>\n <td className=\"py-3 px-4\">\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-muted-foreground\">-</span>\n )}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n ) : (\n <div className=\"text-center py-12 border-2 border-dashed border-border/40 rounded-xl bg-muted/10\">\n <Info className=\"size-12 text-muted-foreground/30 mx-auto mb-3\" />\n <p className=\"text-sm text-muted-foreground font-medium\">No sync logs found.</p>\n <p className=\"text-xs text-muted-foreground 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":";;;;;;;;;;;;;AA6BA,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,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,CAAA;UAE/C,CAAA;SACF;UAlCI,EAAI,GAkCR,CACL;OACI,CAAA,CACF;;KACJ,CAAA,GAEN,kBAAC,OAAD;KAAK,WAAU;eAAf;MACE,kBAAC,GAAD,EAAM,WAAU,iDAAkD,CAAA;MAClE,kBAAC,KAAD;OAAG,WAAU;iBAA4C;OAAuB,CAAA;MAChF,kBAAC,KAAD;OAAG,WAAU;iBAAqC;OAE9C,CAAA;MACA;OAEH;MACH;MAEN,kBAAC,GAAD;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 Info,\n} from 'lucide-react';\nimport {\n ResponsiveTable,\n type ResponsiveTableColumn,\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 <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 <Button variant=\"outline\" size=\"sm\" onClick={handleSync} disabled={syncing}>\n <RefreshCw className={cn('size-4', syncing && 'animate-spin')} />\n {syncing ? 'Syncing...' : 'Sync Now'}\n </Button>\n <Button\n variant=\"destructive\"\n size=\"sm\"\n onClick={() => void requestDelete()}\n disabled={deleting}\n >\n <Trash2 className=\"size-4\" />\n <span className=\"hidden sm:inline\">Remove</span>\n </Button>\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 ? '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":";;;;;;;;;;;;;;AAiCA,SAAgB,IAAqB;CACnC,IAAM,EAAE,YAAS,k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gBACA;QAER,WAAU;kBAET,EAAI;QACC,CAAA;OAEX;MACD;OACE,KAAK;OACL,QAAQ;OACR,OAAO,MACL,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAI;QACA,CAAA;OAEV;MACD;OACE,KAAK;OACL,QAAQ;OACR,OAAO,MACL,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAI,aAAa,GAAG,EAAI,WAAW,MAAM;QACrC,CAAA;OAEV;MACD;OACE,KAAK;OACL,QAAQ;OACR,OAAO,MACL,EAAI,eACF,kBAAC,OAAD;QAAK,WAAU;kBAAf,CACE,kBAAC,GAAD,EAAS,WAAU,YAAa,CAAA,EAChC,kBAAC,QAAD;SAAM,WAAU;SAAW,OAAO,EAAI;mBACnC,EAAI;SACA,CAAA,CACH;YAEN,kBAAC,QAAD;QAAM,WAAU;kBAAsB;QAAQ,CAAA;OAEnD;MACF;KAEH,CAAA,GAEF,kBAAC,OAAD;KAAK,WAAU;eAAf;MACE,kBAAC,GAAD,EAAM,WAAU,+CAAgD,CAAA;MAChE,kBAAC,KAAD;OAAG,WAAU;iBAA0C;OAAuB,CAAA;MAC9E,kBAAC,KAAD;OAAG,WAAU;iBAAmC;OAE5C,CAAA;MACA;OAEH;MACH;MAEN,kBAAC,GAAD;GACE,QAAQ;GACR,eAAe,EAAqB,GAAM;GAC1C,WAAW;GACX,OAAM;GACN,aAAa,wCAAwC,EAAS,MAAM;GACpE,cAAc,IAAW,gBAAgB;GACzC,SAAQ;GACR,CAAA,CACS"}
|
|
@@ -49,9 +49,9 @@ function S() {
|
|
|
49
49
|
}, { label: "Providers" }],
|
|
50
50
|
children: [
|
|
51
51
|
/* @__PURE__ */ f(i, {
|
|
52
|
-
className: "p-4 bg-
|
|
52
|
+
className: "p-4 bg-bg-sunken/20 border-border-subtle/50",
|
|
53
53
|
children: /* @__PURE__ */ f("p", {
|
|
54
|
-
className: "text-sm text-
|
|
54
|
+
className: "text-sm text-text-secondary",
|
|
55
55
|
children: "Provider sync infrastructure is available, but guided provider onboarding is still being finalized. Existing connections can be reviewed here."
|
|
56
56
|
})
|
|
57
57
|
}),
|
|
@@ -66,8 +66,8 @@ function S() {
|
|
|
66
66
|
}),
|
|
67
67
|
!T && !O && /* @__PURE__ */ p(i, {
|
|
68
68
|
className: "p-8 text-center",
|
|
69
|
-
children: [/* @__PURE__ */ f(y, { className: "size-10 text-
|
|
70
|
-
className: "text-sm text-
|
|
69
|
+
children: [/* @__PURE__ */ f(y, { className: "size-10 text-text-secondary mx-auto mb-3" }), /* @__PURE__ */ f("p", {
|
|
70
|
+
className: "text-sm text-text-secondary",
|
|
71
71
|
children: "Select a vault to view its provider integrations."
|
|
72
72
|
})]
|
|
73
73
|
}),
|
|
@@ -83,13 +83,13 @@ function S() {
|
|
|
83
83
|
className: "p-6",
|
|
84
84
|
children: /* @__PURE__ */ p("div", {
|
|
85
85
|
className: "flex items-start gap-4",
|
|
86
|
-
children: [/* @__PURE__ */ f(m, { className: "size-6 text-
|
|
86
|
+
children: [/* @__PURE__ */ f(m, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ p("div", { children: [
|
|
87
87
|
/* @__PURE__ */ f("h3", {
|
|
88
|
-
className: "font-semibold text-
|
|
88
|
+
className: "font-semibold text-status-error-text",
|
|
89
89
|
children: "Failed to load providers"
|
|
90
90
|
}),
|
|
91
91
|
/* @__PURE__ */ f("p", {
|
|
92
|
-
className: "text-sm text-
|
|
92
|
+
className: "text-sm text-text-secondary mt-1",
|
|
93
93
|
children: M.message
|
|
94
94
|
}),
|
|
95
95
|
/* @__PURE__ */ p(r, {
|
|
@@ -114,13 +114,13 @@ function S() {
|
|
|
114
114
|
children: [/* @__PURE__ */ p("div", {
|
|
115
115
|
className: "flex items-center gap-3",
|
|
116
116
|
children: [/* @__PURE__ */ f("div", {
|
|
117
|
-
className: "p-2 rounded-lg bg-primary/10",
|
|
117
|
+
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
118
118
|
children: /* @__PURE__ */ f(_, { className: "size-5 text-primary" })
|
|
119
119
|
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
|
|
120
|
-
className: "font-bold text-
|
|
120
|
+
className: "font-bold text-text-primary",
|
|
121
121
|
children: e.displayName || t.label
|
|
122
122
|
}), /* @__PURE__ */ f("p", {
|
|
123
|
-
className: "text-xs text-
|
|
123
|
+
className: "text-xs text-text-secondary",
|
|
124
124
|
children: t.label
|
|
125
125
|
})] })]
|
|
126
126
|
}), /* @__PURE__ */ p(n, {
|
|
@@ -129,9 +129,9 @@ function S() {
|
|
|
129
129
|
children: [/* @__PURE__ */ f(a, { className: "size-3" }), r.label]
|
|
130
130
|
})]
|
|
131
131
|
}), /* @__PURE__ */ p("div", {
|
|
132
|
-
className: "flex items-center gap-4 text-xs text-
|
|
132
|
+
className: "flex items-center gap-4 text-xs text-text-secondary pt-3 border-t border-border-subtle/40 mt-3",
|
|
133
133
|
children: [e.syncEnabled ? /* @__PURE__ */ p("span", {
|
|
134
|
-
className: "bg-
|
|
134
|
+
className: "bg-bg-sunken px-1.5 py-0.5 rounded",
|
|
135
135
|
children: [
|
|
136
136
|
"Sync: ",
|
|
137
137
|
e.syncIntervalMinutes,
|