@camunda/ccma-saas-frontend 0.7.2 → 0.8.0

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 (95) hide show
  1. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +5 -1
  2. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +9 -0
  3. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +6 -3
  4. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +3 -0
  5. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +9 -0
  6. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +2 -0
  7. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +2 -0
  8. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
  9. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +11 -18
  10. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +19 -2
  11. package/lib/esm/components/c4-cluster-overview/applications.d.ts +12 -0
  12. package/lib/esm/components/c4-cluster-overview/applications.js +10 -2
  13. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +6 -1
  14. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +15 -2
  15. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +1 -0
  16. package/lib/esm/components/c4-cluster-overview/cluster-load.js +14 -6
  17. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  18. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +4 -2
  19. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  20. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +3 -1
  21. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +7 -3
  22. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +9 -1
  23. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +69 -12
  24. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +10 -1
  25. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +16 -2
  26. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.d.ts +14 -0
  27. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.js +12 -0
  28. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.d.ts +15 -0
  29. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +10 -0
  30. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +4 -2
  31. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +24 -3
  32. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
  33. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +1 -0
  34. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +2 -0
  35. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +10 -5
  36. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +10 -5
  37. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  38. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts +5 -0
  39. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +2 -1
  40. package/lib/esm/externalUrls.const.d.ts +1 -1
  41. package/lib/esm/externalUrls.const.js +1 -1
  42. package/lib/esm/i18n/c4-console-i18n.js +6 -0
  43. package/lib/esm/i18n/en/pages/clusterdetails.json +25 -3
  44. package/lib/esm/index.d.ts +1 -3
  45. package/lib/esm/index.js +1 -3
  46. package/lib/esm/runtime/build-cluster-sso-callback-url.d.ts +34 -0
  47. package/lib/esm/runtime/build-cluster-sso-callback-url.js +49 -0
  48. package/lib/esm/runtime/build-cluster-swagger-url.d.ts +7 -2
  49. package/lib/esm/runtime/build-cluster-swagger-url.js +20 -5
  50. package/lib/esm/runtime/index.d.ts +1 -0
  51. package/lib/esm/runtime/index.js +1 -0
  52. package/lib/esm/ui/families.d.ts +4 -0
  53. package/lib/esm/ui/families.js +22 -2
  54. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +16 -1
  55. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +70 -21
  56. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
  57. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +54 -13
  58. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +10 -0
  59. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +1 -0
  60. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +3 -0
  61. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +11 -0
  62. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -3
  63. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +7 -0
  64. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +26 -5
  65. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +43 -16
  66. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +174 -3
  67. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.d.ts +13 -0
  68. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.js +29 -0
  69. package/lib/esm/widgets/cluster-health-override.d.ts +16 -0
  70. package/lib/esm/widgets/cluster-health-override.js +33 -0
  71. package/lib/esm/widgets/clusters/c4-clusters-page.js +8 -8
  72. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  73. package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.js +6 -1
  74. package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.js +2 -1
  75. package/lib/esm/widgets/environment/use-cluster-swagger-url.d.ts +7 -4
  76. package/lib/esm/widgets/environment/use-cluster-swagger-url.js +7 -4
  77. package/package.json +24 -24
  78. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +0 -16
  79. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +0 -40
  80. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.d.ts +0 -16
  81. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +0 -142
  82. package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +0 -14
  83. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +0 -136
  84. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +0 -13
  85. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +0 -58
  86. package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +0 -16
  87. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +0 -118
  88. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +0 -3
  89. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +0 -408
  90. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.d.ts +0 -32
  91. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.js +0 -6
  92. package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +0 -14
  93. package/lib/esm/components/c4-advanced-search-filters/state.types.js +0 -6
  94. package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +0 -5
  95. package/lib/esm/components/c4-advanced-search-filters/utils.js +0 -58
