@burdenoff/microfe-integrations 2026.1109.3 → 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.
|
@@ -6,8 +6,9 @@ import { ChevronRight as i, Lock as a } from "lucide-react";
|
|
|
6
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { ProviderIcon as l } from "@burdenoff/fe-libs/connections";
|
|
8
8
|
import { GlassCard as u } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { suggestAnchorProps as d } from "@burdenoff/fe-libs/shared/proactive";
|
|
9
10
|
// src/integrations/components/ConnectionCard.tsx
|
|
10
|
-
var
|
|
11
|
+
var f = ({ connection: e }) => {
|
|
11
12
|
let n = t();
|
|
12
13
|
if (e.visibility !== "RESTRICTED") return null;
|
|
13
14
|
let r = n("integrations.connectionCard.private", "Private: only the people it is shared with");
|
|
@@ -23,15 +24,19 @@ var d = ({ connection: e }) => {
|
|
|
23
24
|
children: r
|
|
24
25
|
})]
|
|
25
26
|
});
|
|
26
|
-
},
|
|
27
|
-
let
|
|
28
|
-
|
|
27
|
+
}, p = ({ connection: a, displayMode: p = "grid", onClick: m }) => {
|
|
28
|
+
let h = t(), g = n(), _ = d({
|
|
29
|
+
entityType: "connection",
|
|
30
|
+
entityId: a.id
|
|
31
|
+
});
|
|
32
|
+
return p === "list" ? /* @__PURE__ */ c(u, {
|
|
33
|
+
..._,
|
|
29
34
|
className: e("group flex items-center gap-4 p-4 border-border-seam", "cursor-pointer hover:shadow-[var(--shadow-pop)] hover:border-border-strong", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", "animate-in fade-in-0"),
|
|
30
|
-
onClick: () =>
|
|
35
|
+
onClick: () => m?.(a),
|
|
31
36
|
role: "button",
|
|
32
37
|
tabIndex: 0,
|
|
33
38
|
onKeyDown: (e) => {
|
|
34
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
39
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), m?.(a));
|
|
35
40
|
},
|
|
36
41
|
children: [
|
|
37
42
|
/* @__PURE__ */ s(l, {
|
|
@@ -47,7 +52,7 @@ var d = ({ connection: e }) => {
|
|
|
47
52
|
className: "font-semibold text-text-primary truncate",
|
|
48
53
|
children: a.name
|
|
49
54
|
}),
|
|
50
|
-
/* @__PURE__ */ s(
|
|
55
|
+
/* @__PURE__ */ s(f, { connection: a }),
|
|
51
56
|
/* @__PURE__ */ s(r, { status: a.status })
|
|
52
57
|
]
|
|
53
58
|
}), /* @__PURE__ */ c("div", {
|
|
@@ -68,7 +73,7 @@ var d = ({ connection: e }) => {
|
|
|
68
73
|
className: "flex items-center gap-3 flex-shrink-0",
|
|
69
74
|
children: [/* @__PURE__ */ s("span", {
|
|
70
75
|
className: "text-xs text-text-secondary",
|
|
71
|
-
children:
|
|
76
|
+
children: h("integrations.connectionCard.lastUsed", "Last used {{time}}", { time: g(a.lastUsedAt) })
|
|
72
77
|
}), /* @__PURE__ */ s(i, {
|
|
73
78
|
size: 18,
|
|
74
79
|
className: "text-text-secondary group-hover:text-primary transition-colors"
|
|
@@ -76,12 +81,13 @@ var d = ({ connection: e }) => {
|
|
|
76
81
|
})
|
|
77
82
|
]
|
|
78
83
|
}) : /* @__PURE__ */ c(u, {
|
|
84
|
+
..._,
|
|
79
85
|
className: e("group relative flex flex-col p-5 border-border-seam", "cursor-pointer hover:shadow-[var(--shadow-pop)] hover:border-border-strong", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", "animate-in fade-in-0"),
|
|
80
|
-
onClick: () =>
|
|
86
|
+
onClick: () => m?.(a),
|
|
81
87
|
role: "button",
|
|
82
88
|
tabIndex: 0,
|
|
83
89
|
onKeyDown: (e) => {
|
|
84
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
90
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), m?.(a));
|
|
85
91
|
},
|
|
86
92
|
children: [
|
|
87
93
|
/* @__PURE__ */ c("div", {
|
|
@@ -96,7 +102,7 @@ var d = ({ connection: e }) => {
|
|
|
96
102
|
children: [/* @__PURE__ */ s("h3", {
|
|
97
103
|
className: "font-semibold text-text-primary truncate",
|
|
98
104
|
children: a.name
|
|
99
|
-
}), /* @__PURE__ */ s(
|
|
105
|
+
}), /* @__PURE__ */ s(f, { connection: a })]
|
|
100
106
|
}),
|
|
101
107
|
/* @__PURE__ */ s("p", {
|
|
102
108
|
className: "text-sm text-text-secondary truncate",
|
|
@@ -114,7 +120,7 @@ var d = ({ connection: e }) => {
|
|
|
114
120
|
className: "flex items-center justify-between mt-auto pt-3 border-t border-border-seam",
|
|
115
121
|
children: [/* @__PURE__ */ s("span", {
|
|
116
122
|
className: "text-xs text-text-secondary",
|
|
117
|
-
children:
|
|
123
|
+
children: h("integrations.connectionCard.lastUsed", "Last used {{time}}", { time: g(a.lastUsedAt) })
|
|
118
124
|
}), /* @__PURE__ */ s(i, {
|
|
119
125
|
size: 16,
|
|
120
126
|
className: "text-text-secondary group-hover:text-primary transition-colors"
|
|
@@ -123,6 +129,6 @@ var d = ({ connection: e }) => {
|
|
|
123
129
|
]
|
|
124
130
|
});
|
|
125
131
|
};
|
|
126
|
-
export {
|
|
132
|
+
export { p as ConnectionCard };
|
|
127
133
|
|
|
128
134
|
//# sourceMappingURL=ConnectionCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionCard.js","names":["_Fragment","PrivateBadge","tr","useTr","connection","label","Lock","ConnectionCard","formatLastUsed","useFormatLastUsed","displayMode","GlassCard","cn","onClick","ProviderIcon","ConnectionStatusBadge","Fragment","ChevronRight"],"sources":["../../../src/integrations/components/ConnectionCard.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { ChevronRight, Lock } from 'lucide-react';\nimport { cn } from '../utils/cn';\nimport { GlassCard } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../hooks/useTr';\nimport { useFormatLastUsed } from '../hooks/useFormatLastUsed';\nimport type { IntegrationConnection } from '../types';\nimport { ProviderIcon } from '@burdenoff/fe-libs/connections';\nimport { ConnectionStatusBadge } from './ConnectionStatusBadge';\n\ninterface ConnectionCardProps {\n connection: IntegrationConnection;\n displayMode?: 'grid' | 'list';\n onClick?: (connection: IntegrationConnection) => void;\n}\n\n/**\n * A lock for a connection only the people it is shared with can use (BOFF-9726).\n */\nconst PrivateBadge: FC<{ connection: IntegrationConnection }> = ({ connection }) => {\n const tr = useTr();\n if (connection.visibility !== 'RESTRICTED') return null;\n const label = tr(\n 'integrations.connectionCard.private',\n 'Private: only the people it is shared with'\n );\n return (\n <span\n className=\"inline-flex shrink-0 items-center text-text-secondary\"\n title={label}\n data-testid=\"connection-private-badge\"\n >\n <Lock size={13} aria-hidden=\"true\" />\n <span className=\"sr-only\">{label}</span>\n </span>\n );\n};\n\n/**\n * Card showing connection info (provider icon, connection name, account email, status badge, last used).\n */\nexport const ConnectionCard: FC<ConnectionCardProps> = ({\n connection,\n displayMode = 'grid',\n onClick,\n}) => {\n const tr = useTr();\n const formatLastUsed = useFormatLastUsed();\n\n if (displayMode === 'list') {\n return (\n <GlassCard\n className={cn(\n 'group flex items-center gap-4 p-4 border-border-seam',\n 'cursor-pointer hover:shadow-[var(--shadow-pop)] hover:border-border-strong',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'animate-in fade-in-0'\n )}\n onClick={() => onClick?.(connection)}\n role=\"button\"\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick?.(connection);\n }\n }}\n >\n <ProviderIcon provider={connection.provider} size={40} />\n\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2\">\n <h3 className=\"font-semibold text-text-primary truncate\">{connection.name}</h3>\n <PrivateBadge connection={connection} />\n <ConnectionStatusBadge status={connection.status} />\n </div>\n <div className=\"flex items-center gap-2 mt-0.5\">\n <span className=\"text-sm text-text-secondary\">{connection.provider.name}</span>\n {connection.externalAccountEmail && (\n <>\n <span className=\"text-text-secondary\">·</span>\n <span className=\"text-sm text-text-secondary truncate\">\n {connection.externalAccountEmail}\n </span>\n </>\n )}\n </div>\n </div>\n\n <div className=\"flex items-center gap-3 flex-shrink-0\">\n <span className=\"text-xs text-text-secondary\">\n {tr('integrations.connectionCard.lastUsed', 'Last used {{time}}', {\n time: formatLastUsed(connection.lastUsedAt),\n })}\n </span>\n <ChevronRight\n size={18}\n className=\"text-text-secondary group-hover:text-primary transition-colors\"\n />\n </div>\n </GlassCard>\n );\n }\n\n return (\n <GlassCard\n className={cn(\n 'group relative flex flex-col p-5 border-border-seam',\n 'cursor-pointer hover:shadow-[var(--shadow-pop)] hover:border-border-strong',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'animate-in fade-in-0'\n )}\n onClick={() => onClick?.(connection)}\n role=\"button\"\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick?.(connection);\n }\n }}\n >\n <div className=\"flex items-start justify-between mb-3\">\n <ProviderIcon provider={connection.provider} size={44} />\n <ConnectionStatusBadge status={connection.status} />\n </div>\n\n <div className=\"mb-0.5 flex items-center gap-1.5\">\n <h3 className=\"font-semibold text-text-primary truncate\">{connection.name}</h3>\n <PrivateBadge connection={connection} />\n </div>\n <p className=\"text-sm text-text-secondary truncate\">{connection.provider.name}</p>\n\n {connection.externalAccountEmail && (\n <p className=\"text-xs text-text-secondary truncate mt-1\">\n {connection.externalAccountName || connection.externalAccountEmail}\n </p>\n )}\n\n {connection.description && (\n <p className=\"text-sm text-text-secondary line-clamp-2 mt-2\">{connection.description}</p>\n )}\n\n <div className=\"flex items-center justify-between mt-auto pt-3 border-t border-border-seam\">\n <span className=\"text-xs text-text-secondary\">\n {tr('integrations.connectionCard.lastUsed', 'Last used {{time}}', {\n time: formatLastUsed(connection.lastUsedAt),\n })}\n </span>\n <ChevronRight\n size={16}\n className=\"text-text-secondary group-hover:text-primary transition-colors\"\n />\n </div>\n </GlassCard>\n );\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConnectionCard.js","names":["_Fragment","PrivateBadge","tr","useTr","connection","label","Lock","ConnectionCard","formatLastUsed","useFormatLastUsed","anchorProps","suggestAnchorProps","displayMode","GlassCard","cn","onClick","ProviderIcon","ConnectionStatusBadge","Fragment","ChevronRight"],"sources":["../../../src/integrations/components/ConnectionCard.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { ChevronRight, Lock } from 'lucide-react';\nimport { cn } from '../utils/cn';\nimport { GlassCard } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../hooks/useTr';\nimport { useFormatLastUsed } from '../hooks/useFormatLastUsed';\nimport type { IntegrationConnection } from '../types';\nimport { ProviderIcon } from '@burdenoff/fe-libs/connections';\nimport { suggestAnchorProps } from '@burdenoff/fe-libs/shared/proactive';\nimport { ConnectionStatusBadge } from './ConnectionStatusBadge';\n\ninterface ConnectionCardProps {\n connection: IntegrationConnection;\n displayMode?: 'grid' | 'list';\n onClick?: (connection: IntegrationConnection) => void;\n}\n\n/**\n * A lock for a connection only the people it is shared with can use (BOFF-9726).\n */\nconst PrivateBadge: FC<{ connection: IntegrationConnection }> = ({ connection }) => {\n const tr = useTr();\n if (connection.visibility !== 'RESTRICTED') return null;\n const label = tr(\n 'integrations.connectionCard.private',\n 'Private: only the people it is shared with'\n );\n return (\n <span\n className=\"inline-flex shrink-0 items-center text-text-secondary\"\n title={label}\n data-testid=\"connection-private-badge\"\n >\n <Lock size={13} aria-hidden=\"true\" />\n <span className=\"sr-only\">{label}</span>\n </span>\n );\n};\n\n/**\n * Card showing connection info (provider icon, connection name, account email, status badge, last used).\n */\nexport const ConnectionCard: FC<ConnectionCardProps> = ({\n connection,\n displayMode = 'grid',\n onClick,\n}) => {\n const tr = useTr();\n const formatLastUsed = useFormatLastUsed();\n // A proactive suggestion about this connection (an expired token, say) pins\n // to the card (contract C7, BOFF-13166).\n const anchorProps = suggestAnchorProps({ entityType: 'connection', entityId: connection.id });\n\n if (displayMode === 'list') {\n return (\n <GlassCard\n {...anchorProps}\n className={cn(\n 'group flex items-center gap-4 p-4 border-border-seam',\n 'cursor-pointer hover:shadow-[var(--shadow-pop)] hover:border-border-strong',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'animate-in fade-in-0'\n )}\n onClick={() => onClick?.(connection)}\n role=\"button\"\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick?.(connection);\n }\n }}\n >\n <ProviderIcon provider={connection.provider} size={40} />\n\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2\">\n <h3 className=\"font-semibold text-text-primary truncate\">{connection.name}</h3>\n <PrivateBadge connection={connection} />\n <ConnectionStatusBadge status={connection.status} />\n </div>\n <div className=\"flex items-center gap-2 mt-0.5\">\n <span className=\"text-sm text-text-secondary\">{connection.provider.name}</span>\n {connection.externalAccountEmail && (\n <>\n <span className=\"text-text-secondary\">·</span>\n <span className=\"text-sm text-text-secondary truncate\">\n {connection.externalAccountEmail}\n </span>\n </>\n )}\n </div>\n </div>\n\n <div className=\"flex items-center gap-3 flex-shrink-0\">\n <span className=\"text-xs text-text-secondary\">\n {tr('integrations.connectionCard.lastUsed', 'Last used {{time}}', {\n time: formatLastUsed(connection.lastUsedAt),\n })}\n </span>\n <ChevronRight\n size={18}\n className=\"text-text-secondary group-hover:text-primary transition-colors\"\n />\n </div>\n </GlassCard>\n );\n }\n\n return (\n <GlassCard\n {...anchorProps}\n className={cn(\n 'group relative flex flex-col p-5 border-border-seam',\n 'cursor-pointer hover:shadow-[var(--shadow-pop)] hover:border-border-strong',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'animate-in fade-in-0'\n )}\n onClick={() => onClick?.(connection)}\n role=\"button\"\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick?.(connection);\n }\n }}\n >\n <div className=\"flex items-start justify-between mb-3\">\n <ProviderIcon provider={connection.provider} size={44} />\n <ConnectionStatusBadge status={connection.status} />\n </div>\n\n <div className=\"mb-0.5 flex items-center gap-1.5\">\n <h3 className=\"font-semibold text-text-primary truncate\">{connection.name}</h3>\n <PrivateBadge connection={connection} />\n </div>\n <p className=\"text-sm text-text-secondary truncate\">{connection.provider.name}</p>\n\n {connection.externalAccountEmail && (\n <p className=\"text-xs text-text-secondary truncate mt-1\">\n {connection.externalAccountName || connection.externalAccountEmail}\n </p>\n )}\n\n {connection.description && (\n <p className=\"text-sm text-text-secondary line-clamp-2 mt-2\">{connection.description}</p>\n )}\n\n <div className=\"flex items-center justify-between mt-auto pt-3 border-t border-border-seam\">\n <span className=\"text-xs text-text-secondary\">\n {tr('integrations.connectionCard.lastUsed', 'Last used {{time}}', {\n time: formatLastUsed(connection.lastUsedAt),\n })}\n </span>\n <ChevronRight\n size={16}\n className=\"text-text-secondary group-hover:text-primary transition-colors\"\n />\n </div>\n </GlassCard>\n );\n};\n"],"mappings":";;;;;;;;;;AAoBA,IAAMC,KAA2D,EAAE,oBAAiB;CAClF,IAAMC,IAAKC,EAAM;CACjB,IAAIC,EAAW,eAAe,cAAc,OAAO;CACnD,IAAMC,IAAQH,EACZ,uCACA,4CACF;CACA,OACE,kBAAC,QAAD;EACE,WAAU;EACV,OAAOG;EACP,eAAY;EAHd,UAAA,CAKE,kBAACC,GAAD;GAAM,MAAM;GAAI,eAAY;EAAQ,CAAA,GACpC,kBAAC,QAAD;GAAM,WAAU;GAAW,UAAAD;EAAY,CAAA,CACnC;;AAEV,GAKaE,KAA2C,EACtD,eACA,iBAAc,QACd,iBACI;CACJ,IAAML,IAAKC,EAAM,GACXK,IAAiBC,EAAkB,GAGnC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,WAAWI,EACT,uDACA,8EACA,gGACA,sBACF;EACA,eAAeC,IAAUX,CAAU;EACnC,MAAK;EACL,UAAU;EACV,YAAY,MAAM;GAChB,CAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,SACjC,EAAE,eAAe,GACjBW,IAAUX,CAAU;EAExB;EAhBF,UAAA;GAkBE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAACY,GAAD;KAAc,UAAUZ,EAAW;KAAU,MAAM;IAAK,CAAA,GACxD,kBAACa,GAAD,EAAuB,QAAQb,EAAW,OAAS,CAAA,CAChD;;GAEL,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;KAA4C,UAAAA,EAAW;IAAS,CAAA,GAC9E,kBAACH,GAAD,EAA0B,cAAa,CAAA,CACpC;;GACL,kBAAC,KAAD;IAAG,WAAU;IAAwC,UAAAG,EAAW,SAAS;GAAQ,CAAA;GAEhFA,EAAW,wBACV,kBAAC,KAAD;IAAG,WAAU;IACV,UAAAA,EAAW,uBAAuBA,EAAW;GAC7C,CAAA;GAGJA,EAAW,eACV,kBAAC,KAAD;IAAG,WAAU;IAAiD,UAAAA,EAAW;GAAe,CAAA;GAG1F,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,QAAD;KAAM,WAAU;KACb,UAAAF,EAAG,wCAAwC,sBAAsB,EAChE,MAAMM,EAAeJ,EAAW,UAAU,EAC5C,CAAC;IACG,CAAA,GACN,kBAACe,GAAD;KACE,MAAM;KACN,WAAU;IACX,CAAA,CACE;;EACI;;AAEf"}
|
|
@@ -20,15 +20,16 @@ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
|
20
20
|
import { useFeatureFlag as we } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
21
21
|
import { ProviderIcon as Te, canManageSharing as Ee } from "@burdenoff/fe-libs/connections";
|
|
22
22
|
import { AlertDialog as De, AlertDialogAction as Oe, AlertDialogCancel as ke, AlertDialogContent as Ae, AlertDialogDescription as je, AlertDialogFooter as Me, AlertDialogHeader as v, AlertDialogTitle as y, Button as b, CTAOverflowMenu as x, EmphasisPanel as Ne, GlassCard as S, NextSteps as Pe, PagePurpose as Fe, ShowMore as C } from "@burdenoff/fe-libs/ui";
|
|
23
|
+
import { suggestAnchorProps as Ie } from "@burdenoff/fe-libs/shared/proactive";
|
|
23
24
|
// src/integrations/pages/ConnectionDetail.tsx
|
|
24
25
|
function w() {
|
|
25
|
-
let { connectionId: w } = Se(), { basePath: T = "/", navigate: E } = re(), D = t(),
|
|
26
|
+
let { connectionId: w } = Se(), { basePath: T = "/", navigate: E } = re(), D = t(), Le = ee(), Re = te(), O = ne(), { connection: k, loading: ze, error: A, refetch: j } = ae(w ?? ""), { testConnection: Be, loading: M } = le(), { refreshToken: Ve, loading: He } = se(), { revokeConnection: Ue, loading: N } = ce(), { deleteConnection: We, loading: P } = oe(), F = we(ie.OAUTH_REFRESH, !0), { hasPermission: I, isLoading: Ge } = Ce(), L = I(n.CONNECTION_UPDATE), R = I(n.CONNECTION_DELETE), Ke = I(n.CONNECTION_SHARE), [qe, z] = a(!1), [B, Je] = a(null), [V, H] = a(null), [Ye, U] = a(!1), [W, G] = a(!1), [Xe, K] = a(!1), q = (e, t) => {
|
|
26
27
|
H({
|
|
27
28
|
type: e,
|
|
28
29
|
message: t
|
|
29
30
|
}), setTimeout(() => H(null), 5e3);
|
|
30
31
|
};
|
|
31
|
-
if (
|
|
32
|
+
if (ze || Ge) return /* @__PURE__ */ _("div", {
|
|
32
33
|
className: "flex flex-col items-center justify-center py-20",
|
|
33
34
|
children: [/* @__PURE__ */ g(u, {
|
|
34
35
|
size: 48,
|
|
@@ -83,15 +84,15 @@ function w() {
|
|
|
83
84
|
})
|
|
84
85
|
});
|
|
85
86
|
let J = async () => {
|
|
86
|
-
let e = await
|
|
87
|
-
e && (
|
|
87
|
+
let e = await Be(k.id);
|
|
88
|
+
e && (Je(e), q(e.success ? "success" : "error", e.message));
|
|
88
89
|
}, Y = async () => {
|
|
89
|
-
await
|
|
90
|
-
}, Xe = async () => {
|
|
91
|
-
K(!0);
|
|
90
|
+
await Ve(k.id), q("success", D("integrations.connectionDetail.notifications.refreshSuccess", "Token refreshed successfully")), j();
|
|
92
91
|
}, Ze = async () => {
|
|
93
|
-
|
|
92
|
+
K(!0);
|
|
94
93
|
}, Qe = async () => {
|
|
94
|
+
await Ue(k.id), q("success", D("integrations.connectionDetail.notifications.revokeSuccess", "Connection revoked")), K(!1), j();
|
|
95
|
+
}, $e = async () => {
|
|
95
96
|
he("medium");
|
|
96
97
|
let e = await me({
|
|
97
98
|
title: D("integrations.connectionDetail.deleteDialog.title", "Delete Connection"),
|
|
@@ -102,11 +103,11 @@ function w() {
|
|
|
102
103
|
e === null ? U(!0) : e && await X();
|
|
103
104
|
}, X = async () => {
|
|
104
105
|
try {
|
|
105
|
-
await
|
|
106
|
+
await We(k.id, W), q("success", D("integrations.connectionDetail.notifications.deleteSuccess", "Connection deleted")), i("success"), U(!1), G(!1), E?.(r(T, "connections"));
|
|
106
107
|
} catch (e) {
|
|
107
108
|
q("error", e instanceof Error ? e.message : "Failed to delete connection"), i("error");
|
|
108
109
|
}
|
|
109
|
-
}, Z = M ||
|
|
110
|
+
}, Z = M || He || N || P, Q = Ke && Ee(k.myAccess ?? null), $ = !!(k.vaultId || k.credentialSecretId), et = [
|
|
110
111
|
{
|
|
111
112
|
id: "test",
|
|
112
113
|
label: D("integrations.connectionDetail.nextSteps.test.label", "Test the connection"),
|
|
@@ -145,7 +146,7 @@ function w() {
|
|
|
145
146
|
})]
|
|
146
147
|
}),
|
|
147
148
|
/* @__PURE__ */ g(De, {
|
|
148
|
-
open:
|
|
149
|
+
open: Ye,
|
|
149
150
|
onOpenChange: (e) => {
|
|
150
151
|
e || (U(!1), G(!1));
|
|
151
152
|
},
|
|
@@ -189,7 +190,7 @@ function w() {
|
|
|
189
190
|
})
|
|
190
191
|
}),
|
|
191
192
|
/* @__PURE__ */ g(pe, {
|
|
192
|
-
open:
|
|
193
|
+
open: Xe,
|
|
193
194
|
title: D("integrations.connectionDetail.confirm.revokeTitle", "Revoke connection"),
|
|
194
195
|
description: D("integrations.connectionDetail.confirm.revoke", "Are you sure you want to revoke this connection? This will disconnect the external service."),
|
|
195
196
|
confirmLabel: D("integrations.connectionDetail.actions.revoke", "Revoke"),
|
|
@@ -197,12 +198,12 @@ function w() {
|
|
|
197
198
|
loading: N,
|
|
198
199
|
destructive: !0,
|
|
199
200
|
icon: /* @__PURE__ */ g(f, { size: 20 }),
|
|
200
|
-
onConfirm:
|
|
201
|
+
onConfirm: Qe,
|
|
201
202
|
onCancel: () => K(!1)
|
|
202
203
|
}),
|
|
203
204
|
Q && /* @__PURE__ */ g(de, {
|
|
204
205
|
connection: k,
|
|
205
|
-
open:
|
|
206
|
+
open: qe,
|
|
206
207
|
onClose: () => z(!1),
|
|
207
208
|
onShared: () => {
|
|
208
209
|
q("success", D("integrations.connectionDetail.notifications.shareSuccess", "Sharing updated")), j();
|
|
@@ -228,6 +229,10 @@ function w() {
|
|
|
228
229
|
className: "flex-1",
|
|
229
230
|
children: [/* @__PURE__ */ _("div", {
|
|
230
231
|
className: "flex items-center gap-3",
|
|
232
|
+
...Ie({
|
|
233
|
+
entityType: "connection",
|
|
234
|
+
entityId: k.id
|
|
235
|
+
}),
|
|
231
236
|
children: [
|
|
232
237
|
/* @__PURE__ */ g("h1", {
|
|
233
238
|
className: "text-2xl sm:text-3xl font-bold text-text-primary",
|
|
@@ -244,7 +249,7 @@ function w() {
|
|
|
244
249
|
children: [
|
|
245
250
|
k.provider.name,
|
|
246
251
|
" · ",
|
|
247
|
-
|
|
252
|
+
Le(k.provider.authType)
|
|
248
253
|
]
|
|
249
254
|
})]
|
|
250
255
|
})
|
|
@@ -257,7 +262,7 @@ function w() {
|
|
|
257
262
|
}),
|
|
258
263
|
(L || R) && /* @__PURE__ */ g(Pe, {
|
|
259
264
|
storageKey: "integrations-connection-detail",
|
|
260
|
-
steps:
|
|
265
|
+
steps: et
|
|
261
266
|
}),
|
|
262
267
|
/* @__PURE__ */ _("div", {
|
|
263
268
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
@@ -341,7 +346,7 @@ function w() {
|
|
|
341
346
|
]
|
|
342
347
|
}), /* @__PURE__ */ g("span", {
|
|
343
348
|
className: "text-sm text-text-primary",
|
|
344
|
-
children:
|
|
349
|
+
children: Re(k.lastUsedAt)
|
|
345
350
|
})]
|
|
346
351
|
}),
|
|
347
352
|
/* @__PURE__ */ _("div", {
|
|
@@ -492,14 +497,14 @@ function w() {
|
|
|
492
497
|
...R ? [{
|
|
493
498
|
label: D("integrations.connectionDetail.actions.revoke", "Revoke"),
|
|
494
499
|
onSelect: () => {
|
|
495
|
-
|
|
500
|
+
Ze();
|
|
496
501
|
},
|
|
497
502
|
disabled: Z,
|
|
498
503
|
icon: /* @__PURE__ */ g(f, { size: 14 })
|
|
499
504
|
}, {
|
|
500
505
|
label: D("integrations.connectionDetail.actions.delete", "Delete"),
|
|
501
506
|
onSelect: () => {
|
|
502
|
-
|
|
507
|
+
$e();
|
|
503
508
|
},
|
|
504
509
|
intent: "destructive",
|
|
505
510
|
disabled: Z,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionDetail.js","names":["ConnectionDetail","useParams","useIntegrations","tr","useTr","getAuthTypeLabel","useAuthTypeLabel","formatLastUsed","useFormatLastUsed","formatDate","useFormatDate","useConnection","connectionId","testing","useTestConnection","refreshing","useRefreshToken","revoking","useRevokeConnection","deleting","useDeleteConnection","canRefreshToken","useFeatureFlag","INTEGRATION_FEATURE_FLAGS","permissionsLoading","usePermissions","canUpdate","hasPermission","INTEGRATION_PERMISSIONS","canDelete","canShareRole","shareOpen","setShareOpen","useState","testResult","setTestResult","notification","setNotification","deleteDialogOpen","setDeleteDialogOpen","deleteVaultSecret","setDeleteVaultSecret","revokeDialogOpen","setRevokeDialogOpen","showNotification","loading","Loader2","error","connection","AlertCircle","refetch","RefreshCw","navigate","joinPath","basePath","ArrowLeft","handleTest","result","testConnection","handleRefresh","refreshToken","handleRevoke","confirmRevoke","revokeConnection","handleDelete","nativeConfirm","confirmDelete","deleteConnection","nativeNotify","actionLoading","canShare","canManageSharing","usesVaultCredentials","nextSteps","Zap","RotateCcw","Activity","cn","CheckCircle2","XCircle","AlertDialog","next","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","event","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","Trash2","ConfirmDialog","Shield","ConnectionShareDialog","Button","ProviderIcon","ConnectionStatusBadge","PrivateConnectionBadge","PagePurpose","NextSteps","EmphasisPanel","Mail","User","Clock","GlassCard","ShowMore","scope","Key","CTAOverflowMenu","Share2"],"sources":["../../../src/integrations/pages/ConnectionDetail.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router';\nimport {\n ArrowLeft,\n Loader2,\n AlertCircle,\n RefreshCw,\n Shield,\n Clock,\n Activity,\n CheckCircle2,\n XCircle,\n Key,\n RotateCcw,\n Zap,\n Mail,\n User,\n Trash2,\n Share2,\n} from 'lucide-react';\nimport { cn } from '../utils/cn';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { useTr } from '../hooks/useTr';\nimport { useAuthTypeLabel } from '../hooks/useLabel';\nimport { useFormatLastUsed } from '../hooks/useFormatLastUsed';\nimport { useFormatDate } from '../hooks/useFormatDate';\nimport { useFeatureFlag } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useIntegrations } from '../providers/IntegrationsProvider';\nimport { INTEGRATION_PERMISSIONS } from '../constants/permissions';\nimport { INTEGRATION_FEATURE_FLAGS } from '../constants/featureFlags';\nimport { joinPath } from '../utils/navigation';\nimport {\n useConnection,\n useTestConnection,\n useRefreshToken,\n useRevokeConnection,\n useDeleteConnection,\n} from '../hooks/useConnections';\nimport { ProviderIcon, canManageSharing } from '@burdenoff/fe-libs/connections';\nimport { ConnectionStatusBadge } from '../components/ConnectionStatusBadge';\nimport { ConnectionShareDialog, PrivateConnectionBadge } from '../components/ConnectionSharing';\nimport { ConfirmDialog } from '../components/ConfirmDialog';\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n Button,\n GlassCard,\n EmphasisPanel,\n ShowMore,\n CTAOverflowMenu,\n PagePurpose,\n NextSteps,\n type NextStep,\n type CTAAction,\n} from '@burdenoff/fe-libs/ui';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../utils/nativeBridge';\n\n/**\n * Connection Detail — Single connection view with info, scopes, and action buttons.\n */\nexport function ConnectionDetail() {\n const { connectionId } = useParams<{ connectionId: string }>();\n const { basePath = '/', navigate } = useIntegrations();\n const tr = useTr();\n const getAuthTypeLabel = useAuthTypeLabel();\n const formatLastUsed = useFormatLastUsed();\n const formatDate = useFormatDate();\n\n const { connection, loading, error, refetch } = useConnection(connectionId ?? '');\n const { testConnection, loading: testing } = useTestConnection();\n const { refreshToken, loading: refreshing } = useRefreshToken();\n const { revokeConnection, loading: revoking } = useRevokeConnection();\n const { deleteConnection, loading: deleting } = useDeleteConnection();\n const canRefreshToken = useFeatureFlag(INTEGRATION_FEATURE_FLAGS.OAUTH_REFRESH, true);\n\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const canUpdate = hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_UPDATE);\n const canDelete = hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_DELETE);\n const canShareRole = hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_SHARE);\n const [shareOpen, setShareOpen] = useState(false);\n\n const [testResult, setTestResult] = useState<{\n success: boolean;\n message: string;\n latencyMs: number;\n } | null>(null);\n const [notification, setNotification] = useState<{\n type: 'success' | 'error';\n message: string;\n } | null>(null);\n const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);\n const [deleteVaultSecret, setDeleteVaultSecret] = useState(false);\n const [revokeDialogOpen, setRevokeDialogOpen] = useState(false);\n\n const showNotification = (type: 'success' | 'error', message: string) => {\n setNotification({ type, message });\n setTimeout(() => setNotification(null), 5000);\n };\n\n if (loading || permissionsLoading) {\n return (\n <div className=\"flex flex-col items-center justify-center py-20\">\n <Loader2 size={48} className=\"animate-spin text-primary\" />\n <span className=\"mt-6 text-sm font-medium text-text-secondary\">\n {tr('integrations.connectionDetail.loading', 'Loading connection details...')}\n </span>\n </div>\n );\n }\n\n if (error || !connection) {\n return (\n <div className=\"p-6 max-w-4xl mx-auto\">\n <div className=\"rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4\">\n <AlertCircle size={24} className=\"text-status-error-text flex-shrink-0\" />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-status-error-text mb-1\">\n {tr('integrations.connectionDetail.error.title', 'Connection not found')}\n </h3>\n <p className=\"text-sm text-status-error-text mb-3\">\n {error?.message ||\n tr(\n 'integrations.connectionDetail.error.description',\n 'The requested connection could not be loaded.'\n )}\n </p>\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n onClick={() => refetch()}\n 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\"\n >\n <RefreshCw size={14} />{' '}\n {tr('integrations.connectionDetail.error.retry', 'Try Again')}\n </button>\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, 'connections'))}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors\"\n >\n <ArrowLeft size={14} />{' '}\n {tr('integrations.connectionDetail.error.back', 'Back to Connections')}\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n const handleTest = async () => {\n const result = await testConnection(connection.id);\n if (result) {\n setTestResult(result);\n showNotification(result.success ? 'success' : 'error', result.message);\n }\n };\n\n const handleRefresh = async () => {\n await refreshToken(connection.id);\n showNotification(\n 'success',\n tr(\n 'integrations.connectionDetail.notifications.refreshSuccess',\n 'Token refreshed successfully'\n )\n );\n refetch();\n };\n\n const handleRevoke = async () => {\n setRevokeDialogOpen(true);\n };\n\n const confirmRevoke = async () => {\n await revokeConnection(connection.id);\n showNotification(\n 'success',\n tr('integrations.connectionDetail.notifications.revokeSuccess', 'Connection revoked')\n );\n setRevokeDialogOpen(false);\n refetch();\n };\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const result = await nativeConfirm({\n title: tr('integrations.connectionDetail.deleteDialog.title', 'Delete Connection'),\n message: tr(\n 'integrations.connectionDetail.deleteDialog.message',\n 'Delete this connection? This cannot be undone.'\n ),\n okButtonTitle: tr('integrations.connectionDetail.deleteDialog.confirm', 'Delete'),\n cancelButtonTitle: tr('integrations.connectionDetail.deleteDialog.cancel', 'Cancel'),\n });\n if (result === null) {\n setDeleteDialogOpen(true);\n return;\n }\n if (result) {\n await confirmDelete();\n }\n };\n\n const confirmDelete = async () => {\n try {\n await deleteConnection(connection.id, deleteVaultSecret);\n showNotification(\n 'success',\n tr('integrations.connectionDetail.notifications.deleteSuccess', 'Connection deleted')\n );\n void nativeNotify('success');\n setDeleteDialogOpen(false);\n setDeleteVaultSecret(false);\n navigate?.(joinPath(basePath, 'connections'));\n } catch (error) {\n showNotification(\n 'error',\n error instanceof Error ? error.message : 'Failed to delete connection'\n );\n void nativeNotify('error');\n }\n };\n\n const actionLoading = testing || refreshing || revoking || deleting;\n // BOFF-9726: the owner, editors and workspace admins choose who can use it.\n const canShare = canShareRole && canManageSharing(connection.myAccess ?? null);\n const usesVaultCredentials = Boolean(connection.vaultId || connection.credentialSecretId);\n\n const nextSteps: NextStep[] = [\n {\n id: 'test',\n label: tr('integrations.connectionDetail.nextSteps.test.label', 'Test the connection'),\n description: tr(\n 'integrations.connectionDetail.nextSteps.test.description',\n 'Run a live check to confirm credentials still work before relying on it.'\n ),\n icon: <Zap size={16} />,\n onClick: () => {\n void handleTest();\n },\n done: connection.status === 'active' && Boolean(testResult?.success),\n },\n ...(canUpdate && connection.provider.authType === 'oauth2' && canRefreshToken\n ? [\n {\n id: 'refresh',\n label: tr(\n 'integrations.connectionDetail.nextSteps.refresh.label',\n 'Refresh the access token'\n ),\n description: tr(\n 'integrations.connectionDetail.nextSteps.refresh.description',\n 'Renew OAuth credentials if requests start failing with an auth error.'\n ),\n icon: <RotateCcw size={16} />,\n onClick: () => {\n void handleRefresh();\n },\n } satisfies NextStep,\n ]\n : []),\n {\n id: 'logs',\n label: tr('integrations.connectionDetail.nextSteps.logs.label', 'Review activity logs'),\n description: tr(\n 'integrations.connectionDetail.nextSteps.logs.description',\n 'See recent requests and errors for this connection to debug issues.'\n ),\n icon: <Activity size={16} />,\n onClick: () => navigate?.(joinPath(basePath, 'logs')),\n },\n ];\n\n return (\n <div className=\"space-y-6 p-6 max-w-5xl mx-auto\">\n {/* Notification */}\n {notification && (\n <div\n className={cn(\n 'fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200',\n notification.type === 'success'\n ? 'bg-status-success-bg-subtle text-status-success-text border-border-default'\n : 'bg-status-error-bg-subtle text-status-error-text border-border-default'\n )}\n >\n {notification.type === 'success' ? <CheckCircle2 size={20} /> : <XCircle size={20} />}\n <span className=\"font-medium\">{notification.message}</span>\n </div>\n )}\n\n <AlertDialog\n open={deleteDialogOpen}\n onOpenChange={(next) => {\n if (!next) {\n setDeleteDialogOpen(false);\n setDeleteVaultSecret(false);\n }\n }}\n >\n <AlertDialogContent className=\"max-w-md\">\n <AlertDialogHeader>\n <AlertDialogTitle>\n {tr('integrations.connectionDetail.deleteDialog.title', 'Delete Connection')}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {tr(\n 'integrations.connectionDetail.deleteDialog.message',\n 'This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it.'\n )}\n </AlertDialogDescription>\n </AlertDialogHeader>\n\n {usesVaultCredentials && (\n <label className=\"flex items-start gap-3 rounded-lg border border-border-subtle/60 bg-bg-surface px-4 py-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={deleteVaultSecret}\n onChange={(event) => setDeleteVaultSecret(event.target.checked)}\n className=\"mt-0.5\"\n aria-label={tr(\n 'integrations.connectionDetail.deleteDialog.removeVaultSecret',\n 'Also remove mapped vault secret'\n )}\n />\n <div>\n <p className=\"text-sm font-medium text-text-primary\">\n {tr(\n 'integrations.connectionDetail.deleteDialog.removeVaultSecret',\n 'Also remove mapped vault secret'\n )}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {tr(\n 'integrations.connectionDetail.deleteDialog.removeVaultSecretHint',\n 'Use this only if no other connections rely on the same secret.'\n )}\n </p>\n </div>\n </label>\n )}\n\n <AlertDialogFooter>\n <AlertDialogCancel\n onClick={() => {\n setDeleteDialogOpen(false);\n setDeleteVaultSecret(false);\n }}\n >\n {tr('integrations.connectionDetail.deleteDialog.cancel', 'Cancel')}\n </AlertDialogCancel>\n <AlertDialogAction\n disabled={deleting}\n onClick={(event) => {\n event.preventDefault();\n confirmDelete();\n }}\n className=\"inline-flex items-center gap-2 bg-status-error-bg text-action-primary-text disabled:opacity-50\"\n >\n {deleting ? <Loader2 size={14} className=\"animate-spin\" /> : <Trash2 size={14} />}\n {tr(\n 'integrations.connectionDetail.deleteDialog.deleteConnection',\n 'Delete connection'\n )}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n <ConfirmDialog\n open={revokeDialogOpen}\n title={tr('integrations.connectionDetail.confirm.revokeTitle', 'Revoke connection')}\n description={tr(\n 'integrations.connectionDetail.confirm.revoke',\n 'Are you sure you want to revoke this connection? This will disconnect the external service.'\n )}\n confirmLabel={tr('integrations.connectionDetail.actions.revoke', 'Revoke')}\n cancelLabel={tr('integrations.connectionDetail.actions.cancel', 'Cancel')}\n loading={revoking}\n destructive\n icon={<Shield size={20} />}\n onConfirm={confirmRevoke}\n onCancel={() => setRevokeDialogOpen(false)}\n />\n\n {canShare && (\n <ConnectionShareDialog\n connection={connection}\n open={shareOpen}\n onClose={() => setShareOpen(false)}\n onShared={() => {\n showNotification(\n 'success',\n tr('integrations.connectionDetail.notifications.shareSuccess', 'Sharing updated')\n );\n void refetch();\n }}\n />\n )}\n\n {/* Header */}\n <div className=\"rounded-xl border border-border-seam bg-accent-wash p-6\">\n <div className=\"flex items-center gap-4\">\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => navigate?.(joinPath(basePath, 'connections'))}\n aria-label={tr('integrations.connectionDetail.actions.backAriaLabel', 'Back')}\n >\n <ArrowLeft size={20} />\n </Button>\n <ProviderIcon provider={connection.provider} size={56} />\n <div className=\"flex-1\">\n <div className=\"flex items-center gap-3\">\n <h1 className=\"text-2xl sm:text-3xl font-bold text-text-primary\">\n {connection.name}\n </h1>\n <ConnectionStatusBadge status={connection.status} size=\"md\" />\n <PrivateConnectionBadge connection={connection} />\n </div>\n <p className=\"text-sm text-text-secondary mt-0.5\">\n {connection.provider.name} · {getAuthTypeLabel(connection.provider.authType)}\n </p>\n </div>\n </div>\n </div>\n\n {/* Page purpose */}\n <PagePurpose icon={<Activity size={16} />}>\n {tr(\n 'integrations.connectionDetail.purpose',\n 'This is a single live link to {provider}. From here you can confirm it is healthy, see which account and scopes were granted, test it on demand, refresh or revoke its access, and review where its credentials are stored.',\n { provider: connection.provider.name }\n )}\n </PagePurpose>\n\n {/* Next steps — guidance for managing this connection */}\n {(canUpdate || canDelete) && (\n <NextSteps storageKey=\"integrations-connection-detail\" steps={nextSteps} />\n )}\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {/* Connection Info — the page's primary emphasis zone */}\n <EmphasisPanel className=\"p-5 space-y-4\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2\">\n <Activity size={18} className=\"text-primary\" />\n {tr('integrations.connectionDetail.sections.info', 'Connection Info')}\n </h2>\n <div className=\"space-y-3\">\n {connection.description && (\n <div className=\"py-2 border-b border-border-seam\">\n <span className=\"text-xs text-text-secondary uppercase tracking-wide\">\n {tr('integrations.connectionDetail.fields.description', 'Description')}\n </span>\n <p className=\"text-sm text-text-primary mt-0.5\">{connection.description}</p>\n </div>\n )}\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.fields.provider', 'Provider')}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">\n {connection.provider.name}\n </span>\n </div>\n {connection.externalAccountEmail && (\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary flex items-center gap-1\">\n <Mail size={14} /> {tr('integrations.connectionDetail.fields.account', 'Account')}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">\n {connection.externalAccountEmail}\n </span>\n </div>\n )}\n {connection.externalAccountName && (\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary flex items-center gap-1\">\n <User size={14} /> {tr('integrations.connectionDetail.fields.name', 'Name')}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">\n {connection.externalAccountName}\n </span>\n </div>\n )}\n {connection.errorMessage && (\n <div className=\"py-2 border-b border-border-seam\">\n <span className=\"text-xs text-status-error-text uppercase tracking-wide\">\n {tr('integrations.connectionDetail.fields.error', 'Error')}\n </span>\n <p className=\"text-sm text-status-error-text mt-0.5 bg-status-error-bg-subtle rounded-lg p-2\">\n {connection.errorMessage}\n </p>\n </div>\n )}\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary flex items-center gap-1\">\n <Clock size={14} />{' '}\n {tr('integrations.connectionDetail.fields.lastUsed', 'Last Used')}\n </span>\n <span className=\"text-sm text-text-primary\">\n {formatLastUsed(connection.lastUsedAt)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.fields.healthCheck', 'Health Check')}\n </span>\n <span className=\"text-sm text-text-primary\">\n {formatDate(connection.lastHealthCheck)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2\">\n <span className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.fields.created', 'Created')}\n </span>\n <span className=\"text-sm text-text-primary\">{formatDate(connection.createdAt)}</span>\n </div>\n </div>\n </EmphasisPanel>\n\n {/* Scopes & Actions */}\n <div className=\"space-y-4\">\n {/* Granted Scopes */}\n <GlassCard className=\"border-border-seam p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Shield size={18} className=\"text-primary\" />\n {tr('integrations.connectionDetail.sections.scopes', 'Granted Scopes')}\n </h2>\n {connection.grantedScopes.length > 0 ? (\n <ShowMore collapsedHeight={88} label=\"Show all scopes\">\n <div className=\"flex flex-wrap gap-2\">\n {connection.grantedScopes.map((scope) => (\n <span\n key={scope}\n className=\"text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary font-mono\"\n >\n {scope}\n </span>\n ))}\n </div>\n </ShowMore>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.scopes.empty', 'No scopes granted.')}\n </p>\n )}\n </GlassCard>\n\n {/* Test Result */}\n {testResult && (\n <div\n className={cn(\n 'rounded-xl border p-5',\n testResult.success\n ? 'border-border-default bg-status-success-bg-subtle'\n : 'border-border-default bg-status-error-bg-subtle'\n )}\n >\n <h2\n className={cn(\n 'font-semibold flex items-center gap-2 mb-2',\n testResult.success ? 'text-status-success-text' : 'text-status-error-text'\n )}\n >\n {testResult.success ? <CheckCircle2 size={18} /> : <XCircle size={18} />}\n {testResult.success\n ? tr('integrations.connectionDetail.testResult.passed', 'Connection Test Passed')\n : tr('integrations.connectionDetail.testResult.failed', 'Connection Test Failed')}\n </h2>\n <p\n className={cn(\n 'text-sm',\n testResult.success ? 'text-status-success-text' : 'text-status-error-text'\n )}\n >\n {testResult.message}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {tr('integrations.connectionDetail.testResult.latency', 'Latency: {latency}ms', {\n latency: testResult.latencyMs,\n })}\n </p>\n </div>\n )}\n\n {usesVaultCredentials && (\n <GlassCard className=\"border-border-seam p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Key size={18} className=\"text-primary\" />\n {tr(\n 'integrations.connectionDetail.sections.credentialStorage',\n 'Credential Storage'\n )}\n </h2>\n <div className=\"space-y-2 text-sm\">\n {connection.vaultId && (\n <div className=\"flex items-center justify-between gap-3\">\n <span className=\"text-text-secondary\">\n {tr('integrations.connectionDetail.fields.vault', 'Vault')}\n </span>\n <span className=\"font-medium text-text-primary break-all\">\n {connection.vaultId}\n </span>\n </div>\n )}\n {connection.credentialSecretName && (\n <div className=\"flex items-center justify-between gap-3\">\n <span className=\"text-text-secondary\">\n {tr('integrations.connectionDetail.fields.secret', 'Secret')}\n </span>\n <span className=\"font-medium text-text-primary break-all\">\n {connection.credentialSecretName}\n </span>\n </div>\n )}\n {connection.credentialSecretId && (\n <div className=\"flex items-center justify-between gap-3\">\n <span className=\"text-text-secondary\">\n {tr('integrations.connectionDetail.fields.secretId', 'Secret ID')}\n </span>\n <span className=\"font-mono text-xs text-text-primary break-all\">\n {connection.credentialSecretId}\n </span>\n </div>\n )}\n </div>\n </GlassCard>\n )}\n\n {/* Actions — hidden entirely when user has no action permissions */}\n {(canUpdate || canDelete || canShare) && (\n <GlassCard className=\"border-border-seam p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Key size={18} className=\"text-primary\" />\n {tr('integrations.connectionDetail.sections.actions', 'Actions')}\n </h2>\n <CTAOverflowMenu\n align=\"start\"\n primary={{\n label: tr('integrations.connectionDetail.actions.test', 'Test Connection'),\n onSelect: () => {\n void handleTest();\n },\n disabled: actionLoading,\n icon: testing ? (\n <Loader2 size={14} className=\"animate-spin\" />\n ) : (\n <Zap size={14} />\n ),\n }}\n actions={[\n ...(canShare\n ? [\n {\n label: tr('integrations.connectionDetail.actions.share', 'Share'),\n onSelect: () => setShareOpen(true),\n disabled: actionLoading,\n icon: <Share2 size={14} />,\n } satisfies CTAAction,\n ]\n : []),\n ...(canUpdate && connection.provider.authType === 'oauth2' && canRefreshToken\n ? [\n {\n label: tr(\n 'integrations.connectionDetail.actions.refreshToken',\n 'Refresh Token'\n ),\n onSelect: () => {\n void handleRefresh();\n },\n disabled: actionLoading,\n icon: <RotateCcw size={14} />,\n } satisfies CTAAction,\n ]\n : []),\n ...(canDelete\n ? [\n {\n label: tr('integrations.connectionDetail.actions.revoke', 'Revoke'),\n onSelect: () => {\n void handleRevoke();\n },\n disabled: actionLoading,\n icon: <Shield size={14} />,\n } satisfies CTAAction,\n {\n label: tr('integrations.connectionDetail.actions.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: actionLoading,\n icon: <Trash2 size={14} />,\n } satisfies CTAAction,\n ]\n : []),\n ]}\n />\n </GlassCard>\n )}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkEA,SAAgBA,IAAmB;CACjC,IAAM,EAAE,oBAAiBC,GAAoC,GACvD,EAAE,cAAW,KAAK,gBAAaC,GAAgB,GAC/CC,IAAKC,EAAM,GACXC,KAAmBC,GAAiB,GACpCC,KAAiBC,GAAkB,GACnCC,IAAaC,GAAc,GAE3B,EAAE,eAAY,aAAS,UAAO,eAAYC,GAAcC,KAAgB,EAAE,GAC1E,EAAE,oBAAgB,SAASC,MAAYC,GAAkB,GACzD,EAAE,kBAAc,SAASC,OAAeC,GAAgB,GACxD,EAAE,sBAAkB,SAASC,MAAaC,GAAoB,GAC9D,EAAE,sBAAkB,SAASC,MAAaC,GAAoB,GAC9DC,IAAkBC,GAAeC,GAA0B,eAAe,EAAI,GAE9E,EAAE,kBAAe,WAAWC,OAAuBC,GAAe,GAClEC,IAAYC,E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AAA;SAC3B,CACF,IACA,CAAC;SACL,GAAInF,KAAasB,EAAW,SAAS,aAAa,YAAY3B,IAC1D,CACE;UACE,OAAOlB,EACL,sDACA,eACF;UACA,gBAAgB;WACd,EAAmB;UACrB;UACA,UAAUkE;UACV,MAAM,kBAACM,GAAD,EAAW,MAAM,GAAK,CAAA;SAC9B,CACF,IACA,CAAC;SACL,GAAI9C,IACA,CACE;UACE,OAAO1B,EAAG,gDAAgD,QAAQ;UAClE,gBAAgB;WACd,GAAkB;UACpB;UACA,UAAUkE;UACV,MAAM,kBAACuB,GAAD,EAAQ,MAAM,GAAK,CAAA;SAC3B,GACA;UACE,OAAOzF,EAAG,gDAAgD,QAAQ;UAClE,gBAAgB;WACd,GAAkB;UACpB;UACA,QAAQ;UACR,UAAUkE;UACV,MAAM,kBAACqB,GAAD,EAAQ,MAAM,GAAK,CAAA;SAC3B,CACF,IACA,CAAC;QACP;OACD,CAAA,CACQ;;KAEV;IACF,CAAA,CAAA;;EACF;;AAET"}
|
|
1
|
+
{"version":3,"file":"ConnectionDetail.js","names":["ConnectionDetail","useParams","useIntegrations","tr","useTr","getAuthTypeLabel","useAuthTypeLabel","formatLastUsed","useFormatLastUsed","formatDate","useFormatDate","useConnection","connectionId","testing","useTestConnection","refreshing","useRefreshToken","revoking","useRevokeConnection","deleting","useDeleteConnection","canRefreshToken","useFeatureFlag","INTEGRATION_FEATURE_FLAGS","permissionsLoading","usePermissions","canUpdate","hasPermission","INTEGRATION_PERMISSIONS","canDelete","canShareRole","shareOpen","setShareOpen","useState","testResult","setTestResult","notification","setNotification","deleteDialogOpen","setDeleteDialogOpen","deleteVaultSecret","setDeleteVaultSecret","revokeDialogOpen","setRevokeDialogOpen","showNotification","loading","Loader2","error","connection","AlertCircle","refetch","RefreshCw","navigate","joinPath","basePath","ArrowLeft","handleTest","result","testConnection","handleRefresh","refreshToken","handleRevoke","confirmRevoke","revokeConnection","handleDelete","nativeConfirm","confirmDelete","deleteConnection","nativeNotify","actionLoading","canShare","canManageSharing","usesVaultCredentials","nextSteps","Zap","RotateCcw","Activity","cn","CheckCircle2","XCircle","AlertDialog","next","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","event","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","Trash2","ConfirmDialog","Shield","ConnectionShareDialog","Button","ProviderIcon","suggestAnchorProps","ConnectionStatusBadge","PrivateConnectionBadge","PagePurpose","NextSteps","EmphasisPanel","Mail","User","Clock","GlassCard","ShowMore","scope","Key","CTAOverflowMenu","Share2"],"sources":["../../../src/integrations/pages/ConnectionDetail.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useParams } from 'react-router';\nimport {\n ArrowLeft,\n Loader2,\n AlertCircle,\n RefreshCw,\n Shield,\n Clock,\n Activity,\n CheckCircle2,\n XCircle,\n Key,\n RotateCcw,\n Zap,\n Mail,\n User,\n Trash2,\n Share2,\n} from 'lucide-react';\nimport { cn } from '../utils/cn';\nimport { usePermissions } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { useTr } from '../hooks/useTr';\nimport { useAuthTypeLabel } from '../hooks/useLabel';\nimport { useFormatLastUsed } from '../hooks/useFormatLastUsed';\nimport { useFormatDate } from '../hooks/useFormatDate';\nimport { useFeatureFlag } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useIntegrations } from '../providers/IntegrationsProvider';\nimport { INTEGRATION_PERMISSIONS } from '../constants/permissions';\nimport { INTEGRATION_FEATURE_FLAGS } from '../constants/featureFlags';\nimport { joinPath } from '../utils/navigation';\nimport {\n useConnection,\n useTestConnection,\n useRefreshToken,\n useRevokeConnection,\n useDeleteConnection,\n} from '../hooks/useConnections';\nimport { ProviderIcon, canManageSharing } from '@burdenoff/fe-libs/connections';\nimport { ConnectionStatusBadge } from '../components/ConnectionStatusBadge';\nimport { ConnectionShareDialog, PrivateConnectionBadge } from '../components/ConnectionSharing';\nimport { ConfirmDialog } from '../components/ConfirmDialog';\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n Button,\n GlassCard,\n EmphasisPanel,\n ShowMore,\n CTAOverflowMenu,\n PagePurpose,\n NextSteps,\n type NextStep,\n type CTAAction,\n} from '@burdenoff/fe-libs/ui';\nimport { suggestAnchorProps } from '@burdenoff/fe-libs/shared/proactive';\nimport { nativeConfirm, nativeImpact, nativeNotify } from '../../utils/nativeBridge';\n\n/**\n * Connection Detail — Single connection view with info, scopes, and action buttons.\n */\nexport function ConnectionDetail() {\n const { connectionId } = useParams<{ connectionId: string }>();\n const { basePath = '/', navigate } = useIntegrations();\n const tr = useTr();\n const getAuthTypeLabel = useAuthTypeLabel();\n const formatLastUsed = useFormatLastUsed();\n const formatDate = useFormatDate();\n\n const { connection, loading, error, refetch } = useConnection(connectionId ?? '');\n const { testConnection, loading: testing } = useTestConnection();\n const { refreshToken, loading: refreshing } = useRefreshToken();\n const { revokeConnection, loading: revoking } = useRevokeConnection();\n const { deleteConnection, loading: deleting } = useDeleteConnection();\n const canRefreshToken = useFeatureFlag(INTEGRATION_FEATURE_FLAGS.OAUTH_REFRESH, true);\n\n const { hasPermission, isLoading: permissionsLoading } = usePermissions();\n const canUpdate = hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_UPDATE);\n const canDelete = hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_DELETE);\n const canShareRole = hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_SHARE);\n const [shareOpen, setShareOpen] = useState(false);\n\n const [testResult, setTestResult] = useState<{\n success: boolean;\n message: string;\n latencyMs: number;\n } | null>(null);\n const [notification, setNotification] = useState<{\n type: 'success' | 'error';\n message: string;\n } | null>(null);\n const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);\n const [deleteVaultSecret, setDeleteVaultSecret] = useState(false);\n const [revokeDialogOpen, setRevokeDialogOpen] = useState(false);\n\n const showNotification = (type: 'success' | 'error', message: string) => {\n setNotification({ type, message });\n setTimeout(() => setNotification(null), 5000);\n };\n\n if (loading || permissionsLoading) {\n return (\n <div className=\"flex flex-col items-center justify-center py-20\">\n <Loader2 size={48} className=\"animate-spin text-primary\" />\n <span className=\"mt-6 text-sm font-medium text-text-secondary\">\n {tr('integrations.connectionDetail.loading', 'Loading connection details...')}\n </span>\n </div>\n );\n }\n\n if (error || !connection) {\n return (\n <div className=\"p-6 max-w-4xl mx-auto\">\n <div className=\"rounded-xl border border-border-default bg-status-error-bg-subtle p-6 flex items-start gap-4\">\n <AlertCircle size={24} className=\"text-status-error-text flex-shrink-0\" />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-status-error-text mb-1\">\n {tr('integrations.connectionDetail.error.title', 'Connection not found')}\n </h3>\n <p className=\"text-sm text-status-error-text mb-3\">\n {error?.message ||\n tr(\n 'integrations.connectionDetail.error.description',\n 'The requested connection could not be loaded.'\n )}\n </p>\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n onClick={() => refetch()}\n 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\"\n >\n <RefreshCw size={14} />{' '}\n {tr('integrations.connectionDetail.error.retry', 'Try Again')}\n </button>\n <button\n type=\"button\"\n onClick={() => navigate?.(joinPath(basePath, 'connections'))}\n className=\"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-lg border border-border-subtle hover:bg-accent transition-colors\"\n >\n <ArrowLeft size={14} />{' '}\n {tr('integrations.connectionDetail.error.back', 'Back to Connections')}\n </button>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n const handleTest = async () => {\n const result = await testConnection(connection.id);\n if (result) {\n setTestResult(result);\n showNotification(result.success ? 'success' : 'error', result.message);\n }\n };\n\n const handleRefresh = async () => {\n await refreshToken(connection.id);\n showNotification(\n 'success',\n tr(\n 'integrations.connectionDetail.notifications.refreshSuccess',\n 'Token refreshed successfully'\n )\n );\n refetch();\n };\n\n const handleRevoke = async () => {\n setRevokeDialogOpen(true);\n };\n\n const confirmRevoke = async () => {\n await revokeConnection(connection.id);\n showNotification(\n 'success',\n tr('integrations.connectionDetail.notifications.revokeSuccess', 'Connection revoked')\n );\n setRevokeDialogOpen(false);\n refetch();\n };\n\n const handleDelete = async () => {\n void nativeImpact('medium');\n const result = await nativeConfirm({\n title: tr('integrations.connectionDetail.deleteDialog.title', 'Delete Connection'),\n message: tr(\n 'integrations.connectionDetail.deleteDialog.message',\n 'Delete this connection? This cannot be undone.'\n ),\n okButtonTitle: tr('integrations.connectionDetail.deleteDialog.confirm', 'Delete'),\n cancelButtonTitle: tr('integrations.connectionDetail.deleteDialog.cancel', 'Cancel'),\n });\n if (result === null) {\n setDeleteDialogOpen(true);\n return;\n }\n if (result) {\n await confirmDelete();\n }\n };\n\n const confirmDelete = async () => {\n try {\n await deleteConnection(connection.id, deleteVaultSecret);\n showNotification(\n 'success',\n tr('integrations.connectionDetail.notifications.deleteSuccess', 'Connection deleted')\n );\n void nativeNotify('success');\n setDeleteDialogOpen(false);\n setDeleteVaultSecret(false);\n navigate?.(joinPath(basePath, 'connections'));\n } catch (error) {\n showNotification(\n 'error',\n error instanceof Error ? error.message : 'Failed to delete connection'\n );\n void nativeNotify('error');\n }\n };\n\n const actionLoading = testing || refreshing || revoking || deleting;\n // BOFF-9726: the owner, editors and workspace admins choose who can use it.\n const canShare = canShareRole && canManageSharing(connection.myAccess ?? null);\n const usesVaultCredentials = Boolean(connection.vaultId || connection.credentialSecretId);\n\n const nextSteps: NextStep[] = [\n {\n id: 'test',\n label: tr('integrations.connectionDetail.nextSteps.test.label', 'Test the connection'),\n description: tr(\n 'integrations.connectionDetail.nextSteps.test.description',\n 'Run a live check to confirm credentials still work before relying on it.'\n ),\n icon: <Zap size={16} />,\n onClick: () => {\n void handleTest();\n },\n done: connection.status === 'active' && Boolean(testResult?.success),\n },\n ...(canUpdate && connection.provider.authType === 'oauth2' && canRefreshToken\n ? [\n {\n id: 'refresh',\n label: tr(\n 'integrations.connectionDetail.nextSteps.refresh.label',\n 'Refresh the access token'\n ),\n description: tr(\n 'integrations.connectionDetail.nextSteps.refresh.description',\n 'Renew OAuth credentials if requests start failing with an auth error.'\n ),\n icon: <RotateCcw size={16} />,\n onClick: () => {\n void handleRefresh();\n },\n } satisfies NextStep,\n ]\n : []),\n {\n id: 'logs',\n label: tr('integrations.connectionDetail.nextSteps.logs.label', 'Review activity logs'),\n description: tr(\n 'integrations.connectionDetail.nextSteps.logs.description',\n 'See recent requests and errors for this connection to debug issues.'\n ),\n icon: <Activity size={16} />,\n onClick: () => navigate?.(joinPath(basePath, 'logs')),\n },\n ];\n\n return (\n <div className=\"space-y-6 p-6 max-w-5xl mx-auto\">\n {/* Notification */}\n {notification && (\n <div\n className={cn(\n 'fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200',\n notification.type === 'success'\n ? 'bg-status-success-bg-subtle text-status-success-text border-border-default'\n : 'bg-status-error-bg-subtle text-status-error-text border-border-default'\n )}\n >\n {notification.type === 'success' ? <CheckCircle2 size={20} /> : <XCircle size={20} />}\n <span className=\"font-medium\">{notification.message}</span>\n </div>\n )}\n\n <AlertDialog\n open={deleteDialogOpen}\n onOpenChange={(next) => {\n if (!next) {\n setDeleteDialogOpen(false);\n setDeleteVaultSecret(false);\n }\n }}\n >\n <AlertDialogContent className=\"max-w-md\">\n <AlertDialogHeader>\n <AlertDialogTitle>\n {tr('integrations.connectionDetail.deleteDialog.title', 'Delete Connection')}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {tr(\n 'integrations.connectionDetail.deleteDialog.message',\n 'This removes the connection record immediately. You can also remove the mapped vault secret if you no longer need it.'\n )}\n </AlertDialogDescription>\n </AlertDialogHeader>\n\n {usesVaultCredentials && (\n <label className=\"flex items-start gap-3 rounded-lg border border-border-subtle/60 bg-bg-surface px-4 py-3 cursor-pointer\">\n <input\n type=\"checkbox\"\n checked={deleteVaultSecret}\n onChange={(event) => setDeleteVaultSecret(event.target.checked)}\n className=\"mt-0.5\"\n aria-label={tr(\n 'integrations.connectionDetail.deleteDialog.removeVaultSecret',\n 'Also remove mapped vault secret'\n )}\n />\n <div>\n <p className=\"text-sm font-medium text-text-primary\">\n {tr(\n 'integrations.connectionDetail.deleteDialog.removeVaultSecret',\n 'Also remove mapped vault secret'\n )}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {tr(\n 'integrations.connectionDetail.deleteDialog.removeVaultSecretHint',\n 'Use this only if no other connections rely on the same secret.'\n )}\n </p>\n </div>\n </label>\n )}\n\n <AlertDialogFooter>\n <AlertDialogCancel\n onClick={() => {\n setDeleteDialogOpen(false);\n setDeleteVaultSecret(false);\n }}\n >\n {tr('integrations.connectionDetail.deleteDialog.cancel', 'Cancel')}\n </AlertDialogCancel>\n <AlertDialogAction\n disabled={deleting}\n onClick={(event) => {\n event.preventDefault();\n confirmDelete();\n }}\n className=\"inline-flex items-center gap-2 bg-status-error-bg text-action-primary-text disabled:opacity-50\"\n >\n {deleting ? <Loader2 size={14} className=\"animate-spin\" /> : <Trash2 size={14} />}\n {tr(\n 'integrations.connectionDetail.deleteDialog.deleteConnection',\n 'Delete connection'\n )}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n <ConfirmDialog\n open={revokeDialogOpen}\n title={tr('integrations.connectionDetail.confirm.revokeTitle', 'Revoke connection')}\n description={tr(\n 'integrations.connectionDetail.confirm.revoke',\n 'Are you sure you want to revoke this connection? This will disconnect the external service.'\n )}\n confirmLabel={tr('integrations.connectionDetail.actions.revoke', 'Revoke')}\n cancelLabel={tr('integrations.connectionDetail.actions.cancel', 'Cancel')}\n loading={revoking}\n destructive\n icon={<Shield size={20} />}\n onConfirm={confirmRevoke}\n onCancel={() => setRevokeDialogOpen(false)}\n />\n\n {canShare && (\n <ConnectionShareDialog\n connection={connection}\n open={shareOpen}\n onClose={() => setShareOpen(false)}\n onShared={() => {\n showNotification(\n 'success',\n tr('integrations.connectionDetail.notifications.shareSuccess', 'Sharing updated')\n );\n void refetch();\n }}\n />\n )}\n\n {/* Header */}\n <div className=\"rounded-xl border border-border-seam bg-accent-wash p-6\">\n <div className=\"flex items-center gap-4\">\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => navigate?.(joinPath(basePath, 'connections'))}\n aria-label={tr('integrations.connectionDetail.actions.backAriaLabel', 'Back')}\n >\n <ArrowLeft size={20} />\n </Button>\n <ProviderIcon provider={connection.provider} size={56} />\n <div className=\"flex-1\">\n {/* A proactive suggestion about this connection pins here (BOFF-13166). */}\n <div\n className=\"flex items-center gap-3\"\n {...suggestAnchorProps({ entityType: 'connection', entityId: connection.id })}\n >\n <h1 className=\"text-2xl sm:text-3xl font-bold text-text-primary\">\n {connection.name}\n </h1>\n <ConnectionStatusBadge status={connection.status} size=\"md\" />\n <PrivateConnectionBadge connection={connection} />\n </div>\n <p className=\"text-sm text-text-secondary mt-0.5\">\n {connection.provider.name} · {getAuthTypeLabel(connection.provider.authType)}\n </p>\n </div>\n </div>\n </div>\n\n {/* Page purpose */}\n <PagePurpose icon={<Activity size={16} />}>\n {tr(\n 'integrations.connectionDetail.purpose',\n 'This is a single live link to {provider}. From here you can confirm it is healthy, see which account and scopes were granted, test it on demand, refresh or revoke its access, and review where its credentials are stored.',\n { provider: connection.provider.name }\n )}\n </PagePurpose>\n\n {/* Next steps — guidance for managing this connection */}\n {(canUpdate || canDelete) && (\n <NextSteps storageKey=\"integrations-connection-detail\" steps={nextSteps} />\n )}\n\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {/* Connection Info — the page's primary emphasis zone */}\n <EmphasisPanel className=\"p-5 space-y-4\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2\">\n <Activity size={18} className=\"text-primary\" />\n {tr('integrations.connectionDetail.sections.info', 'Connection Info')}\n </h2>\n <div className=\"space-y-3\">\n {connection.description && (\n <div className=\"py-2 border-b border-border-seam\">\n <span className=\"text-xs text-text-secondary uppercase tracking-wide\">\n {tr('integrations.connectionDetail.fields.description', 'Description')}\n </span>\n <p className=\"text-sm text-text-primary mt-0.5\">{connection.description}</p>\n </div>\n )}\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.fields.provider', 'Provider')}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">\n {connection.provider.name}\n </span>\n </div>\n {connection.externalAccountEmail && (\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary flex items-center gap-1\">\n <Mail size={14} /> {tr('integrations.connectionDetail.fields.account', 'Account')}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">\n {connection.externalAccountEmail}\n </span>\n </div>\n )}\n {connection.externalAccountName && (\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary flex items-center gap-1\">\n <User size={14} /> {tr('integrations.connectionDetail.fields.name', 'Name')}\n </span>\n <span className=\"text-sm font-medium text-text-primary\">\n {connection.externalAccountName}\n </span>\n </div>\n )}\n {connection.errorMessage && (\n <div className=\"py-2 border-b border-border-seam\">\n <span className=\"text-xs text-status-error-text uppercase tracking-wide\">\n {tr('integrations.connectionDetail.fields.error', 'Error')}\n </span>\n <p className=\"text-sm text-status-error-text mt-0.5 bg-status-error-bg-subtle rounded-lg p-2\">\n {connection.errorMessage}\n </p>\n </div>\n )}\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary flex items-center gap-1\">\n <Clock size={14} />{' '}\n {tr('integrations.connectionDetail.fields.lastUsed', 'Last Used')}\n </span>\n <span className=\"text-sm text-text-primary\">\n {formatLastUsed(connection.lastUsedAt)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2 border-b border-border-seam\">\n <span className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.fields.healthCheck', 'Health Check')}\n </span>\n <span className=\"text-sm text-text-primary\">\n {formatDate(connection.lastHealthCheck)}\n </span>\n </div>\n <div className=\"flex items-center justify-between py-2\">\n <span className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.fields.created', 'Created')}\n </span>\n <span className=\"text-sm text-text-primary\">{formatDate(connection.createdAt)}</span>\n </div>\n </div>\n </EmphasisPanel>\n\n {/* Scopes & Actions */}\n <div className=\"space-y-4\">\n {/* Granted Scopes */}\n <GlassCard className=\"border-border-seam p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Shield size={18} className=\"text-primary\" />\n {tr('integrations.connectionDetail.sections.scopes', 'Granted Scopes')}\n </h2>\n {connection.grantedScopes.length > 0 ? (\n <ShowMore collapsedHeight={88} label=\"Show all scopes\">\n <div className=\"flex flex-wrap gap-2\">\n {connection.grantedScopes.map((scope) => (\n <span\n key={scope}\n className=\"text-xs px-2.5 py-1 rounded-full bg-bg-sunken text-text-secondary font-mono\"\n >\n {scope}\n </span>\n ))}\n </div>\n </ShowMore>\n ) : (\n <p className=\"text-sm text-text-secondary\">\n {tr('integrations.connectionDetail.scopes.empty', 'No scopes granted.')}\n </p>\n )}\n </GlassCard>\n\n {/* Test Result */}\n {testResult && (\n <div\n className={cn(\n 'rounded-xl border p-5',\n testResult.success\n ? 'border-border-default bg-status-success-bg-subtle'\n : 'border-border-default bg-status-error-bg-subtle'\n )}\n >\n <h2\n className={cn(\n 'font-semibold flex items-center gap-2 mb-2',\n testResult.success ? 'text-status-success-text' : 'text-status-error-text'\n )}\n >\n {testResult.success ? <CheckCircle2 size={18} /> : <XCircle size={18} />}\n {testResult.success\n ? tr('integrations.connectionDetail.testResult.passed', 'Connection Test Passed')\n : tr('integrations.connectionDetail.testResult.failed', 'Connection Test Failed')}\n </h2>\n <p\n className={cn(\n 'text-sm',\n testResult.success ? 'text-status-success-text' : 'text-status-error-text'\n )}\n >\n {testResult.message}\n </p>\n <p className=\"text-xs text-text-secondary mt-1\">\n {tr('integrations.connectionDetail.testResult.latency', 'Latency: {latency}ms', {\n latency: testResult.latencyMs,\n })}\n </p>\n </div>\n )}\n\n {usesVaultCredentials && (\n <GlassCard className=\"border-border-seam p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Key size={18} className=\"text-primary\" />\n {tr(\n 'integrations.connectionDetail.sections.credentialStorage',\n 'Credential Storage'\n )}\n </h2>\n <div className=\"space-y-2 text-sm\">\n {connection.vaultId && (\n <div className=\"flex items-center justify-between gap-3\">\n <span className=\"text-text-secondary\">\n {tr('integrations.connectionDetail.fields.vault', 'Vault')}\n </span>\n <span className=\"font-medium text-text-primary break-all\">\n {connection.vaultId}\n </span>\n </div>\n )}\n {connection.credentialSecretName && (\n <div className=\"flex items-center justify-between gap-3\">\n <span className=\"text-text-secondary\">\n {tr('integrations.connectionDetail.fields.secret', 'Secret')}\n </span>\n <span className=\"font-medium text-text-primary break-all\">\n {connection.credentialSecretName}\n </span>\n </div>\n )}\n {connection.credentialSecretId && (\n <div className=\"flex items-center justify-between gap-3\">\n <span className=\"text-text-secondary\">\n {tr('integrations.connectionDetail.fields.secretId', 'Secret ID')}\n </span>\n <span className=\"font-mono text-xs text-text-primary break-all\">\n {connection.credentialSecretId}\n </span>\n </div>\n )}\n </div>\n </GlassCard>\n )}\n\n {/* Actions — hidden entirely when user has no action permissions */}\n {(canUpdate || canDelete || canShare) && (\n <GlassCard className=\"border-border-seam p-5\">\n <h2 className=\"font-semibold text-text-primary flex items-center gap-2 mb-3\">\n <Key size={18} className=\"text-primary\" />\n {tr('integrations.connectionDetail.sections.actions', 'Actions')}\n </h2>\n <CTAOverflowMenu\n align=\"start\"\n primary={{\n label: tr('integrations.connectionDetail.actions.test', 'Test Connection'),\n onSelect: () => {\n void handleTest();\n },\n disabled: actionLoading,\n icon: testing ? (\n <Loader2 size={14} className=\"animate-spin\" />\n ) : (\n <Zap size={14} />\n ),\n }}\n actions={[\n ...(canShare\n ? [\n {\n label: tr('integrations.connectionDetail.actions.share', 'Share'),\n onSelect: () => setShareOpen(true),\n disabled: actionLoading,\n icon: <Share2 size={14} />,\n } satisfies CTAAction,\n ]\n : []),\n ...(canUpdate && connection.provider.authType === 'oauth2' && canRefreshToken\n ? [\n {\n label: tr(\n 'integrations.connectionDetail.actions.refreshToken',\n 'Refresh Token'\n ),\n onSelect: () => {\n void handleRefresh();\n },\n disabled: actionLoading,\n icon: <RotateCcw size={14} />,\n } satisfies CTAAction,\n ]\n : []),\n ...(canDelete\n ? [\n {\n label: tr('integrations.connectionDetail.actions.revoke', 'Revoke'),\n onSelect: () => {\n void handleRevoke();\n },\n disabled: actionLoading,\n icon: <Shield size={14} />,\n } satisfies CTAAction,\n {\n label: tr('integrations.connectionDetail.actions.delete', 'Delete'),\n onSelect: () => {\n void handleDelete();\n },\n intent: 'destructive',\n disabled: actionLoading,\n icon: <Trash2 size={14} />,\n } satisfies CTAAction,\n ]\n : []),\n ]}\n />\n </GlassCard>\n )}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmEA,SAAgBA,IAAmB;CACjC,IAAM,EAAE,oBAAiBC,GAAoC,GACvD,EAAE,cAAW,KAAK,gBAAaC,GAAgB,GAC/CC,IAAKC,EAAM,GACXC,KAAmBC,GAAiB,GACpCC,KAAiBC,GAAkB,GACnCC,IAAaC,GAAc,GAE3B,EAAE,eAAY,aAAS,UAAO,eAAYC,GAAcC,KAAgB,EAAE,GAC1E,EAAE,oBAAgB,SAASC,MAAYC,GAAkB,GACzD,EAAE,kBAAc,SAASC,OAAeC,GAAgB,GACxD,EAAE,sBAAkB,SAASC,MAAaC,GAAoB,GAC9D,EAAE,sBAAkB,SAASC,MAAaC,GAAoB,GAC9DC,IAAkBC,GAAeC,GAA0B,eAAe,EAAI,GAE9E,EAAE,kBAAe,WAAWC,OAAuBC,GAAe,GAClEC,IAAYC,EAAcC,EAAwB,iBAAiB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qC;UACV,MAAM,kBAACyC,IAAD,EAAQ,MAAM,GAAK,CAAA;SAC3B,CACF,IACA,CAAC;SACL,GAAIpF,KAAasB,EAAW,SAAS,aAAa,YAAY3B,IAC1D,CACE;UACE,OAAOlB,EACL,sDACA,eACF;UACA,gBAAgB;WACd,EAAmB;UACrB;UACA,UAAUkE;UACV,MAAM,kBAACM,GAAD,EAAW,MAAM,GAAK,CAAA;SAC9B,CACF,IACA,CAAC;SACL,GAAI9C,IACA,CACE;UACE,OAAO1B,EAAG,gDAAgD,QAAQ;UAClE,gBAAgB;WACd,GAAkB;UACpB;UACA,UAAUkE;UACV,MAAM,kBAACuB,GAAD,EAAQ,MAAM,GAAK,CAAA;SAC3B,GACA;UACE,OAAOzF,EAAG,gDAAgD,QAAQ;UAClE,gBAAgB;WACd,GAAkB;UACpB;UACA,QAAQ;UACR,UAAUkE;UACV,MAAM,kBAACqB,GAAD,EAAQ,MAAM,GAAK,CAAA;SAC3B,CACF,IACA,CAAC;QACP;OACD,CAAA,CACQ;;KAEV;IACF,CAAA,CAAA;;EACF;;AAET"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-integrations",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1113.1",
|
|
4
4
|
"description": "Burdenoff Integrations Microfrontend - Plugin-based provider and connection management interface",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@apollo/client": "^4.3.7",
|
|
49
|
-
"@burdenoff/fe-libs": "2026.
|
|
49
|
+
"@burdenoff/fe-libs": "2026.1113.2",
|
|
50
50
|
"@iconify/react": "^5.2.1",
|
|
51
51
|
"@tanstack/react-query": "^5.106.1",
|
|
52
52
|
"clsx": "^2.1.1",
|