@burdenoff/microfe-integrations 2026.1030.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.
Files changed (43) hide show
  1. package/dist/generated/global-types.d.ts +5717 -1663
  2. package/dist/generated/global-types.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.d.ts +440 -0
  4. package/dist/generated/wspace-operations.d.ts.map +1 -1
  5. package/dist/generated/wspace-operations.js +213 -84
  6. package/dist/generated/wspace-operations.js.map +1 -1
  7. package/dist/generated/wspace-types.d.ts +77378 -31802
  8. package/dist/generated/wspace-types.d.ts.map +1 -1
  9. package/dist/generated/wspace-types.js +9 -1
  10. package/dist/generated/wspace-types.js.map +1 -1
  11. package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +1 -1
  12. package/dist/integrations/IntegrationsAdminRoutes.js +13 -9
  13. package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
  14. package/dist/integrations/IntegrationsUserRoutes.d.ts.map +1 -1
  15. package/dist/integrations/IntegrationsUserRoutes.js +16 -12
  16. package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
  17. package/dist/integrations/components/ConnectorSubmissionCard.d.ts +16 -0
  18. package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +1 -0
  19. package/dist/integrations/components/ConnectorSubmissionCard.js +192 -0
  20. package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -0
  21. package/dist/integrations/components/ConnectorSubmissionPager.d.ts +22 -0
  22. package/dist/integrations/components/ConnectorSubmissionPager.d.ts.map +1 -0
  23. package/dist/integrations/components/ConnectorSubmissionPager.js +36 -0
  24. package/dist/integrations/components/ConnectorSubmissionPager.js.map +1 -0
  25. package/dist/integrations/hooks/useConnectorSubmissions.d.ts +47 -0
  26. package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +1 -0
  27. package/dist/integrations/hooks/useConnectorSubmissions.js +80 -0
  28. package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -0
  29. package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts +7 -0
  30. package/dist/integrations/pages/ConnectorReviewQueuePage.d.ts.map +1 -0
  31. package/dist/integrations/pages/ConnectorReviewQueuePage.js +201 -0
  32. package/dist/integrations/pages/ConnectorReviewQueuePage.js.map +1 -0
  33. package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts +6 -0
  34. package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +1 -0
  35. package/dist/integrations/pages/ConnectorSubmissionsPage.js +576 -0
  36. package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -0
  37. package/dist/integrations/pages/ProviderCatalog.d.ts.map +1 -1
  38. package/dist/integrations/pages/ProviderCatalog.js +157 -145
  39. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  40. package/dist/integrations/pages/ProviderDetail.d.ts.map +1 -1
  41. package/dist/integrations/pages/ProviderDetail.js +15 -8
  42. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsAdminRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"names":[],"mappings":"AAuFA;;;;;GAKG;AACH,wBAAgB,uBAAuB,uCAkCtC"}