@@ -18,7 +18,11 @@ export const C4Breadcrumb = ({ loading, noTrailingSlash, elements, title, menu,
18
18
  const { Breadcrumb, BreadcrumbItem } = useBreadcrumbFamily();
19
19
  let breadcrumb = null;
20
20
  if (loading) {
21
- breadcrumb = _jsx(BreadcrumbSkeleton, {});
21
+ // Same "no elements, no breadcrumb" rule as the loaded branch that
22
+ // follows. A widget in `scope: 'environment'` passes an empty trail and a
23
+ // header, so `C4PageTemplate` still mounts this component. Without the
24
+ // guard the host page gets a stray breadcrumb skeleton for the whole load.
25
+ breadcrumb = elements.length > 0 ? _jsx(BreadcrumbSkeleton, {}) : null;
22
26
  }
23
27
  else {
24
28
  breadcrumb = (_jsxs(Stack, { gap: 1, children: [elements.length > 0 && (_jsx(Breadcrumb, { noTrailingSlash: noTrailingSlash ?? false, children: elements.map((element) => {
@@ -172,6 +172,15 @@ export const C4ClusterDetailsClients = ({ clients, isLoading, hasError, hasIdent
172
172
  icon: Renew,
173
173
  } }));
174
174
  }
175
+ // A viewer who lacks read access never gets a populated list, so without
176
+ // this check they see the same "create your first client" empty state as
177
+ // someone who could create one — a false invitation.
178
+ if (!isLoading && !permissions.canRead) {
179
+ return (_jsx(C4EmptyState, { card: true, icon: {
180
+ path: C4_ASSET_URLS.errorIcon,
181
+ altText: 'errorIcon',
182
+ }, heading: text.forbiddenTitle, description: text.forbiddenDescription }));
183
+ }
175
184
  if (!isLoading && clients.length === 0) {
176
185
  return (_jsx(C4EmptyState, { card: true, icon: {
177
186
  path: C4_ASSET_URLS.clientApiIcon,
@@ -16,12 +16,14 @@ export const defaultText = {
16
16
  headerLastUsed: 'Last Used',
17
17
  renameAction: 'Rename',
18
18
  deleteAction: 'Delete',
19
- errorTitle: 'Error fetching clients',
20
- errorDescription: 'An error occurred while fetching the client list.',
21
- errorButton: 'Retry',
19
+ errorTitle: 'Oops ... something went wrong.',
20
+ errorDescription: 'Please try reloading!',
21
+ errorButton: 'Reload',
22
22
  emptyTitle: 'Use our secure, scalable API',
23
23
  emptyDescription: (_jsxs(_Fragment, { children: ["Click ", _jsx("strong", { children: "Create your first client" }), " to deploy processes, start instances, and interact with them programmatically."] })),
24
24
  learnMoreLabel: 'View the Client Configuration documentation',
25
+ forbiddenTitle: "You don't have access to client credentials",
26
+ forbiddenDescription: "You don't have permission to view client credentials for this cluster. Contact an organization owner or admin for access.",
25
27
  };
26
28
  export const defaultUrls = {
27
29
  clientDetails: (clientId) => `/org/123/clusters/456/clients/${clientId}`,
@@ -29,6 +31,7 @@ export const defaultUrls = {
29
31
  docs: 'https://docs.camunda.io',
30
32
  };
31
33
  export const defaultPermissions = {
34
+ canRead: true,
32
35
  canCreate: true,
33
36
  canUpdate: true,
34
37
  canDelete: true,
@@ -29,6 +29,8 @@ export interface C4ClusterDetailsClientsProps {
29
29
  emptyTitle: string;
30
30
  emptyDescription: string | ReactElement;
31
31
  learnMoreLabel: string;
32
+ forbiddenTitle: string;
33
+ forbiddenDescription: string | ReactElement;
32
34
  };
33
35
  urls: {
34
36
  clientDetails: (clientId: string) => string;
@@ -36,6 +38,7 @@ export interface C4ClusterDetailsClientsProps {
36
38
  docs: string;
37
39
  };
38
40
  permissions: {
41
+ canRead: boolean;
39
42
  canCreate: boolean;
40
43
  canUpdate: boolean;
41
44
  canDelete: boolean;
@@ -137,6 +137,15 @@ export const C4ClusterDetailsConnectorSecrets = ({ secrets, isLoading, hasError,
137
137
  icon: Renew,
138
138
  } }));
139
139
  }
140
+ // A viewer who lacks read access never gets a populated list, so without
141
+ // this check they see the same "create your first secret" empty state as
142
+ // someone who could create one — a false invitation.
143
+ if (!permissions.canRead) {
144
+ return (_jsx(C4EmptyState, { card: true, icon: {
145
+ path: C4_ASSET_URLS.errorIcon,
146
+ altText: 'errorIcon',
147
+ }, heading: text.forbiddenTitle, description: text.forbiddenDescription }));
148
+ }
140
149
  if (secrets.length === 0) {
141
150
  return (_jsx(C4EmptyState, { card: true, icon: {
142
151
  path: C4_ASSET_URLS.connectorSecretIcon,
@@ -43,6 +43,8 @@ export const withSecretsProps = {
43
43
  infoText: 'Secrets can be used to reference encrypted authentication credentials in Connectors. See the secrets documentation for more details.',
44
44
  // Label for the badge shown on CAMUNDA_PROVIDED_ secrets
45
45
  protectedBadge: 'Hidden',
46
+ forbiddenTitle: "You don't have access to connector secrets",
47
+ forbiddenDescription: "You don't have permission to view connector secrets for this cluster. Contact an organization owner or admin for access.",
46
48
  },
47
49
  urls: {
48
50
  docs: 'https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets',
@@ -27,6 +27,8 @@ export interface C4ClusterDetailsConnectorSecretsProps {
27
27
  emptyIconAltText?: string;
28
28
  infoText: string | ReactElement;
29
29
  protectedBadge?: string;
30
+ forbiddenTitle: string;
31
+ forbiddenDescription: string | ReactElement;
30
32
  };
31
33
  urls: {
32
34
  docs: string;
@@ -1,3 +1,3 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { C4ClusterDetailsEncryptionProps } from './c4-cluster-details-encryption.types.js';
3
- export declare const C4ClusterDetailsEncryption: ({ cluster, encryption, failoverKeyPolicy, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled, }: C4ClusterDetailsEncryptionProps) => JSX.Element;
3
+ export declare const C4ClusterDetailsEncryption: ({ cluster, encryption, failoverKeyPolicy, failoverCloneRolePolicyStatement, secondaryReplicationNotReady, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled, }: C4ClusterDetailsEncryptionProps) => JSX.Element;
@@ -12,7 +12,7 @@ import { useTabsFamily } from '../../ui/tabs.js';
12
12
  import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
13
13
  import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
14
14
  import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../c4-structured-list/c4-structured-list.js';
15
- export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPolicy, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled = false, }) => {
15
+ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPolicy, failoverCloneRolePolicyStatement, secondaryReplicationNotReady, scripts, text, urls, onSetARN, onUpdatePrimaryARN, onUpdateSecondaryARN, onDownloadScript, onDownloadKeyPolicy, disabled = false, }) => {
16
16
  const { Tabs, Tab, TabList, TabPanel, TabPanels } = useTabsFamily();
17
17
  const [selectedIndex, setSelectedIndex] = useState(0);
18
18
  const handleTabChange = (evt) => {
@@ -50,6 +50,11 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPol
50
50
  color: 'var(--cds-support-warning)',
51
51
  }, children: _jsx(WarningAltFilled, {}) }), _jsx("span", { style: { marginLeft: '24px' }, children: "Unconfigured" })] })),
52
52
  };
53
+ // Replication to the secondary region can fail silently, so this warning
54
+ // has to reach the customer no matter which view below is showing: the
55
+ // read-only "Ready" summary, the failover key-policy prompt, or the
56
+ // create-a-new-key flow.
57
+ const secondaryReplicationWarning = secondaryReplicationNotReady && (_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%', marginBottom: '24px' }, lowContrast: true, kind: 'warning', title: text.secondaryReplicationNotReadyTitle, subtitle: text.secondaryReplicationNotReadyText, hideCloseButton: true }));
53
58
  const formatDate = (dateString) => {
54
59
  const date = new Date(dateString);
55
60
  return date.toLocaleDateString('en-US', {
@@ -108,7 +113,7 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPol
108
113
  })()] }));
109
114
  }
110
115
  if (cluster.status === 'Ready') {
111
- return (_jsxs(Stack, { gap: 6, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.primaryEncryptionKeyId }) })] }), cluster.isDualRegion && cluster.secondaryEncryptionKeyId && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.secondaryEncryptionKeyId }) })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "Key Policy" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, className: 'cds--layer-two', children: scripts.keyPolicy }) })] })] }) }) })] }));
116
+ return (_jsxs(_Fragment, { children: [secondaryReplicationWarning, _jsxs(Stack, { gap: 6, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsx("p", { children: text.infoText }), _jsx(Link, { target: '_blank', href: urls.byokMain, children: text.dokuLink }), _jsx(Tile, { children: _jsx(C4StructuredListWrapper, { children: _jsxs(C4StructuredListBody, { children: [_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileEncryptionType }), _jsx(C4StructuredListCell, { children: "External / AWS" })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileStatus }), _jsx(C4StructuredListCell, { children: status[cluster.status] })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileCreated }), _jsx(C4StructuredListCell, { children: cluster.created ? formatDate(cluster.created) : '' })] }), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileRegion }), _jsx(C4StructuredListCell, { children: cluster.region })] }), cluster.isDualRegion && cluster.backupRegion && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: text.dataTileSecondaryRegion }), _jsx(C4StructuredListCell, { children: cluster.backupRegion })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.primaryEncryptionKeyId }) })] }), cluster.isDualRegion && cluster.secondaryEncryptionKeyId && (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "ARN" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { className: 'cds--layer-two', type: 'single', children: cluster.secondaryEncryptionKeyId }) })] })), _jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { style: { width: '216px' }, children: "Key Policy" }), _jsx(C4StructuredListCell, { children: _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, className: 'cds--layer-two', children: scripts.keyPolicy }) })] })] }) }) })] })] }));
112
117
  }
