@burdenoff/microfe-integrations 2026.624.1 → 2026.624.3

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 (35) hide show
  1. package/dist/integrations/IntegrationsAdminRoutes.js +5 -5
  2. package/dist/integrations/IntegrationsAdminRoutes.js.map +1 -1
  3. package/dist/integrations/IntegrationsUserRoutes.js +5 -5
  4. package/dist/integrations/IntegrationsUserRoutes.js.map +1 -1
  5. package/dist/integrations/components/AddConnectionDialog.js +64 -64
  6. package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
  7. package/dist/integrations/components/ConfirmDialog.js +30 -43
  8. package/dist/integrations/components/ConfirmDialog.js.map +1 -1
  9. package/dist/integrations/components/ConnectionCard.js +15 -15
  10. package/dist/integrations/components/ConnectionCard.js.map +1 -1
  11. package/dist/integrations/components/CredentialStorageSelector.js +19 -19
  12. package/dist/integrations/components/CredentialStorageSelector.js.map +1 -1
  13. package/dist/integrations/components/ProviderCard.js +15 -15
  14. package/dist/integrations/components/ProviderCard.js.map +1 -1
  15. package/dist/integrations/pages/AddConnectionWizard.js +49 -49
  16. package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
  17. package/dist/integrations/pages/ConnectionDetail.js +271 -277
  18. package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
  19. package/dist/integrations/pages/ConnectionLogs.js +35 -35
  20. package/dist/integrations/pages/ConnectionLogs.js.map +1 -1
  21. package/dist/integrations/pages/ConnectionsList.js +27 -27
  22. package/dist/integrations/pages/ConnectionsList.js.map +1 -1
  23. package/dist/integrations/pages/IntegrationsOverview.js +34 -34
  24. package/dist/integrations/pages/IntegrationsOverview.js.map +1 -1
  25. package/dist/integrations/pages/IntegrationsSettings.js +26 -26
  26. package/dist/integrations/pages/IntegrationsSettings.js.map +1 -1
  27. package/dist/integrations/pages/ProviderCatalog.js +29 -29
  28. package/dist/integrations/pages/ProviderCatalog.js.map +1 -1
  29. package/dist/integrations/pages/ProviderDetail.js +46 -46
  30. package/dist/integrations/pages/ProviderDetail.js.map +1 -1
  31. package/dist/integrations/pages/ProviderEditorPage.js +44 -44
  32. package/dist/integrations/pages/ProviderEditorPage.js.map +1 -1
  33. package/dist/integrations/utils/appearance.js +7 -7
  34. package/dist/integrations/utils/appearance.js.map +1 -1
  35. package/package.json +1 -1
