@burdenoff/microfe-integrations 2026.1023.1 → 2026.1102.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/generated/global-types.d.ts +5717 -1663
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-operations.d.ts +458 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +219 -84
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +77665 -31967
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +16 -0
- package/dist/generated/wspace-types.js.map +1 -0
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +1 -1
- package/dist/integrations/IntegrationsAdminRoutes.js +13 -9
- package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.js +16 -12
- package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.js +11 -9
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.d.ts.map +1 -1
- package/dist/integrations/components/ConnectionCard.js +71 -48
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ConnectionSharing.d.ts +18 -0
- package/dist/integrations/components/ConnectionSharing.d.ts.map +1 -0
- package/dist/integrations/components/ConnectionSharing.js +33 -0
- package/dist/integrations/components/ConnectionSharing.js.map +1 -0
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts +16 -0
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +1 -0
- package/dist/integrations/components/ConnectorSubmissionCard.js +192 -0
- package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -0
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts +22 -0
- package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +1 -0
- package/dist/integrations/components/ConnectorSubmissionPager.js +36 -0
- package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -0
- package/dist/integrations/constants/permissions.d.ts +1 -0
- package/dist/integrations/constants/permissions.d.ts.map +1 -1
- package/dist/integrations/constants/permissions.js +1 -0
- package/dist/integrations/constants/permissions.js.map +1 -1
- package/dist/integrations/hooks/useConnections.d.ts +3 -0
- package/dist/integrations/hooks/useConnections.d.ts.map +1 -1
- package/dist/integrations/hooks/useConnections.js.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts +47 -0
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +1 -0
- package/dist/integrations/hooks/useConnectorSubmissions.js +80 -0
- package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -0
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.js +283 -261
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -1
- package/dist/integrations/pages/ConnectionsList.js +197 -161
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +7 -0
- package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectorReviewQueuePage.js +201 -0
- package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -0
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +6 -0
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectorSubmissionsPage.js +576 -0
- package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -0
- package/dist/integrations/pages/ProviderCatalog.d.ts.map +1 -1
- package/dist/integrations/pages/ProviderCatalog.js +157 -145
- package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
- package/dist/integrations/pages/ProviderDetail.d.ts.map +1 -1
- package/dist/integrations/pages/ProviderDetail.js +15 -8
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +1 -1
- package/dist/integrations/providers/IntegrationsProvider.js +19 -18
- package/dist/integrations/providers/IntegrationsProvider.js.map +1 -1
- package/dist/integrations/types/index.d.ts +18 -0
- package/dist/integrations/types/index.d.ts.map +1 -1
- package/dist/integrations/utils/mappers.d.ts +3 -1
- package/dist/integrations/utils/mappers.d.ts.map +1 -1
- package/dist/integrations/utils/mappers.js +16 -3
- package/dist/integrations/utils/mappers.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
|
|
2
|
+
import { useTr as t } from "../hooks/useTr.js";
|
|
3
|
+
import { joinPath as n } from "../utils/navigation.js";
|
|
4
|
+
import { AuthType as r, ConnectorApiKeyPlacement as i, ConnectorSubmissionStatus as a, ProviderCategory as o } from "../../generated/wspace-types.js";
|
|
5
|
+
import { ConfirmDialog as s } from "../components/ConfirmDialog.js";
|
|
6
|
+
import { useMyConnectorSubmissions as c, useSubmitConnector as l, useWithdrawConnectorSubmission as u } from "../hooks/useConnectorSubmissions.js";
|
|
7
|
+
import { ConnectorSubmissionCard as d } from "../components/ConnectorSubmissionCard.js";
|
|
8
|
+
import { ConnectorSubmissionPager as f } from "../components/ConnectorSubmissionPager.js";
|
|
9
|
+
import { useId as p, useState as m } from "react";
|
|
10
|
+
import { ArrowLeft as h, Loader2 as g, Plus as _, Send as v, Upload as y, X as b } from "lucide-react";
|
|
11
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
12
|
+
import { Button as C, EmphasisPanel as w, IllustratedEmptyState as T, PagePurpose as E } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
//#region src/integrations/pages/ConnectorSubmissionsPage.tsx
|
|
14
|
+
var D = [
|
|
15
|
+
o.Productivity,
|
|
16
|
+
o.Communication,
|
|
17
|
+
o.Crm,
|
|
18
|
+
o.Email,
|
|
19
|
+
o.Calendar,
|
|
20
|
+
o.CloudStorage,
|
|
21
|
+
o.Development,
|
|
22
|
+
o.Social,
|
|
23
|
+
o.Payment,
|
|
24
|
+
o.Analytics,
|
|
25
|
+
o.Accounting,
|
|
26
|
+
o.Custom
|
|
27
|
+
], O = [
|
|
28
|
+
[
|
|
29
|
+
r.ApiKey,
|
|
30
|
+
"integrations.connectorSubmissions.auth.apiKey",
|
|
31
|
+
"API key"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
r.BearerToken,
|
|
35
|
+
"integrations.connectorSubmissions.auth.bearer",
|
|
36
|
+
"Bearer token"
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
r.BasicAuth,
|
|
40
|
+
"integrations.connectorSubmissions.auth.basic",
|
|
41
|
+
"Basic auth"
|
|
42
|
+
]
|
|
43
|
+
], k = "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5 text-sm text-text-primary", A = `${k} scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary`, j = {
|
|
44
|
+
key: "",
|
|
45
|
+
name: "",
|
|
46
|
+
description: "",
|
|
47
|
+
category: o.Productivity,
|
|
48
|
+
authType: r.ApiKey,
|
|
49
|
+
apiKeyPlacement: i.Header,
|
|
50
|
+
apiKeyName: "",
|
|
51
|
+
apiKeyPrefix: "",
|
|
52
|
+
website: "",
|
|
53
|
+
docsUrl: "",
|
|
54
|
+
baseUrl: "",
|
|
55
|
+
apiVersion: "",
|
|
56
|
+
icon: "",
|
|
57
|
+
color: "",
|
|
58
|
+
supportedFeatures: "",
|
|
59
|
+
publisherName: "",
|
|
60
|
+
supportEmail: "",
|
|
61
|
+
privacyPolicyUrl: "",
|
|
62
|
+
termsUrl: "",
|
|
63
|
+
repositoryUrl: "",
|
|
64
|
+
version: "1.0.0",
|
|
65
|
+
submitterNotes: "",
|
|
66
|
+
acceptedPolicy: !1
|
|
67
|
+
};
|
|
68
|
+
function M(e) {
|
|
69
|
+
let t = e.trim();
|
|
70
|
+
return t.length > 0 ? t : null;
|
|
71
|
+
}
|
|
72
|
+
function N(e) {
|
|
73
|
+
let t = e.authType === r.ApiKey;
|
|
74
|
+
return {
|
|
75
|
+
key: e.key.trim().toLowerCase(),
|
|
76
|
+
name: e.name.trim(),
|
|
77
|
+
description: e.description.trim(),
|
|
78
|
+
category: e.category,
|
|
79
|
+
authType: e.authType,
|
|
80
|
+
apiKeyPlacement: t ? e.apiKeyPlacement : null,
|
|
81
|
+
apiKeyName: t ? M(e.apiKeyName) : null,
|
|
82
|
+
apiKeyPrefix: t && e.apiKeyPlacement === i.Header ? M(e.apiKeyPrefix) : null,
|
|
83
|
+
website: e.website.trim(),
|
|
84
|
+
docsUrl: e.docsUrl.trim(),
|
|
85
|
+
baseUrl: e.baseUrl.trim(),
|
|
86
|
+
apiVersion: M(e.apiVersion),
|
|
87
|
+
icon: M(e.icon),
|
|
88
|
+
color: M(e.color),
|
|
89
|
+
supportedFeatures: e.supportedFeatures.split(",").map((e) => e.trim()).filter(Boolean),
|
|
90
|
+
publisherName: e.publisherName.trim(),
|
|
91
|
+
supportEmail: e.supportEmail.trim(),
|
|
92
|
+
privacyPolicyUrl: e.privacyPolicyUrl.trim(),
|
|
93
|
+
termsUrl: M(e.termsUrl),
|
|
94
|
+
repositoryUrl: M(e.repositoryUrl),
|
|
95
|
+
version: M(e.version),
|
|
96
|
+
submitterNotes: M(e.submitterNotes)
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function P({ id: e, label: t, hint: n, required: r = !1, children: i }) {
|
|
100
|
+
return /* @__PURE__ */ S("div", { children: [
|
|
101
|
+
/* @__PURE__ */ S("label", {
|
|
102
|
+
htmlFor: e,
|
|
103
|
+
className: "block text-sm font-medium mb-1.5 text-text-primary",
|
|
104
|
+
children: [t, r && /* @__PURE__ */ S("span", {
|
|
105
|
+
"aria-hidden": "true",
|
|
106
|
+
className: "text-status-error-text",
|
|
107
|
+
children: [" ", "*"]
|
|
108
|
+
})]
|
|
109
|
+
}),
|
|
110
|
+
i,
|
|
111
|
+
n && /* @__PURE__ */ x("p", {
|
|
112
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
113
|
+
children: n
|
|
114
|
+
})
|
|
115
|
+
] });
|
|
116
|
+
}
|
|
117
|
+
function F({ onDone: e }) {
|
|
118
|
+
let n = t(), a = p(), o = (e) => `${a}-${e}`, [s, c] = m(j), [u, d] = m(""), { submitConnector: f, loading: h } = l(), _ = (e, t) => c((n) => ({
|
|
119
|
+
...n,
|
|
120
|
+
[e]: t
|
|
121
|
+
})), y = (e) => ({
|
|
122
|
+
id: o(e),
|
|
123
|
+
value: s[e],
|
|
124
|
+
onChange: (t) => _(e, t.target.value),
|
|
125
|
+
className: k
|
|
126
|
+
});
|
|
127
|
+
return /* @__PURE__ */ S("form", {
|
|
128
|
+
onSubmit: async (t) => {
|
|
129
|
+
t.preventDefault(), d("");
|
|
130
|
+
try {
|
|
131
|
+
await f(N(s)), c(j), e();
|
|
132
|
+
} catch (e) {
|
|
133
|
+
d(e instanceof Error ? e.message : n("integrations.connectorSubmissions.errors.submitFailed", "Could not submit the connector"));
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
className: "space-y-4",
|
|
137
|
+
"aria-label": n("integrations.connectorSubmissions.form.title", "Submit a connector"),
|
|
138
|
+
children: [
|
|
139
|
+
u && /* @__PURE__ */ x("div", {
|
|
140
|
+
role: "alert",
|
|
141
|
+
className: "rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text",
|
|
142
|
+
children: u
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ S("div", {
|
|
145
|
+
className: "grid grid-cols-1 lg:grid-cols-2 gap-4",
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ S(w, {
|
|
148
|
+
className: "p-5 space-y-4",
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ x("h2", {
|
|
151
|
+
className: "font-semibold text-text-primary",
|
|
152
|
+
children: n("integrations.connectorSubmissions.form.connector", "Connector")
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ x(P, {
|
|
155
|
+
id: o("name"),
|
|
156
|
+
label: n("integrations.connectorSubmissions.fields.name", "Name"),
|
|
157
|
+
required: !0,
|
|
158
|
+
children: /* @__PURE__ */ x("input", {
|
|
159
|
+
...y("name"),
|
|
160
|
+
required: !0,
|
|
161
|
+
maxLength: 80
|
|
162
|
+
})
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ x(P, {
|
|
165
|
+
id: o("key"),
|
|
166
|
+
label: n("integrations.connectorSubmissions.fields.key", "Catalog key"),
|
|
167
|
+
hint: n("integrations.connectorSubmissions.fields.keyHint", "Lowercase letters, digits and hyphens, e.g. acme-crm. It cannot be changed later."),
|
|
168
|
+
required: !0,
|
|
169
|
+
children: /* @__PURE__ */ x("input", {
|
|
170
|
+
...y("key"),
|
|
171
|
+
required: !0,
|
|
172
|
+
maxLength: 50,
|
|
173
|
+
placeholder: "acme-crm"
|
|
174
|
+
})
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ x(P, {
|
|
177
|
+
id: o("description"),
|
|
178
|
+
label: n("integrations.connectorSubmissions.fields.description", "Description"),
|
|
179
|
+
hint: n("integrations.connectorSubmissions.fields.descriptionHint", "What a workspace can do with this connector (10 to 1000 characters)."),
|
|
180
|
+
required: !0,
|
|
181
|
+
children: /* @__PURE__ */ x("textarea", {
|
|
182
|
+
...y("description"),
|
|
183
|
+
required: !0,
|
|
184
|
+
rows: 3,
|
|
185
|
+
maxLength: 1e3
|
|
186
|
+
})
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ S("div", {
|
|
189
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
190
|
+
children: [/* @__PURE__ */ x(P, {
|
|
191
|
+
id: o("category"),
|
|
192
|
+
label: n("integrations.connectorSubmissions.fields.category", "Category"),
|
|
193
|
+
required: !0,
|
|
194
|
+
children: /* @__PURE__ */ x("select", {
|
|
195
|
+
id: o("category"),
|
|
196
|
+
value: s.category,
|
|
197
|
+
onChange: (e) => _("category", e.target.value),
|
|
198
|
+
className: A,
|
|
199
|
+
children: D.map((e) => /* @__PURE__ */ x("option", {
|
|
200
|
+
value: e,
|
|
201
|
+
children: n(`integrations.category.${e}`, e)
|
|
202
|
+
}, e))
|
|
203
|
+
})
|
|
204
|
+
}), /* @__PURE__ */ x(P, {
|
|
205
|
+
id: o("version"),
|
|
206
|
+
label: n("integrations.connectorSubmissions.fields.version", "Version"),
|
|
207
|
+
children: /* @__PURE__ */ x("input", {
|
|
208
|
+
...y("version"),
|
|
209
|
+
placeholder: "1.0.0"
|
|
210
|
+
})
|
|
211
|
+
})]
|
|
212
|
+
}),
|
|
213
|
+
/* @__PURE__ */ S("div", {
|
|
214
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
215
|
+
children: [/* @__PURE__ */ x(P, {
|
|
216
|
+
id: o("icon"),
|
|
217
|
+
label: n("integrations.connectorSubmissions.fields.icon", "Icon"),
|
|
218
|
+
hint: n("integrations.connectorSubmissions.fields.iconHint", "An https image URL or iconify:set:name"),
|
|
219
|
+
children: /* @__PURE__ */ x("input", { ...y("icon") })
|
|
220
|
+
}), /* @__PURE__ */ x(P, {
|
|
221
|
+
id: o("color"),
|
|
222
|
+
label: n("integrations.connectorSubmissions.fields.color", "Brand color"),
|
|
223
|
+
hint: "#RRGGBB",
|
|
224
|
+
children: /* @__PURE__ */ x("input", {
|
|
225
|
+
...y("color"),
|
|
226
|
+
maxLength: 7
|
|
227
|
+
})
|
|
228
|
+
})]
|
|
229
|
+
}),
|
|
230
|
+
/* @__PURE__ */ x(P, {
|
|
231
|
+
id: o("supportedFeatures"),
|
|
232
|
+
label: n("integrations.connectorSubmissions.fields.supportedFeatures", "Supported features"),
|
|
233
|
+
hint: n("integrations.connectorSubmissions.fields.supportedFeaturesHint", "Comma separated, e.g. contacts, deals"),
|
|
234
|
+
children: /* @__PURE__ */ x("input", { ...y("supportedFeatures") })
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ S(w, {
|
|
239
|
+
className: "p-5 space-y-4",
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ x("h2", {
|
|
242
|
+
className: "font-semibold text-text-primary",
|
|
243
|
+
children: n("integrations.connectorSubmissions.form.api", "API and authentication")
|
|
244
|
+
}),
|
|
245
|
+
/* @__PURE__ */ x(P, {
|
|
246
|
+
id: o("baseUrl"),
|
|
247
|
+
label: n("integrations.connectorSubmissions.fields.baseUrl", "API base URL"),
|
|
248
|
+
hint: n("integrations.connectorSubmissions.fields.baseUrlHint", "https only, on a public host name"),
|
|
249
|
+
required: !0,
|
|
250
|
+
children: /* @__PURE__ */ x("input", {
|
|
251
|
+
...y("baseUrl"),
|
|
252
|
+
required: !0,
|
|
253
|
+
type: "url",
|
|
254
|
+
placeholder: "https://api.example.com/v1"
|
|
255
|
+
})
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ S("div", {
|
|
258
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
259
|
+
children: [/* @__PURE__ */ x(P, {
|
|
260
|
+
id: o("authType"),
|
|
261
|
+
label: n("integrations.connectorSubmissions.fields.authType", "Authentication"),
|
|
262
|
+
required: !0,
|
|
263
|
+
children: /* @__PURE__ */ x("select", {
|
|
264
|
+
id: o("authType"),
|
|
265
|
+
value: s.authType,
|
|
266
|
+
onChange: (e) => _("authType", e.target.value),
|
|
267
|
+
className: A,
|
|
268
|
+
children: O.map(([e, t, r]) => /* @__PURE__ */ x("option", {
|
|
269
|
+
value: e,
|
|
270
|
+
children: n(t, r)
|
|
271
|
+
}, e))
|
|
272
|
+
})
|
|
273
|
+
}), /* @__PURE__ */ x(P, {
|
|
274
|
+
id: o("apiVersion"),
|
|
275
|
+
label: n("integrations.connectorSubmissions.fields.apiVersion", "API version"),
|
|
276
|
+
children: /* @__PURE__ */ x("input", {
|
|
277
|
+
...y("apiVersion"),
|
|
278
|
+
maxLength: 32
|
|
279
|
+
})
|
|
280
|
+
})]
|
|
281
|
+
}),
|
|
282
|
+
s.authType === r.ApiKey && /* @__PURE__ */ S("div", {
|
|
283
|
+
className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
|
|
284
|
+
children: [
|
|
285
|
+
/* @__PURE__ */ x(P, {
|
|
286
|
+
id: o("apiKeyPlacement"),
|
|
287
|
+
label: n("integrations.connectorSubmissions.fields.apiKeyPlacement", "Sent in"),
|
|
288
|
+
required: !0,
|
|
289
|
+
children: /* @__PURE__ */ S("select", {
|
|
290
|
+
id: o("apiKeyPlacement"),
|
|
291
|
+
value: s.apiKeyPlacement,
|
|
292
|
+
onChange: (e) => _("apiKeyPlacement", e.target.value),
|
|
293
|
+
className: A,
|
|
294
|
+
children: [/* @__PURE__ */ x("option", {
|
|
295
|
+
value: i.Header,
|
|
296
|
+
children: n("integrations.connectorSubmissions.placement.header", "Header")
|
|
297
|
+
}), /* @__PURE__ */ x("option", {
|
|
298
|
+
value: i.Query,
|
|
299
|
+
children: n("integrations.connectorSubmissions.placement.query", "Query parameter")
|
|
300
|
+
})]
|
|
301
|
+
})
|
|
302
|
+
}),
|
|
303
|
+
/* @__PURE__ */ x(P, {
|
|
304
|
+
id: o("apiKeyName"),
|
|
305
|
+
label: n("integrations.connectorSubmissions.fields.apiKeyName", "Name"),
|
|
306
|
+
required: !0,
|
|
307
|
+
children: /* @__PURE__ */ x("input", {
|
|
308
|
+
...y("apiKeyName"),
|
|
309
|
+
required: !0,
|
|
310
|
+
maxLength: 64,
|
|
311
|
+
placeholder: s.apiKeyPlacement === i.Header ? "X-Api-Key" : "api_key"
|
|
312
|
+
})
|
|
313
|
+
}),
|
|
314
|
+
s.apiKeyPlacement === i.Header && /* @__PURE__ */ x(P, {
|
|
315
|
+
id: o("apiKeyPrefix"),
|
|
316
|
+
label: n("integrations.connectorSubmissions.fields.apiKeyPrefix", "Prefix"),
|
|
317
|
+
children: /* @__PURE__ */ x("input", {
|
|
318
|
+
...y("apiKeyPrefix"),
|
|
319
|
+
maxLength: 32,
|
|
320
|
+
placeholder: "Token"
|
|
321
|
+
})
|
|
322
|
+
})
|
|
323
|
+
]
|
|
324
|
+
}),
|
|
325
|
+
/* @__PURE__ */ S("div", {
|
|
326
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
327
|
+
children: [/* @__PURE__ */ x(P, {
|
|
328
|
+
id: o("website"),
|
|
329
|
+
label: n("integrations.connectorSubmissions.fields.website", "Website"),
|
|
330
|
+
required: !0,
|
|
331
|
+
children: /* @__PURE__ */ x("input", {
|
|
332
|
+
...y("website"),
|
|
333
|
+
required: !0,
|
|
334
|
+
type: "url"
|
|
335
|
+
})
|
|
336
|
+
}), /* @__PURE__ */ x(P, {
|
|
337
|
+
id: o("docsUrl"),
|
|
338
|
+
label: n("integrations.connectorSubmissions.fields.docsUrl", "API docs URL"),
|
|
339
|
+
required: !0,
|
|
340
|
+
children: /* @__PURE__ */ x("input", {
|
|
341
|
+
...y("docsUrl"),
|
|
342
|
+
required: !0,
|
|
343
|
+
type: "url"
|
|
344
|
+
})
|
|
345
|
+
})]
|
|
346
|
+
})
|
|
347
|
+
]
|
|
348
|
+
}),
|
|
349
|
+
/* @__PURE__ */ S(w, {
|
|
350
|
+
className: "p-5 space-y-4 lg:col-span-2",
|
|
351
|
+
children: [
|
|
352
|
+
/* @__PURE__ */ x("h2", {
|
|
353
|
+
className: "font-semibold text-text-primary",
|
|
354
|
+
children: n("integrations.connectorSubmissions.form.publisher", "Publisher")
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ S("div", {
|
|
357
|
+
className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
|
|
358
|
+
children: [
|
|
359
|
+
/* @__PURE__ */ x(P, {
|
|
360
|
+
id: o("publisherName"),
|
|
361
|
+
label: n("integrations.connectorSubmissions.fields.publisherName", "Publisher name"),
|
|
362
|
+
required: !0,
|
|
363
|
+
children: /* @__PURE__ */ x("input", {
|
|
364
|
+
...y("publisherName"),
|
|
365
|
+
required: !0,
|
|
366
|
+
maxLength: 100
|
|
367
|
+
})
|
|
368
|
+
}),
|
|
369
|
+
/* @__PURE__ */ x(P, {
|
|
370
|
+
id: o("supportEmail"),
|
|
371
|
+
label: n("integrations.connectorSubmissions.fields.supportEmail", "Support email"),
|
|
372
|
+
required: !0,
|
|
373
|
+
children: /* @__PURE__ */ x("input", {
|
|
374
|
+
...y("supportEmail"),
|
|
375
|
+
required: !0,
|
|
376
|
+
type: "email"
|
|
377
|
+
})
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ x(P, {
|
|
380
|
+
id: o("privacyPolicyUrl"),
|
|
381
|
+
label: n("integrations.connectorSubmissions.fields.privacyPolicyUrl", "Privacy policy URL"),
|
|
382
|
+
required: !0,
|
|
383
|
+
children: /* @__PURE__ */ x("input", {
|
|
384
|
+
...y("privacyPolicyUrl"),
|
|
385
|
+
required: !0,
|
|
386
|
+
type: "url"
|
|
387
|
+
})
|
|
388
|
+
}),
|
|
389
|
+
/* @__PURE__ */ x(P, {
|
|
390
|
+
id: o("termsUrl"),
|
|
391
|
+
label: n("integrations.connectorSubmissions.fields.termsUrl", "Terms of service URL"),
|
|
392
|
+
children: /* @__PURE__ */ x("input", {
|
|
393
|
+
...y("termsUrl"),
|
|
394
|
+
type: "url"
|
|
395
|
+
})
|
|
396
|
+
}),
|
|
397
|
+
/* @__PURE__ */ x(P, {
|
|
398
|
+
id: o("repositoryUrl"),
|
|
399
|
+
label: n("integrations.connectorSubmissions.fields.repositoryUrl", "Repository URL"),
|
|
400
|
+
children: /* @__PURE__ */ x("input", {
|
|
401
|
+
...y("repositoryUrl"),
|
|
402
|
+
type: "url"
|
|
403
|
+
})
|
|
404
|
+
})
|
|
405
|
+
]
|
|
406
|
+
}),
|
|
407
|
+
/* @__PURE__ */ x(P, {
|
|
408
|
+
id: o("submitterNotes"),
|
|
409
|
+
label: n("integrations.connectorSubmissions.fields.submitterNotes", "Notes for the reviewer"),
|
|
410
|
+
children: /* @__PURE__ */ x("textarea", {
|
|
411
|
+
...y("submitterNotes"),
|
|
412
|
+
rows: 2,
|
|
413
|
+
maxLength: 2e3
|
|
414
|
+
})
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ S("label", {
|
|
417
|
+
className: "flex items-start gap-3 rounded-lg border border-border-seam bg-bg-surface px-3 py-2.5",
|
|
418
|
+
children: [/* @__PURE__ */ x("input", {
|
|
419
|
+
type: "checkbox",
|
|
420
|
+
className: "mt-0.5",
|
|
421
|
+
checked: s.acceptedPolicy,
|
|
422
|
+
onChange: (e) => _("acceptedPolicy", e.target.checked)
|
|
423
|
+
}), /* @__PURE__ */ x("span", {
|
|
424
|
+
className: "text-sm text-text-primary",
|
|
425
|
+
children: n("integrations.connectorSubmissions.form.policy", "I am authorised to publish a connector for this service, the details above are accurate, and I accept the Connector Developer Terms. Users enter their own credentials; they are encrypted by the platform and sent only to the base URL above.")
|
|
426
|
+
})]
|
|
427
|
+
})
|
|
428
|
+
]
|
|
429
|
+
})
|
|
430
|
+
]
|
|
431
|
+
}),
|
|
432
|
+
/* @__PURE__ */ S("div", {
|
|
433
|
+
className: "flex flex-wrap justify-end gap-2",
|
|
434
|
+
children: [/* @__PURE__ */ S(C, {
|
|
435
|
+
type: "button",
|
|
436
|
+
variant: "ghost",
|
|
437
|
+
onClick: e,
|
|
438
|
+
children: [/* @__PURE__ */ x(b, { size: 16 }), n("integrations.common.cancel", "Cancel")]
|
|
439
|
+
}), /* @__PURE__ */ S(C, {
|
|
440
|
+
type: "submit",
|
|
441
|
+
disabled: h || !s.acceptedPolicy,
|
|
442
|
+
children: [h ? /* @__PURE__ */ x(g, {
|
|
443
|
+
size: 16,
|
|
444
|
+
className: "animate-spin"
|
|
445
|
+
}) : /* @__PURE__ */ x(v, { size: 16 }), n("integrations.connectorSubmissions.form.submit", "Submit for review")]
|
|
446
|
+
})]
|
|
447
|
+
})
|
|
448
|
+
]
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
function I() {
|
|
452
|
+
let { basePath: r = "/", navigate: i } = e(), o = t(), [l, p] = m(!1), [v, b] = m(null), [w, D] = m(""), [O, k] = m(0), { submissions: A, total: j, hasMore: M, loading: N, error: P } = c(O), { withdraw: I, loading: L } = u();
|
|
453
|
+
return /* @__PURE__ */ S("div", {
|
|
454
|
+
className: "space-y-6 p-4 sm:p-6 max-w-5xl mx-auto",
|
|
455
|
+
children: [
|
|
456
|
+
/* @__PURE__ */ S("div", {
|
|
457
|
+
className: "rounded-xl border border-border-seam bg-accent-wash p-6 flex flex-wrap items-center gap-4",
|
|
458
|
+
children: [
|
|
459
|
+
/* @__PURE__ */ x(C, {
|
|
460
|
+
variant: "ghost",
|
|
461
|
+
size: "icon",
|
|
462
|
+
onClick: () => i?.(n(r, "providers")),
|
|
463
|
+
"aria-label": o("integrations.common.back", "Back"),
|
|
464
|
+
children: /* @__PURE__ */ x(h, { size: 20 })
|
|
465
|
+
}),
|
|
466
|
+
/* @__PURE__ */ x("div", {
|
|
467
|
+
className: "p-2.5 rounded-lg bg-action-primary-bg/10",
|
|
468
|
+
children: /* @__PURE__ */ x(y, {
|
|
469
|
+
size: 24,
|
|
470
|
+
className: "text-primary"
|
|
471
|
+
})
|
|
472
|
+
}),
|
|
473
|
+
/* @__PURE__ */ S("div", {
|
|
474
|
+
className: "min-w-0 flex-1",
|
|
475
|
+
children: [/* @__PURE__ */ x("h1", {
|
|
476
|
+
className: "text-2xl font-bold text-text-primary",
|
|
477
|
+
children: o("integrations.connectorSubmissions.title", "Publish a connector")
|
|
478
|
+
}), /* @__PURE__ */ x("p", {
|
|
479
|
+
className: "text-sm text-text-secondary mt-1",
|
|
480
|
+
children: o("integrations.connectorSubmissions.subtitle", "Submit your service to the integrations catalog and follow its review.")
|
|
481
|
+
})]
|
|
482
|
+
}),
|
|
483
|
+
!l && /* @__PURE__ */ S(C, {
|
|
484
|
+
onClick: () => p(!0),
|
|
485
|
+
children: [/* @__PURE__ */ x(_, { size: 16 }), o("integrations.connectorSubmissions.actions.new", "Submit a connector")]
|
|
486
|
+
})
|
|
487
|
+
]
|
|
488
|
+
}),
|
|
489
|
+
/* @__PURE__ */ x(E, {
|
|
490
|
+
icon: /* @__PURE__ */ x(y, { size: 16 }),
|
|
491
|
+
children: o("integrations.connectorSubmissions.purpose", "Third-party developers can list their service in the integrations catalog. Connectors use an API key, a bearer token or basic auth that each workspace enters for itself. A Burdenoff reviewer checks every submission within five business days; once approved, every workspace can connect to it.")
|
|
492
|
+
}),
|
|
493
|
+
l && /* @__PURE__ */ x(F, { onDone: () => p(!1) }),
|
|
494
|
+
w && /* @__PURE__ */ x("div", {
|
|
495
|
+
role: "alert",
|
|
496
|
+
className: "rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text",
|
|
497
|
+
children: w
|
|
498
|
+
}),
|
|
499
|
+
/* @__PURE__ */ S("section", {
|
|
500
|
+
className: "space-y-3",
|
|
501
|
+
"aria-labelledby": "connector-submissions-heading",
|
|
502
|
+
children: [
|
|
503
|
+
/* @__PURE__ */ x("h2", {
|
|
504
|
+
id: "connector-submissions-heading",
|
|
505
|
+
className: "text-lg font-semibold text-text-primary",
|
|
506
|
+
children: o("integrations.connectorSubmissions.mine", "Your submissions")
|
|
507
|
+
}),
|
|
508
|
+
N && A.length === 0 ? /* @__PURE__ */ x("div", {
|
|
509
|
+
className: "flex justify-center py-10",
|
|
510
|
+
children: /* @__PURE__ */ x(g, {
|
|
511
|
+
size: 32,
|
|
512
|
+
className: "animate-spin text-primary"
|
|
513
|
+
})
|
|
514
|
+
}) : P && A.length === 0 ? /* @__PURE__ */ x("div", {
|
|
515
|
+
role: "alert",
|
|
516
|
+
className: "rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text",
|
|
517
|
+
children: P.message
|
|
518
|
+
}) : A.length === 0 ? /* @__PURE__ */ x(T, {
|
|
519
|
+
illustration: "empty-data",
|
|
520
|
+
title: o("integrations.connectorSubmissions.empty.title", "No submissions yet"),
|
|
521
|
+
description: o("integrations.connectorSubmissions.empty.description", "Submit a connector to see it here while it is reviewed.")
|
|
522
|
+
}) : A.map((e) => /* @__PURE__ */ x(d, {
|
|
523
|
+
submission: e,
|
|
524
|
+
actions: e.status === a.PendingReview ? /* @__PURE__ */ x(C, {
|
|
525
|
+
variant: "ghost",
|
|
526
|
+
size: "sm",
|
|
527
|
+
onClick: () => b(e.id),
|
|
528
|
+
disabled: L,
|
|
529
|
+
children: o("integrations.connectorSubmissions.actions.withdraw", "Withdraw")
|
|
530
|
+
}) : e.status === a.Approved && e.providerId ? /* @__PURE__ */ x(C, {
|
|
531
|
+
variant: "ghost",
|
|
532
|
+
size: "sm",
|
|
533
|
+
onClick: () => i?.(n(r, `providers/${e.providerId}`)),
|
|
534
|
+
children: o("integrations.connectorSubmissions.actions.viewListing", "View listing")
|
|
535
|
+
}) : null
|
|
536
|
+
}, e.id)),
|
|
537
|
+
/* @__PURE__ */ x(f, {
|
|
538
|
+
offset: O,
|
|
539
|
+
count: A.length,
|
|
540
|
+
total: j,
|
|
541
|
+
hasMore: M,
|
|
542
|
+
pageSize: 25,
|
|
543
|
+
disabled: N,
|
|
544
|
+
onOffsetChange: k
|
|
545
|
+
})
|
|
546
|
+
]
|
|
547
|
+
}),
|
|
548
|
+
/* @__PURE__ */ x(s, {
|
|
549
|
+
open: v !== null,
|
|
550
|
+
title: o("integrations.connectorSubmissions.withdraw.title", "Withdraw this submission?"),
|
|
551
|
+
description: o("integrations.connectorSubmissions.withdraw.description", "The reviewer will no longer see it. You can submit the connector again later."),
|
|
552
|
+
confirmLabel: o("integrations.connectorSubmissions.actions.withdraw", "Withdraw"),
|
|
553
|
+
cancelLabel: o("integrations.common.cancel", "Cancel"),
|
|
554
|
+
loading: L,
|
|
555
|
+
destructive: !0,
|
|
556
|
+
onConfirm: async () => {
|
|
557
|
+
if (v) {
|
|
558
|
+
D("");
|
|
559
|
+
try {
|
|
560
|
+
await I(v);
|
|
561
|
+
} catch (e) {
|
|
562
|
+
D(e instanceof Error ? e.message : String(e));
|
|
563
|
+
} finally {
|
|
564
|
+
b(null);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
onCancel: () => b(null)
|
|
569
|
+
})
|
|
570
|
+
]
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
//#endregion
|
|
574
|
+
export { I as ConnectorSubmissionsPage };
|
|
575
|
+
|
|
576
|
+
//# sourceMappingURL=ConnectorSubmissionsPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectorSubmissionsPage.js","names":[],"sources":["../../../src/integrations/pages/ConnectorSubmissionsPage.tsx"],"sourcesContent":["import { useId, useState, type FormEvent, type ReactNode } from 'react';\nimport { ArrowLeft, Loader2, Plus, Send, Upload, X } from 'lucide-react';\nimport { Button, EmphasisPanel, IllustratedEmptyState, PagePurpose } from '@burdenoff/fe-libs/ui';\n\nimport { useTr } from '../hooks/useTr';\nimport { useIntegrations } from '../providers/IntegrationsProvider';\nimport { joinPath } from '../utils/navigation';\nimport {\n ConnectorSubmissionStatus,\n type ConnectorSubmissionInput,\n CONNECTOR_SUBMISSION_PAGE_SIZE,\n useMyConnectorSubmissions,\n useSubmitConnector,\n useWithdrawConnectorSubmission,\n} from '../hooks/useConnectorSubmissions';\nimport { ConnectorSubmissionCard } from '../components/ConnectorSubmissionCard';\nimport { ConnectorSubmissionPager } from '../components/ConnectorSubmissionPager';\nimport { ConfirmDialog } from '../components/ConfirmDialog';\nimport { AuthType, ConnectorApiKeyPlacement, ProviderCategory } from '../../generated/wspace-types';\n\nconst CATEGORIES: ProviderCategory[] = [\n ProviderCategory.Productivity,\n ProviderCategory.Communication,\n ProviderCategory.Crm,\n ProviderCategory.Email,\n ProviderCategory.Calendar,\n ProviderCategory.CloudStorage,\n ProviderCategory.Development,\n ProviderCategory.Social,\n ProviderCategory.Payment,\n ProviderCategory.Analytics,\n ProviderCategory.Accounting,\n ProviderCategory.Custom,\n];\n\nconst AUTH_TYPES: [AuthType, string, string][] = [\n [AuthType.ApiKey, 'integrations.connectorSubmissions.auth.apiKey', 'API key'],\n [AuthType.BearerToken, 'integrations.connectorSubmissions.auth.bearer', 'Bearer token'],\n [AuthType.BasicAuth, 'integrations.connectorSubmissions.auth.basic', 'Basic auth'],\n];\n\nconst INPUT_CLASS =\n 'w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2.5 text-sm text-text-primary';\nconst SELECT_CLASS = `${INPUT_CLASS} scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary`;\n\ninterface FormState {\n key: string;\n name: string;\n description: string;\n category: ProviderCategory;\n authType: AuthType;\n apiKeyPlacement: ConnectorApiKeyPlacement;\n apiKeyName: string;\n apiKeyPrefix: string;\n website: string;\n docsUrl: string;\n baseUrl: string;\n apiVersion: string;\n icon: string;\n color: string;\n supportedFeatures: string;\n publisherName: string;\n supportEmail: string;\n privacyPolicyUrl: string;\n termsUrl: string;\n repositoryUrl: string;\n version: string;\n submitterNotes: string;\n acceptedPolicy: boolean;\n}\n\n/** Free-text fields: plain strings, not the enum-typed selects or the policy checkbox. */\ntype TextField = {\n [K in keyof FormState]: string extends FormState[K] ? K : never;\n}[keyof FormState];\n\nconst EMPTY_FORM: FormState = {\n key: '',\n name: '',\n description: '',\n category: ProviderCategory.Productivity,\n authType: AuthType.ApiKey,\n apiKeyPlacement: ConnectorApiKeyPlacement.Header,\n apiKeyName: '',\n apiKeyPrefix: '',\n website: '',\n docsUrl: '',\n baseUrl: '',\n apiVersion: '',\n icon: '',\n color: '',\n supportedFeatures: '',\n publisherName: '',\n supportEmail: '',\n privacyPolicyUrl: '',\n termsUrl: '',\n repositoryUrl: '',\n version: '1.0.0',\n submitterNotes: '',\n acceptedPolicy: false,\n};\n\nfunction optional(value: string): string | null {\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : null;\n}\n\n/** Translate the form into the mutation input; the service does the validation. */\nfunction toSubmitConnectorInput(form: FormState): ConnectorSubmissionInput {\n const apiKey = form.authType === AuthType.ApiKey;\n return {\n key: form.key.trim().toLowerCase(),\n name: form.name.trim(),\n description: form.description.trim(),\n category: form.category,\n authType: form.authType,\n apiKeyPlacement: apiKey ? form.apiKeyPlacement : null,\n apiKeyName: apiKey ? optional(form.apiKeyName) : null,\n apiKeyPrefix:\n apiKey && form.apiKeyPlacement === ConnectorApiKeyPlacement.Header\n ? optional(form.apiKeyPrefix)\n : null,\n website: form.website.trim(),\n docsUrl: form.docsUrl.trim(),\n baseUrl: form.baseUrl.trim(),\n apiVersion: optional(form.apiVersion),\n icon: optional(form.icon),\n color: optional(form.color),\n supportedFeatures: form.supportedFeatures\n .split(',')\n .map((feature) => feature.trim())\n .filter(Boolean),\n publisherName: form.publisherName.trim(),\n supportEmail: form.supportEmail.trim(),\n privacyPolicyUrl: form.privacyPolicyUrl.trim(),\n termsUrl: optional(form.termsUrl),\n repositoryUrl: optional(form.repositoryUrl),\n version: optional(form.version),\n submitterNotes: optional(form.submitterNotes),\n };\n}\n\nfunction Field({\n id,\n label,\n hint,\n required = false,\n children,\n}: {\n id: string;\n label: string;\n hint?: string;\n required?: boolean;\n children: ReactNode;\n}) {\n return (\n <div>\n <label htmlFor={id} className=\"block text-sm font-medium mb-1.5 text-text-primary\">\n {label}\n {required && (\n <span aria-hidden=\"true\" className=\"text-status-error-text\">\n {' '}\n *\n </span>\n )}\n </label>\n {children}\n {hint && <p className=\"mt-1 text-xs text-text-secondary\">{hint}</p>}\n </div>\n );\n}\n\nfunction SubmitConnectorForm({ onDone }: { onDone: () => void }) {\n const tr = useTr();\n const idPrefix = useId();\n const id = (name: string) => `${idPrefix}-${name}`;\n const [form, setForm] = useState<FormState>(EMPTY_FORM);\n const [error, setError] = useState('');\n const { submitConnector, loading } = useSubmitConnector();\n\n const set = <K extends keyof FormState>(field: K, value: FormState[K]) =>\n setForm((current) => ({ ...current, [field]: value }));\n const text = (field: TextField) => ({\n id: id(field),\n value: form[field],\n onChange: (event: { target: { value: string } }) => set(field, event.target.value),\n className: INPUT_CLASS,\n });\n\n const handleSubmit = async (event: FormEvent) => {\n event.preventDefault();\n setError('');\n try {\n await submitConnector(toSubmitConnectorInput(form));\n setForm(EMPTY_FORM);\n onDone();\n } catch (cause) {\n setError(\n cause instanceof Error\n ? cause.message\n : tr(\n 'integrations.connectorSubmissions.errors.submitFailed',\n 'Could not submit the connector'\n )\n );\n }\n };\n\n return (\n <form\n onSubmit={handleSubmit}\n className=\"space-y-4\"\n aria-label={tr('integrations.connectorSubmissions.form.title', 'Submit a connector')}\n >\n {error && (\n <div\n role=\"alert\"\n className=\"rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text\"\n >\n {error}\n </div>\n )}\n\n <div className=\"grid grid-cols-1 lg:grid-cols-2 gap-4\">\n <EmphasisPanel className=\"p-5 space-y-4\">\n <h2 className=\"font-semibold text-text-primary\">\n {tr('integrations.connectorSubmissions.form.connector', 'Connector')}\n </h2>\n <Field\n id={id('name')}\n label={tr('integrations.connectorSubmissions.fields.name', 'Name')}\n required\n >\n <input {...text('name')} required maxLength={80} />\n </Field>\n <Field\n id={id('key')}\n label={tr('integrations.connectorSubmissions.fields.key', 'Catalog key')}\n hint={tr(\n 'integrations.connectorSubmissions.fields.keyHint',\n 'Lowercase letters, digits and hyphens, e.g. acme-crm. It cannot be changed later.'\n )}\n required\n >\n <input {...text('key')} required maxLength={50} placeholder=\"acme-crm\" />\n </Field>\n <Field\n id={id('description')}\n label={tr('integrations.connectorSubmissions.fields.description', 'Description')}\n hint={tr(\n 'integrations.connectorSubmissions.fields.descriptionHint',\n 'What a workspace can do with this connector (10 to 1000 characters).'\n )}\n required\n >\n <textarea {...text('description')} required rows={3} maxLength={1000} />\n </Field>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <Field\n id={id('category')}\n label={tr('integrations.connectorSubmissions.fields.category', 'Category')}\n required\n >\n <select\n id={id('category')}\n value={form.category}\n onChange={(event) => set('category', event.target.value as ProviderCategory)}\n className={SELECT_CLASS}\n >\n {CATEGORIES.map((category) => (\n <option key={category} value={category}>\n {tr(`integrations.category.${category}`, category)}\n </option>\n ))}\n </select>\n </Field>\n <Field\n id={id('version')}\n label={tr('integrations.connectorSubmissions.fields.version', 'Version')}\n >\n <input {...text('version')} placeholder=\"1.0.0\" />\n </Field>\n </div>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <Field\n id={id('icon')}\n label={tr('integrations.connectorSubmissions.fields.icon', 'Icon')}\n hint={tr(\n 'integrations.connectorSubmissions.fields.iconHint',\n 'An https image URL or iconify:set:name'\n )}\n >\n <input {...text('icon')} />\n </Field>\n <Field\n id={id('color')}\n label={tr('integrations.connectorSubmissions.fields.color', 'Brand color')}\n hint=\"#RRGGBB\"\n >\n <input {...text('color')} maxLength={7} />\n </Field>\n </div>\n <Field\n id={id('supportedFeatures')}\n label={tr(\n 'integrations.connectorSubmissions.fields.supportedFeatures',\n 'Supported features'\n )}\n hint={tr(\n 'integrations.connectorSubmissions.fields.supportedFeaturesHint',\n 'Comma separated, e.g. contacts, deals'\n )}\n >\n <input {...text('supportedFeatures')} />\n </Field>\n </EmphasisPanel>\n\n <EmphasisPanel className=\"p-5 space-y-4\">\n <h2 className=\"font-semibold text-text-primary\">\n {tr('integrations.connectorSubmissions.form.api', 'API and authentication')}\n </h2>\n <Field\n id={id('baseUrl')}\n label={tr('integrations.connectorSubmissions.fields.baseUrl', 'API base URL')}\n hint={tr(\n 'integrations.connectorSubmissions.fields.baseUrlHint',\n 'https only, on a public host name'\n )}\n required\n >\n <input\n {...text('baseUrl')}\n required\n type=\"url\"\n placeholder=\"https://api.example.com/v1\"\n />\n </Field>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <Field\n id={id('authType')}\n label={tr('integrations.connectorSubmissions.fields.authType', 'Authentication')}\n required\n >\n <select\n id={id('authType')}\n value={form.authType}\n onChange={(event) => set('authType', event.target.value as AuthType)}\n className={SELECT_CLASS}\n >\n {AUTH_TYPES.map(([value, key, fallback]) => (\n <option key={value} value={value}>\n {tr(key, fallback)}\n </option>\n ))}\n </select>\n </Field>\n <Field\n id={id('apiVersion')}\n label={tr('integrations.connectorSubmissions.fields.apiVersion', 'API version')}\n >\n <input {...text('apiVersion')} maxLength={32} />\n </Field>\n </div>\n {form.authType === AuthType.ApiKey && (\n <div className=\"grid grid-cols-1 sm:grid-cols-3 gap-4\">\n <Field\n id={id('apiKeyPlacement')}\n label={tr('integrations.connectorSubmissions.fields.apiKeyPlacement', 'Sent in')}\n required\n >\n <select\n id={id('apiKeyPlacement')}\n value={form.apiKeyPlacement}\n onChange={(event) =>\n set('apiKeyPlacement', event.target.value as ConnectorApiKeyPlacement)\n }\n className={SELECT_CLASS}\n >\n <option value={ConnectorApiKeyPlacement.Header}>\n {tr('integrations.connectorSubmissions.placement.header', 'Header')}\n </option>\n <option value={ConnectorApiKeyPlacement.Query}>\n {tr('integrations.connectorSubmissions.placement.query', 'Query parameter')}\n </option>\n </select>\n </Field>\n <Field\n id={id('apiKeyName')}\n label={tr('integrations.connectorSubmissions.fields.apiKeyName', 'Name')}\n required\n >\n <input\n {...text('apiKeyName')}\n required\n maxLength={64}\n placeholder={\n form.apiKeyPlacement === ConnectorApiKeyPlacement.Header\n ? 'X-Api-Key'\n : 'api_key'\n }\n />\n </Field>\n {form.apiKeyPlacement === ConnectorApiKeyPlacement.Header && (\n <Field\n id={id('apiKeyPrefix')}\n label={tr('integrations.connectorSubmissions.fields.apiKeyPrefix', 'Prefix')}\n >\n <input {...text('apiKeyPrefix')} maxLength={32} placeholder=\"Token\" />\n </Field>\n )}\n </div>\n )}\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <Field\n id={id('website')}\n label={tr('integrations.connectorSubmissions.fields.website', 'Website')}\n required\n >\n <input {...text('website')} required type=\"url\" />\n </Field>\n <Field\n id={id('docsUrl')}\n label={tr('integrations.connectorSubmissions.fields.docsUrl', 'API docs URL')}\n required\n >\n <input {...text('docsUrl')} required type=\"url\" />\n </Field>\n </div>\n </EmphasisPanel>\n\n <EmphasisPanel className=\"p-5 space-y-4 lg:col-span-2\">\n <h2 className=\"font-semibold text-text-primary\">\n {tr('integrations.connectorSubmissions.form.publisher', 'Publisher')}\n </h2>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n <Field\n id={id('publisherName')}\n label={tr('integrations.connectorSubmissions.fields.publisherName', 'Publisher name')}\n required\n >\n <input {...text('publisherName')} required maxLength={100} />\n </Field>\n <Field\n id={id('supportEmail')}\n label={tr('integrations.connectorSubmissions.fields.supportEmail', 'Support email')}\n required\n >\n <input {...text('supportEmail')} required type=\"email\" />\n </Field>\n <Field\n id={id('privacyPolicyUrl')}\n label={tr(\n 'integrations.connectorSubmissions.fields.privacyPolicyUrl',\n 'Privacy policy URL'\n )}\n required\n >\n <input {...text('privacyPolicyUrl')} required type=\"url\" />\n </Field>\n <Field\n id={id('termsUrl')}\n label={tr(\n 'integrations.connectorSubmissions.fields.termsUrl',\n 'Terms of service URL'\n )}\n >\n <input {...text('termsUrl')} type=\"url\" />\n </Field>\n <Field\n id={id('repositoryUrl')}\n label={tr('integrations.connectorSubmissions.fields.repositoryUrl', 'Repository URL')}\n >\n <input {...text('repositoryUrl')} type=\"url\" />\n </Field>\n </div>\n <Field\n id={id('submitterNotes')}\n label={tr(\n 'integrations.connectorSubmissions.fields.submitterNotes',\n 'Notes for the reviewer'\n )}\n >\n <textarea {...text('submitterNotes')} rows={2} maxLength={2000} />\n </Field>\n <label className=\"flex items-start gap-3 rounded-lg border border-border-seam bg-bg-surface px-3 py-2.5\">\n <input\n type=\"checkbox\"\n className=\"mt-0.5\"\n checked={form.acceptedPolicy}\n onChange={(event) => set('acceptedPolicy', event.target.checked)}\n />\n <span className=\"text-sm text-text-primary\">\n {tr(\n 'integrations.connectorSubmissions.form.policy',\n 'I am authorised to publish a connector for this service, the details above are accurate, and I accept the Connector Developer Terms. Users enter their own credentials; they are encrypted by the platform and sent only to the base URL above.'\n )}\n </span>\n </label>\n </EmphasisPanel>\n </div>\n\n <div className=\"flex flex-wrap justify-end gap-2\">\n <Button type=\"button\" variant=\"ghost\" onClick={onDone}>\n <X size={16} />\n {tr('integrations.common.cancel', 'Cancel')}\n </Button>\n <Button type=\"submit\" disabled={loading || !form.acceptedPolicy}>\n {loading ? <Loader2 size={16} className=\"animate-spin\" /> : <Send size={16} />}\n {tr('integrations.connectorSubmissions.form.submit', 'Submit for review')}\n </Button>\n </div>\n </form>\n );\n}\n\n/**\n * Connector developer page (BOFF-4417): submit a third-party connector for the\n * integrations catalog and follow each submission through review.\n */\nexport function ConnectorSubmissionsPage() {\n const { basePath = '/', navigate } = useIntegrations();\n const tr = useTr();\n const [showForm, setShowForm] = useState(false);\n const [withdrawId, setWithdrawId] = useState<string | null>(null);\n const [actionError, setActionError] = useState('');\n const [offset, setOffset] = useState(0);\n const { submissions, total, hasMore, loading, error } = useMyConnectorSubmissions(offset);\n const { withdraw, loading: withdrawing } = useWithdrawConnectorSubmission();\n\n const confirmWithdraw = async () => {\n if (!withdrawId) return;\n setActionError('');\n try {\n await withdraw(withdrawId);\n } catch (cause) {\n setActionError(cause instanceof Error ? cause.message : String(cause));\n } finally {\n setWithdrawId(null);\n }\n };\n\n return (\n <div className=\"space-y-6 p-4 sm:p-6 max-w-5xl mx-auto\">\n <div className=\"rounded-xl border border-border-seam bg-accent-wash p-6 flex flex-wrap items-center gap-4\">\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onClick={() => navigate?.(joinPath(basePath, 'providers'))}\n aria-label={tr('integrations.common.back', 'Back')}\n >\n <ArrowLeft size={20} />\n </Button>\n <div className=\"p-2.5 rounded-lg bg-action-primary-bg/10\">\n <Upload size={24} className=\"text-primary\" />\n </div>\n <div className=\"min-w-0 flex-1\">\n <h1 className=\"text-2xl font-bold text-text-primary\">\n {tr('integrations.connectorSubmissions.title', 'Publish a connector')}\n </h1>\n <p className=\"text-sm text-text-secondary mt-1\">\n {tr(\n 'integrations.connectorSubmissions.subtitle',\n 'Submit your service to the integrations catalog and follow its review.'\n )}\n </p>\n </div>\n {!showForm && (\n <Button onClick={() => setShowForm(true)}>\n <Plus size={16} />\n {tr('integrations.connectorSubmissions.actions.new', 'Submit a connector')}\n </Button>\n )}\n </div>\n\n <PagePurpose icon={<Upload size={16} />}>\n {tr(\n 'integrations.connectorSubmissions.purpose',\n 'Third-party developers can list their service in the integrations catalog. Connectors use an API key, a bearer token or basic auth that each workspace enters for itself. A Burdenoff reviewer checks every submission within five business days; once approved, every workspace can connect to it.'\n )}\n </PagePurpose>\n\n {showForm && <SubmitConnectorForm onDone={() => setShowForm(false)} />}\n\n {actionError && (\n <div\n role=\"alert\"\n className=\"rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text\"\n >\n {actionError}\n </div>\n )}\n\n <section className=\"space-y-3\" aria-labelledby=\"connector-submissions-heading\">\n <h2 id=\"connector-submissions-heading\" className=\"text-lg font-semibold text-text-primary\">\n {tr('integrations.connectorSubmissions.mine', 'Your submissions')}\n </h2>\n {loading && submissions.length === 0 ? (\n <div className=\"flex justify-center py-10\">\n <Loader2 size={32} className=\"animate-spin text-primary\" />\n </div>\n ) : error && submissions.length === 0 ? (\n <div\n role=\"alert\"\n className=\"rounded-xl border border-border-seam bg-status-error-bg-subtle px-4 py-3 text-sm text-status-error-text\"\n >\n {error.message}\n </div>\n ) : submissions.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={tr('integrations.connectorSubmissions.empty.title', 'No submissions yet')}\n description={tr(\n 'integrations.connectorSubmissions.empty.description',\n 'Submit a connector to see it here while it is reviewed.'\n )}\n />\n ) : (\n submissions.map((submission) => (\n <ConnectorSubmissionCard\n key={submission.id}\n submission={submission}\n actions={\n submission.status === ConnectorSubmissionStatus.PendingReview ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() => setWithdrawId(submission.id)}\n disabled={withdrawing}\n >\n {tr('integrations.connectorSubmissions.actions.withdraw', 'Withdraw')}\n </Button>\n ) : submission.status === ConnectorSubmissionStatus.Approved &&\n submission.providerId ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n onClick={() =>\n navigate?.(joinPath(basePath, `providers/${submission.providerId}`))\n }\n >\n {tr('integrations.connectorSubmissions.actions.viewListing', 'View listing')}\n </Button>\n ) : null\n }\n />\n ))\n )}\n <ConnectorSubmissionPager\n offset={offset}\n count={submissions.length}\n total={total}\n hasMore={hasMore}\n pageSize={CONNECTOR_SUBMISSION_PAGE_SIZE}\n disabled={loading}\n onOffsetChange={setOffset}\n />\n </section>\n\n <ConfirmDialog\n open={withdrawId !== null}\n title={tr('integrations.connectorSubmissions.withdraw.title', 'Withdraw this submission?')}\n description={tr(\n 'integrations.connectorSubmissions.withdraw.description',\n 'The reviewer will no longer see it. You can submit the connector again later.'\n )}\n confirmLabel={tr('integrations.connectorSubmissions.actions.withdraw', 'Withdraw')}\n cancelLabel={tr('integrations.common.cancel', 'Cancel')}\n loading={withdrawing}\n destructive\n onConfirm={confirmWithdraw}\n onCancel={() => setWithdrawId(null)}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAoBA,IAAM,IAAiC;CACrC,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CACjB,EAAiB;CAClB,EAEK,IAA2C;CAC/C;EAAC,EAAS;EAAQ;EAAiD;EAAU;CAC7E;EAAC,EAAS;EAAa;EAAiD;EAAe;CACvF;EAAC,EAAS;EAAW;EAAgD;EAAa;C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AA,GACJ,EAAY,WAAW,IACzB,kBAAC,GAAD;MACE,cAAa;MACb,OAAO,EAAG,iDAAiD,qBAAqB;MAChF,aAAa,EACX,uDACA,0DACD;MACD,CAAA,GAEF,EAAY,KAAK,MACf,kBAAC,GAAD;MAEc;MACZ,SACE,EAAW,WAAW,EAA0B,gBAC9C,kBAAC,GAAD;OACE,SAAQ;OACR,MAAK;OACL,eAAe,EAAc,EAAW,GAAG;OAC3C,UAAU;iBAET,EAAG,sDAAsD,WAAW;OAC9D,CAAA,GACP,EAAW,WAAW,EAA0B,YAClD,EAAW,aACX,kBAAC,GAAD;OACE,SAAQ;OACR,MAAK;OACL,eACE,IAAW,EAAS,GAAU,aAAa,EAAW,aAAa,CAAC;iBAGrE,EAAG,yDAAyD,eAAe;OACrE,CAAA,GACP;MAEN,EAzBK,EAAW,GAyBhB,CACF;KAEJ,kBAAC,GAAD;MACU;MACR,OAAO,EAAY;MACZ;MACE;MACT,UAAA;MACA,UAAU;MACV,gBAAgB;MAChB,CAAA;KACM;;GAEV,kBAAC,GAAD;IACE,MAAM,MAAe;IACrB,OAAO,EAAG,oDAAoD,4BAA4B;IAC1F,aAAa,EACX,0DACA,gFACD;IACD,cAAc,EAAG,sDAAsD,WAAW;IAClF,aAAa,EAAG,8BAA8B,SAAS;IACvD,SAAS;IACT,aAAA;IACA,WA5IkB,YAAY;AAC7B,YACL;QAAe,GAAG;AAClB,UAAI;AACF,aAAM,EAAS,EAAW;eACnB,GAAO;AACd,SAAe,aAAiB,QAAQ,EAAM,UAAU,OAAO,EAAM,CAAC;gBAC9D;AACR,SAAc,KAAK;;;;IAqIjB,gBAAgB,EAAc,KAAK;IACnC,CAAA;GACE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderCatalog.d.ts","sourceRoot":"","sources":["../../../src/integrations/pages/ProviderCatalog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProviderCatalog.d.ts","sourceRoot":"","sources":["../../../src/integrations/pages/ProviderCatalog.tsx"],"names":[],"mappings":"AA4BA,UAAU,oBAAoB;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,wBAAgC,EAAE,EAAE,oBAAoB,+BA0bzF"}
|