113
118
  // A failed-over cluster already has its keys set (they are reversed from the
114
119
  // source at failover time), so the "create a new key" flow below would be
@@ -117,23 +122,11 @@ export const C4ClusterDetailsEncryption = ({ cluster, encryption, failoverKeyPol
117
122
  // operator reports the key as usable the `Ready` branch above wins, so this
118
123
  // is reached only while the key policy is still missing the new principals.
119
124
  if (failoverKeyPolicy) {
120
- const roles = [
121
- {
122
- label: text.failoverKeyPolicyCloneRole,
123
- value: failoverKeyPolicy.cloneRole,
124
- },
125
- {
126
- label: text.failoverKeyPolicyClusterRole,
127
- value: failoverKeyPolicy.clusterRole,
128
- },
129
- {
130
- label: text.failoverKeyPolicyReplicationRole,
131
- value: failoverKeyPolicy.replicationRole,
132
- },
133
- ];
134
- return (_jsxs(_Fragment, { children: [_jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%', marginBottom: '24px' }, lowContrast: true, kind: 'warning', title: text.failoverKeyPolicyTitle, subtitle: text.failoverKeyPolicyText, hideCloseButton: true }), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsxs("p", { children: [text.failoverKeyPolicyInstruction, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', rel: 'noopener noreferrer', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsx(Tile, { children: _jsx(Stack, { gap: 4, children: roles.map((role) => (_jsxs(Stack, { gap: 2, children: [_jsx("strong", { children: role.label }), _jsx(CodeSnippet, { type: 'single', children: role.value })] }, role.value))) }) })] })] }));
125
+ return (_jsxs(_Fragment, { children: [secondaryReplicationWarning, _jsx(C4InlineNotification, { style: { maxWidth: '100%', width: '100%', marginBottom: '24px' }, lowContrast: true, kind: 'warning', title: text.failoverKeyPolicyTitle, subtitle: text.failoverKeyPolicyText, hideCloseButton: true }), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: text.title }), _jsxs("p", { children: [text.failoverKeyPolicyInstruction, ' ', _jsx("span", { children: _jsx(Link, { target: '_blank', rel: 'noopener noreferrer', href: urls.byokMain, children: text.dokuLink }) })] })] }), _jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsx("h4", { children: cluster.isDualRegion
126
+ ? `${text.failoverKeyPolicyPrimaryTitle} (${cluster.region})`
127
+ : text.failoverKeyPolicyPrimaryTitle }), _jsxs(Stack, { gap: 2, children: [_jsx("strong", { children: text.failoverKeyPolicyClusterRole }), _jsx(CodeSnippet, { type: 'single', children: failoverKeyPolicy.clusterRole })] }), _jsx("p", { children: text.failoverKeyPolicyStatementInstruction }), failoverCloneRolePolicyStatement && (_jsxs(Stack, { gap: 2, children: [_jsx("strong", { children: text.failoverKeyPolicyStatementLabel }), _jsx(CodeSnippet, { type: 'multi', wrapText: true, maxCollapsedNumberOfRows: 20, children: failoverCloneRolePolicyStatement })] }))] }) }), cluster.isDualRegion && cluster.backupRegion && (_jsx(Tile, { children: _jsxs(Stack, { gap: 4, children: [_jsxs("h4", { children: [text.failoverKeyPolicySecondaryTitle, " (", cluster.backupRegion, ")"] }), _jsx("p", { children: text.failoverKeyPolicySecondaryInstruction }), _jsxs(Stack, { gap: 2, children: [_jsx("strong", { children: text.failoverKeyPolicyClusterRole }), _jsx(CodeSnippet, { type: 'single', children: failoverKeyPolicy.clusterRole })] })] }) }))] })] }));
135
128
  }