@@ -40,23 +40,23 @@ var v = class extends t {
40
40
  className: "flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6",
41
41
  children: [
42
42
  /* @__PURE__ */ d("div", {
43
- className: "p-3 rounded-full bg-destructive/10",
44
- children: /* @__PURE__ */ d(i, { className: "size-8 text-destructive" })
43
+ className: "p-3 rounded-full bg-status-error-bg/10",
44
+ children: /* @__PURE__ */ d(i, { className: "size-8 text-status-error-text" })
45
45
  }),
46
46
  /* @__PURE__ */ f("div", {
47
47
  className: "space-y-2",
48
48
  children: [/* @__PURE__ */ d("h3", {
49
- className: "text-lg font-semibold text-foreground",
49
+ className: "text-lg font-semibold text-text-primary",
50
50
  children: "Failed to load page"
51
51
  }), /* @__PURE__ */ d("p", {
52
- className: "text-sm text-muted-foreground max-w-md",
52
+ className: "text-sm text-text-secondary max-w-md",
53
53
  children: this.state.error?.message || "The page chunk could not be loaded. This may be due to a network issue."
54
54
  })]
55
55
  }),
56
56
  /* @__PURE__ */ f("button", {
57
57
  type: "button",
58
58
  onClick: this.handleRetry,
59
- className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
59
+ 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",
60
60
  children: [/* @__PURE__ */ d(o, { className: "size-4" }), "Try Again"]
61
61
  })
62
62
  ]
@@ -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-dom';\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-destructive/10\">\n <AlertTriangle className=\"size-8 text-destructive\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-foreground\">Failed to load page</h3>\n <p className=\"text-sm text-muted-foreground 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-primary text-primary-foreground hover:bg-primary/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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AUrE,SAAgB,IAA0B;CACxC,IAAM,EAAE,gBAAa,GAAiB,EAChC,IAAW,GAAa,EAExB,IACJ,KAAY,MAAa,MAAO,EAAS,SAAS,IAAI,GAAG,EAAS,MAAM,GAAG,GAAG,GAAG,IAAY;AAY/F,QAVI,KAKE,EAHF,EAAS,aAAa,KACtB,EAAS,SAAS,WAAW,IAAqB,IAAI,IAG/C,OAKT,kBAAC,GAAD,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;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-dom';\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,MAA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IACJ,KAAY,MAAa,MAAO,EAAS,SAAS,IAAI,GAAG,EAAS,MAAM,GAAG,GAAG,GAAG,IAAY;AAY/F,QAVI,KAKE,EAHF,EAAS,aAAa,KACtB,EAAS,SAAS,WAAW,IAAqB,IAAI,IAG/C,OAKT,kBAAC,GAAD,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;GAG5D,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA,EACO,CAAA"}
@@ -41,23 +41,23 @@ var x = class extends n {
41
41
  className: "flex flex-col items-center justify-center min-h-[400px] gap-4 text-center p-6",
42
42
  children: [
43
43
  /* @__PURE__ */ f("div", {
44
- className: "p-3 rounded-full bg-destructive/10",
45
- children: /* @__PURE__ */ f(a, { className: "size-8 text-destructive" })
44
+ className: "p-3 rounded-full bg-status-error-bg/10",
45
+ children: /* @__PURE__ */ f(a, { className: "size-8 text-status-error-text" })
46
46
  }),
47
47
  /* @__PURE__ */ p("div", {
48
48
  className: "space-y-2",
49
49
  children: [/* @__PURE__ */ f("h3", {
50
- className: "text-lg font-semibold text-foreground",
50
+ className: "text-lg font-semibold text-text-primary",
51
51
  children: "Failed to load page"
52
52
  }), /* @__PURE__ */ f("p", {
53
- className: "text-sm text-muted-foreground max-w-md",
53
+ className: "text-sm text-text-secondary max-w-md",
54
54
  children: this.state.error?.message || "The page chunk could not be loaded. This may be due to a network issue."
55
55
  })]
56
56
  }),
57
57
  /* @__PURE__ */ p("button", {
58
58
  type: "button",
59
59
  onClick: this.handleRetry,
60
- className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
60
+ 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",
61
61
  children: [/* @__PURE__ */ f(s, { className: "size-4" }), "Try Again"]
62
62
  })
63
63
  ]
@@ -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 } from 'react-router-dom';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { useIntegrations } from './providers/IntegrationsProvider';\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\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-destructive/10\">\n <AlertTriangle className=\"size-8 text-destructive\" />\n </div>\n <div className=\"space-y-2\">\n <h3 className=\"text-lg font-semibold text-foreground\">Failed to load page</h3>\n <p className=\"text-sm text-muted-foreground 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-primary text-primary-foreground hover:bg-primary/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={<AddConnectionWizard />} />\n <Route path=\"connections/add/:providerId\" element={<AddConnectionWizard />} />\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 */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;AASA,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,QAC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names":[],"sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, Component, type ReactNode, type ErrorInfo } from 'react';\nimport { Navigate, Route, Routes, useLocation } from 'react-router-dom';\nimport { Loader2, AlertTriangle, RefreshCw } from 'lucide-react';\nimport { useIntegrations } from './providers/IntegrationsProvider';\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\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={<AddConnectionWizard />} />\n <Route path=\"connections/add/:providerId\" element={<AddConnectionWizard />} />\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 */}\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </LazyErrorBoundary>\n );\n}\n"],"mappings":";;;;;;;AASA,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,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E;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,OAAO;GAAM,UAAU;GAAG;;CAG5D,OAAO,yBAAyB,GAAc;AAC5C,SAAO;GAAE,UAAU;GAAM;GAAO;;CAGlC,kBAAkB,GAAc,GAAsB;AACpD,UAAQ,MAAM,yCAAyC,GAAO,EAAU;;CAG1E,oBAAoB;AAGlB,OAAK,UAAU,OAAU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K;IAAc,SAAS,kBAAC,GAAD,EAAmB,CAAA;IAAI,CAAA;GAC1D,kBAAC,GAAD;IAAO,MAAK;IAAkB,SAAS,kBAAC,GAAD,EAAuB,CAAA;IAAI,CAAA;GAClE,kBAAC,GAAD;IAAO,MAAK;IAA8B,SAAS,kBAAC,GAAD,EAAuB,CAAA;IAAI,CAAA;GAC9E,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"}
@@ -178,25 +178,25 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
178
178
  role: "dialog",