1
+ {"version":3,"file":"IntegrationsAdminRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"names":[],"mappings":"AA4FA;;;;;GAKG;AACH,wBAAgB,uBAAuB,uCAoCtC"}
@@ -4,14 +4,14 @@ import { AlertTriangle as i, Loader2 as a, RefreshCw as o } from "lucide-react";
4
4
  import { Navigate as s, Route as c, Routes as l, useLocation as u } from "react-router";
5
5
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
6
6
  //#region src/integrations/IntegrationsAdminRoutes.tsx
7
- var p = r(() => import("./pages/IntegrationsSettings.js").then((e) => ({ default: e.IntegrationsSettings }))), m = r(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), h = r(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), g = r(() => import("./pages/ProviderEditorPage.js").then((e) => ({ default: e.ProviderEditorPage })));
8
- function _() {
7
+ var p = r(() => import("./pages/IntegrationsSettings.js").then((e) => ({ default: e.IntegrationsSettings }))), m = r(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), h = r(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), g = r(() => import("./pages/ConnectorReviewQueuePage.js").then((e) => ({ default: e.ConnectorReviewQueuePage }))), _ = r(() => import("./pages/ProviderEditorPage.js").then((e) => ({ default: e.ProviderEditorPage })));
8
+ function v() {
9
9
  return /* @__PURE__ */ d("div", {
10
10
  className: "flex items-center justify-center min-h-[400px]",
11
11
  children: /* @__PURE__ */ d(a, { className: "size-8 animate-spin text-primary" })
12
12
  });
13
13
  }
14
- var v = class extends t {
14
+ var y = class extends t {
15
15
  constructor(e) {
16
16
  super(e), this.state = {
17
17
  hasError: !1,
@@ -63,10 +63,10 @@ var v = class extends t {
63
63
  }) : /* @__PURE__ */ d("div", { children: this.props.children }, this.state.retryKey);
64
64
  }
65
65
  };
66
- function y() {
66
+ function b() {
67
67
  let { basePath: t } = e(), r = u(), i = t && t !== "/" ? t.endsWith("/") ? t.slice(0, -1) : t : "";
68
- return i && !(r.pathname === i || r.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ d(v, { children: /* @__PURE__ */ d(n, {
69
- fallback: /* @__PURE__ */ d(_, {}),
68
+ return i && !(r.pathname === i || r.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ d(y, { children: /* @__PURE__ */ d(n, {
69
+ fallback: /* @__PURE__ */ d(v, {}),
70
70
  children: /* @__PURE__ */ f(l, { children: [
71
71
  /* @__PURE__ */ d(c, {
72
72
  index: !0,
@@ -81,7 +81,7 @@ function y() {
81
81
  }),
82
82
  /* @__PURE__ */ d(c, {
83
83
  path: "providers/new",
84
- element: /* @__PURE__ */ d(g, {})
84
+ element: /* @__PURE__ */ d(_, {})
85
85
  }),
86
86
  /* @__PURE__ */ d(c, {
87
87
  path: "providers/:providerId",
@@ -89,12 +89,16 @@ function y() {
89
89
  }),
90
90
  /* @__PURE__ */ d(c, {
91
91
  path: "providers/:providerId/edit",
92
- element: /* @__PURE__ */ d(g, {})
92
+ element: /* @__PURE__ */ d(_, {})
93
93
  }),
94
94
  /* @__PURE__ */ d(c, {
95
95
  path: "settings",
96
96
  element: /* @__PURE__ */ d(p, {})
97
97
  }),
98
+ /* @__PURE__ */ d(c, {
99
+ path: "connector-reviews",
100
+ element: /* @__PURE__ */ d(g, {})
101
+ }),
98
102
  /* @__PURE__ */ d(c, {
99
103
  path: "*",
100
104
  element: /* @__PURE__ */ d(s, {
@@ -106,6 +110,6 @@ function y() {
106
110
  }) });
107
111
  }
108
112
  //#endregion
109
- export { y as IntegrationsAdminRoutes };
113
+ export { b as IntegrationsAdminRoutes };
110
114
 
111
115
  //# sourceMappingURL=IntegrationsAdminRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsAdminRoutes.js","names":[],"sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation } from 'react-router';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { useIntegrations } from './providers/IntegrationsProvider';\n\n// Lazy loaded pages\nconst IntegrationsSettings = lazy(() =>\n import('./pages/IntegrationsSettings').then((m) => ({ default: m.IntegrationsSettings }))\n);\nconst ProviderCatalog = lazy(() =>\n import('./pages/ProviderCatalog').then((m) => ({ default: m.ProviderCatalog }))\n);\nconst ProviderDetail = lazy(() =>\n import('./pages/ProviderDetail').then((m) => ({ default: m.ProviderDetail }))\n);\nconst ProviderEditorPage = lazy(() =>\n import('./pages/ProviderEditorPage').then((m) => ({ default: m.ProviderEditorPage }))\n);\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null; retryKey: number }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null, retryKey: 0 };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error('[Integrations Admin] Lazy page load failed:', error, errorInfo);\n }\n\n handleRetry = () => {\n // Increment retryKey to force React to remount the lazy tree,\n // which triggers a fresh dynamic import instead of reusing the cached rejection.\n this.setState((prev) => ({ hasError: false, error: null, retryKey: prev.retryKey + 1 }));\n };\n\n render() {\n if (this.state.hasError) {\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">Failed to load page</h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {this.state.error?.message ||\n 'The page chunk could not be loaded. This may be due to a network issue.'}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n Try Again\n </button>\n </div>\n );\n }\n\n return <div key={this.state.retryKey}>{this.props.children}</div>;\n }\n}\n\n/**\n * Admin-facing routes for the Integrations microfrontend.\n *\n * Includes: Settings (module configuration).\n * Excludes user features: Overview, Providers, Connections, Activity Logs.\n */\nexport function IntegrationsAdminRoutes() {\n const { basePath } = useIntegrations();\n const location = useLocation();\n\n const normalizedBasePath =\n basePath && basePath !== '/' ? (basePath.endsWith('/') ? basePath.slice(0, -1) : basePath) : '';\n\n if (normalizedBasePath) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <LazyErrorBoundary>\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<Navigate to=\"providers\" replace />} />\n <Route path=\"providers\" element={<ProviderCatalog showCreateProviderButton />} />\n <Route path=\"providers/new\" element={<ProviderEditorPage />} />\n <Route path=\"providers/:providerId\" element={<ProviderDetail />} />\n <Route path=\"providers/:providerId/edit\" element={<ProviderEditorPage />} />\n <Route path=\"settings\" element={<IntegrationsSettings />} />\n\n {/* Catch-all: redirect to admin landing */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;AAMA,IAAM,IAAuB,QAC3B,OAAO,mCAAgC,MAAM,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAC1F,EACK,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAAqB,QACzB,OAAO,iCAA8B,MAAM,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CACtF;AAKD,SAAS,IAAa;AACpB,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAS,WAAU,oCAAqC,CAAA;EACpD,CAAA;;AAQV,IAAM,IAAN,cAAgC,EAG9B;CACA,YAAY,GAAgC;AAE1C,EADA,MAAM,EAAM,EACZ,KAAK,QAAQ;GAAE,UAAU;GAAO,OAA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AAU,CAAA;IAAI,CAAA;GAC7D,kBAAC,GAAD;IAAO,MAAK;IAAY,SAAS,kBAAC,GAAD,EAAiB,0BAAA,IAA2B,CAAA;IAAI,CAAA;GACjF,kBAAC,GAAD;IAAO,MAAK;IAAgB,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAC/D,kBAAC,GAAD;IAAO,MAAK;IAAwB,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GACnE,kBAAC,GAAD;IAAO,MAAK;IAA6B,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAC5E,kBAAC,GAAD;IAAO,MAAK;IAAW,SAAS,kBAAC,GAAD,EAAwB,CAAA;IAAI,CAAA;GAG5D,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA,EACO,CAAA"}
1
+ {"version":3,"file":"IntegrationsAdminRoutes.js","names":[],"sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation } from 'react-router';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { useIntegrations } from './providers/IntegrationsProvider';\n\n// Lazy loaded pages\nconst IntegrationsSettings = lazy(() =>\n import('./pages/IntegrationsSettings').then((m) => ({ default: m.IntegrationsSettings }))\n);\nconst ProviderCatalog = lazy(() =>\n import('./pages/ProviderCatalog').then((m) => ({ default: m.ProviderCatalog }))\n);\nconst ProviderDetail = lazy(() =>\n import('./pages/ProviderDetail').then((m) => ({ default: m.ProviderDetail }))\n);\nconst ConnectorReviewQueuePage = lazy(() =>\n import('./pages/ConnectorReviewQueuePage').then((m) => ({\n default: m.ConnectorReviewQueuePage,\n }))\n);\nconst ProviderEditorPage = lazy(() =>\n import('./pages/ProviderEditorPage').then((m) => ({ default: m.ProviderEditorPage }))\n);\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null; retryKey: number }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null, retryKey: 0 };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error('[Integrations Admin] Lazy page load failed:', error, errorInfo);\n }\n\n handleRetry = () => {\n // Increment retryKey to force React to remount the lazy tree,\n // which triggers a fresh dynamic import instead of reusing the cached rejection.\n this.setState((prev) => ({ hasError: false, error: null, retryKey: prev.retryKey + 1 }));\n };\n\n render() {\n if (this.state.hasError) {\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">Failed to load page</h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {this.state.error?.message ||\n 'The page chunk could not be loaded. This may be due to a network issue.'}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n Try Again\n </button>\n </div>\n );\n }\n\n return <div key={this.state.retryKey}>{this.props.children}</div>;\n }\n}\n\n/**\n * Admin-facing routes for the Integrations microfrontend.\n *\n * Includes: Settings (module configuration).\n * Excludes user features: Overview, Providers, Connections, Activity Logs.\n */\nexport function IntegrationsAdminRoutes() {\n const { basePath } = useIntegrations();\n const location = useLocation();\n\n const normalizedBasePath =\n basePath && basePath !== '/' ? (basePath.endsWith('/') ? basePath.slice(0, -1) : basePath) : '';\n\n if (normalizedBasePath) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <LazyErrorBoundary>\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<Navigate to=\"providers\" replace />} />\n <Route path=\"providers\" element={<ProviderCatalog showCreateProviderButton />} />\n <Route path=\"providers/new\" element={<ProviderEditorPage />} />\n <Route path=\"providers/:providerId\" element={<ProviderDetail />} />\n <Route path=\"providers/:providerId/edit\" element={<ProviderEditorPage />} />\n <Route path=\"settings\" element={<IntegrationsSettings />} />\n {/* Third-party connector review queue (BOFF-4417) */}\n <Route path=\"connector-reviews\" element={<ConnectorReviewQueuePage />} />\n\n {/* Catch-all: redirect to admin landing */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;AAMA,IAAM,IAAuB,QAC3B,OAAO,mCAAgC,MAAM,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAC1F,EACK,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAA2B,QAC/B,OAAO,uCAAoC,MAAM,OAAO,EACtD,SAAS,EAAE,0BACZ,EAAE,CACJ,EACK,IAAqB,QACzB,OAAO,iCAA8B,MAAM,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CACtF;AAKD,SAAS,IAAa;AACpB,QACE,kBAAC,OAAD;EAAK,WAAU;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EAAA,UACE,kBAAC,GAAD;EAAU,UAAU,kBAAC,GAAD,EAAc,CAAA;YAChC,kBAAC,GAAD,EAAA,UAAA;GACE,kBAAC,GAAD;IAAO,OAAA;IAAM,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAY,SAAA;KAAU,CAAA;IAAI,CAAA;GAC7D,kBAAC,GAAD;IAAO,MAAK;IAAY,SAAS,kBAAC,GAAD,EAAiB,0BAAA,IAA2B,CAAA;IAAI,CAAA;GACjF,kBAAC,GAAD;IAAO,MAAK;IAAgB,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAC/D,kBAAC,GAAD;IAAO,MAAK;IAAwB,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GACnE,kBAAC,GAAD;IAAO,MAAK;IAA6B,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAC5E,kBAAC,GAAD;IAAO,MAAK;IAAW,SAAS,kBAAC,GAAD,EAAwB,CAAA;IAAI,CAAA;GAE5D,kBAAC,GAAD;IAAO,MAAK;IAAoB,SAAS,kBAAC,GAAD,EAA4B,CAAA;IAAI,CAAA;GAGzE,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA,EACO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsUserRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"names":[],"mappings":"AAmIA;;;;;GAKG;AACH,wBAAgB,sBAAsB,uCA2CrC"}
1
+ {"version":3,"file":"IntegrationsUserRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"names":[],"mappings":"AAwIA;;;;;GAKG;AACH,wBAAgB,sBAAsB,uCA8CrC"}
@@ -7,27 +7,27 @@ import { AlertTriangle as s, Loader2 as c, RefreshCw as l } from "lucide-react";
7
7
  import { Navigate as u, Route as d, Routes as f, useLocation as p, useNavigate as m, useParams as h } from "react-router";
8
8
  import { jsx as g, jsxs as _ } from "react/jsx-runtime";
9
9
  //#region src/integrations/IntegrationsUserRoutes.tsx
10
- var v = o(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), y = o(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), b = o(() => import("./pages/ConnectionsList.js").then((e) => ({ default: e.ConnectionsList }))), x = o(() => import("./pages/AddConnectionWizard.js").then((e) => ({ default: e.AddConnectionWizard }))), S = o(() => import("./pages/ConnectionDetail.js").then((e) => ({ default: e.ConnectionDetail }))), C = o(() => import("./pages/ConnectionLogs.js").then((e) => ({ default: e.ConnectionLogs }))), w = new Set([
10
+ var v = o(() => import("./pages/ProviderCatalog.js").then((e) => ({ default: e.ProviderCatalog }))), y = o(() => import("./pages/ProviderDetail.js").then((e) => ({ default: e.ProviderDetail }))), b = o(() => import("./pages/ConnectionsList.js").then((e) => ({ default: e.ConnectionsList }))), x = o(() => import("./pages/AddConnectionWizard.js").then((e) => ({ default: e.AddConnectionWizard }))), S = o(() => import("./pages/ConnectionDetail.js").then((e) => ({ default: e.ConnectionDetail }))), C = o(() => import("./pages/ConnectorSubmissionsPage.js").then((e) => ({ default: e.ConnectorSubmissionsPage }))), w = o(() => import("./pages/ConnectionLogs.js").then((e) => ({ default: e.ConnectionLogs }))), T = new Set([
11
11
  "slack-user",
12
12
  "teams-user",
13
13
  "discord-user"
14
14
  ]);
15
- function T() {
15
+ function E() {
16
16
  let { basePath: r } = e(), { providerId: i } = h(), { search: a } = p(), o = m(), s = new URLSearchParams(a), c = s.get("providerKey");
17
- return s.get("returnTo") && s.get("channelId") && c && w.has(c) ? /* @__PURE__ */ g(x, {}) : /* @__PURE__ */ g(t, {
17
+ return s.get("returnTo") && s.get("channelId") && c && T.has(c) ? /* @__PURE__ */ g(x, {}) : /* @__PURE__ */ g(t, {
18
18
  open: !0,
19
19
  onClose: () => o(n(r ?? "/", "connections")),
20
20
  preselectedProviderId: i,
21
21
  preselectedProviderKey: c
22
22
  });
23
23
  }
24
- function E() {
24
+ function D() {
25
25
  return /* @__PURE__ */ g("div", {
26
26
  className: "flex items-center justify-center min-h-[400px]",
27
27
  children: /* @__PURE__ */ g(c, { className: "size-8 animate-spin text-primary" })
28
28
  });
29
29
  }
30
- var D = class extends i {
30
+ var O = class extends i {
31
31
  constructor(e) {
32
32
  super(e), this.state = {
33
33
  hasError: !1,
@@ -79,10 +79,10 @@ var D = class extends i {
79
79
  }) : /* @__PURE__ */ g("div", { children: this.props.children }, this.state.retryKey);
80
80
  }
81
81
  };
82
- function O() {
82
+ function k() {
83
83
  let { basePath: t } = e(), n = p(), i = t && t !== "/" ? t.endsWith("/") ? t.slice(0, -1) : t : "";
84
- return i && !(n.pathname === i || n.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ g(D, { children: /* @__PURE__ */ g(a, {
85
- fallback: /* @__PURE__ */ g(E, {}),
84
+ return i && !(n.pathname === i || n.pathname.startsWith(i + "/")) ? null : /* @__PURE__ */ g(O, { children: /* @__PURE__ */ g(a, {
85
+ fallback: /* @__PURE__ */ g(D, {}),
86
86
  children: /* @__PURE__ */ _(f, { children: [
87
87
  /* @__PURE__ */ g(d, {
88
88
  index: !0,
@@ -102,20 +102,24 @@ function O() {
102
102
  }),
103
103
  /* @__PURE__ */ g(d, {
104
104
  path: "connections/add",
105
- element: /* @__PURE__ */ g(T, {})
105
+ element: /* @__PURE__ */ g(E, {})
106
106
  }),
107
107
  /* @__PURE__ */ g(d, {
108
108
  path: "connections/add/:providerId",
109
- element: /* @__PURE__ */ g(T, {})
109
+ element: /* @__PURE__ */ g(E, {})
110
110
  }),
111
111
  /* @__PURE__ */ g(d, {
112
112
  path: "connections/:connectionId",
113
113
  element: /* @__PURE__ */ g(S, {})
114
114
  }),
115
115
  /* @__PURE__ */ g(d, {
116
- path: "logs",
116
+ path: "developer/connectors",
117
117
  element: /* @__PURE__ */ g(C, {})
118
118
  }),
119
+ /* @__PURE__ */ g(d, {
120
+ path: "logs",
121
+ element: /* @__PURE__ */ g(w, {})
122
+ }),
119
123
  /* @__PURE__ */ g(d, {
120
124
  path: "*",
121
125
  element: /* @__PURE__ */ g(u, {
@@ -127,6 +131,6 @@ function O() {
127
131
  }) });
128
132
  }
129
133
  //#endregion
130
- export { O as IntegrationsUserRoutes };
134
+ export { k as IntegrationsUserRoutes };
131
135
 
132
136
  //# sourceMappingURL=IntegrationsUserRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsUserRoutes.js","names":[],"sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation, useNavigate, useParams } from 'react-router';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { AddConnectionDialog } from './components/AddConnectionDialog';\nimport { useIntegrations } from './providers/IntegrationsProvider';\nimport { joinPath } from './utils/navigation';\n\n// Eager loaded - primary landing page\nimport { IntegrationsUserLandingPage } from './pages/IntegrationsUserLandingPage';\n\n// Lazy loaded pages\nconst ProviderCatalog = lazy(() =>\n import('./pages/ProviderCatalog').then((m) => ({ default: m.ProviderCatalog }))\n);\nconst ProviderDetail = lazy(() =>\n import('./pages/ProviderDetail').then((m) => ({ default: m.ProviderDetail }))\n);\nconst ConnectionsList = lazy(() =>\n import('./pages/ConnectionsList').then((m) => ({ default: m.ConnectionsList }))\n);\nconst AddConnectionWizard = lazy(() =>\n import('./pages/AddConnectionWizard').then((m) => ({ default: m.AddConnectionWizard }))\n);\nconst ConnectionDetail = lazy(() =>\n import('./pages/ConnectionDetail').then((m) => ({ default: m.ConnectionDetail }))\n);\nconst ConnectionLogs = lazy(() =>\n import('./pages/ConnectionLogs').then((m) => ({ default: m.ConnectionLogs }))\n);\n\nconst BOTLIT_CHANNEL_PROVIDER_KEYS = new Set(['slack-user', 'teams-user', 'discord-user']);\n\n/** Deep links use the same schema-driven dialog as the Connections and provider pages. */\nfunction ConnectionAddRoute() {\n const { basePath } = useIntegrations();\n const { providerId } = useParams<{ providerId: string }>();\n const { search } = useLocation();\n const navigate = useNavigate();\n const params = new URLSearchParams(search);\n const providerKey = params.get('providerKey');\n\n // Botlit's existing channel setup needs its full-page OAuth return redirect.\n // Other deep links (including the FluidGrids channel picker) must honor the\n // shared dialog's provider/method storage policy instead of the old wizard.\n if (\n params.get('returnTo') &&\n params.get('channelId') &&\n providerKey &&\n BOTLIT_CHANNEL_PROVIDER_KEYS.has(providerKey)\n ) {\n return <AddConnectionWizard />;\n }\n\n return (\n <AddConnectionDialog\n open\n onClose={() => navigate(joinPath(basePath ?? '/', 'connections'))}\n preselectedProviderId={providerId}\n preselectedProviderKey={providerKey}\n />\n );\n}\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null; retryKey: number }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null, retryKey: 0 };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error('[Integrations] Lazy page load failed:', error, errorInfo);\n }\n\n handleRetry = () => {\n // Increment retryKey to force React to remount the lazy tree,\n // which triggers a fresh dynamic import instead of reusing the cached rejection.\n this.setState((prev) => ({ hasError: false, error: null, retryKey: prev.retryKey + 1 }));\n };\n\n render() {\n if (this.state.hasError) {\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">Failed to load page</h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {this.state.error?.message ||\n 'The page chunk could not be loaded. This may be due to a network issue.'}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n Try Again\n </button>\n </div>\n );\n }\n\n return <div key={this.state.retryKey}>{this.props.children}</div>;\n }\n}\n\n/**\n * User-facing routes for the Integrations microfrontend.\n *\n * Includes: Overview, Providers, Connections, Activity Logs.\n * Excludes admin features: Settings.\n */\nexport function IntegrationsUserRoutes() {\n const { basePath } = useIntegrations();\n const location = useLocation();\n\n const normalizedBasePath =\n basePath && basePath !== '/' ? (basePath.endsWith('/') ? basePath.slice(0, -1) : basePath) : '';\n\n if (normalizedBasePath) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <LazyErrorBoundary>\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route (eager loaded) */}\n <Route index element={<IntegrationsUserLandingPage />} />\n\n {/* Providers (lazy loaded) */}\n <Route path=\"providers\" element={<ProviderCatalog />} />\n <Route path=\"providers/:providerId\" element={<ProviderDetail />} />\n\n {/* Connections (lazy loaded) */}\n <Route path=\"connections\" element={<ConnectionsList />} />\n <Route path=\"connections/add\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/add/:providerId\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/:connectionId\" element={<ConnectionDetail />} />\n\n {/* Logs (lazy loaded) */}\n <Route path=\"logs\" element={<ConnectionLogs />} />\n\n {/* Catch-all route - redirect to overview */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AA;GAEE,kBAAC,GAAD;IAAO,OAAA;IAAM,SAAS,kBAAC,GAAD,EAA+B,CAAA;IAAI,CAAA;GAGzD,kBAAC,GAAD;IAAO,MAAK;IAAY,SAAS,kBAAC,GAAD,EAAmB,CAAA;IAAI,CAAA;GACxD,kBAAC,GAAD;IAAO,MAAK;IAAwB,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GAGnE,kBAAC,GAAD;IAAO,MAAK;IAAc,SAAS,kBAAC,GAAD,EAAmB,CAAA;IAAI,CAAA;GAC1D,kBAAC,GAAD;IAAO,MAAK;IAAkB,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GACjE,kBAAC,GAAD;IAAO,MAAK;IAA8B,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAC7E,kBAAC,GAAD;IAAO,MAAK;IAA4B,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GAGzE,kBAAC,GAAD;IAAO,MAAK;IAAO,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GAGlD,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA,EACO,CAAA"}
1
+ {"version":3,"file":"IntegrationsUserRoutes.js","names":[],"sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation, useNavigate, useParams } from 'react-router';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { AddConnectionDialog } from './components/AddConnectionDialog';\nimport { useIntegrations } from './providers/IntegrationsProvider';\nimport { joinPath } from './utils/navigation';\n\n// Eager loaded - primary landing page\nimport { IntegrationsUserLandingPage } from './pages/IntegrationsUserLandingPage';\n\n// Lazy loaded pages\nconst ProviderCatalog = lazy(() =>\n import('./pages/ProviderCatalog').then((m) => ({ default: m.ProviderCatalog }))\n);\nconst ProviderDetail = lazy(() =>\n import('./pages/ProviderDetail').then((m) => ({ default: m.ProviderDetail }))\n);\nconst ConnectionsList = lazy(() =>\n import('./pages/ConnectionsList').then((m) => ({ default: m.ConnectionsList }))\n);\nconst AddConnectionWizard = lazy(() =>\n import('./pages/AddConnectionWizard').then((m) => ({ default: m.AddConnectionWizard }))\n);\nconst ConnectionDetail = lazy(() =>\n import('./pages/ConnectionDetail').then((m) => ({ default: m.ConnectionDetail }))\n);\nconst ConnectorSubmissionsPage = lazy(() =>\n import('./pages/ConnectorSubmissionsPage').then((m) => ({\n default: m.ConnectorSubmissionsPage,\n }))\n);\nconst ConnectionLogs = lazy(() =>\n import('./pages/ConnectionLogs').then((m) => ({ default: m.ConnectionLogs }))\n);\n\nconst BOTLIT_CHANNEL_PROVIDER_KEYS = new Set(['slack-user', 'teams-user', 'discord-user']);\n\n/** Deep links use the same schema-driven dialog as the Connections and provider pages. */\nfunction ConnectionAddRoute() {\n const { basePath } = useIntegrations();\n const { providerId } = useParams<{ providerId: string }>();\n const { search } = useLocation();\n const navigate = useNavigate();\n const params = new URLSearchParams(search);\n const providerKey = params.get('providerKey');\n\n // Botlit's existing channel setup needs its full-page OAuth return redirect.\n // Other deep links (including the FluidGrids channel picker) must honor the\n // shared dialog's provider/method storage policy instead of the old wizard.\n if (\n params.get('returnTo') &&\n params.get('channelId') &&\n providerKey &&\n BOTLIT_CHANNEL_PROVIDER_KEYS.has(providerKey)\n ) {\n return <AddConnectionWizard />;\n }\n\n return (\n <AddConnectionDialog\n open\n onClose={() => navigate(joinPath(basePath ?? '/', 'connections'))}\n preselectedProviderId={providerId}\n preselectedProviderKey={providerKey}\n />\n );\n}\n\n/**\n * Loading fallback for lazy-loaded pages\n */\nfunction PageLoader() {\n return (\n <div className=\"flex items-center justify-center min-h-[400px]\">\n <Loader2 className=\"size-8 animate-spin text-primary\" />\n </div>\n );\n}\n\n/**\n * Error boundary for lazy-loaded page chunks.\n * Catches chunk-load failures and renders a retry UI instead of an infinite spinner.\n */\nclass LazyErrorBoundary extends Component<\n { children: ReactNode },\n { hasError: boolean; error: Error | null; retryKey: number }\n> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, error: null, retryKey: 0 };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n console.error('[Integrations] Lazy page load failed:', error, errorInfo);\n }\n\n handleRetry = () => {\n // Increment retryKey to force React to remount the lazy tree,\n // which triggers a fresh dynamic import instead of reusing the cached rejection.\n this.setState((prev) => ({ hasError: false, error: null, retryKey: prev.retryKey + 1 }));\n };\n\n render() {\n if (this.state.hasError) {\n return (\n <div className=\"flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6\">\n <div className=\"p-3 rounded-full bg-status-error-bg/10\">\n <AlertTriangle className=\"size-8 text-status-error-text\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-text-primary\">Failed to load page</h3>\n <p className=\"text-sm text-text-secondary max-w-md\">\n {this.state.error?.message ||\n 'The page chunk could not be loaded. This may be due to a network issue.'}\n </p>\n </div>\n <button\n type=\"button\"\n onClick={this.handleRetry}\n className=\"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors\"\n >\n <RefreshCw className=\"size-4\" />\n Try Again\n </button>\n </div>\n );\n }\n\n return <div key={this.state.retryKey}>{this.props.children}</div>;\n }\n}\n\n/**\n * User-facing routes for the Integrations microfrontend.\n *\n * Includes: Overview, Providers, Connections, Activity Logs.\n * Excludes admin features: Settings.\n */\nexport function IntegrationsUserRoutes() {\n const { basePath } = useIntegrations();\n const location = useLocation();\n\n const normalizedBasePath =\n basePath && basePath !== '/' ? (basePath.endsWith('/') ? basePath.slice(0, -1) : basePath) : '';\n\n if (normalizedBasePath) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <LazyErrorBoundary>\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route (eager loaded) */}\n <Route index element={<IntegrationsUserLandingPage />} />\n\n {/* Providers (lazy loaded) */}\n <Route path=\"providers\" element={<ProviderCatalog />} />\n <Route path=\"providers/:providerId\" element={<ProviderDetail />} />\n\n {/* Connections (lazy loaded) */}\n <Route path=\"connections\" element={<ConnectionsList />} />\n <Route path=\"connections/add\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/add/:providerId\" element={<ConnectionAddRoute />} />\n <Route path=\"connections/:connectionId\" element={<ConnectionDetail />} />\n\n {/* Third-party connector publishing (BOFF-4417) */}\n <Route path=\"developer/connectors\" element={<ConnectorSubmissionsPage />} />\n\n {/* Logs (lazy loaded) */}\n <Route path=\"logs\" element={<ConnectionLogs />} />\n\n {/* Catch-all route - redirect to overview */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;;;AAWA,IAAM,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAsB,QAC1B,OAAO,kCAA+B,MAAM,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CACxF,EACK,IAAmB,QACvB,OAAO,+BAA4B,MAAM,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAClF,EACK,IAA2B,QAC/B,OAAO,uCAAoC,MAAM,OAAO,EACtD,SAAS,EAAE,0BACZ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AC,GAAD;IAAO,MAAK;IAA4B,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAAI,CAAA;GAGzE,kBAAC,GAAD;IAAO,MAAK;IAAuB,SAAS,kBAAC,GAAD,EAA4B,CAAA;IAAI,CAAA;GAG5E,kBAAC,GAAD;IAAO,MAAK;IAAO,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GAGlD,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA,EACO,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ import { ConnectorSubmission, ConnectorSubmissionStatus } from '../hooks/useConnectorSubmissions';
3
+
4
+ export declare function ConnectorSubmissionStatusBadge({ status }: {
5
+ status: ConnectorSubmissionStatus;
6
+ }): import("react").JSX.Element;
7
+ interface ConnectorSubmissionCardProps {
8
+ submission: ConnectorSubmission;
9
+ /** Show the publisher contact details (reviewer view). */
10
+ showPublisherContact?: boolean;
11
+ actions?: ReactNode;
12
+ }
13
+ /** One connector submission: identity, auth, links, review state. */
14
+ export declare function ConnectorSubmissionCard({ submission, showPublisherContact, actions, }: ConnectorSubmissionCardProps): import("react").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=ConnectorSubmissionCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectorSubmissionCard.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ConnectorSubmissionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,EACL,KAAK,mBAAmB,EACxB,yBAAyB,EAC1B,MAAM,kCAAkC,CAAC;AA+B1C,wBAAgB,8BAA8B,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,yBAAyB,CAAA;CAAE,+BAa/F;AAED,UAAU,4BAA4B;IACpC,UAAU,EAAE,mBAAmB,CAAC;IAChC,0DAA0D;IAC1D,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,qEAAqE;AACrE,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,oBAA4B,EAC5B,OAAO,GACR,EAAE,4BAA4B,+BA4I9B"}
@@ -0,0 +1,192 @@
1
+ import { useTr as e } from "../hooks/useTr.js";
2
+ import { cn as t } from "../utils/cn.js";
3
+ import { ConnectorSubmissionStatus as n } from "../../generated/wspace-types.js";
4
+ import { useFormatDate as r } from "../hooks/useFormatDate.js";
5
+ import "../hooks/useConnectorSubmissions.js";
6
+ import { AlertTriangle as i, Clock as a, ExternalLink as o } from "lucide-react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ //#region src/integrations/components/ConnectorSubmissionCard.tsx
9
+ var l = {
10
+ [n.PendingReview]: "text-status-info-text bg-status-info-bg-subtle border-border-default",
11
+ [n.Approved]: "text-status-success-text bg-status-success-bg-subtle border-border-default",
12
+ [n.Rejected]: "text-status-error-text bg-status-error-bg-subtle border-border-default",
13
+ [n.Withdrawn]: "text-text-secondary bg-bg-sunken border-border-subtle"
14
+ }, u = {
15
+ [n.PendingReview]: ["integrations.connectorSubmissions.status.pendingReview", "In review"],
16
+ [n.Approved]: ["integrations.connectorSubmissions.status.approved", "Approved"],
17
+ [n.Rejected]: ["integrations.connectorSubmissions.status.rejected", "Rejected"],
18
+ [n.Withdrawn]: ["integrations.connectorSubmissions.status.withdrawn", "Withdrawn"]
19
+ };
20
+ function d({ status: n }) {
21
+ let r = e(), [i, a] = u[n];
22
+ return /* @__PURE__ */ s("span", {
23
+ className: t("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium", l[n]),
24
+ children: r(i, a)
25
+ });
26
+ }
27
+ function f({ submission: l, showPublisherContact: u = !1, actions: f }) {
28
+ let p = e(), m = r(), h = l.status === n.PendingReview;
29
+ return /* @__PURE__ */ c("article", {
30
+ className: "rounded-xl border border-border-seam bg-bg-surface p-5 space-y-3",
31
+ "data-testid": "connector-submission",
32
+ "aria-label": l.name,
33
+ children: [
34
+ /* @__PURE__ */ c("div", {
35
+ className: "flex flex-wrap items-start gap-3",
36
+ children: [/* @__PURE__ */ c("div", {
37
+ className: "min-w-0 flex-1",
38
+ children: [/* @__PURE__ */ c("div", {
39
+ className: "flex flex-wrap items-center gap-2",
40
+ children: [
41
+ /* @__PURE__ */ s("h3", {
42
+ className: "text-base font-semibold text-text-primary",
43
+ children: l.name
44
+ }),
45
+ /* @__PURE__ */ s(d, { status: l.status }),
46
+ l.isReviewOverdue && /* @__PURE__ */ c("span", {
47
+ className: "inline-flex items-center gap-1 rounded-full border border-border-default bg-status-warning-bg-subtle px-2 py-0.5 text-xs font-medium text-status-warning-text",
48
+ children: [/* @__PURE__ */ s(i, { size: 12 }), p("integrations.connectorSubmissions.overdue", "Review overdue")]
49
+ })
50
+ ]
51
+ }), /* @__PURE__ */ c("p", {
52
+ className: "mt-0.5 text-xs text-text-secondary font-mono break-all",
53
+ children: [
54
+ l.key,
55
+ " · v",
56
+ l.version,
57
+ " · ",
58
+ l.authType,
59
+ " · ",
60
+ l.category
61
+ ]
62
+ })]
63
+ }), f && /* @__PURE__ */ s("div", {
64
+ className: "flex flex-wrap gap-2",
65
+ children: f
66
+ })]
67
+ }),
68
+ /* @__PURE__ */ s("p", {
69
+ className: "text-sm text-text-secondary whitespace-pre-line",
70
+ children: l.description
71
+ }),
72
+ /* @__PURE__ */ c("dl", {
73
+ className: "grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1 text-xs",
74
+ children: [
75
+ /* @__PURE__ */ c("div", {
76
+ className: "flex gap-1 min-w-0",
77
+ children: [/* @__PURE__ */ c("dt", {
78
+ className: "text-text-secondary",
79
+ children: [p("integrations.connectorSubmissions.fields.publisher", "Publisher"), ":"]
80
+ }), /* @__PURE__ */ s("dd", {
81
+ className: "text-text-primary truncate",
82
+ children: l.publisherName
83
+ })]
84
+ }),
85
+ /* @__PURE__ */ c("div", {
86
+ className: "flex gap-1 min-w-0",
87
+ children: [/* @__PURE__ */ c("dt", {
88
+ className: "text-text-secondary",
89
+ children: [p("integrations.connectorSubmissions.fields.baseUrl", "API base URL"), ":"]
90
+ }), /* @__PURE__ */ s("dd", {
91
+ className: "text-text-primary font-mono truncate",
92
+ children: l.baseUrl
93
+ })]
94
+ }),
95
+ l.apiKeyName && /* @__PURE__ */ c("div", {
96
+ className: "flex gap-1 min-w-0",
97
+ children: [/* @__PURE__ */ c("dt", {
98
+ className: "text-text-secondary",
99
+ children: [p("integrations.connectorSubmissions.fields.apiKey", "API key"), ":"]
100
+ }), /* @__PURE__ */ c("dd", {
101
+ className: "text-text-primary font-mono truncate",
102
+ children: [
103
+ l.apiKeyPlacement,
104
+ " ",
105
+ l.apiKeyName,
106
+ l.apiKeyPrefix ? ` (${l.apiKeyPrefix})` : ""
107
+ ]
108
+ })]
109
+ }),
110
+ u && /* @__PURE__ */ c("div", {
111
+ className: "flex gap-1 min-w-0",
112
+ children: [/* @__PURE__ */ c("dt", {
113
+ className: "text-text-secondary",
114
+ children: [p("integrations.connectorSubmissions.fields.supportEmail", "Support email"), ":"]
115
+ }), /* @__PURE__ */ s("dd", {
116
+ className: "text-text-primary truncate",
117
+ children: l.supportEmail
118
+ })]
119
+ }),
120
+ /* @__PURE__ */ c("div", {
121
+ className: "flex gap-1 min-w-0",
122
+ children: [/* @__PURE__ */ c("dt", {
123
+ className: "text-text-secondary",
124
+ children: [p("integrations.connectorSubmissions.fields.submitted", "Submitted"), ":"]
125
+ }), /* @__PURE__ */ s("dd", {
126
+ className: "text-text-primary",
127
+ children: m(l.submittedAt)
128
+ })]
129
+ }),
130
+ h ? /* @__PURE__ */ c("div", {
131
+ className: "flex gap-1 min-w-0",
132
+ children: [/* @__PURE__ */ c("dt", {
133
+ className: "inline-flex items-center gap-1 text-text-secondary",
134
+ children: [
135
+ /* @__PURE__ */ s(a, { size: 12 }),
136
+ p("integrations.connectorSubmissions.fields.reviewDue", "Review due"),
137
+ ":"
138
+ ]
139
+ }), /* @__PURE__ */ s("dd", {
140
+ className: "text-text-primary",
141
+ children: m(l.reviewDueAt)
142
+ })]
143
+ }) : /* @__PURE__ */ c("div", {
144
+ className: "flex gap-1 min-w-0",
145
+ children: [/* @__PURE__ */ c("dt", {
146
+ className: "text-text-secondary",
147
+ children: [p("integrations.connectorSubmissions.fields.reviewed", "Reviewed"), ":"]
148
+ }), /* @__PURE__ */ s("dd", {
149
+ className: "text-text-primary",
150
+ children: m(l.reviewedAt ?? null)
151
+ })]
152
+ })
153
+ ]
154
+ }),
155
+ /* @__PURE__ */ s("div", {
156
+ className: "flex flex-wrap gap-3 text-xs",
157
+ children: [
158
+ [l.website, p("integrations.connectorSubmissions.links.website", "Website")],
159
+ [l.docsUrl, p("integrations.connectorSubmissions.links.docs", "API docs")],
160
+ [l.privacyPolicyUrl, p("integrations.connectorSubmissions.links.privacy", "Privacy policy")],
161
+ [l.termsUrl, p("integrations.connectorSubmissions.links.terms", "Terms")],
162
+ [l.repositoryUrl, p("integrations.connectorSubmissions.links.repository", "Repository")]
163
+ ].filter((e) => !!e[0]).map(([e, t]) => /* @__PURE__ */ c("a", {
164
+ href: e,
165
+ target: "_blank",
166
+ rel: "noopener noreferrer",
167
+ className: "inline-flex items-center gap-1 text-primary hover:underline",
168
+ children: [t, /* @__PURE__ */ s(o, { size: 12 })]
169
+ }, t))
170
+ }),
171
+ l.submitterNotes && u && /* @__PURE__ */ s("p", {
172
+ className: "rounded-lg bg-bg-sunken px-3 py-2 text-xs text-text-secondary whitespace-pre-line",
173
+ children: l.submitterNotes
174
+ }),
175
+ l.reviewNotes && /* @__PURE__ */ c("p", {
176
+ className: t("rounded-lg px-3 py-2 text-sm whitespace-pre-line", l.status === n.Rejected ? "bg-status-error-bg-subtle text-status-error-text" : "bg-bg-sunken text-text-secondary"),
177
+ children: [
178
+ /* @__PURE__ */ c("span", {
179
+ className: "font-medium",
180
+ children: [p("integrations.connectorSubmissions.fields.reviewNotes", "Reviewer notes"), ":"]
181
+ }),
182
+ " ",
183
+ l.reviewNotes
184
+ ]
185
+ })
186
+ ]
187
+ });
188
+ }
189
+ //#endregion
190
+ export { f as ConnectorSubmissionCard };
191
+
192
+ //# sourceMappingURL=ConnectorSubmissionCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectorSubmissionCard.js","names":[],"sources":["../../../src/integrations/components/ConnectorSubmissionCard.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { AlertTriangle, Clock, ExternalLink } from 'lucide-react';\n\nimport { cn } from '../utils/cn';\nimport { useTr } from '../hooks/useTr';\nimport { useFormatDate } from '../hooks/useFormatDate';\nimport {\n type ConnectorSubmission,\n ConnectorSubmissionStatus,\n} from '../hooks/useConnectorSubmissions';\n\nconst STATUS_CLASSES: Record<ConnectorSubmissionStatus, string> = {\n [ConnectorSubmissionStatus.PendingReview]:\n 'text-status-info-text bg-status-info-bg-subtle border-border-default',\n [ConnectorSubmissionStatus.Approved]:\n 'text-status-success-text bg-status-success-bg-subtle border-border-default',\n [ConnectorSubmissionStatus.Rejected]:\n 'text-status-error-text bg-status-error-bg-subtle border-border-default',\n [ConnectorSubmissionStatus.Withdrawn]: 'text-text-secondary bg-bg-sunken border-border-subtle',\n};\n\nconst STATUS_LABELS: Record<ConnectorSubmissionStatus, [string, string]> = {\n [ConnectorSubmissionStatus.PendingReview]: [\n 'integrations.connectorSubmissions.status.pendingReview',\n 'In review',\n ],\n [ConnectorSubmissionStatus.Approved]: [\n 'integrations.connectorSubmissions.status.approved',\n 'Approved',\n ],\n [ConnectorSubmissionStatus.Rejected]: [\n 'integrations.connectorSubmissions.status.rejected',\n 'Rejected',\n ],\n [ConnectorSubmissionStatus.Withdrawn]: [\n 'integrations.connectorSubmissions.status.withdrawn',\n 'Withdrawn',\n ],\n};\n\nexport function ConnectorSubmissionStatusBadge({ status }: { status: ConnectorSubmissionStatus }) {\n const tr = useTr();\n const [key, fallback] = STATUS_LABELS[status];\n return (\n <span\n className={cn(\n 'inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium',\n STATUS_CLASSES[status]\n )}\n >\n {tr(key, fallback)}\n </span>\n );\n}\n\ninterface ConnectorSubmissionCardProps {\n submission: ConnectorSubmission;\n /** Show the publisher contact details (reviewer view). */\n showPublisherContact?: boolean;\n actions?: ReactNode;\n}\n\n/** One connector submission: identity, auth, links, review state. */\nexport function ConnectorSubmissionCard({\n submission,\n showPublisherContact = false,\n actions,\n}: ConnectorSubmissionCardProps) {\n const tr = useTr();\n const formatDate = useFormatDate();\n const pending = submission.status === ConnectorSubmissionStatus.PendingReview;\n\n return (\n <article\n className=\"rounded-xl border border-border-seam bg-bg-surface p-5 space-y-3\"\n data-testid=\"connector-submission\"\n aria-label={submission.name}\n >\n <div className=\"flex flex-wrap items-start gap-3\">\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex flex-wrap items-center gap-2\">\n <h3 className=\"text-base font-semibold text-text-primary\">{submission.name}</h3>\n <ConnectorSubmissionStatusBadge status={submission.status} />\n {submission.isReviewOverdue && (\n <span className=\"inline-flex items-center gap-1 rounded-full border border-border-default bg-status-warning-bg-subtle px-2 py-0.5 text-xs font-medium text-status-warning-text\">\n <AlertTriangle size={12} />\n {tr('integrations.connectorSubmissions.overdue', 'Review overdue')}\n </span>\n )}\n </div>\n <p className=\"mt-0.5 text-xs text-text-secondary font-mono break-all\">\n {submission.key} · v{submission.version} · {submission.authType} · {submission.category}\n </p>\n </div>\n {actions && <div className=\"flex flex-wrap gap-2\">{actions}</div>}\n </div>\n\n <p className=\"text-sm text-text-secondary whitespace-pre-line\">{submission.description}</p>\n\n <dl className=\"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1 text-xs\">\n <div className=\"flex gap-1 min-w-0\">\n <dt className=\"text-text-secondary\">\n {tr('integrations.connectorSubmissions.fields.publisher', 'Publisher')}:\n </dt>\n <dd className=\"text-text-primary truncate\">{submission.publisherName}</dd>\n </div>\n <div className=\"flex gap-1 min-w-0\">\n <dt className=\"text-text-secondary\">\n {tr('integrations.connectorSubmissions.fields.baseUrl', 'API base URL')}:\n </dt>\n <dd className=\"text-text-primary font-mono truncate\">{submission.baseUrl}</dd>\n </div>\n {submission.apiKeyName && (\n <div className=\"flex gap-1 min-w-0\">\n <dt className=\"text-text-secondary\">\n {tr('integrations.connectorSubmissions.fields.apiKey', 'API key')}:\n </dt>\n <dd className=\"text-text-primary font-mono truncate\">\n {submission.apiKeyPlacement} {submission.apiKeyName}\n {submission.apiKeyPrefix ? ` (${submission.apiKeyPrefix})` : ''}\n </dd>\n </div>\n )}\n {showPublisherContact && (\n <div className=\"flex gap-1 min-w-0\">\n <dt className=\"text-text-secondary\">\n {tr('integrations.connectorSubmissions.fields.supportEmail', 'Support email')}:\n </dt>\n <dd className=\"text-text-primary truncate\">{submission.supportEmail}</dd>\n </div>\n )}\n <div className=\"flex gap-1 min-w-0\">\n <dt className=\"text-text-secondary\">\n {tr('integrations.connectorSubmissions.fields.submitted', 'Submitted')}:\n </dt>\n <dd className=\"text-text-primary\">{formatDate(submission.submittedAt)}</dd>\n </div>\n {pending ? (\n <div className=\"flex gap-1 min-w-0\">\n <dt className=\"inline-flex items-center gap-1 text-text-secondary\">\n <Clock size={12} />\n {tr('integrations.connectorSubmissions.fields.reviewDue', 'Review due')}:\n </dt>\n <dd className=\"text-text-primary\">{formatDate(submission.reviewDueAt)}</dd>\n </div>\n ) : (\n <div className=\"flex gap-1 min-w-0\">\n <dt className=\"text-text-secondary\">\n {tr('integrations.connectorSubmissions.fields.reviewed', 'Reviewed')}:\n </dt>\n <dd className=\"text-text-primary\">{formatDate(submission.reviewedAt ?? null)}</dd>\n </div>\n )}\n </dl>\n\n <div className=\"flex flex-wrap gap-3 text-xs\">\n {[\n [submission.website, tr('integrations.connectorSubmissions.links.website', 'Website')],\n [submission.docsUrl, tr('integrations.connectorSubmissions.links.docs', 'API docs')],\n [\n submission.privacyPolicyUrl,\n tr('integrations.connectorSubmissions.links.privacy', 'Privacy policy'),\n ],\n [submission.termsUrl, tr('integrations.connectorSubmissions.links.terms', 'Terms')],\n [\n submission.repositoryUrl,\n tr('integrations.connectorSubmissions.links.repository', 'Repository'),\n ],\n ]\n .filter((entry): entry is [string, string] => Boolean(entry[0]))\n .map(([href, label]) => (\n <a\n key={label}\n href={href}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1 text-primary hover:underline\"\n >\n {label}\n <ExternalLink size={12} />\n </a>\n ))}\n </div>\n\n {submission.submitterNotes && showPublisherContact && (\n <p className=\"rounded-lg bg-bg-sunken px-3 py-2 text-xs text-text-secondary whitespace-pre-line\">\n {submission.submitterNotes}\n </p>\n )}\n\n {submission.reviewNotes && (\n <p\n className={cn(\n 'rounded-lg px-3 py-2 text-sm whitespace-pre-line',\n submission.status === ConnectorSubmissionStatus.Rejected\n ? 'bg-status-error-bg-subtle text-status-error-text'\n : 'bg-bg-sunken text-text-secondary'\n )}\n >\n <span className=\"font-medium\">\n {tr('integrations.connectorSubmissions.fields.reviewNotes', 'Reviewer notes')}:\n </span>{' '}\n {submission.reviewNotes}\n </p>\n )}\n </article>\n );\n}\n"],"mappings":";;;;;;;;AAWA,IAAM,IAA4D;EAC/D,EAA0B,gBACzB;EACD,EAA0B,WACzB;EACD,EAA0B,WACzB;EACD,EAA0B,YAAY;CACxC,EAEK,IAAqE;EACxE,EAA0B,gBAAgB,CACzC,0DACA,YACD;EACA,EAA0B,WAAW,CACpC,qDACA,WACD;EACA,EAA0B,WAAW,CACpC,qDACA,WACD;EACA,EAA0B,YAAY,CACrC,sDACA,YACD;CACF;AAED,SAAgB,EAA+B,EAAE,aAAiD;CAChG,IAAM,IAAK,GAAO,EACZ,CAAC,GAAK,KAAY,EAAc;AACtC,QACE,kBAAC,QAAD;EACE,WAAW,EACT,gFACA,EAAe,GAChB;YAEA,EAAG,GAAK,EAAS;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,UAAU,EAAG,iDAAiD,QAAQ,CAAC;KACnF,CACE,EAAW,eACX,EAAG,sDAAsD,aAAa,CACvE;KACF,CACE,QAAQ,MAAqC,EAAQ,EAAM,GAAI,CAC/D,KAAK,CAAC,GAAM,OACX,kBAAC,KAAD;KAEQ;KACN,QAAO;KACP,KAAI;KACJ,WAAU;eALZ,CAOG,GACD,kBAAC,GAAD,EAAc,MAAM,IAAM,CAAA,CACxB;OARG,EAQH,CACJ;IACA,CAAA;GAEL,EAAW,kBAAkB,KAC5B,kBAAC,KAAD;IAAG,WAAU;cACV,EAAW;IACV,CAAA;GAGL,EAAW,eACV,kBAAC,KAAD;IACE,WAAW,EACT,oDACA,EAAW,WAAW,EAA0B,WAC5C,qDACA,mCACL;cANH;KAQE,kBAAC,QAAD;MAAM,WAAU;gBAAhB,CACG,EAAG,wDAAwD,iBAAiB,EAAC,IACzE;;KAAC;KACP,EAAW;KACV;;GAEE"}
@@ -0,0 +1,22 @@
1
+ interface ConnectorSubmissionPagerProps {
2
+ /** Offset of the first row on this page. */
3
+ offset: number;
4
+ /** Rows on this page. */
5
+ count: number;
6
+ /** Rows across every page. */
7
+ total: number;
8
+ /** Whether the service holds rows after this page. */
9
+ hasMore: boolean;
10
+ pageSize: number;
11
+ disabled?: boolean;
12
+ onOffsetChange: (offset: number) => void;
13
+ }
14
+ /**
15
+ * Previous/next paging for connector submission lists (BOFF-4417). Renders
16
+ * nothing while everything fits on the first page. Previous stays available
17
+ * when a page empties (for example after the last pending row on it was
18
+ * withdrawn), so the list never strands the reader past its end.
19
+ */
20
+ export declare function ConnectorSubmissionPager({ offset, count, total, hasMore, pageSize, disabled, onOffsetChange, }: ConnectorSubmissionPagerProps): import("react").JSX.Element | null;
21
+ export {};
22
+ //# sourceMappingURL=ConnectorSubmissionPager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectorSubmissionPager.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ConnectorSubmissionPager.tsx"],"names":[],"mappings":"AAKA,UAAU,6BAA6B;IACrC,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,QAAgB,EAChB,cAAc,GACf,EAAE,6BAA6B,sCAwC/B"}
@@ -0,0 +1,36 @@
1
+ import { useTr as e } from "../hooks/useTr.js";
2
+ import { ChevronLeft as t, ChevronRight as n } from "lucide-react";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import { Button as a } from "@burdenoff/fe-libs/ui";
5
+ //#region src/integrations/components/ConnectorSubmissionPager.tsx
6
+ function o({ offset: o, count: s, total: c, hasMore: l, pageSize: u, disabled: d = !1, onOffsetChange: f }) {
7
+ let p = e();
8
+ return o === 0 && !l ? null : /* @__PURE__ */ i("nav", {
9
+ className: "flex flex-wrap items-center justify-between gap-3 text-sm text-text-secondary",
10
+ "aria-label": p("integrations.connectorSubmissions.pager.label", "Submission pages"),
11
+ children: [/* @__PURE__ */ r("span", { children: s > 0 ? p("integrations.connectorSubmissions.pager.range", "Showing {{first}}–{{last}} of {{total}}", {
12
+ first: o + 1,
13
+ last: o + s,
14
+ total: c
15
+ }) : p("integrations.connectorSubmissions.pager.pastEnd", "No rows on this page") }), /* @__PURE__ */ i("div", {
16
+ className: "flex gap-2",
17
+ children: [/* @__PURE__ */ i(a, {
18
+ variant: "ghost",
19
+ size: "sm",
20
+ disabled: d || o === 0,
21
+ onClick: () => f(Math.max(0, o - u)),
22
+ children: [/* @__PURE__ */ r(t, { size: 14 }), p("integrations.connectorSubmissions.pager.previous", "Previous")]
23
+ }), /* @__PURE__ */ i(a, {
24
+ variant: "ghost",
25
+ size: "sm",
26
+ disabled: d || !l,
27
+ onClick: () => f(o + u),
28
+ children: [p("integrations.connectorSubmissions.pager.next", "Next"), /* @__PURE__ */ r(n, { size: 14 })]
29
+ })]
30
+ })]
31
+ });
32
+ }
33
+ //#endregion
34
+ export { o as ConnectorSubmissionPager };
35
+
36
+ //# sourceMappingURL=ConnectorSubmissionPager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectorSubmissionPager.js","names":[],"sources":["../../../src/integrations/components/ConnectorSubmissionPager.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight } from 'lucide-react';\nimport { Button } from '@burdenoff/fe-libs/ui';\n\nimport { useTr } from '../hooks/useTr';\n\ninterface ConnectorSubmissionPagerProps {\n /** Offset of the first row on this page. */\n offset: number;\n /** Rows on this page. */\n count: number;\n /** Rows across every page. */\n total: number;\n /** Whether the service holds rows after this page. */\n hasMore: boolean;\n pageSize: number;\n disabled?: boolean;\n onOffsetChange: (offset: number) => void;\n}\n\n/**\n * Previous/next paging for connector submission lists (BOFF-4417). Renders\n * nothing while everything fits on the first page. Previous stays available\n * when a page empties (for example after the last pending row on it was\n * withdrawn), so the list never strands the reader past its end.\n */\nexport function ConnectorSubmissionPager({\n offset,\n count,\n total,\n hasMore,\n pageSize,\n disabled = false,\n onOffsetChange,\n}: ConnectorSubmissionPagerProps) {\n const tr = useTr();\n if (offset === 0 && !hasMore) return null;\n\n return (\n <nav\n className=\"flex flex-wrap items-center justify-between gap-3 text-sm text-text-secondary\"\n aria-label={tr('integrations.connectorSubmissions.pager.label', 'Submission pages')}\n >\n <span>\n {count > 0\n ? tr(\n 'integrations.connectorSubmissions.pager.range',\n 'Showing {{first}}–{{last}} of {{total}}',\n { first: offset + 1, last: offset + count, total }\n )\n : tr('integrations.connectorSubmissions.pager.pastEnd', 'No rows on this page')}\n </span>\n <div className=\"flex gap-2\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n disabled={disabled || offset === 0}\n onClick={() => onOffsetChange(Math.max(0, offset - pageSize))}\n >\n <ChevronLeft size={14} />\n {tr('integrations.connectorSubmissions.pager.previous', 'Previous')}\n </Button>\n <Button\n variant=\"ghost\"\n size=\"sm\"\n disabled={disabled || !hasMore}\n onClick={() => onOffsetChange(offset + pageSize)}\n >\n {tr('integrations.connectorSubmissions.pager.next', 'Next')}\n <ChevronRight size={14} />\n </Button>\n </div>\n </nav>\n );\n}\n"],"mappings":";;;;;AAyBA,SAAgB,EAAyB,EACvC,WACA,UACA,UACA,YACA,aACA,cAAW,IACX,qBACgC;CAChC,IAAM,IAAK,GAAO;AAGlB,QAFI,MAAW,KAAK,CAAC,IAAgB,OAGnC,kBAAC,OAAD;EACE,WAAU;EACV,cAAY,EAAG,iDAAiD,mBAAmB;YAFrF,CAIE,kBAAC,QAAD,EAAA,UACG,IAAQ,IACL,EACE,iDACA,2CACA;GAAE,OAAO,IAAS;GAAG,MAAM,IAAS;GAAO;GAAO,CACnD,GACD,EAAG,mDAAmD,uBAAuB,EAC5E,CAAA,EACP,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,GAAD;IACE,SAAQ;IACR,MAAK;IACL,UAAU,KAAY,MAAW;IACjC,eAAe,EAAe,KAAK,IAAI,GAAG,IAAS,EAAS,CAAC;cAJ/D,CAME,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA,EACxB,EAAG,oDAAoD,WAAW,CAC5D;OACT,kBAAC,GAAD;IACE,SAAQ;IACR,MAAK;IACL,UAAU,KAAY,CAAC;IACvB,eAAe,EAAe,IAAS,EAAS;cAJlD,CAMG,EAAG,gDAAgD,OAAO,EAC3D,kBAAC,GAAD,EAAc,MAAM,IAAM,CAAA,CACnB;MACL;KACF"}
@@ -0,0 +1,47 @@
1
+ import { ConnectorSubmissionFieldsFragment } from '../../generated/wspace-operations';
2
+ import { ConnectorSubmissionStatus, SubmitConnectorInput } from '../../generated/wspace-types';
3
+
4
+ export type ConnectorSubmission = ConnectorSubmissionFieldsFragment;
5
+ export type ConnectorSubmissionInput = SubmitConnectorInput;
6
+ export { ConnectorSubmissionStatus };
7
+ /** Rows per page. The service caps a page at 100. */
8
+ export declare const CONNECTOR_SUBMISSION_PAGE_SIZE = 25;
9
+ /** One page of the caller's own submissions, newest first. */
10
+ export declare function useMyConnectorSubmissions(offset?: number): {
11
+ submissions: ConnectorSubmissionFieldsFragment[];
12
+ total: any;
13
+ hasMore: any;
14
+ loading: boolean;
15
+ error: import('@apollo/client').ErrorLike | undefined;
16
+ refetch: (variables?: any) => Promise<{
17
+ data: any;
18
+ error?: import('@apollo/client').ErrorLike;
19
+ }>;
20
+ };
21
+ /** One page of the review queue (oldest first) and its counters. Super admins only. */
22
+ export declare function useConnectorReviewQueue(status: ConnectorSubmissionStatus | null, offset?: number): {
23
+ submissions: ConnectorSubmissionFieldsFragment[];
24
+ total: any;
25
+ hasMore: any;
26
+ stats: any;
27
+ loading: boolean;
28
+ error: import('@apollo/client').ErrorLike | undefined;
29
+ refetch: (variables?: any) => Promise<{
30
+ data: any;
31
+ error?: import('@apollo/client').ErrorLike;
32
+ }>;
33
+ };
34
+ export declare function useSubmitConnector(): {
35
+ submitConnector: (input: SubmitConnectorInput) => Promise<any>;
36
+ loading: boolean;
37
+ };
38
+ export declare function useWithdrawConnectorSubmission(): {
39
+ withdraw: (id: string) => Promise<any>;
40
+ loading: boolean;
41
+ };
42
+ export declare function useReviewConnectorSubmission(): {
43
+ approve: (id: string, notes: string | null) => Promise<any>;
44
+ reject: (id: string, reason: string) => Promise<any>;
45
+ loading: boolean;
46
+ };
47
+ //# sourceMappingURL=useConnectorSubmissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useConnectorSubmissions.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useConnectorSubmissions.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,iCAAiC,EAOvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,KAAK,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpG,MAAM,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;AACpE,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,qDAAqD;AACrD,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAOjD,8DAA8D;AAC9D,wBAAgB,yBAAyB,CAAC,MAAM,SAAI;;;;;;;;;;EAkBnD;AAED,uFAAuF;AACvF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,yBAAyB,GAAG,IAAI,EAAE,MAAM,SAAI;;;;;;;;;;;EAiB3F;AAED,wBAAgB,kBAAkB;6BAGhB,oBAAoB;;EAOrC;AAED,wBAAgB,8BAA8B;mBAK/B,MAAM;;EAOpB;AAED,wBAAgB,4BAA4B;kBAQ7B,MAAM,SAAS,MAAM,GAAG,IAAI;iBAO5B,MAAM,UAAU,MAAM;;EAOpC"}