136
- return (_jsxs(_Fragment, { children: [encryption.actionRequired && (_jsx(C4InlineNotification, { style: {
129
+ return (_jsxs(_Fragment, { children: [secondaryReplicationWarning, encryption.actionRequired && (_jsx(C4InlineNotification, { style: {
137
130
  maxWidth: '100%',
138
131
  width: '100%',
139
132
  marginBottom: '24px',
@@ -9,6 +9,18 @@ export interface C4ClusterDetailsEncryptionProps {
9
9
  * replaces the create-a-new-key flow.
10
10
  */
11
11
  failoverKeyPolicy?: FailoverKeyPolicyPrincipals;
12
+ /**
13
+ * The IAM policy statement to add to the failover region's key policy, so
14
+ * the clone role can read the source cluster's backup during the restore.
15
+ * Rendered as-is (already JSON-stringified) next to `failoverKeyPolicy`.
16
+ */
17
+ failoverCloneRolePolicyStatement?: string;
18
+ /**
19
+ * True when this is a dual-region BYOK cluster and the secondary region's
20
+ * key is not accessible, so replication to it is not working. Applies to
21
+ * both a normal cluster and a failover target.
22
+ */
23
+ secondaryReplicationNotReady?: boolean;
12
24
  scripts: {
13
25
  cliScript: string;
14
26
  keyPolicy: string;
@@ -50,9 +62,14 @@ export interface C4ClusterDetailsEncryptionProps {
50
62
  failoverKeyPolicyTitle: string;
51
63
  failoverKeyPolicyText: string;
52
64
  failoverKeyPolicyInstruction: string;
53
- failoverKeyPolicyCloneRole: string;
65
+ failoverKeyPolicyPrimaryTitle: string;
66
+ failoverKeyPolicyStatementLabel: string;
67
+ failoverKeyPolicyStatementInstruction: string;
68
+ failoverKeyPolicySecondaryTitle: string;
69
+ failoverKeyPolicySecondaryInstruction: string;
54
70
  failoverKeyPolicyClusterRole: string;
55
- failoverKeyPolicyReplicationRole: string;
71
+ secondaryReplicationNotReadyTitle: string;
72
+ secondaryReplicationNotReadyText: string;
56
73
  };
57
74
  urls: {
58
75
  byokMain: string;
@@ -14,6 +14,12 @@ export interface ApplicationTileProps {
14
14
  status?: ClusterStatus;
15
15
  version: string;
16
16
  description?: string;
17
+ /**
18
+ * Text for the info affordance next to the status. Shown only for a status
19
+ * that needs a reason — see `ClusterStatusElement`. Use it to say why the
20
+ * status is not healthy, for example which public routes are broken.
21
+ */
22
+ infoTooltip?: string;
17
23
  link?: {
18
24
  url?: string;
19
25
  label: string;
@@ -45,6 +51,12 @@ export interface ApplicationsProps {
45
51
  optimize?: ApplicationTileProps;
46
52
  connectors?: ApplicationTileProps;
47
53
  identity?: ApplicationTileProps;
54
+ /**
55
+ * Public route health of the cluster (issue#9884). Unlike the tiles above
56
+ * it is not an application: it reports whether the routes to them are
57
+ * reachable. Absent when the operator does not report the condition.
58
+ */
59
+ connectivity?: ApplicationTileProps;
48
60
  };
49
61
  bottomElement?: JSX.Element;
50
62
  /**
@@ -50,6 +50,13 @@ export const normalizeClusterStatus = (status) => {
50
50
  };
51
51
  export const ClusterStatusElement = (props) => {
52
52
  const isMaintenanceStatus = props.status === 'maintenance';
53
+ // Which states get the info affordance next to the status text. A healthy
54
+ // status has nothing to explain. 'waitingForInput' tells the customer that
55
+ // cluster creation needs input; 'updating' and 'unhealthy' let a status
56
+ // name its cause, for example the broken public routes of a cluster.
57
+ const supportsInfoTooltip = props.status === 'waitingForInput' ||
58
+ props.status === 'updating' ||
59
+ props.status === 'unhealthy';
53
60
  let icon = null;
54
61
  let text = '';
55
62
  let color;
@@ -113,7 +120,7 @@ export const ClusterStatusElement = (props) => {
113
120
  display: 'inline-flex',
114
121
  alignItems: 'center',
115
122
  gap: '0.125rem',
116
- }, children: [_jsx("span", { children: text }), props.status === 'waitingForInput' && props.infoTooltip && (_jsx(Tooltip, { align: 'bottom', description: _jsx("span", { style: {
123
+ }, children: [_jsx("span", { children: text }), supportsInfoTooltip && props.infoTooltip && (_jsx(Tooltip, { align: 'bottom', description: _jsx("span", { style: {
117
124
  display: 'block',
118
125
  whiteSpace: 'normal',
119
126
  maxWidth: '16rem',
@@ -149,7 +156,7 @@ export const ApplicationTile = (props) => {
149
156
  justifyContent: 'space-between',
150
157
  alignItems: 'flex-start',
151
158
  gap: '0.25rem',
152
- }, children: [_jsx("h6", { style: { fontSize }, children: props.name }), props.status && _jsx(ClusterStatusElement, { status: props.status })] }), _jsx("div", { style: {
159
+ }, children: [_jsx("h6", { style: { fontSize }, children: props.name }), props.status && (_jsx(ClusterStatusElement, { status: props.status, infoTooltip: props.infoTooltip }))] }), _jsx("div", { style: {
153
160
  fontSize: '12px',
154
161
  color: 'var(--cds-text-secondary)',
155
162
  minHeight: '15px',
@@ -221,6 +228,7 @@ export const Applications = (props) => {
221
228
  props.applications.optimize,
222
229
  props.applications.connectors,
223
230
  props.applications.identity,
231
+ props.applications.connectivity,
224
232
  ].map((props) => {
225
233
  if (!props) {
226
234
  return null;
@@ -2,7 +2,12 @@ import type { ApplicationsProps, ClusterStatus } from './applications.js';
2
2
  import type { ClusterDetailsProps } from './cluster-details.js';
3
3
  import type { ClusterLoadProps } from './cluster-load.js';
4
4
  export declare const getClusterLoadProps: () => ClusterLoadProps;
5
- export declare const getApps: (status: ClusterStatus) => ApplicationsProps;
5
+ export declare const getApps: (status: ClusterStatus, options?: {
6
+ connectivity?: {
7
+ status: ClusterStatus;
8
+ infoTooltip?: string;
9
+ };
10
+ }) => ApplicationsProps;
6
11
  export declare const getDetails: (update?: "update-available" | "update-available-no-permissions" | "no-update-latest" | "updating" | "update-available-wait-needed", options?: {
7
12
  cta?: boolean;
8
13
  }) => ClusterDetailsProps;
@@ -40,10 +40,11 @@ export const getClusterLoadProps = () => {
40
40
  last: 'Last',
41
41
  day30: '30 days',
42
42
  day7: '7 days',
43
- last24h: 'Last 24h',
43
+ last24h: '24 hours',
44
44
  current: 'Current',
45
45
  clusterLoadTooltip: "Cluster capacity load: Indicates how much of the cluster's resources are in use.",
46
46
  docs: 'Learn more about cluster capacity',
47
+ reload: 'Reload',
47
48
  },
48
49
  docs: {
49
50
  url: 'https://docs.camunda.io/',
@@ -68,7 +69,10 @@ export const getClusterLoadProps = () => {
68
69
  };
69
70
  return clusterLoadProps;
70
71
  };
71
- export const getApps = (status) => {
72
+ export const getApps = (status,
73
+ // The connectivity tile is optional, because the operator does not always
74
+ // report the public route health. Give it only in a story that shows it.
75
+ options) => {
72
76
  return {
73
77
  title: 'Applications',
74
78
  applications: {
@@ -111,6 +115,15 @@ export const getApps = (status) => {
111
115
  visible: true,
112
116
  },
113
117
  },
118
+ connectivity: options?.connectivity
119
+ ? {
120
+ name: 'Connectivity',
121
+ description: 'Public access to your cluster',
122
+ version: '',
123
+ status: options.connectivity.status,
124
+ infoTooltip: options.connectivity.infoTooltip,
125
+ }
126
+ : undefined,
114
127
  },
115
128
  };
116
129
  };
@@ -15,6 +15,7 @@ export interface ClusterLoadProps {
15
15
  current: string;
16
16
  clusterLoadTooltip: string;
17
17
  docs: string;
18
+ reload: string;
18
19
  };
19
20
  values: {
20
21
  latest: ClusterLoadDataPoint;
@@ -23,13 +23,21 @@ export const ClusterLoad = (props) => {
23
23
  props.docs.onClick();
24
24
  }, target: '_blank', hideIcon: true }) })] }));
25
25
  if (props.variant === 'plain') {
26
- return (_jsxs("div", { style: { position: 'relative' }, className: 'cluster-load', children: [_jsxs(Stack, { orientation: 'horizontal', style: { marginBottom: '16px' }, children: [_jsx("h6", { style: { margin: 0, fontSize: '16px' }, children: props.texts.title }), !props.loading && (_jsx(C4LinkButton, { label: '', ariaLabel: 'Reload', onClick: () => props.reload(), style: { justifySelf: 'end', alignSelf: 'start' }, icon: _jsx(Renew, {}) }))] }), body] }));
26
+ return (_jsxs("div", { style: { position: 'relative' }, className: 'cluster-load', children: [_jsxs(Stack, { orientation: 'horizontal', style: { marginBottom: '16px' }, children: [_jsx("h6", { style: { margin: 0, fontSize: '16px' }, children: props.texts.title }), !props.loading && (_jsx(C4LinkButton, { label: '', ariaLabel: props.texts.reload, onClick: () => props.reload(), style: { justifySelf: 'end', alignSelf: 'start' }, icon: _jsx(Renew, {}) }))] }), body] }));
27
27
  }
28
- return (_jsx("div", { style: { position: 'relative' }, className: 'cluster-load', children: _jsx(C4TileWithTitleAndAction, { title: props.texts.title, action: {
29
- label: '',
30
- icon: _jsx(Renew, {}),
31
- onClick: () => props.reload(),
32
- }, children: body }) }));
28
+ return (_jsx("div", { style: { position: 'relative' }, className: 'cluster-load', children: _jsx(C4TileWithTitleAndAction, { title: props.texts.title,
29
+ // Hide the reload button during load, like the `plain` variant does.
30
+ // The `loading` prop of the tile is wrong here. That prop also replaces
31
+ // the children with a `SkeletonPlaceholder`, and `body` already shows
32
+ // its own spinner and reserves the height of the chart.
33
+ action: props.loading
34
+ ? undefined
35
+ : {
36
+ label: '',
37
+ ariaLabel: props.texts.reload,
38
+ icon: _jsx(Renew, {}),
39
+ onClick: () => props.reload(),
40
+ }, children: body }) }));
33
41
  };
34
42
  const HistoricChart = (props) => {
35
43
  const designSystem = useC4DesignSystem();
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4ClusterSettingsProps } from './c4-cluster-settings.types.js';
3
- export declare const C4ClusterSettings: ({ settings, tasklistSettings, optimizeFilteringSettings, sessionSettings, dangerZone, }: C4ClusterSettingsProps) => JSX.Element;
3
+ export declare const C4ClusterSettings: ({ settings, tasklistSettings, optimizeFilteringSettings, sessionSettings, optionalTelemetrySettings, dangerZone, }: C4ClusterSettingsProps) => JSX.Element;
@@ -3,15 +3,17 @@ import { Stack } from '../../ui/index.js';
3
3
  import { ClusterSettings } from './elements/cluster-settings.js';
4
4
  import { DangerZone } from './elements/danger-zone.js';
5
5
  import { OptimizeFilteringSettings } from './elements/optimize-filtering-settings.js';
6
+ import { OptionalTelemetryToggle } from './elements/optional-telemetry-toggle.js';
6
7
  import { SessionSettings } from './elements/session-settings.js';
7
8
  import { SettingsTile } from './elements/settings-tile.js';
8
9
  import { TasklistSettings } from './elements/tasklist-mode-settings.js';
9
- export const C4ClusterSettings = ({ settings, tasklistSettings, optimizeFilteringSettings, sessionSettings, dangerZone, }) => {
10
+ export const C4ClusterSettings = ({ settings, tasklistSettings, optimizeFilteringSettings, sessionSettings, optionalTelemetrySettings, dangerZone, }) => {
10
11
  const settingsComponent = _jsx(ClusterSettings, { ...settings });
11
12
  const tasklistComponent = tasklistSettings?.enabled && (_jsx(TasklistSettings, { ...tasklistSettings }));
12
13
  const optimizeFilteringComponent = optimizeFilteringSettings ? (_jsx(SettingsTile, { title: optimizeFilteringSettings.title, children: _jsx(OptimizeFilteringSettings, { filtering: optimizeFilteringSettings.filtering, permissions: optimizeFilteringSettings.permissions, onToggle: optimizeFilteringSettings.onToggle, onSave: optimizeFilteringSettings.onSave }) })) : undefined;
13
14
  const sessionSettingsComponent = sessionSettings ? (_jsx(SettingsTile, { title: sessionSettings.title, children: _jsx(SessionSettings, { maxInactiveIntervalMinutes: sessionSettings.maxInactiveIntervalMinutes, heartbeatEnabled: sessionSettings.heartbeatEnabled, permissions: sessionSettings.permissions, onSaveMaxInactiveInterval: sessionSettings.onSaveMaxInactiveInterval, onToggleHeartbeat: sessionSettings.onToggleHeartbeat }) })) : undefined;
15
+ const optionalTelemetrySettingsComponent = optionalTelemetrySettings ? (_jsx(SettingsTile, { title: optionalTelemetrySettings.title, children: _jsx(OptionalTelemetryToggle, { enabled: optionalTelemetrySettings.enabled, description: optionalTelemetrySettings.description, permissions: optionalTelemetrySettings.permissions, action: optionalTelemetrySettings.action }) })) : undefined;
14
16
  const dangerZoneComponent = dangerZone ? (_jsx(DangerZone, { ...dangerZone })) : undefined;
15
- const component = (_jsxs(Stack, { gap: 6, children: [settingsComponent, tasklistComponent, optimizeFilteringComponent, sessionSettingsComponent, dangerZoneComponent] }));
17
+ const component = (_jsxs(Stack, { gap: 6, children: [settingsComponent, tasklistComponent, optimizeFilteringComponent, sessionSettingsComponent, optionalTelemetrySettingsComponent, dangerZoneComponent] }));
16
18
  return component;
17
19
  };
@@ -1,6 +1,7 @@
1
1
  import type { ClusterSettingsProps } from './elements/cluster-settings.js';
2
2
  import type { DangerZoneProps } from './elements/danger-zone.js';
3
3
  import type { OptimizeFilteringSettingsProps } from './elements/optimize-filtering-settings.js';
4
+ import type { OptionalTelemetryToggleProps } from './elements/optional-telemetry-toggle.js';
4
5
  import type { SessionSettingsProps } from './elements/session-settings.js';
5
6
  import type { SwaggerToggleProps } from './elements/swagger-toggle.js';
6
7
  import type { TasklistModeToggleProps } from './elements/tasklist-mode-toggle.js';
@@ -16,5 +17,8 @@ export interface C4ClusterSettingsProps {
16
17
  sessionSettings?: SessionSettingsProps & {
17
18
  title: string;
18
19
  };
20
+ optionalTelemetrySettings?: OptionalTelemetryToggleProps & {
21
+ title: string;
22
+ };
19
23
  dangerZone?: DangerZoneProps;
20
24
  }
@@ -9,6 +9,7 @@ import { type LowLatencyToggleProps } from './low-latency-toggle.js';
9
9
  import { type McpToggleProps } from './mcp-toggle.js';
10
10
  import { type MultiTenancyProps } from './multi-tenancy.js';
11
11
  import { type ResourceBasedAuthorizationsProps } from './resource-based-authorizations.js';
12
+ import { type SecretsFilterModeToggleProps } from './secrets-filter-mode-toggle.js';
12
13
  import { type SwaggerToggleProps } from './swagger-toggle.js';
13
14
  export interface ClusterSettingsProps {
14
15
  title: string;
@@ -23,5 +24,6 @@ export interface ClusterSettingsProps {
23
24
  swaggerToggle?: SwaggerToggleProps;
24
25
  businessIdUniquenessToggle?: BusinessIdUniquenessToggleProps;
25
26
  appIntegrationsToggle?: AppIntegrationsToggleProps;
27
+ secretsFilterModeToggle?: SecretsFilterModeToggleProps;
26
28
  }
27
- export declare const ClusterSettings: ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, externalIdentityProvider, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, appIntegrationsToggle, }: ClusterSettingsProps) => JSX.Element;
29
+ export declare const ClusterSettings: ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, externalIdentityProvider, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, appIntegrationsToggle, secretsFilterModeToggle, }: ClusterSettingsProps) => JSX.Element;
@@ -10,9 +10,10 @@ import { LowLatencyToggle, } from './low-latency-toggle.js';
10
10
  import { McpToggle } from './mcp-toggle.js';
11
11
  import { MultiTenancy } from './multi-tenancy.js';
12
12
  import { ResourceBasedAuthorizations, } from './resource-based-authorizations.js';
13
+ import { SecretsFilterModeToggle, } from './secrets-filter-mode-toggle.js';
13
14
  import { SettingsTile } from './settings-tile.js';
14
15
  import { SwaggerToggle } from './swagger-toggle.js';
15
- export const ClusterSettings = ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, externalIdentityProvider, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, appIntegrationsToggle, }) => {
16
+ export const ClusterSettings = ({ title, resourceBasedAuthorizations, identityBasedAuthorizations, multiTenancy, externalIdentityProvider, autoUpdate, enforceGroups, lowLatencyToggle, mcpToggle, swaggerToggle, businessIdUniquenessToggle, appIntegrationsToggle, secretsFilterModeToggle, }) => {
16
17
  const resourceBasedAuthorizationsComponent = resourceBasedAuthorizations ? (_jsx(ResourceBasedAuthorizations, { ...resourceBasedAuthorizations })) : undefined;
17
18
  const identityBasedAuthorizationsComponent = identityBasedAuthorizations ? (_jsx(IdentityBasedAuthorizations, { ...identityBasedAuthorizations })) : undefined;
18
19
  const multiTenancyComponent = multiTenancy ? (_jsx(MultiTenancy, { ...multiTenancy })) : undefined;
@@ -24,6 +25,7 @@ export const ClusterSettings = ({ title, resourceBasedAuthorizations, identityBa
24
25
  const swaggerToggleComponent = swaggerToggle ? (_jsx(SwaggerToggle, { ...swaggerToggle })) : undefined;
25
26
  const businessIdUniquenessToggleComponent = businessIdUniquenessToggle ? (_jsx(BusinessIdUniquenessToggle, { ...businessIdUniquenessToggle })) : undefined;
26
27
  const appIntegrationsToggleComponent = appIntegrationsToggle ? (_jsx(AppIntegrationsToggle, { ...appIntegrationsToggle })) : undefined;
28
+ const secretsFilterModeToggleComponent = secretsFilterModeToggle ? (_jsx(SecretsFilterModeToggle, { ...secretsFilterModeToggle })) : undefined;
27
29
  const oneComponentVisible = resourceBasedAuthorizationsComponent ||
28
30
  identityBasedAuthorizationsComponent ||
29
31
  multiTenancyComponent ||
@@ -34,8 +36,10 @@ export const ClusterSettings = ({ title, resourceBasedAuthorizations, identityBa
34
36
  mcpToggleComponent ||
35
37
  swaggerToggleComponent ||
36
38
  businessIdUniquenessToggleComponent ||
37
- appIntegrationsToggleComponent;
39
+ appIntegrationsToggleComponent ||
40
+ secretsFilterModeToggleComponent;
38
41
  const component = oneComponentVisible ? (_jsxs(SettingsTile, { title: title, children: [resourceBasedAuthorizationsComponent, resourceBasedAuthorizationsComponent && _jsx(C4Divider, {}), identityBasedAuthorizationsComponent, identityBasedAuthorizationsComponent && _jsx(C4Divider, {}), multiTenancyComponent, multiTenancyComponent && _jsx(C4Divider, {}), externalIdentityProviderComponent, externalIdentityProviderComponent && _jsx(C4Divider, {}), autoUpdateComponent, autoUpdateComponent && _jsx(C4Divider, {}), enforceGroupsComponent, enforceGroupsComponent && _jsx(C4Divider, {}), lowLatencyToggleComponent, lowLatencyToggleComponent && _jsx(C4Divider, {}), mcpToggleComponent, mcpToggleComponent && _jsx(C4Divider, {}), swaggerToggleComponent, swaggerToggleComponent && _jsx(C4Divider, {}), businessIdUniquenessToggleComponent, businessIdUniquenessToggleComponent &&
39
- appIntegrationsToggleComponent && _jsx(C4Divider, {}), appIntegrationsToggleComponent] })) : (_jsx(_Fragment, {}));
42
+ (appIntegrationsToggleComponent ||
43
+ secretsFilterModeToggleComponent) && _jsx(C4Divider, {}), appIntegrationsToggleComponent, appIntegrationsToggleComponent && secretsFilterModeToggleComponent && (_jsx(C4Divider, {})), secretsFilterModeToggleComponent] })) : (_jsx(_Fragment, {}));
40
44
  return component;
41
45
  };
@@ -7,6 +7,14 @@ export interface ExternalIdentityProviderModalProps {
7
7
  initialConfig?: ExternalIdpConfig;
8
8
  saving?: boolean;
9
9
  error?: string;
10
+ /**
11
+ * The cluster's OIDC callback URL, for the admin to register with their own
12
+ * provider (#9866). Built by the caller — see `buildClusterSsoCallbackUrl`,
13
+ * which returns undefined while the cluster is still in creation. Absent
14
+ * means the row shows nothing: a wrong redirect URI fails at login, inside
15
+ * the customer's provider where Console cannot see it.
16
+ */
17
+ callbackUrl?: string;
10
18
  onClose: () => void;
11
19
  /**
12
20
  * clientSecret is undefined when the admin left the field blank on edit
@@ -17,4 +25,4 @@ export interface ExternalIdentityProviderModalProps {
17
25
  clientSecret?: string;
18
26
  }) => void;
19
27
  }
20
- export declare const ExternalIdentityProviderModal: ({ open, initialConfig, saving, error, onClose, onSubmit, }: ExternalIdentityProviderModalProps) => JSX.Element;
28
+ export declare const ExternalIdentityProviderModal: ({ open, initialConfig, saving, error, callbackUrl, onClose, onSubmit, }: ExternalIdentityProviderModalProps) => JSX.Element;