179
179
  "aria-modal": "true",
180
180
  "aria-labelledby": "add-connection-denied-title",
181
- className: "fixed inset-x-4 top-1/2 z-50 mx-auto flex max-w-md -translate-y-1/2 flex-col items-center gap-4 rounded-xl border border-border bg-background p-8 shadow-2xl text-center",
181
+ className: "fixed inset-x-4 top-1/2 z-50 mx-auto flex max-w-md -translate-y-1/2 flex-col items-center gap-4 rounded-xl border border-border-subtle bg-bg-surface p-8 shadow-2xl text-center",
182
182
  children: [
183
183
  /* @__PURE__ */ m(be, {
184
184
  size: 40,
185
- className: "text-muted-foreground"
185
+ className: "text-text-secondary"
186
186
  }),
187
187
  /* @__PURE__ */ m("h2", {
188
188
  id: "add-connection-denied-title",
189
- className: "text-lg font-semibold text-foreground",
189
+ className: "text-lg font-semibold text-text-primary",
190
190
  children: "Access Denied"
191
191
  }),
192
192
  /* @__PURE__ */ m("p", {
193
- className: "text-sm text-muted-foreground",
193
+ className: "text-sm text-text-secondary",
194
194
  children: "You don't have permission to create connections."
195
195
  }),
196
196
  /* @__PURE__ */ m("button", {
197
197
  type: "button",
198
198
  onClick: _,
199
- className: "px-4 py-2 text-sm font-medium rounded-md border border-border hover:bg-accent transition-colors",
199
+ className: "px-4 py-2 text-sm font-medium rounded-md border border-border-subtle hover:bg-accent transition-colors",
200
200
  children: "Close"
201
201
  })
202
202
  ]
@@ -207,9 +207,9 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
207
207
  role: "dialog",
208
208
  "aria-modal": "true",
209
209
  "aria-labelledby": "add-connection-dialog-title",
210
- className: "fixed inset-x-4 top-4 bottom-4 z-50 mx-auto flex w-auto max-w-2xl flex-col overflow-hidden rounded-xl border border-border bg-background shadow-2xl animate-in fade-in-0 zoom-in-95 duration-200 sm:inset-x-6 sm:top-1/2 sm:bottom-auto sm:w-full sm:-translate-y-1/2",
210
+ className: "fixed inset-x-4 top-4 bottom-4 z-50 mx-auto flex w-auto max-w-2xl flex-col overflow-hidden rounded-xl border border-border-subtle bg-bg-surface shadow-2xl animate-in fade-in-0 zoom-in-95 duration-200 sm:inset-x-6 sm:top-1/2 sm:bottom-auto sm:w-full sm:-translate-y-1/2",
211
211
  children: [/* @__PURE__ */ h("div", {
212
- className: "flex items-center justify-between px-5 py-4 border-b border-border flex-shrink-0",
212
+ className: "flex items-center justify-between px-5 py-4 border-b border-border-subtle flex-shrink-0",
213
213
  children: [/* @__PURE__ */ m("div", {
214
214
  className: "flex items-center gap-3",
215
215
  children: O && !A ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(a, {
@@ -217,17 +217,17 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
217
217
  size: 32
218
218
  }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("h2", {
219
219
  id: "add-connection-dialog-title",
220
- className: "text-base font-semibold text-foreground",
220
+ className: "text-base font-semibold text-text-primary",
221
221
  children: [O.name, " account"]
222
222
  }), /* @__PURE__ */ m("p", {
223
- className: "text-xs text-muted-foreground",
223
+ className: "text-xs text-text-secondary",
224
224
  children: r(O.authType)
225
225
  })] })] }) : /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h2", {
226
226
  id: "add-connection-dialog-title",
227
- className: "text-base font-semibold text-foreground",
227
+ className: "text-base font-semibold text-text-primary",
228
228
  children: "Add new credential"
229
229
  }), /* @__PURE__ */ m("p", {
230
- className: "text-xs text-muted-foreground",
230
+ className: "text-xs text-text-secondary",
231
231
  children: "Select an app or service to connect to"
232
232
  })] })
