@burdenoff/microfe-integrations 2026.1109.2 → 2026.1113.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/ConnectionCard.js +19 -13
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/hooks/useProviders.d.ts +30 -2
- package/dist/integrations/hooks/useProviders.js +71 -22
- package/dist/integrations/hooks/useProviders.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.js +24 -19
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.js +144 -151
- package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,41 +8,27 @@ import { getStatusDotColor as o } from "../utils/integrationsHelpers.js";
|
|
|
8
8
|
import { useFormatLastUsed as s } from "../hooks/useFormatLastUsed.js";
|
|
9
9
|
import { AddConnectionDialog as c } from "../components/AddConnectionDialog.js";
|
|
10
10
|
import { getAccentClasses as l } from "../utils/appearance.js";
|
|
11
|
-
import { mapConnection as u
|
|
12
|
-
import { useMemo as
|
|
13
|
-
import { AlertCircle as
|
|
14
|
-
import { gql as
|
|
15
|
-
import { useQuery as
|
|
16
|
-
import { usePermissions as
|
|
17
|
-
import { jsx as
|
|
18
|
-
import { AuroraBackground as
|
|
11
|
+
import { mapConnection as u } from "../utils/mappers.js";
|
|
12
|
+
import { useMemo as d } from "react";
|
|
13
|
+
import { AlertCircle as f, ArrowRight as p, CheckCircle2 as m, Clock as h, LayoutDashboard as g, Link2 as _, Loader2 as v, Plug as y, Plus as b, RefreshCw as x, Store as S, XCircle as C } from "lucide-react";
|
|
14
|
+
import { gql as w } from "@apollo/client";
|
|
15
|
+
import { useQuery as T } from "@apollo/client/react";
|
|
16
|
+
import { usePermissions as E } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
17
|
+
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
18
|
+
import { AuroraBackground as k, Button as A, EmphasisPanel as j, GlassCard as M, GradientText as N, IllustratedEmptyState as P, NextSteps as F, PagePurpose as I } from "@burdenoff/fe-libs/ui";
|
|
19
19
|
// src/integrations/pages/IntegrationsOverview.tsx
|
|
20
|
-
var
|
|
20
|
+
var L = w`
|
|
21
21
|
query IntegrationsOverviewQuery {
|
|
22
|
-
|
|
22
|
+
# The overview only shows provider counts. The catalog is larger than one
|
|
23
|
+
# page, so both counts come from the service totals, not loaded rows.
|
|
24
|
+
getProviders(pagination: { limit: 1 }) {
|
|
25
|
+
total
|
|
26
|
+
}
|
|
27
|
+
installedProviders: getProviders(
|
|
28
|
+
filter: { pluginStatus: INSTALLED }
|
|
29
|
+
pagination: { limit: 1 }
|
|
30
|
+
) {
|
|
23
31
|
total
|
|
24
|
-
items {
|
|
25
|
-
id
|
|
26
|
-
key
|
|
27
|
-
name
|
|
28
|
-
description
|
|
29
|
-
category
|
|
30
|
-
authType
|
|
31
|
-
icon
|
|
32
|
-
color
|
|
33
|
-
website
|
|
34
|
-
docsUrl
|
|
35
|
-
pluginStatus
|
|
36
|
-
pluginVersion
|
|
37
|
-
pluginAuthor
|
|
38
|
-
isBuiltIn
|
|
39
|
-
isEnabled
|
|
40
|
-
displayOrder
|
|
41
|
-
supportedFeatures
|
|
42
|
-
connectionCount
|
|
43
|
-
createdAt
|
|
44
|
-
updatedAt
|
|
45
|
-
}
|
|
46
32
|
}
|
|
47
33
|
getConnections(pagination: { limit: 100 }) {
|
|
48
34
|
total
|
|
@@ -89,23 +75,26 @@ var R = T`
|
|
|
89
75
|
}
|
|
90
76
|
}
|
|
91
77
|
`;
|
|
92
|
-
function
|
|
93
|
-
let { data: e, loading: t, error: n, refetch: r } =
|
|
78
|
+
function R() {
|
|
79
|
+
let { data: e, loading: t, error: n, refetch: r } = T(L, {
|
|
94
80
|
errorPolicy: "all",
|
|
95
81
|
fetchPolicy: "cache-first",
|
|
96
82
|
nextFetchPolicy: "cache-first"
|
|
97
83
|
});
|
|
98
84
|
return {
|
|
99
|
-
|
|
85
|
+
providerTotals: {
|
|
86
|
+
total: e?.getProviders?.total ?? 0,
|
|
87
|
+
installed: e?.installedProviders?.total ?? 0
|
|
88
|
+
},
|
|
100
89
|
connections: (e?.getConnections?.items ?? []).map((e) => u(e)),
|
|
101
90
|
loading: t,
|
|
102
91
|
error: n,
|
|
103
92
|
refetch: r
|
|
104
93
|
};
|
|
105
94
|
}
|
|
106
|
-
function
|
|
95
|
+
function z({ label: t, value: n, icon: r, tone: i = "primary", onClick: a, glow: o = !1 }) {
|
|
107
96
|
let s = l(i);
|
|
108
|
-
return /* @__PURE__ */
|
|
97
|
+
return /* @__PURE__ */ D(M, {
|
|
109
98
|
treatment: "metric",
|
|
110
99
|
glow: o,
|
|
111
100
|
className: e("border-border-seam p-5", a && "cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]"),
|
|
@@ -115,89 +104,93 @@ function B({ label: t, value: n, icon: r, tone: i = "primary", onClick: a, glow:
|
|
|
115
104
|
onKeyDown: a ? (e) => {
|
|
116
105
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
|
|
117
106
|
} : void 0,
|
|
118
|
-
children: /* @__PURE__ */
|
|
107
|
+
children: /* @__PURE__ */ O("div", {
|
|
119
108
|
className: "flex items-center justify-between",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
109
|
+
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
|
|
121
110
|
className: "text-sm font-medium text-text-secondary",
|
|
122
111
|
children: t
|
|
123
|
-
}), /* @__PURE__ */
|
|
112
|
+
}), /* @__PURE__ */ D("p", {
|
|
124
113
|
className: "text-3xl font-bold text-text-primary mt-1 tabular-nums",
|
|
125
114
|
children: n
|
|
126
|
-
})] }), /* @__PURE__ */
|
|
115
|
+
})] }), /* @__PURE__ */ D("div", {
|
|
127
116
|
className: e("p-3 rounded-xl", s.surface),
|
|
128
117
|
children: r
|
|
129
118
|
})]
|
|
130
119
|
})
|
|
131
120
|
});
|
|
132
121
|
}
|
|
133
|
-
function
|
|
134
|
-
let { basePath: l = "/", navigate: u } = n(),
|
|
135
|
-
totalProviders:
|
|
136
|
-
installedProviders:
|
|
122
|
+
function B() {
|
|
123
|
+
let { basePath: l = "/", navigate: u } = n(), w = t(), T = s(), { addConnectionDialogOpen: M, openAddConnectionDialog: L, closeAddConnectionDialog: B } = i(), { hasPermission: V, isLoading: H } = E(), U = !H && V(r.CONNECTION_CREATE), { providerTotals: W, connections: G, loading: K, error: q, refetch: J } = R(), Y = d(() => ({
|
|
124
|
+
totalProviders: W.total,
|
|
125
|
+
installedProviders: W.installed,
|
|
137
126
|
activeConnections: (G ?? []).filter((e) => e.status === "active").length,
|
|
138
127
|
pendingAuth: (G ?? []).filter((e) => e.status === "pending_auth").length,
|
|
139
128
|
errorConnections: (G ?? []).filter((e) => e.status === "error").length
|
|
140
|
-
}), [
|
|
129
|
+
}), [
|
|
130
|
+
W.total,
|
|
131
|
+
W.installed,
|
|
132
|
+
G
|
|
133
|
+
]), X = d(() => [...G ?? []].sort((e, t) => new Date(t.updatedAt).getTime() - new Date(e.updatedAt).getTime()).slice(0, 5), [G]), Z = (e) => {
|
|
141
134
|
u && u(a(l, e));
|
|
142
135
|
}, Q = [
|
|
143
136
|
{
|
|
144
137
|
id: "browse-providers",
|
|
145
|
-
label:
|
|
146
|
-
description:
|
|
147
|
-
icon: /* @__PURE__ */
|
|
138
|
+
label: w("integrations.overview.nextSteps.browse.label", "Browse the provider catalog"),
|
|
139
|
+
description: w("integrations.overview.nextSteps.browse.description", "See which services you can connect to — Slack, Google Drive, GitHub and more."),
|
|
140
|
+
icon: /* @__PURE__ */ D(S, { size: 16 }),
|
|
148
141
|
onClick: () => Z("providers"),
|
|
149
142
|
done: Y.installedProviders > 0
|
|
150
143
|
},
|
|
151
144
|
...U ? [{
|
|
152
145
|
id: "add-connection",
|
|
153
|
-
label:
|
|
154
|
-
description:
|
|
155
|
-
icon: /* @__PURE__ */
|
|
156
|
-
onClick: () =>
|
|
146
|
+
label: w("integrations.overview.nextSteps.connect.label", "Add your first connection"),
|
|
147
|
+
description: w("integrations.overview.nextSteps.connect.description", "Authenticate a provider so your workspace can start exchanging data with it."),
|
|
148
|
+
icon: /* @__PURE__ */ D(b, { size: 16 }),
|
|
149
|
+
onClick: () => L(),
|
|
157
150
|
done: (G ?? []).length > 0
|
|
158
151
|
}] : [],
|
|
159
152
|
{
|
|
160
153
|
id: "review-activity",
|
|
161
|
-
label:
|
|
162
|
-
description:
|
|
163
|
-
icon: /* @__PURE__ */
|
|
154
|
+
label: w("integrations.overview.nextSteps.logs.label", "Review activity logs"),
|
|
155
|
+
description: w("integrations.overview.nextSteps.logs.description", "Track requests and troubleshoot any connection that reports an error."),
|
|
156
|
+
icon: /* @__PURE__ */ D(h, { size: 16 }),
|
|
164
157
|
onClick: () => Z("logs"),
|
|
165
158
|
done: Y.errorConnections === 0 && Y.activeConnections > 0
|
|
166
159
|
}
|
|
167
160
|
];
|
|
168
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ O("div", {
|
|
169
162
|
className: "space-y-6 p-6 max-w-7xl mx-auto",
|
|
170
163
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ O("div", {
|
|
172
165
|
className: "relative overflow-hidden rounded-xl border border-border-seam bg-accent-wash p-6",
|
|
173
166
|
"data-tour": "integrations-overview-header",
|
|
174
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ D(k, { intensity: "subtle" }), /* @__PURE__ */ O("div", {
|
|
175
168
|
className: "flex items-center justify-between gap-3",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ O("div", {
|
|
177
170
|
className: "flex items-center gap-3",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ D("div", {
|
|
179
172
|
className: "p-2.5 rounded-lg bg-action-primary-bg/10",
|
|
180
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ D(g, {
|
|
181
174
|
size: 24,
|
|
182
175
|
className: "text-primary"
|
|
183
176
|
})
|
|
184
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h1", {
|
|
185
178
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
}), /* @__PURE__ */
|
|
179
|
+
children: /* @__PURE__ */ D(N, { children: w("integrations.overview.title", "Integrations") })
|
|
180
|
+
}), /* @__PURE__ */ D("p", {
|
|
188
181
|
className: "text-sm text-text-secondary mt-0.5",
|
|
189
|
-
children:
|
|
182
|
+
children: w("integrations.overview.subtitle", "Connect your workspace to external services and tools")
|
|
190
183
|
})] })]
|
|
191
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ D("div", {
|
|
192
185
|
className: "flex items-center gap-2",
|
|
193
|
-
children: /* @__PURE__ */
|
|
186
|
+
children: /* @__PURE__ */ D(A, {
|
|
194
187
|
variant: "ghost",
|
|
195
188
|
size: "icon",
|
|
196
189
|
onClick: () => {
|
|
197
190
|
J();
|
|
198
191
|
},
|
|
199
|
-
"aria-label":
|
|
200
|
-
children: /* @__PURE__ */
|
|
192
|
+
"aria-label": w("integrations.overview.actions.refreshAriaLabel", "Refresh"),
|
|
193
|
+
children: /* @__PURE__ */ D(x, {
|
|
201
194
|
size: 18,
|
|
202
195
|
className: "text-text-secondary"
|
|
203
196
|
})
|
|
@@ -205,80 +198,80 @@ function V() {
|
|
|
205
198
|
})]
|
|
206
199
|
})]
|
|
207
200
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
icon: /* @__PURE__ */
|
|
210
|
-
children:
|
|
201
|
+
/* @__PURE__ */ D(I, {
|
|
202
|
+
icon: /* @__PURE__ */ D(y, { size: 16 }),
|
|
203
|
+
children: w("integrations.overview.purpose", "Integrations let your workspace talk to outside tools — sending messages to Slack, syncing files with Google Drive, opening issues in GitHub, and more. Install a provider, add a connection by authenticating once, and the rest of the platform can reuse it. This dashboard summarizes what is connected and what needs attention.")
|
|
211
204
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ D(F, {
|
|
213
206
|
storageKey: "integrations-overview",
|
|
214
207
|
steps: Q
|
|
215
208
|
}),
|
|
216
|
-
q && /* @__PURE__ */
|
|
209
|
+
q && /* @__PURE__ */ O("div", {
|
|
217
210
|
className: "rounded-xl border border-border-default bg-status-error-bg-subtle p-5 flex items-start gap-4 animate-in fade-in-0 duration-200",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ D("div", {
|
|
219
212
|
className: "p-2.5 rounded-lg bg-status-error-bg-subtle",
|
|
220
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ D(f, {
|
|
221
214
|
size: 24,
|
|
222
215
|
className: "text-status-error-text"
|
|
223
216
|
})
|
|
224
|
-
}), /* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ O("div", {
|
|
225
218
|
className: "flex-1",
|
|
226
219
|
children: [
|
|
227
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ D("h3", {
|
|
228
221
|
className: "font-semibold text-status-error-text mb-1",
|
|
229
|
-
children:
|
|
222
|
+
children: w("integrations.overview.error.title", "Failed to load integrations data")
|
|
230
223
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ D("p", {
|
|
232
225
|
className: "text-sm text-status-error-text mb-3",
|
|
233
226
|
children: q.message
|
|
234
227
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ O("button", {
|
|
236
229
|
type: "button",
|
|
237
230
|
onClick: () => {
|
|
238
231
|
J();
|
|
239
232
|
},
|
|
240
233
|
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",
|
|
241
|
-
children: [/* @__PURE__ */
|
|
234
|
+
children: [/* @__PURE__ */ D(x, { size: 14 }), w("integrations.overview.error.retry", "Try Again")]
|
|
242
235
|
})
|
|
243
236
|
]
|
|
244
237
|
})]
|
|
245
238
|
}),
|
|
246
|
-
K && !q && /* @__PURE__ */
|
|
239
|
+
K && !q && /* @__PURE__ */ D("div", {
|
|
247
240
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
|
|
248
241
|
children: [...[
|
|
249
242
|
,
|
|
250
243
|
,
|
|
251
244
|
,
|
|
252
245
|
,
|
|
253
|
-
]].map((e, t) => /* @__PURE__ */
|
|
246
|
+
]].map((e, t) => /* @__PURE__ */ D("div", {
|
|
254
247
|
className: "rounded-xl border border-border-seam bg-bg-surface p-5",
|
|
255
|
-
children: /* @__PURE__ */
|
|
248
|
+
children: /* @__PURE__ */ O("div", {
|
|
256
249
|
className: "flex items-center justify-between",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ O("div", {
|
|
258
251
|
className: "space-y-2",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
260
|
-
}), /* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ D("div", { className: "h-3 w-20 bg-bg-sunken rounded animate-vc-shimmer" }), /* @__PURE__ */ D("div", { className: "h-8 w-12 bg-bg-sunken rounded animate-vc-shimmer" })]
|
|
253
|
+
}), /* @__PURE__ */ D("div", { className: "size-12 bg-bg-sunken rounded-xl animate-vc-shimmer" })]
|
|
261
254
|
})
|
|
262
255
|
}, t))
|
|
263
256
|
}),
|
|
264
|
-
!K && !q && /* @__PURE__ */
|
|
257
|
+
!K && !q && /* @__PURE__ */ O("div", {
|
|
265
258
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
|
|
266
259
|
"data-tour": "integrations-stats-cards",
|
|
267
260
|
children: [
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
label:
|
|
261
|
+
/* @__PURE__ */ D(z, {
|
|
262
|
+
label: w("integrations.overview.stats.installedProviders", "Installed Providers"),
|
|
270
263
|
value: Y.installedProviders,
|
|
271
|
-
icon: /* @__PURE__ */
|
|
264
|
+
icon: /* @__PURE__ */ D(S, {
|
|
272
265
|
size: 24,
|
|
273
266
|
className: "text-primary"
|
|
274
267
|
}),
|
|
275
268
|
tone: "primary",
|
|
276
269
|
onClick: () => Z("providers")
|
|
277
270
|
}),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
label:
|
|
271
|
+
/* @__PURE__ */ D(z, {
|
|
272
|
+
label: w("integrations.overview.stats.activeConnections", "Active Connections"),
|
|
280
273
|
value: Y.activeConnections,
|
|
281
|
-
icon: /* @__PURE__ */
|
|
274
|
+
icon: /* @__PURE__ */ D(m, {
|
|
282
275
|
size: 24,
|
|
283
276
|
className: "text-status-success-text"
|
|
284
277
|
}),
|
|
@@ -286,20 +279,20 @@ function V() {
|
|
|
286
279
|
glow: !0,
|
|
287
280
|
onClick: () => Z("connections")
|
|
288
281
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
label:
|
|
282
|
+
/* @__PURE__ */ D(z, {
|
|
283
|
+
label: w("integrations.overview.stats.pendingAuth", "Pending Auth"),
|
|
291
284
|
value: Y.pendingAuth,
|
|
292
|
-
icon: /* @__PURE__ */
|
|
285
|
+
icon: /* @__PURE__ */ D(h, {
|
|
293
286
|
size: 24,
|
|
294
287
|
className: "text-status-warning-text"
|
|
295
288
|
}),
|
|
296
289
|
tone: "warning",
|
|
297
290
|
onClick: () => Z("connections")
|
|
298
291
|
}),
|
|
299
|
-
/* @__PURE__ */
|
|
300
|
-
label:
|
|
292
|
+
/* @__PURE__ */ D(z, {
|
|
293
|
+
label: w("integrations.overview.stats.errors", "Errors"),
|
|
301
294
|
value: Y.errorConnections,
|
|
302
|
-
icon: /* @__PURE__ */
|
|
295
|
+
icon: /* @__PURE__ */ D(C, {
|
|
303
296
|
size: 24,
|
|
304
297
|
className: "text-status-error-text"
|
|
305
298
|
}),
|
|
@@ -308,106 +301,106 @@ function V() {
|
|
|
308
301
|
})
|
|
309
302
|
]
|
|
310
303
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ O("div", {
|
|
312
305
|
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
313
306
|
"data-tour": "integrations-quick-actions",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ O("button", {
|
|
315
308
|
type: "button",
|
|
316
309
|
onClick: () => Z("providers"),
|
|
317
310
|
className: e("flex items-center gap-4 p-5 rounded-xl border border-border-seam bg-bg-surface", "hover:border-border-strong hover:shadow-[var(--shadow-pop)]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", "text-left transition-[box-shadow,border-color] duration-200 group"),
|
|
318
311
|
children: [
|
|
319
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ D("div", {
|
|
320
313
|
className: "p-3 rounded-xl bg-action-primary-bg/10",
|
|
321
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ D(S, {
|
|
322
315
|
size: 24,
|
|
323
316
|
className: "text-primary"
|
|
324
317
|
})
|
|
325
318
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ O("div", {
|
|
327
320
|
className: "flex-1",
|
|
328
|
-
children: [/* @__PURE__ */
|
|
321
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
329
322
|
className: "font-semibold text-text-primary",
|
|
330
|
-
children:
|
|
331
|
-
}), /* @__PURE__ */
|
|
323
|
+
children: w("integrations.overview.quickActions.browseProviders.title", "Browse Providers")
|
|
324
|
+
}), /* @__PURE__ */ D("p", {
|
|
332
325
|
className: "text-sm text-text-secondary mt-0.5",
|
|
333
|
-
children:
|
|
326
|
+
children: w("integrations.overview.quickActions.browseProviders.description", "Discover and install integration plugins")
|
|
334
327
|
})]
|
|
335
328
|
}),
|
|
336
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ D(p, {
|
|
337
330
|
size: 18,
|
|
338
331
|
className: "text-text-secondary group-hover:text-primary transition-colors"
|
|
339
332
|
})
|
|
340
333
|
]
|
|
341
|
-
}), U && /* @__PURE__ */
|
|
334
|
+
}), U && /* @__PURE__ */ O("button", {
|
|
342
335
|
type: "button",
|
|
343
|
-
onClick: () =>
|
|
336
|
+
onClick: () => L(),
|
|
344
337
|
className: e("flex items-center gap-4 p-5 rounded-xl border border-border-seam bg-bg-surface", "hover:border-border-strong hover:shadow-[var(--shadow-pop)]", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", "text-left transition-[box-shadow,border-color] duration-200 group"),
|
|
345
338
|
children: [
|
|
346
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ D("div", {
|
|
347
340
|
className: "p-3 rounded-xl bg-status-success-bg-subtle",
|
|
348
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ D(b, {
|
|
349
342
|
size: 24,
|
|
350
343
|
className: "text-status-success-text"
|
|
351
344
|
})
|
|
352
345
|
}),
|
|
353
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ O("div", {
|
|
354
347
|
className: "flex-1",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
348
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
356
349
|
className: "font-semibold text-text-primary",
|
|
357
|
-
children:
|
|
358
|
-
}), /* @__PURE__ */
|
|
350
|
+
children: w("integrations.overview.quickActions.addConnection.title", "Add Connection")
|
|
351
|
+
}), /* @__PURE__ */ D("p", {
|
|
359
352
|
className: "text-sm text-text-secondary mt-0.5",
|
|
360
|
-
children:
|
|
353
|
+
children: w("integrations.overview.quickActions.addConnection.description", "Connect to an external service")
|
|
361
354
|
})]
|
|
362
355
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ D(p, {
|
|
364
357
|
size: 18,
|
|
365
358
|
className: "text-text-secondary group-hover:text-primary transition-colors"
|
|
366
359
|
})
|
|
367
360
|
]
|
|
368
361
|
})]
|
|
369
362
|
}),
|
|
370
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ O(j, {
|
|
371
364
|
className: "overflow-hidden p-0",
|
|
372
365
|
"data-tour": "integrations-recent-connections",
|
|
373
366
|
children: [
|
|
374
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ O("div", {
|
|
375
368
|
className: "flex items-center justify-between p-5 border-b border-border-seam",
|
|
376
|
-
children: [/* @__PURE__ */
|
|
369
|
+
children: [/* @__PURE__ */ O("div", {
|
|
377
370
|
className: "flex items-center gap-2",
|
|
378
|
-
children: [/* @__PURE__ */
|
|
371
|
+
children: [/* @__PURE__ */ D(_, {
|
|
379
372
|
size: 18,
|
|
380
373
|
className: "text-primary"
|
|
381
|
-
}), /* @__PURE__ */
|
|
374
|
+
}), /* @__PURE__ */ D("h2", {
|
|
382
375
|
className: "font-semibold text-text-primary",
|
|
383
|
-
children:
|
|
376
|
+
children: w("integrations.overview.recentConnections.title", "Recent Connections")
|
|
384
377
|
})]
|
|
385
|
-
}), /* @__PURE__ */
|
|
378
|
+
}), /* @__PURE__ */ D("button", {
|
|
386
379
|
type: "button",
|
|
387
380
|
onClick: () => Z("connections"),
|
|
388
381
|
className: "text-sm text-primary hover:underline",
|
|
389
|
-
children:
|
|
382
|
+
children: w("integrations.overview.recentConnections.viewAll", "View all")
|
|
390
383
|
})]
|
|
391
384
|
}),
|
|
392
|
-
K && /* @__PURE__ */
|
|
385
|
+
K && /* @__PURE__ */ D("div", {
|
|
393
386
|
className: "flex items-center justify-center py-12",
|
|
394
|
-
children: /* @__PURE__ */
|
|
387
|
+
children: /* @__PURE__ */ D(v, {
|
|
395
388
|
size: 24,
|
|
396
389
|
className: "animate-spin text-text-secondary"
|
|
397
390
|
})
|
|
398
391
|
}),
|
|
399
|
-
!K && X.length === 0 && /* @__PURE__ */
|
|
392
|
+
!K && X.length === 0 && /* @__PURE__ */ D(P, {
|
|
400
393
|
illustration: "empty-data",
|
|
401
|
-
title:
|
|
402
|
-
description: U ?
|
|
403
|
-
action: U ? /* @__PURE__ */
|
|
404
|
-
onClick: () =>
|
|
405
|
-
children: [/* @__PURE__ */
|
|
394
|
+
title: w("integrations.overview.empty.title", "No connections yet"),
|
|
395
|
+
description: U ? w("integrations.overview.empty.canCreateDescription", "Create your first connection to start integrating with external services.") : w("integrations.overview.empty.readOnlyDescription", "No connections have been configured yet."),
|
|
396
|
+
action: U ? /* @__PURE__ */ O(A, {
|
|
397
|
+
onClick: () => L(),
|
|
398
|
+
children: [/* @__PURE__ */ D(b, { size: 16 }), w("integrations.overview.actions.addConnection", "Add Connection")]
|
|
406
399
|
}) : void 0
|
|
407
400
|
}),
|
|
408
|
-
!K && X.length > 0 && /* @__PURE__ */
|
|
401
|
+
!K && X.length > 0 && /* @__PURE__ */ D("div", {
|
|
409
402
|
className: "divide-y divide-border-seam",
|
|
410
|
-
children: X.map((t) => /* @__PURE__ */
|
|
403
|
+
children: X.map((t) => /* @__PURE__ */ O("div", {
|
|
411
404
|
className: "flex items-center gap-4 px-5 py-3.5 hover:bg-accent/30 cursor-pointer transition-colors",
|
|
412
405
|
onClick: () => Z(`connections/${t.id}`),
|
|
413
406
|
role: "button",
|
|
@@ -416,26 +409,26 @@ function V() {
|
|
|
416
409
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), Z(`connections/${t.id}`));
|
|
417
410
|
},
|
|
418
411
|
children: [
|
|
419
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ D("div", {
|
|
420
413
|
className: "size-8 rounded-lg flex items-center justify-center flex-shrink-0 bg-action-primary-bg/10",
|
|
421
|
-
children: /* @__PURE__ */
|
|
414
|
+
children: /* @__PURE__ */ D(y, {
|
|
422
415
|
size: 16,
|
|
423
416
|
className: "text-primary"
|
|
424
417
|
})
|
|
425
418
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ O("div", {
|
|
427
420
|
className: "flex-1 min-w-0",
|
|
428
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ D("p", {
|
|
429
422
|
className: "text-sm font-medium text-text-primary truncate",
|
|
430
423
|
children: t.name
|
|
431
|
-
}), /* @__PURE__ */
|
|
424
|
+
}), /* @__PURE__ */ D("p", {
|
|
432
425
|
className: "text-xs text-text-secondary truncate",
|
|
433
426
|
children: t.provider.name
|
|
434
427
|
})]
|
|
435
428
|
}),
|
|
436
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ O("div", {
|
|
437
430
|
className: "flex items-center gap-2 flex-shrink-0",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
431
|
+
children: [/* @__PURE__ */ D("span", { className: e("size-2 rounded-full", o(t.status), t.status === "active" && "motion-safe:animate-vc-glow-pulse") }), /* @__PURE__ */ D("span", {
|
|
439
432
|
className: "text-xs text-text-secondary",
|
|
440
433
|
children: T(t.lastUsedAt)
|
|
441
434
|
})]
|
|
@@ -445,9 +438,9 @@ function V() {
|
|
|
445
438
|
})
|
|
446
439
|
]
|
|
447
440
|
}),
|
|
448
|
-
/* @__PURE__ */
|
|
449
|
-
open:
|
|
450
|
-
onClose:
|
|
441
|
+
/* @__PURE__ */ D(c, {
|
|
442
|
+
open: M,
|
|
443
|
+
onClose: B,
|
|
451
444
|
onConnectionCreated: () => {
|
|
452
445
|
J();
|
|
453
446
|
}
|
|
@@ -455,6 +448,6 @@ function V() {
|
|
|
455
448
|
]
|
|
456
449
|
});
|
|
457
450
|
}
|
|
458
|
-
export {
|
|
451
|
+
export { B as IntegrationsOverview };
|
|
459
452
|
|
|
460
453
|
//# sourceMappingURL=IntegrationsOverview.js.map
|