@camunda/ccma-saas-frontend 0.7.2 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.d.ts +10 -0
  2. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +78 -0
  3. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.mocks.d.ts +6 -0
  4. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.mocks.js +90 -0
  5. package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.types.d.ts +25 -0
  6. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +5 -1
  7. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +9 -0
  8. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +6 -3
  9. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +3 -0
  10. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +9 -0
  11. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +2 -0
  12. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +2 -0
  13. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
  14. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +11 -18
  15. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +19 -2
  16. package/lib/esm/components/c4-cluster-overview/applications.d.ts +12 -0
  17. package/lib/esm/components/c4-cluster-overview/applications.js +10 -2
  18. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +6 -1
  19. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +15 -2
  20. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +1 -0
  21. package/lib/esm/components/c4-cluster-overview/cluster-load.js +14 -6
  22. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  23. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +4 -2
  24. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  25. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +3 -1
  26. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +7 -3
  27. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +9 -1
  28. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +69 -12
  29. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +10 -1
  30. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +16 -2
  31. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.d.ts +14 -0
  32. package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.js +12 -0
  33. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.d.ts +15 -0
  34. package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +10 -0
  35. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +4 -2
  36. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +24 -3
  37. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
  38. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +1 -0
  39. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +2 -0
  40. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +13 -30
  41. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +10 -5
  42. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +10 -5
  43. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  44. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts +5 -0
  45. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +2 -1
  46. package/lib/esm/externalUrls.const.d.ts +1 -1
  47. package/lib/esm/externalUrls.const.js +1 -1
  48. package/lib/esm/i18n/c4-console-i18n.js +6 -0
  49. package/lib/esm/i18n/en/modals/apiclients.json +4 -0
  50. package/lib/esm/i18n/en/pages/clusterdetails.json +25 -3
  51. package/lib/esm/i18n/en/pages/orgmanagement.json +1 -0
  52. package/lib/esm/index.d.ts +3 -3
  53. package/lib/esm/index.js +2 -3
  54. package/lib/esm/runtime/build-cluster-sso-callback-url.d.ts +34 -0
  55. package/lib/esm/runtime/build-cluster-sso-callback-url.js +49 -0
  56. package/lib/esm/runtime/build-cluster-swagger-url.d.ts +7 -2
  57. package/lib/esm/runtime/build-cluster-swagger-url.js +20 -5
  58. package/lib/esm/runtime/c4-console-runtime-context.d.ts +10 -0
  59. package/lib/esm/runtime/c4-console-runtime-context.js +12 -0
  60. package/lib/esm/runtime/index.d.ts +2 -1
  61. package/lib/esm/runtime/index.js +2 -1
  62. package/lib/esm/runtime/use-hub-api-naming.d.ts +17 -0
  63. package/lib/esm/runtime/use-hub-api-naming.js +23 -0
  64. package/lib/esm/ui/families.d.ts +4 -0
  65. package/lib/esm/ui/families.js +22 -2
  66. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +16 -1
  67. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +70 -21
  68. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
  69. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +54 -13
  70. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +10 -0
  71. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +1 -0
  72. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +3 -0
  73. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +11 -0
  74. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -3
  75. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +7 -0
  76. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +26 -5
  77. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +43 -16
  78. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +174 -3
  79. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.d.ts +13 -0
  80. package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.js +29 -0
  81. package/lib/esm/widgets/cluster-health-override.d.ts +16 -0
  82. package/lib/esm/widgets/cluster-health-override.js +33 -0
  83. package/lib/esm/widgets/clusters/c4-clusters-page.js +8 -8
  84. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  85. package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.js +6 -1
  86. package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.js +2 -1
  87. package/lib/esm/widgets/environment/use-cluster-swagger-url.d.ts +7 -4
  88. package/lib/esm/widgets/environment/use-cluster-swagger-url.js +7 -4
  89. package/lib/esm/widgets/management/c4-management-app.js +6 -2
  90. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +16 -31
  91. package/package.json +24 -24
  92. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +0 -16
  93. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +0 -40
  94. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.d.ts +0 -16
  95. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +0 -142
  96. package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +0 -14
  97. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +0 -136
  98. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +0 -13
  99. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +0 -58
  100. package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +0 -16
  101. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +0 -118
  102. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +0 -3
  103. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +0 -408
  104. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.d.ts +0 -32
  105. package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +0 -14
  106. package/lib/esm/components/c4-advanced-search-filters/state.types.js +0 -6
  107. package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +0 -5
  108. package/lib/esm/components/c4-advanced-search-filters/utils.js +0 -58
  109. /package/lib/esm/components/{c4-advanced-search-filters/c4-advanced-search-filters.types.js → c4-api-client-scope-picker/c4-api-client-scope-picker.types.js} +0 -0
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { AuditLoggerService, ConsoleAlertsService, ConsoleByomMonitoringService, ConsoleClusterParametersService, ConsoleClusterService, HdpService, HttpError, SaaSJobsService, } from '@camunda/ccma-api';
8
- import { AUDIT_LOG_TAB_MIN_VERSION, CLUSTER_STATISTICS_CONFIG_MIN_VERSION, checkVersion, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
8
+ import { AUDIT_LOG_TAB_MIN_VERSION, CLUSTER_STATISTICS_CONFIG_MIN_VERSION, checkVersion, deriveEncryptionStatus, deriveSecondaryStorageStatus, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
9
9
  import { observer } from 'mobx-react-lite';
10
10
  import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
11
11
  import { normalizeClusterStatus } from '../../components/c4-cluster-overview/applications.js';
@@ -15,6 +15,7 @@ import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
15
15
  import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
16
16
  import { toApiConfig } from '../../runtime/to-api-config.js';
17
17
  import { Modal, Stack, TextInput } from '../../ui/index.js';
18
+ import { clusterHealthOverride } from '../cluster-health-override.js';
18
19
  import { useClusterApiClients } from '../environment/use-cluster-api-clients.js';
19
20
  import { useClusterVersionFlags } from '../environment/use-cluster-version-flags.js';
20
21
  import { C4ClusterDetailsPage } from './c4-cluster-details-page.js';
@@ -135,6 +136,22 @@ export function mergeNestedSnapshot(previous, next) {
135
136
  }
136
137
  return merged;
137
138
  }
139
+ /**
140
+ * True when this is a dual-region BYOK cluster and the secondary region's
141
+ * key is not accessible. Exported (and kept pure) so both the header
142
+ * indicator and the Encryption tab's own warning read the same computation,
143
+ * and so this can be tested without rendering the full component.
144
+ *
145
+ * Gated on `encryption === 'External'` to match the Encryption tab's own
146
+ * visibility (`tab.visible` below) — otherwise the header indicator could
147
+ * tell the customer to click through to a tab that is not shown.
148
+ */
149
+ export function computeSecondaryReplicationNotReady(cluster) {
150
+ return (cluster.encryption === 'External' &&
151
+ (cluster.backupRegionCodes?.length ?? 0) > 1 &&
152
+ deriveSecondaryStorageStatus(cluster.status?.conditions) ===
153
+ 'SecondaryEncryptionNotReady');
154
+ }
138
155
  // Client-side dismissal of the "restore failed" banner. The failed state is
139
156
  // derived from the Restore CR, so there is no server-side "seen" flag — we
140
157
  // remember dismissed restore ids (per browser) in localStorage instead. Keyed
@@ -1067,6 +1084,7 @@ export const C4ClusterDetailsApp = observer((props) => {
1067
1084
  const canMutateClusterApiResources = Boolean(authz.visibilities.clusters?.canEdit);
1068
1085
  const clientsComponent = useMemo(() => {
1069
1086
  return (_jsx(C4ClusterDetailsClientsTab, { cluster: cluster, clients: clients, clientsLoading: clientsLoading, clientsError: clientsError, hasIdentityIntegration: hasIdentityIntegration, useClusterSecretsLabel: useClusterSecretsLabel, orgId: props.orgId, clusterId: props.clusterId, clientsDocsUrl: clientsDocsUrl, mcpSetupDocsUrl: urls.docs.mcpSetup, identityAuthorizationDocsUrl: urls.docs.identityAuthorization, springZeebeGettingStartedDocsUrl: urls.docs.springZeebeGettingStarted, springZeebeConfigDocsUrl: urls.docs.springZeebeConfig, apiConfig: apiConfig, canMutateCluster: canMutateClusterApiResources, clientsPermissions: {
1087
+ canRead: Boolean(orgPermissions?.cluster.clients.read),
1070
1088
  canCreate: Boolean(orgPermissions?.cluster.clients.create),
1071
1089
  canUpdate: Boolean(orgPermissions?.cluster.clients.update),
1072
1090
  canDelete: Boolean(orgPermissions?.cluster.clients.delete),
@@ -1288,7 +1306,34 @@ export const C4ClusterDetailsApp = observer((props) => {
1288
1306
  clustersOfOrg?.some((sibling) => sibling.uuid !== cluster.uuid &&
1289
1307
  sibling.stableId === cluster.stableId &&
1290
1308
  sibling.isFailoverSource === true));
1291
- const encryptionComponent = (_jsx(C4ClusterDetailsEncryptionTab, { cluster: cluster, orgId: props.orgId, clusterId: props.clusterId, apiConfig: apiConfig, translate: t ?? ((key) => key), activeTabId: activeTabId, onReloadCluster: reloadCluster, restoreInProgress: cluster?.restoreInProgress, isFailoverTarget: isFailoverTarget, docsUrls: {
1309
+ // A failover target with a pending key-policy update needs the customer
1310
+ // in the Encryption tab, not Overview — Overview has nothing that tells
1311
+ // them a key policy update is needed.
1312
+ const needsFailoverEncryptionAction = isFailoverTarget &&
1313
+ deriveEncryptionStatus(cluster?.status?.conditions) ===
1314
+ 'ExternalEncryptionKeyNotReady';
1315
+ // Computed once here (not inside the Encryption tab) because the header
1316
+ // indicator needs it too, and the two must never disagree about whether
1317
+ // there's a problem.
1318
+ const secondaryReplicationNotReady = cluster
1319
+ ? computeSecondaryReplicationNotReady(cluster)
1320
+ : false;
1321
+ // Guards on needsFailoverEncryptionAction itself, not on "cluster has
1322
+ // loaded" — the operator can report the condition after the first
1323
+ // fetch, so waiting for it (instead of locking in "no action" on the
1324
+ // first render) still catches a failover target that needs this.
1325
+ const appliedFailoverEncryptionDefaultRef = useRef(false);
1326
+ useEffect(() => {
1327
+ if (props.desiredTabId)
1328
+ return;
1329
+ if (appliedFailoverEncryptionDefaultRef.current)
1330
+ return;
1331
+ if (!needsFailoverEncryptionAction)
1332
+ return;
1333
+ appliedFailoverEncryptionDefaultRef.current = true;
1334
+ setActiveTabId('encryption');
1335
+ }, [props.desiredTabId, needsFailoverEncryptionAction]);
1336
+ const encryptionComponent = (_jsx(C4ClusterDetailsEncryptionTab, { cluster: cluster, orgId: props.orgId, clusterId: props.clusterId, apiConfig: apiConfig, translate: t ?? ((key) => key), activeTabId: activeTabId, onReloadCluster: reloadCluster, restoreInProgress: cluster?.restoreInProgress, isFailoverTarget: isFailoverTarget, secondaryReplicationNotReady: secondaryReplicationNotReady, docsUrls: {
1292
1337
  encryption: urls.docs.encryption,
1293
1338
  encryptionCli: urls.docs.encryptionCli,
1294
1339
  encryptionManual: urls.docs.encryptionManual,
@@ -1464,7 +1509,8 @@ export const C4ClusterDetailsApp = observer((props) => {
1464
1509
  // repeated here, next to the cluster name, so they read at a glance without scrolling to the
1465
1510
  // Cluster Details table below.
1466
1511
  const headerPhaseTag = cluster?.labels?.camunda?.[0];
1467
- const headerHealthStatus = normalizeClusterStatus(cluster?.status?.ready);
1512
+ const headerHealthStatus = clusterHealthOverride(cluster) ??
1513
+ normalizeClusterStatus(cluster?.status?.ready);
1468
1514
  // `generation.name` already reads "Camunda 8.10.0-alpha4" — the org's Clusters list renders it
1469
1515
  // verbatim as the Generation column, so this does too rather than prefixing "Camunda" again.
1470
1516
  const headerVersionLabel = cluster?.generation?.name;
@@ -1472,31 +1518,34 @@ export const C4ClusterDetailsApp = observer((props) => {
1472
1518
  // generation, or disabled authorizations all matter more than a
1473
1519
  // one-time "update your endpoint" nudge.
1474
1520
  const banner = primaryBanner ?? failoverUriBanner;
1521
+ // Shared by the tab strip's onChange and the secondary-replication
1522
+ // header indicator's click action — both switch to a tab the same way.
1523
+ const handleTabChange = (tabId) => {
1524
+ const next = tabId;
1525
+ const telemetryTabId = getClusterDetailsTabTelemetryId(next);
1526
+ runtime.telemetry?.track?.(`clusterOverview:tabChange:${telemetryTabId}`, {
1527
+ message: `Cluster Details: Changed tab to ${telemetryTabId}`,
1528
+ orgId: props.orgId,
1529
+ clusterId: props.clusterId,
1530
+ tabId: telemetryTabId,
1531
+ });
1532
+ setActiveTabId(next);
1533
+ props.onNavigate?.({
1534
+ kind: 'tabChange',
1535
+ orgId: props.orgId,
1536
+ clusterId: props.clusterId,
1537
+ tabId: next,
1538
+ });
1539
+ };
1475
1540
  return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsPage, { loading: isClusterLoading || authz.isLoading, padding: props.padding, clusterName: cluster?.name, phaseTag: headerPhaseTag, healthStatus: headerHealthStatus, versionLabel: headerVersionLabel, isDevelopmentPlan: cluster?.planType?.development, urls: { clusters: urls.clusters }, onNavigateToClusters: () => props.onNavigate?.({ kind: 'clusters', orgId: props.orgId }), menu: {
1476
1541
  canRename,
1477
1542
  canDelete,
1478
1543
  onRename: canRename ? () => setRenameOpen(true) : undefined,
1479
1544
  onDelete: canDelete ? () => setDeleteOpen(true) : undefined,
1480
- }, banner: banner, tabs: {
1545
+ }, banner: banner, secondaryReplicationNotReady: secondaryReplicationNotReady, onGoToEncryptionTab: () => handleTabChange('encryption'), tabs: {
1481
1546
  list: tabs,
1482
1547
  desiredTabId: activeTabId,
1483
- onChange: (tabId) => {
1484
- const next = tabId;
1485
- const telemetryTabId = getClusterDetailsTabTelemetryId(next);
1486
- runtime.telemetry?.track?.(`clusterOverview:tabChange:${telemetryTabId}`, {
1487
- message: `Cluster Details: Changed tab to ${telemetryTabId}`,
1488
- orgId: props.orgId,
1489
- clusterId: props.clusterId,
1490
- tabId: telemetryTabId,
1491
- });
1492
- setActiveTabId(next);
1493
- props.onNavigate?.({
1494
- kind: 'tabChange',
1495
- orgId: props.orgId,
1496
- clusterId: props.clusterId,
1497
- tabId: next,
1498
- });
1499
- },
1548
+ onChange: handleTabChange,
1500
1549
  } }), _jsx(Modal, { open: renameOpen, modalHeading: 'Rename cluster', primaryButtonText: 'Rename', secondaryButtonText: 'Cancel', primaryButtonDisabled: clusterMutationBusy ||
1501
1550
  newClusterName.length === 0 ||
1502
1551
  !!cluster?.restoreInProgress, onRequestClose: () => setRenameOpen(false), onRequestSubmit: () => {
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4ClusterDetailsPageProps } from './c4-cluster-details-page.types.js';
3
- export declare const C4ClusterDetailsPage: ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, urls, onNavigateToClusters, menu, banner, tabs, padding, }: C4ClusterDetailsPageProps) => JSX.Element;
3
+ export declare const C4ClusterDetailsPage: ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, urls, onNavigateToClusters, menu, banner, secondaryReplicationNotReady, onGoToEncryptionTab, tabs, padding, }: C4ClusterDetailsPageProps) => JSX.Element;
@@ -12,6 +12,7 @@ import { ClusterStatusElement } from '../../components/c4-cluster-overview/appli
12
12
  import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
13
13
  import { useC4ConsoleRuntime, useC4DesignSystem, } from '../../runtime/c4-console-runtime-context.js';
14
14
  import { BreadcrumbSkeleton, Link, SkeletonText, Stack, TabsSkeleton, Tooltip, } from '../../ui/index.js';
15
+ import { safeTranslate } from '../../utils/safe-translate.js';
15
16
  const breadCrumbWrapperStyles = {
16
17
  minHeight: '40px',
17
18
  display: 'grid',
@@ -41,15 +42,6 @@ const headerBadgeStyle = {
41
42
  fontSize: 'var(--cds-label-01-font-size, 0.75rem)',
42
43
  whiteSpace: 'nowrap',
43
44
  };
44
- function safeTranslate(t, key, fallback) {
45
- try {
46
- const translated = t?.(key);
47
- return translated && translated !== key ? translated : fallback;
48
- }
49
- catch {
50
- return fallback;
51
- }
52
- }
53
45
  function buildMenuItems(opts) {
54
46
  const { menu, t } = opts;
55
47
  if (!menu) {
@@ -177,7 +169,42 @@ function AuthorizationsDisabledIndicator(props) {
177
169
  fontSize: 'var(--cds-body-compact-01-font-size)',
178
170
  }, children: [_jsx(WarningAltFilled, { size: 16, style: { fill: 'var(--cds-support-caution-major)' } }), title] }) }) }));
179
171
  }
180
- export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, urls, onNavigateToClusters, menu, banner, tabs, padding = 'default', }) => {
172
+ /**
173
+ * Cluster-header indicator for "secondary key not accessible" (BYOK,
174
+ * dual-region). Independent of `banner` — the single banner slot can be
175
+ * showing something else entirely (or nothing), and this still has to be
176
+ * visible, since the customer may not come back to this page for a long
177
+ * time while replication stays broken.
178
+ *
179
+ * No carbon/ds split needed: unlike `AuthorizationsDisabledIndicator`, the
180
+ * tooltip description here is plain text, not a nested interactive link, so
181
+ * the switchable `Tooltip` from `../ui` already works in both modes. The
182
+ * action lives on the trigger itself instead.
183
+ */
184
+ function SecondaryReplicationNotReadyIndicator(props) {
185
+ const { onGoToEncryptionTab, t } = props;
186
+ const title = safeTranslate(t, 'c4console:clusterDetails.indicator.secondaryReplicationNotReady.title', 'Secondary key not accessible');
187
+ const subtitle = safeTranslate(t, 'c4console:clusterDetails.indicator.secondaryReplicationNotReady.subtitle', "Your secondary region's encryption key isn't accessible, so replication to that region isn't working. Go to the Encryption tab to review the key policy.");
188
+ return (_jsx(Tooltip, { align: 'bottom-end', autoAlign: true, dropShadow: true, description: _jsx("span", { style: { display: 'block', whiteSpace: 'normal', maxWidth: '20rem' }, children: subtitle }), children: _jsxs("button", { type: 'button', "aria-label": title, onClick: onGoToEncryptionTab, style: {
189
+ display: 'inline-flex',
190
+ alignItems: 'center',
191
+ gap: '0.25rem',
192
+ padding: 0,
193
+ border: 0,
194
+ background: 'transparent',
195
+ cursor: onGoToEncryptionTab ? 'pointer' : 'default',
196
+ color: 'var(--cds-text-secondary)',
197
+ fontSize: 'var(--cds-body-compact-01-font-size)',
198
+ }, children: [_jsx(WarningAltFilled, { size: 16, style: { fill: 'var(--cds-support-caution-major)' } }), title] }) }));
199
+ }
200
+ /** The three facts beside the cluster name: phase, health, generation. */
201
+ const clusterHeaderBadges = ({ phaseTag, healthStatus, versionLabel, }) => {
202
+ if (!phaseTag && !healthStatus && !versionLabel) {
203
+ return undefined;
204
+ }
205
+ return (_jsxs(Stack, { orientation: 'horizontal', gap: 3, children: [phaseTag && _jsx(C3ClusterTag, { stage: phaseTag }), healthStatus && (_jsx("span", { style: headerBadgeStyle, children: _jsx(ClusterStatusElement, { status: healthStatus }) })), versionLabel && _jsx("span", { style: headerBadgeStyle, children: versionLabel })] }));
206
+ };
207
+ export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, urls, onNavigateToClusters, menu, banner, secondaryReplicationNotReady, onGoToEncryptionTab, tabs, padding = 'default', }) => {
181
208
  const runtime = useC4ConsoleRuntime();
182
209
  const t = runtime.i18n?.t;
183
210
  if (loading) {
@@ -187,9 +214,23 @@ export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan,
187
214
  ? safeTranslate(t, 'c4console:clusterDetails.tag.development', 'Development')
188
215
  : '';
189
216
  const bannerProps = buildBanner({ banner, t });
190
- const indicator = banner?.kind === 'authorizationsDisabled' ? (_jsx(AuthorizationsDisabledIndicator, { banner: banner, t: t })) : undefined;
191
- const hasHeaderBadges = Boolean(phaseTag || healthStatus || versionLabel);
192
- const subtitleBadges = hasHeaderBadges ? (_jsxs(Stack, { orientation: 'horizontal', gap: 3, children: [phaseTag && _jsx(C3ClusterTag, { stage: phaseTag }), healthStatus && (_jsx("span", { style: headerBadgeStyle, children: _jsx(ClusterStatusElement, { status: healthStatus }) })), versionLabel && _jsx("span", { style: headerBadgeStyle, children: versionLabel })] })) : undefined;
217
+ const authorizationsIndicator = banner?.kind === 'authorizationsDisabled' ? (_jsx(AuthorizationsDisabledIndicator, { banner: banner, t: t }, 'authorizationsDisabled')) : undefined;
218
+ // secondaryReplicationNotReady is intentionally independent of `banner` —
219
+ // see the doc comment on SecondaryReplicationNotReadyIndicator.
220
+ const secondaryReplicationIndicator = secondaryReplicationNotReady ? (_jsx(SecondaryReplicationNotReadyIndicator, { onGoToEncryptionTab: onGoToEncryptionTab, t: t }, 'secondaryReplicationNotReady')) : undefined;
221
+ const activeIndicators = [
222
+ authorizationsIndicator,
223
+ secondaryReplicationIndicator,
224
+ ].filter((el) => Boolean(el));
225
+ // Only one of these fires in practice today, so this stays exactly what
226
+ // `authorizationsIndicator` alone used to render — no new wrapper element
227
+ // around it, so carbon mode's existing render is untouched.
228
+ const indicator = activeIndicators.length > 1 ? (_jsx(Stack, { orientation: 'horizontal', gap: 3, children: activeIndicators })) : (activeIndicators[0]);
229
+ const subtitleBadges = clusterHeaderBadges({
230
+ phaseTag,
231
+ healthStatus,
232
+ versionLabel,
233
+ });
193
234
  return (_jsx(C4PageTemplate, { loading: loading, banner: bannerProps, header: {
194
235
  title: clusterName ?? '',
195
236
  tag,
@@ -48,6 +48,16 @@ export interface C4ClusterDetailsPageProps {
48
48
  onDelete?: () => void;
49
49
  };
50
50
  banner?: C4ClusterDetailsPageBanner;
51
+ /**
52
+ * True when this is a dual-region BYOK cluster and the secondary region's
53
+ * key is not accessible. Shown as a header indicator, independent of
54
+ * `banner` — unlike the banner, it stays visible no matter which banner
55
+ * (if any) currently holds that single slot, since a customer can go a
56
+ * long time without revisiting this page while it stays broken.
57
+ */
58
+ secondaryReplicationNotReady?: boolean;
59
+ /** Called when the customer clicks the secondary-replication indicator. */
60
+ onGoToEncryptionTab?: () => void;
51
61
  tabs: {
52
62
  list: C4ClusterDetailsTab[];
53
63
  desiredTabId?: string;
@@ -18,6 +18,7 @@ interface C4ClusterDetailsClientsTabProps {
18
18
  apiConfig: RequestBaseParamsConfig;
19
19
  canMutateCluster: boolean;
20
20
  clientsPermissions?: {
21
+ canRead: boolean;
21
22
  canCreate: boolean;
22
23
  canUpdate: boolean;
23
24
  canDelete: boolean;
@@ -160,11 +160,14 @@ export const C4ClusterDetailsClientsTab = (props) => {
160
160
  emptyTitle: safeTranslate(t, 'clusterdetails:clients.noClientsMessage.title', 'Use our secure, scalable API'),
161
161
  emptyDescription: renderInlineStrong(safeTranslate(t, 'clusterdetails:clients.noClientsMessage.text', 'Click <strong>Create your first client</strong> to deploy processes, start instances, and interact with them programmatically.')),
162
162
  learnMoreLabel: 'View the Client Configuration documentation',
163
+ forbiddenTitle: safeTranslate(t, 'clusterdetails:clients.forbidden.title', "You don't have access to client credentials"),
164
+ forbiddenDescription: safeTranslate(t, 'clusterdetails:clients.forbidden.description', "You don't have permission to view client credentials for this cluster. Contact an organization owner or admin for access."),
163
165
  }, urls: {
164
166
  clientDetails: (clientId) => `/org/${orgId}/cluster/${clusterId}/api/${clientId}`,
165
167
  identity: cluster?.status?.identityUrl ?? '',
166
168
  docs: clientsDocsUrl,
167
169
  }, permissions: {
170
+ canRead: clientsPermissions?.canRead ?? canMutateCluster,
168
171
  canCreate: clientsPermissions?.canCreate ?? canMutateCluster,
169
172
  canUpdate: clientsPermissions?.canUpdate ?? canMutateCluster,
170
173
  canDelete: clientsPermissions?.canDelete ?? canMutateCluster,
@@ -20,6 +20,17 @@ interface C4ClusterDetailsConnectorSecretsTabProps {
20
20
  url?: string;
21
21
  }) => void;
22
22
  useClusterSecretsLabel?: boolean;
23
+ /**
24
+ * The caller is still resolving `connectorSecretsPermissions`.
25
+ *
26
+ * Until the permissions resolve, `canRead` is `false` and this tab cannot
27
+ * fetch. Without this flag the tab then reads as "loaded, and empty", and it
28
+ * shows the empty state for one render pass.
29
+ *
30
+ * The cluster-details page folds the same signal into its own page loading
31
+ * state. The standalone widget passes it here instead.
32
+ */
33
+ permissionsLoading?: boolean;
23
34
  /**
24
35
  * Surface this tab is rendered on. Defaults to `'cluster'`.
25
36
  *
@@ -27,7 +27,7 @@ function renderInlineLink0(value, linkRenderer) {
27
27
  }
28
28
  const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
29
29
  const { Select, SelectItem } = useSelectFamily();
30
- const { orgId, clusterId, apiConfig, canMutateCluster, connectorSecretsPermissions, docsUrl, t, onNavigate, useClusterSecretsLabel, scope = 'cluster', onPanelState, } = props;
30
+ const { orgId, clusterId, apiConfig, canMutateCluster, connectorSecretsPermissions, docsUrl, t, onNavigate, useClusterSecretsLabel, permissionsLoading = false, scope = 'cluster', onPanelState, } = props;
31
31
  const pickSecretsText = (connectorKey, connectorFallback, clusterKey, clusterFallback) => useClusterSecretsLabel
32
32
  ? safeTranslate(t, clusterKey, clusterFallback)
33
33
  : safeTranslate(t, connectorKey, connectorFallback);
@@ -150,7 +150,10 @@ const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
150
150
  isProtected: key.startsWith('CAMUNDA_PROVIDED_'),
151
151
  }));
152
152
  const title = pickSecretsText('clusterdetails:connectorSecrets.title', 'Connector secrets', 'clusterdetails:clusterSecrets.title', 'Cluster secrets');
153
- const isEmpty = !connectorSecretsLoading && !connectorSecretsError && secrets.length === 0;
153
+ // `permissionsLoading` counts as loading. The fetch cannot start yet, so
154
+ // "no secrets" is not a fact yet.
155
+ const isListLoading = connectorSecretsLoading || permissionsLoading;
156
+ const isEmpty = !isListLoading && !connectorSecretsError && secrets.length === 0;
154
157
  useEffect(() => {
155
158
  onPanelState?.({ isEmpty, title });
156
159
  }, [isEmpty, title, onPanelState]);
@@ -173,7 +176,7 @@ const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
173
176
  url: docsUrl ?? '',
174
177
  });
175
178
  }, children: label })));
176
- return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsConnectorSecrets, { secrets: secrets, isLoading: connectorSecretsLoading, hasError: connectorSecretsError, hasImportFromClusterFeature: true, hasExportFeature: true, text: {
179
+ return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsConnectorSecrets, { secrets: secrets, isLoading: isListLoading, hasError: connectorSecretsError, hasImportFromClusterFeature: true, hasExportFeature: true, text: {
177
180
  title,
178
181
  createButton: safeTranslate(t, 'clusterdetails:connectorSecrets.createButton', 'Create secret'),
179
182
  bulkImportButton: safeTranslate(t, 'clusterdetails:connectorSecrets.bulkImportButton', 'Bulk import'),
@@ -196,6 +199,8 @@ const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
196
199
  infoText,
197
200
  // Label for the badge shown on CAMUNDA_PROVIDED_ secrets
198
201
  protectedBadge: safeTranslate(t, 'clusterdetails:connectorSecrets.protectedBadge', 'Hidden'),
202
+ forbiddenTitle: pickSecretsText('clusterdetails:connectorSecrets.forbidden.title', "You don't have access to connector secrets", 'clusterdetails:clusterSecrets.forbidden.title', "You don't have access to cluster secrets"),
203
+ forbiddenDescription: pickSecretsText('clusterdetails:connectorSecrets.forbidden.description', "You don't have permission to view connector secrets for this cluster. Contact an organization owner or admin for access.", 'clusterdetails:clusterSecrets.forbidden.description', "You don't have permission to view cluster secrets for this cluster. Contact an organization owner or admin for access."),
199
204
  }, urls: { docs: docsUrl ?? '' }, permissions: {
200
205
  canCreate: connectorSecretsPermissions?.canCreate ?? canMutateCluster,
201
206
  canRead: connectorSecretsPermissions?.canRead ?? canMutateCluster,
@@ -13,6 +13,13 @@ interface C4ClusterDetailsEncryptionTabProps {
13
13
  restoreInProgress?: boolean;
14
14
  /** True when this cluster was created by failing over from a sibling. */
15
15
  isFailoverTarget?: boolean;
16
+ /**
17
+ * True when this is a dual-region BYOK cluster and the secondary region's
18
+ * key is not accessible. Computed by the caller (not here), so the
19
+ * Encryption tab's own warning and the page-header indicator can never
20
+ * disagree about whether there's a problem.
21
+ */
22
+ secondaryReplicationNotReady?: boolean;
16
23
  docsUrls: {
17
24
  encryption: string;
18
25
  encryptionCli: string;
@@ -23,8 +23,21 @@ function toIsoString(value) {
23
23
  const date = value instanceof Date ? value : new Date(String(value));
24
24
  return Number.isNaN(date.getTime()) ? undefined : date.toISOString();
25
25
  }
26
+ // The statement the customer adds to the failover region's key policy, so
27
+ // the clone role can write the restored backup into this cluster's bucket.
28
+ // Only the failover region's key needs it — the secondary key just needs
29
+ // its principals swapped to the failover cluster's role.
30
+ function buildCloneRolePolicyStatement(cloneRoleArn) {
31
+ return JSON.stringify({
32
+ Sid: 'Allow bucket clone role to write destination objects',
33
+ Effect: 'Allow',
34
+ Principal: { AWS: cloneRoleArn },
35
+ Action: ['kms:GenerateDataKey*', 'kms:Decrypt', 'kms:DescribeKey'],
36
+ Resource: '*',
37
+ }, null, 2);
38
+ }
26
39
  export const C4ClusterDetailsEncryptionTab = (props) => {
27
- const { cluster, orgId, clusterId, apiConfig, activeTabId, onReloadCluster, restoreInProgress, isFailoverTarget, docsUrls, } = props;
40
+ const { cluster, orgId, clusterId, apiConfig, activeTabId, onReloadCluster, restoreInProgress, isFailoverTarget, secondaryReplicationNotReady, docsUrls, } = props;
28
41
  // BYOK script content
29
42
  const [byokCliSingle, setByokCliSingle] = useState('');
30
43
  const [byokCliDual, setByokCliDual] = useState('');
@@ -134,6 +147,9 @@ export const C4ClusterDetailsEncryptionTab = (props) => {
134
147
  const failoverKeyPolicy = isFailoverTarget && encryptionStatus === 'ExternalEncryptionKeyNotReady'
135
148
  ? deriveFailoverKeyPolicyPrincipals(tenantRoleArn, cluster?.stableId)
136
149
  : undefined;
150
+ const failoverCloneRolePolicyStatement = failoverKeyPolicy
151
+ ? buildCloneRolePolicyStatement(failoverKeyPolicy.cloneRole)
152
+ : undefined;
137
153
  const renderedPolicy = byokKeyPolicy.replaceAll('<TENANT-ROLE-ARN>', tenantRoleArn);
138
154
  const cliTemplate = isDualRegion ? byokCliDual : byokCliSingle;
139
155
  const renderedCli = cliTemplate
@@ -197,7 +213,7 @@ export const C4ClusterDetailsEncryptionTab = (props) => {
197
213
  isDualRegion,
198
214
  status: encryptionStatus,
199
215
  accountId: tenantRoleArn,
200
- }, encryption: encryption, failoverKeyPolicy: failoverKeyPolicy, scripts: {
216
+ }, encryption: encryption, failoverKeyPolicy: failoverKeyPolicy, failoverCloneRolePolicyStatement: failoverCloneRolePolicyStatement, secondaryReplicationNotReady: secondaryReplicationNotReady, scripts: {
201
217
  cliScript: renderedCli,
202
218
  keyPolicy: renderedPolicy,
203
219
  }, text: {
@@ -236,10 +252,15 @@ export const C4ClusterDetailsEncryptionTab = (props) => {
236
252
  downloadKeyPolicy: 'Download key policy',
237
253
  failoverKeyPolicyTitle: 'Action required',
238
254
  failoverKeyPolicyText: 'Update your encryption key policy so this cluster can read its restored data.',
239
- failoverKeyPolicyInstruction: 'This cluster uses the encryption keys from the cluster it was failed over from, so no new key is needed. Grant the three roles below the same key permissions as your original cluster, on both the primary and secondary key. Until then, the restore cannot decrypt your backup data. Policy changes can take about 10 minutes to propagate, so allow some time after saving before the restore proceeds.',
240
- failoverKeyPolicyCloneRole: 'Clone role — copies backup data into this cluster',
255
+ failoverKeyPolicyInstruction: "This cluster uses the encryption keys from the cluster it failed over from, so it doesn't need a new key. Update the key policies below so this cluster's role can access them. Policy changes can take about 10 minutes to propagate, so allow time after saving before the restore continues.",
256
+ failoverKeyPolicyPrimaryTitle: 'Key policy',
257
+ failoverKeyPolicyStatementLabel: 'Statement to add:',
258
+ failoverKeyPolicyStatementInstruction: "Replace every principal in this key policy — except the account root principal — with this cluster's role. Then add the statement below, so the clone role can access the key during the restore.",
259
+ failoverKeyPolicySecondaryTitle: 'Secondary key policy',
260
+ failoverKeyPolicySecondaryInstruction: "Replace every principal in this key policy — except the account root principal — with this cluster's role. This key doesn't need the clone role.",
241
261
  failoverKeyPolicyClusterRole: "This cluster's role",
242
- failoverKeyPolicyReplicationRole: 'Replication role — replicates to the secondary region',
262
+ secondaryReplicationNotReadyTitle: 'Action required',
263
+ secondaryReplicationNotReadyText: "Your secondary region's encryption key isn't accessible, so replication to that region isn't working. Review the key policy in the secondary region and grant this cluster's role access.",
243
264
  }, urls: {
244
265
  byokMain: docsUrls.encryption,
245
266
  cliScriptLearnMore: docsUrls.encryptionCli,
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
6
6
  */
7
7
  import { C3ClusterTag, useC3Profile, } from '@camunda/camunda-composite-components';
8
8
  import { SaaSJobsService, } from '@camunda/ccma-api';
9
- import { ADMIN_APP_RENAME_MIN_VERSION, ClusterPlanTypeAvailabilityClass, ClusterPlanTypeCategory, CONNECTORS_MANAGEMENT_LINK_MIN_VERSION, checkVersion, IDENTITY_AUTHORIZATION_MIN_VERSION, IDENTITY_AUTHORIZATION_NOTICE_MAX_VERSION, INTERNAL_CONNECTORS_MANAGEMENT_MIN_VERSION, JOB_DASHBOARD_MIN_VERSION, LINE_8_9_MIN_VERSION, LINE_8_10_MIN_VERSION, MAX_HARDWARE_PACKAGE_COUNT, SWAGGER_MIN_VERSION, sortGenerationBySemverOfZeebe, TASKLIST_V2_UPGRADE_MIN_VERSION, TASKLIST_V2_UPGRADE_TARGET_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
9
+ import { ADMIN_APP_RENAME_MIN_VERSION, ClusterPlanTypeAvailabilityClass, ClusterPlanTypeCategory, CONNECTORS_MANAGEMENT_LINK_MIN_VERSION, checkVersion, deriveConnectivityMessage, deriveConnectivityStatus, IDENTITY_AUTHORIZATION_MIN_VERSION, IDENTITY_AUTHORIZATION_NOTICE_MAX_VERSION, INTERNAL_CONNECTORS_MANAGEMENT_MIN_VERSION, JOB_DASHBOARD_MIN_VERSION, LINE_8_9_MIN_VERSION, LINE_8_10_MIN_VERSION, MAX_HARDWARE_PACKAGE_COUNT, SWAGGER_MIN_VERSION, sortGenerationBySemverOfZeebe, TASKLIST_V2_UPGRADE_MIN_VERSION, TASKLIST_V2_UPGRADE_TARGET_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
10
10
  import { Api_1, ApiKey, CheckmarkFilled, Renew, Security, UserAccessLocked, } from '@carbon/react/icons/index.esm.js';
11
11
  import { observer } from 'mobx-react-lite';
12
12
  import { Fragment, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
@@ -22,13 +22,27 @@ import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
22
22
  import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
23
23
  import { Checkbox, Link, Modal, Stack, Tag } from '../../../ui/index.js';
24
24
  import { useRadioFamily } from '../../../ui/families.js';
25
+ import { clusterHealthOverride } from '../../cluster-health-override.js';
25
26
  import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-paused.js';
26
- // Helper function to ensure translations work
27
+ import { buildClusterLoadTexts } from './cluster-load-texts.js';
28
+ // Local copy of `utils/safe-translate.ts`, because these call sites also pass
29
+ // interpolation options, which the shared helper does not take. Keep the miss
30
+ // detection of the two in step.
27
31
  function safeTranslate(t, key, fallback, options) {
28
32
  if (!t)
29
33
  return fallback;
30
34
  const result = t(key, options);
31
- return result === key ? fallback : result;
35
+ if (!result || result === key)
36
+ return fallback;
37
+ // i18next answers a miss with the key without its namespace:
38
+ // `clusterdetails:overview.title` -> `overview.title`. That is a miss too,
39
+ // and without this the raw key reaches the customer.
40
+ if (key.includes(':')) {
41
+ const withoutNamespace = key.split(':').slice(1).join(':');
42
+ if (result === withoutNamespace)
43
+ return fallback;
44
+ }
45
+ return result;
32
46
  }
33
47
  function renderStrongTextTranslation(t, key, fallback, options) {
34
48
  const text = safeTranslate(t, key, fallback, options);
@@ -1076,9 +1090,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1076
1090
  linkVisible: app.linkVisible !== false,
1077
1091
  };
1078
1092
  };
1079
- const statusValue = isClusterPausedReconciliation
1080
- ? 'maintenance'
1081
- : (cluster.status?.ready ?? '');
1093
+ const statusValue = clusterHealthOverride(cluster) ?? cluster.status?.ready ?? '';
1082
1094
  const normalizedReadyStatus = normalizeClusterStatus(statusValue);
1083
1095
  const generationName = cluster.generation?.name ?? '-';
1084
1096
  const clusterUpdateType = (() => {
@@ -1159,6 +1171,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1159
1171
  optimize: safeTranslate(t, 'clusterdetails:overview.applications.descriptions.optimize', 'Get insights to improve your processes'),
1160
1172
  connectors: safeTranslate(t, 'clusterdetails:overview.applications.descriptions.connectors', 'Integrate with external systems'),
1161
1173
  identity: safeTranslate(t, 'clusterdetails:overview.applications.descriptions.identity', 'Manage authentication and authorization'),
1174
+ connectivity: safeTranslate(t, 'clusterdetails:overview.applications.descriptions.connectivity', 'Public access to your cluster'),
1162
1175
  };
1163
1176
  const isAdminVersion = checkVersion({
1164
1177
  possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
@@ -1275,6 +1288,28 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1275
1288
  description: appDescription.identity,
1276
1289
  linkLabel: launchLabel,
1277
1290
  }),
1291
+ // Public route health (issue#9884). The operator reports it as the
1292
+ // `PublicConnectivityReady` condition and not as a component status:
1293
+ // broken public routes demote the cluster to Unhealthy while every
1294
+ // component above stays Healthy, so this tile is the only place that
1295
+ // says why. The condition is absent when the operator runs without the
1296
+ // public connectivity controller. Then the tile stays out, because an
1297
+ // absent condition is unknown health and not bad health.
1298
+ connectivity: (() => {
1299
+ const connectivityStatus = deriveConnectivityStatus(cluster.status?.conditions);
1300
+ if (!connectivityStatus)
1301
+ return undefined;
1302
+ return {
1303
+ name: 'Connectivity',
1304
+ status: isClusterPausedReconciliation
1305
+ ? 'maintenance'
1306
+ : (normalizeClusterStatus(connectivityStatus) ?? 'unhealthy'),
1307
+ version: '',
1308
+ description: appDescription.connectivity,
1309
+ // Names the routes that are not ready. Empty for a healthy cluster.
1310
+ infoTooltip: deriveConnectivityMessage(cluster.status?.conditions),
1311
+ };
1312
+ })(),
1278
1313
  };
1279
1314
  const regionName = cluster.k8sContext?.name ?? 'unknown';
1280
1315
  const regionId = (() => {
@@ -1314,16 +1349,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1314
1349
  : (cluster.planType?.name ?? '-');
1315
1350
  const clusterLoadProps = canSeeClusterLoad && (clusterLoadLatest || clusterLoadLoading)
1316
1351
  ? {
1317
- texts: {
1318
- title: safeTranslate(t, 'clusterdetails:overview.clusterLoad.title', 'Cluster Load'),
1319
- last: safeTranslate(t, 'clusterdetails:overview.clusterLoad.last', 'Last'),
1320
- day30: safeTranslate(t, 'clusterdetails:overview.clusterLoad.options.30days', '30 days'),
1321
- day7: safeTranslate(t, 'clusterdetails:overview.clusterLoad.options.7days', '7 days'),
1322
- last24h: safeTranslate(t, 'clusterdetails:overview.clusterLoad.options.24hours', '24 hours'),
1323
- current: safeTranslate(t, 'clusterdetails:overview.clusterLoad.current', 'Current'),
1324
- clusterLoadTooltip: safeTranslate(t, 'clusterdetails:overview.clusterLoad.tooltip', "Cluster load: Indicates how much of the cluster's resources are in use."),
1325
- docs: safeTranslate(t, 'clusterdetails:overview.clusterLoad.docs', 'Learn more about cluster load'),
1326
- },
1352
+ texts: buildClusterLoadTexts(t),
1327
1353
  values: {
1328
1354
  latest: clusterLoadLatest ??
1329
1355
  {
@@ -1610,6 +1636,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1610
1636
  : apps.optimize,
1611
1637
  connectors: apps.connectors,
1612
1638
  identity: apps.identity,
1639
+ connectivity: apps.connectivity,
1613
1640
  },
1614
1641
  }, details: details, clusterLoad: clusterLoadProps, rbaNotification: rbaNotification, jobDashboard: jobDashboardEntryPoint, overviewSection: overviewSection }), isOptimizeDisabledForTrial && canEditCluster && isOptimizeModalOpen && (_jsx(C4OptimizeActivationModal, { open: isOptimizeModalOpen, description: safeTranslate(t, 'clusterdetails:overview.applications.optimize.disabled.modal.description', 'When enabled, the Optimize component is deployed alongside this cluster for process analytics and reporting.'), onClose: () => setIsOptimizeModalOpen(false), onActivate: activateOptimize }))] }));
1615
1642
  };