233
233
  }), /* @__PURE__ */ h("div", {
@@ -236,7 +236,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
236
236
  type: "button",
237
237
  onClick: $e,
238
238
  disabled: $ || !P.trim(),
239
- className: "inline-flex items-center gap-1.5 px-4 py-1.5 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors disabled:opacity-50",
239
+ className: "inline-flex items-center gap-1.5 px-4 py-1.5 text-sm font-medium rounded-md bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90 transition-colors disabled:opacity-50",
240
240
  children: [$ ? /* @__PURE__ */ m(f, {
241
241
  size: 14,
242
242
  className: "animate-spin"
@@ -244,7 +244,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
244
244
  }), /* @__PURE__ */ m("button", {
245
245
  type: "button",
246
246
  onClick: _,
247
- className: "p-1.5 rounded-md hover:bg-accent transition-colors text-muted-foreground hover:text-foreground",
247
+ className: "p-1.5 rounded-md hover:bg-accent transition-colors text-text-secondary hover:text-text-primary",
248
248
  "aria-label": "Close",
249
249
  children: /* @__PURE__ */ m(xe, { size: 20 })
250
250
  })]
@@ -256,14 +256,14 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
256
256
  className: "flex-1 p-5 overflow-y-auto",
257
257
  children: [
258
258
  /* @__PURE__ */ m("p", {
259
- className: "text-sm text-muted-foreground mb-3",
259
+ className: "text-sm text-text-secondary mb-3",
260
260
  children: "Select an app or service to connect to"
261
261
  }),
262
262
  /* @__PURE__ */ h("div", {
263
263
  className: "relative mb-4",
264
264
  children: [/* @__PURE__ */ m(ye, {
265
265
  size: 16,
266
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
266
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
267
267
  }), /* @__PURE__ */ m("input", {
268
268
  ref: Ye,
269
269
  type: "text",
@@ -271,17 +271,17 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
271
271
  onChange: (e) => Be(e.target.value),
272
272
  placeholder: "Search providers...",
273
273
  "aria-label": "Search providers",
274
- className: "w-full pl-9 pr-3 py-2.5 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
274
+ className: "w-full pl-9 pr-3 py-2.5 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary"
275
275
  })]
276
276
  }),
277
277
  S ? /* @__PURE__ */ m("div", {
278
278
  className: "flex items-center justify-center py-8",
279
279
  children: /* @__PURE__ */ m(f, {
280
280
  size: 24,
281
- className: "animate-spin text-muted-foreground"
281
+ className: "animate-spin text-text-secondary"
282
282
  })
283
283
  }) : Q.length === 0 ? /* @__PURE__ */ h("div", {
284
- className: "text-center py-8 text-sm text-muted-foreground",
284
+ className: "text-center py-8 text-sm text-text-secondary",
285
285
  children: [
286
286
  "No providers found matching “",
287
287
  N,
@@ -290,7 +290,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
290
290
  }) : /* @__PURE__ */ m("div", {
291
291
  className: "max-h-[400px] overflow-y-auto space-y-1",
292
292
  children: Object.entries(Ze).map(([e, t]) => /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
293
- className: "px-2 py-1.5 text-xs font-semibold text-muted-foreground uppercase tracking-wider",
293
+ className: "px-2 py-1.5 text-xs font-semibold text-text-secondary uppercase tracking-wider",
294
294
  children: i(e)
295
295
  }), t.map((e) => /* @__PURE__ */ h("button", {
296
296
  type: "button",
@@ -302,10 +302,10 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
302
302
  }), /* @__PURE__ */ h("div", {
303
303
  className: "flex-1 min-w-0",
304
304
  children: [/* @__PURE__ */ m("div", {
305
- className: "text-sm font-medium text-foreground",
305
+ className: "text-sm font-medium text-text-primary",
306
306
  children: e.name
307
307
  }), /* @__PURE__ */ m("div", {
308
- className: "text-xs text-muted-foreground",
308
+ className: "text-xs text-text-secondary",
309
309
  children: r(e.authType)
310
310
  })]
311
311
  })]
@@ -317,16 +317,16 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
317
317
  className: "flex-1 flex items-center justify-center",
318
318
  children: /* @__PURE__ */ m(f, {
319
319
  size: 32,
320
- className: "animate-spin text-muted-foreground"
320
+ className: "animate-spin text-text-secondary"
321
321
  })
322
322
  }),
323
323
  !A && !O && !Te && v && /* @__PURE__ */ h("div", {
324
324
  className: "flex-1 flex flex-col items-center justify-center p-8 text-center",
325
325
  children: [/* @__PURE__ */ m(fe, {
326
326
  size: 32,
327
- className: "text-muted-foreground mb-3"
327
+ className: "text-text-secondary mb-3"
328
328
  }), /* @__PURE__ */ m("p", {
329
- className: "text-sm text-muted-foreground",
329
+ className: "text-sm text-text-secondary",
330
330
  children: "This provider isn't available."
331
331
  })]
332
332
  }),
@@ -341,11 +341,11 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
341
341
  })
342
342
  }),
343
343
  /* @__PURE__ */ m("h3", {
344
- className: "text-lg font-semibold text-foreground mb-1",
344
+ className: "text-lg font-semibold text-text-primary mb-1",
345
345
  children: "Connection Created!"
346
346
  }),
347
347
  /* @__PURE__ */ h("p", {
348
- className: "text-sm text-muted-foreground mb-6",
348
+ className: "text-sm text-text-secondary mb-6",
349
349
  children: [
350
350
  "Your ",
351
351
  O.name,
@@ -355,19 +355,19 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
355
355
  /* @__PURE__ */ m("button", {
356
356
  type: "button",
357
357
  onClick: _,
358
- className: "px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",
358
+ className: "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",
359
359
  children: "Close dialog"
360
360
  })
361
361
  ]
362
362
  }),
363
363
  O && !A && !G && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
364
- className: "w-full border-b border-border sm:w-40 sm:border-b-0 sm:border-r flex-shrink-0 py-3 overflow-x-auto",
364
+ className: "w-full border-b border-border-subtle sm:w-40 sm:border-b-0 sm:border-r flex-shrink-0 py-3 overflow-x-auto",
365
365
  children: et.map((e) => {
366
366
  let n = e.icon;
367
367
  return /* @__PURE__ */ h("button", {
368
368
  type: "button",
369
369
  onClick: () => ze(e.key),
370
- className: t("flex min-w-max items-center gap-2 px-4 py-2 text-sm font-medium transition-colors sm:w-full", M === e.key ? "text-foreground bg-accent/50 border-b-2 border-primary sm:border-b-0 sm:border-l-2" : "text-muted-foreground hover:text-foreground hover:bg-accent/30 border-b-2 border-transparent sm:border-b-0 sm:border-l-2"),
370
+ className: t("flex min-w-max items-center gap-2 px-4 py-2 text-sm font-medium transition-colors sm:w-full", M === e.key ? "text-text-primary bg-accent/50 border-b-2 border-primary sm:border-b-0 sm:border-l-2" : "text-text-secondary hover:text-text-primary hover:bg-accent/30 border-b-2 border-transparent sm:border-b-0 sm:border-l-2"),
371
371
  children: [/* @__PURE__ */ m(n, { size: 16 }), e.label]
372
372
  }, e.key);
373
373
  })
@@ -377,18 +377,18 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
377
377
  className: "space-y-5",
378
378
  children: [
379
379
  qe && /* @__PURE__ */ h("div", {
380
- className: "flex items-center gap-2 px-3 py-2 rounded-md bg-destructive/10 border border-destructive/20",
380
+ className: "flex items-center gap-2 px-3 py-2 rounded-md bg-status-error-bg/10 border border-status-error-border/20",
381
381
  children: [/* @__PURE__ */ m(fe, {
382
382
  size: 16,
383
- className: "text-destructive flex-shrink-0"
383
+ className: "text-status-error-text flex-shrink-0"
384
384
  }), /* @__PURE__ */ m("span", {
385
- className: "text-sm text-destructive",
385
+ className: "text-sm text-status-error-text",
386
386
  children: qe
387
387
  })]
388
388
  }),
389
389
  /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
390
390
  htmlFor: Z("conn-name"),
391
- className: "block text-sm font-medium text-foreground mb-1.5",
391
+ className: "block text-sm font-medium text-text-primary mb-1.5",
392
392
  children: ["Connection Name ", /* @__PURE__ */ m("span", {
393
393
  className: "text-status-error-text",
394
394
  children: "*"
@@ -401,11 +401,11 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
401
401
  onChange: (e) => F(e.target.value),
402
402
  placeholder: `My ${O.name} Connection`,
403
403
  disabled: $,
404
- className: "w-full px-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
404
+ className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
405
405
  })] }),
406
406
  /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
407
407
  htmlFor: Z("conn-desc"),
408
- className: "block text-sm font-medium text-foreground mb-1.5",
408
+ className: "block text-sm font-medium text-text-primary mb-1.5",
409
409
  children: "Description"
410
410
  }), /* @__PURE__ */ m("input", {
411
411
  id: Z("conn-desc"),
@@ -415,7 +415,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
415
415
  onChange: (e) => Ve(e.target.value),
416
416
  placeholder: "Optional description",
417
417
  disabled: $,
418
- className: "w-full px-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
418
+ className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
419
419
  })] }),
420
420
  /* @__PURE__ */ m(ue, {
421
421
  value: V,
@@ -423,10 +423,10 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
423
423
  providerAuthType: O.authType
424
424
  }),
425
425
  /* @__PURE__ */ h("div", {
426
- className: "rounded-md border border-border/50 bg-card p-4",
426
+ className: "rounded-md border border-border-subtle/50 bg-bg-surface p-4",
427
427
  children: [
428
428
  /* @__PURE__ */ h("h3", {
429
- className: "font-medium text-foreground flex items-center gap-2 mb-3 text-sm",
429
+ className: "font-medium text-text-primary flex items-center gap-2 mb-3 text-sm",
430
430
  children: [
431
431
  /* @__PURE__ */ m(be, {
432
432
  size: 16,
@@ -446,7 +446,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
446
446
  className: "animate-spin text-primary"
447
447
  }),
448
448
  /* @__PURE__ */ h("p", {
449
- className: "text-sm font-medium text-foreground",
449
+ className: "text-sm font-medium text-text-primary",
450
450
  children: [
451
451
  "Waiting for ",
452
452
  O.name,
@@ -454,7 +454,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
454
454
  ]
455
455
  }),
456
456
  /* @__PURE__ */ m("p", {
457
- className: "text-xs text-muted-foreground",
457
+ className: "text-xs text-text-secondary",
458
458
  children: "Complete the sign-in in the popup window"
459
459
  }),
460
460
  /* @__PURE__ */ h("div", {
@@ -477,7 +477,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
477
477
  type: "button",
478
478
  onClick: $e,
479
479
  disabled: $ || !P.trim(),
480
- className: "w-full inline-flex items-center justify-center gap-2.5 rounded-md border border-primary bg-primary px-4 py-2.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 disabled:opacity-50",
480
+ className: "w-full inline-flex items-center justify-center gap-2.5 rounded-md border border-primary bg-action-primary-bg px-4 py-2.5 text-sm font-medium text-action-primary-text transition-colors hover:bg-action-primary-bg/90 disabled:opacity-50",
481
481
  children: [
482
482
  /* @__PURE__ */ m(a, {
483
483
  provider: O,
@@ -493,7 +493,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
493
493
  O.authType === "api_key" && /* @__PURE__ */ h("div", {
494
494
  className: "space-y-3",
495
495
  children: [/* @__PURE__ */ h("p", {
496
- className: "text-xs text-muted-foreground",
496
+ className: "text-xs text-text-secondary",
497
497
  children: [
498
498
  "Enter your ",
499
499
  O.name,
@@ -501,7 +501,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
501
501
  ]
502
502
  }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
503
503
  htmlFor: Z("api-key"),
504
- className: "block text-sm font-medium text-foreground mb-1.5",
504
+ className: "block text-sm font-medium text-text-primary mb-1.5",
505
505
  children: ["API Key ", /* @__PURE__ */ m("span", {
506
506
  className: "text-status-error-text",
507
507
  children: "*"
@@ -511,7 +511,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
511
511
  children: [
512
512
  /* @__PURE__ */ m(d, {
513
513
  size: 14,
514
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
514
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
515
515
  }),
516
516
  /* @__PURE__ */ m("input", {
517
517
  id: Z("api-key"),
@@ -521,13 +521,13 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
521
521
  onChange: (e) => He(e.target.value),
522
522
  placeholder: "Enter your API key",
523
523
  disabled: $,
524
- className: "w-full pl-9 pr-10 py-2 border border-border rounded-md bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
524
+ className: "w-full pl-9 pr-10 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
525
525
  }),
526
526
  /* @__PURE__ */ m("button", {
527
527
  type: "button",
528
528
  onClick: () => Ke(!U),
529
529
  "aria-label": U ? "Hide secret" : "Show secret",
530
- className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
530
+ className: "absolute right-3 top-1/2 -translate-y-1/2 text-text-secondary hover:text-text-primary",
531
531
  children: m(U ? ve : d, { size: 14 })
532
532
  })
533
533
  ]
@@ -537,7 +537,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
537
537
  className: "space-y-3",
538
538
  children: [
539
539
  /* @__PURE__ */ h("p", {
540
- className: "text-xs text-muted-foreground",
540
+ className: "text-xs text-text-secondary",
541
541
  children: [
542
542
  "Enter your ",
543
543
  O.name,
@@ -546,7 +546,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
546
546
  }),
547
547
  /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
548
548
  htmlFor: Z("username"),
549
- className: "block text-sm font-medium text-foreground mb-1.5",
549
+ className: "block text-sm font-medium text-text-primary mb-1.5",
550
550
  children: ["Username ", /* @__PURE__ */ m("span", {
551
551
  className: "text-status-error-text",
552
552
  children: "*"
@@ -559,11 +559,11 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
559
559
  onChange: (e) => Ue(e.target.value),
560
560
  placeholder: "Username or email",
561
561
  disabled: $,
562
- className: "w-full px-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
562
+ className: "w-full px-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
563
563
  })] }),
564
564
  /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
565
565
  htmlFor: Z("password"),
566
- className: "block text-sm font-medium text-foreground mb-1.5",
566
+ className: "block text-sm font-medium text-text-primary mb-1.5",
567
567
  children: ["Password ", /* @__PURE__ */ m("span", {
568
568
  className: "text-status-error-text",
569
569
  children: "*"
@@ -572,7 +572,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
572
572
  className: "relative",
573
573
  children: [/* @__PURE__ */ m(ve, {
574
574
  size: 14,
575
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
575
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
576
576
  }), /* @__PURE__ */ m("input", {
577
577
  id: Z("password"),
578
578
  "aria-label": "Password",
@@ -581,7 +581,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
581
581
  onChange: (e) => We(e.target.value),
582
582
  placeholder: "Password",
583
583
  disabled: $,
584
- className: "w-full pl-9 pr-3 py-2 border border-border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
584
+ className: "w-full pl-9 pr-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
585
585
  })]
586
586
  })] })
587
587
  ]
@@ -589,7 +589,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
589
589
  O.authType === "bearer_token" && /* @__PURE__ */ h("div", {
590
590
  className: "space-y-3",
591
591
  children: [/* @__PURE__ */ h("p", {
592
- className: "text-xs text-muted-foreground",
592
+ className: "text-xs text-text-secondary",
593
593
  children: [
594
594
  "Enter your ",
595
595
  O.name,
@@ -597,7 +597,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
597
597
  ]
598
598
  }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("label", {
599
599
  htmlFor: Z("bearer-token"),
600
- className: "block text-sm font-medium text-foreground mb-1.5",
600
+ className: "block text-sm font-medium text-text-primary mb-1.5",
601
601
  children: ["Bearer Token ", /* @__PURE__ */ m("span", {
602
602
  className: "text-status-error-text",
603
603
  children: "*"
@@ -606,7 +606,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
606
606
  className: "relative",
607
607
  children: [/* @__PURE__ */ m(d, {
608
608
  size: 14,
609
- className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
609
+ className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"
610
610
  }), /* @__PURE__ */ m("input", {
611
611
  id: Z("bearer-token"),
612
612
  "aria-label": "Bearer Token",
@@ -615,7 +615,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
615
615
  onChange: (e) => Ge(e.target.value),
616
616
  placeholder: "Enter your token",
617
617
  disabled: $,
618
- className: "w-full pl-9 pr-3 py-2 border border-border rounded-md bg-background text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
618
+ className: "w-full pl-9 pr-3 py-2 border border-border-subtle rounded-md bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary disabled:opacity-50"
619
619
  })]
620
620
  })] })]
621
621
  }),
@@ -650,21 +650,21 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
650
650
  }), M === "details" && /* @__PURE__ */ h("div", {
651
651
  className: "space-y-4",
652
652
  children: [/* @__PURE__ */ m("h3", {
653
- className: "text-sm font-semibold text-foreground",
653
+ className: "text-sm font-semibold text-text-primary",
654
654
  children: "Details"
655
655
  }), /* @__PURE__ */ h("div", {
656
656
  className: "space-y-3",
657
657
  children: [
658
658
  /* @__PURE__ */ h("div", {
659
- className: "flex items-center gap-3 p-3 rounded-md border border-border",
659
+ className: "flex items-center gap-3 p-3 rounded-md border border-border-subtle",
660
660
  children: [/* @__PURE__ */ m(a, {
661
661
  provider: O,
662
662
  size: 40
663
663
  }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
664
- className: "text-sm font-medium text-foreground",
664
+ className: "text-sm font-medium text-text-primary",
665
665
  children: O.name
666
666
  }), /* @__PURE__ */ h("p", {
667
- className: "text-xs text-muted-foreground",
667
+ className: "text-xs text-text-secondary",
668
668
  children: [
669
669
  r(O.authType),
670
670
  " ·",
@@ -674,14 +674,14 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
674
674
  })] })]
675
675
  }),
676
676
  O.description && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
677
- className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
677
+ className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
678
678
  children: "Description"
679
679
  }), /* @__PURE__ */ m("p", {
680
- className: "text-sm text-foreground mt-1",
680
+ className: "text-sm text-text-primary mt-1",
681
681
  children: O.description
682
682
  })] }),
683
683
  O.website && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
684
- className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
684
+ className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
685
685
  children: "Website"
686
686
  }), /* @__PURE__ */ m("a", {
687
687
  href: O.website,
@@ -691,7 +691,7 @@ function g({ open: g, onClose: _, preselectedProviderId: v, onConnectionCreated:
691
691
  children: O.website
692
692
  })] }),
693
693
  O.docsUrl && /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("div", {
694
- className: "text-xs font-medium text-muted-foreground uppercase tracking-wider",
694
+ className: "text-xs font-medium text-text-secondary uppercase tracking-wider",
695
695
  children: "Documentation"
696
696
  }), /* @__PURE__ */ m("a", {
697
697
  href: O.docsUrl,