@camunda/ccma-saas-frontend 0.5.0 → 0.7.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 (77) hide show
  1. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +2 -2
  2. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +1 -1
  3. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +1 -1
  4. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
  5. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +24 -1
  6. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +14 -1
  7. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  8. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +24 -9
  9. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +6 -0
  10. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  11. package/lib/esm/components/c4-cluster-overview/cluster-details.js +10 -1
  12. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  13. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +4 -2
  14. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +1 -1
  15. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  16. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +15 -5
  17. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +12 -1
  18. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +9 -3
  19. package/lib/esm/components/c4-cluster-settings/elements/session-settings.d.ts +13 -0
  20. package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +69 -0
  21. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +19 -1
  22. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +2 -1
  23. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +1 -0
  24. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +12 -0
  25. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +7 -2
  26. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
  27. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -3
  28. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.types.d.ts +7 -0
  29. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +15 -8
  30. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +1 -0
  31. package/lib/esm/components/c4-navigation/c4-navigation.js +17 -9
  32. package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -1
  33. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +7 -1
  34. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +2 -2
  35. package/lib/esm/components/shared-charts/ds-line-chart.js +2 -2
  36. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -9
  37. package/lib/esm/components/shared-charts/recharts-tokens.js +40 -13
  38. package/lib/esm/i18n/en/entities/orgroles.json +26 -0
  39. package/lib/esm/i18n/en/modals/apiclients.json +4 -1
  40. package/lib/esm/i18n/en/modals/backups.json +2 -0
  41. package/lib/esm/i18n/en/pages/clusterdetails.json +3 -2
  42. package/lib/esm/i18n/en/pages/clusters.json +4 -1
  43. package/lib/esm/i18n/en/pages/orgmanagement.json +9 -1
  44. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +18 -0
  45. package/lib/esm/runtime/nav/use-webapp-nav-data.js +39 -15
  46. package/lib/esm/utils/http-error-message.d.ts +14 -0
  47. package/lib/esm/utils/http-error-message.js +35 -0
  48. package/lib/esm/utils/role-labels.d.ts +25 -7
  49. package/lib/esm/utils/role-labels.js +94 -13
  50. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +3 -0
  51. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +159 -34
  52. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +3 -0
  53. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +18 -0
  54. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +5 -0
  55. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -0
  56. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +2 -0
  57. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +16 -3
  58. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +19 -0
  59. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +108 -58
  60. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.d.ts +1 -1
  61. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +15 -3
  62. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +3 -0
  63. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +109 -26
  64. package/lib/esm/widgets/clusters/c4-clusters-page.js +18 -1
  65. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +4 -0
  66. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  67. package/lib/esm/widgets/management/c4-management-app.js +404 -98
  68. package/lib/esm/widgets/management/c4-management-app.types.d.ts +2 -0
  69. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +21 -0
  70. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +30 -1
  71. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +34 -14
  72. package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +2 -1
  73. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +46 -17
  74. package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
  75. package/lib/esm/widgets/user-details/c4-user-details-page.js +22 -8
  76. package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +2 -0
  77. package/package.json +11 -11
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ConsoleClusterService } from '@camunda/ccma-api';
3
- import { checkVersion, OPTIMIZE_FILTERING_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
3
+ import { BYOIDP_MIN_VERSION, checkVersion, isAppIntegrationsVersionSupported, OPTIMIZE_FILTERING_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
4
4
  import { Fragment, useCallback, useMemo, useState, } from 'react';
5
5
  import { C4ClusterSettings } from '../../../components/c4-cluster-settings/c4-cluster-settings.js';
6
6
  import { ExternalIdentityProviderModal, } from '../../../components/c4-cluster-settings/elements/external-identity-provider-modal.js';
@@ -57,6 +57,8 @@ export const C4ClusterDetailsSettingsTab = (props) => {
57
57
  const [isUpdatingRba, setIsUpdatingRba] = useState(false);
58
58
  const [isUpdatingIdentityAuthorizations, setIsUpdatingIdentityAuthorizations,] = useState(false);
59
59
  const [isUpdatingMultiTenancy, setIsUpdatingMultiTenancy] = useState(false);
60
+ const [isUpdatingSessionTimeout, setIsUpdatingSessionTimeout] = useState(false);
61
+ const [isUpdatingSessionHeartbeat, setIsUpdatingSessionHeartbeat] = useState(false);
60
62
  // BYOIDP Phase 1 (#3190)
61
63
  const [showExternalIdpModal, setShowExternalIdpModal] = useState(false);
62
64
  const [isUpdatingExternalIdp, setIsUpdatingExternalIdp] = useState(false);
@@ -499,6 +501,70 @@ export const C4ClusterDetailsSettingsTab = (props) => {
499
501
  setIsUpdatingMultiTenancy(false);
500
502
  }
501
503
  }, [props, runtime.telemetry]);
504
+ // Session idle-timeout config (camunda-security-library ADR-0042,
505
+ // camunda-operator#5863). Both fields feed the generated Identity spec, so a
506
+ // change restarts the cluster — the caller wraps these in
507
+ // applyWithRestartConfirmAsync the same way the optimize data-filters panel does.
508
+ const updateSessionMaxInactiveIntervalMinutes = useCallback(async (minutes) => {
509
+ runtime.telemetry?.track?.('sessionMaxInactiveInterval:confirm', {
510
+ message: `Confirm session idle timeout of ${minutes} minutes`,
511
+ orgId: props.orgId,
512
+ clusterId: props.clusterId,
513
+ minutes,
514
+ });
515
+ setIsUpdatingSessionTimeout(true);
516
+ try {
517
+ await ConsoleClusterService.updateCluster({
518
+ config: props.apiConfig,
519
+ params: { orgId: props.orgId, clusterId: props.clusterId },
520
+ body: { sessionMaxInactiveIntervalMinutes: minutes },
521
+ });
522
+ await props.onReloadCluster();
523
+ }
524
+ catch (error) {
525
+ runtime.telemetry?.captureException?.(error, {
526
+ eventName: 'sessionMaxInactiveInterval:confirm',
527
+ message: 'Error while updating session idle timeout',
528
+ orgId: props.orgId,
529
+ clusterId: props.clusterId,
530
+ minutes,
531
+ });
532
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
533
+ }
534
+ finally {
535
+ setIsUpdatingSessionTimeout(false);
536
+ }
537
+ }, [props, runtime.telemetry, settingUpdateFailedFallback]);
538
+ const updateSessionHeartbeatEnabled = useCallback(async (nextState) => {
539
+ runtime.telemetry?.track?.(`sessionHeartbeat:${nextState}:confirm`, {
540
+ message: `Confirm ${nextState} session heartbeat`,
541
+ orgId: props.orgId,
542
+ clusterId: props.clusterId,
543
+ state: nextState,
544
+ });
545
+ setIsUpdatingSessionHeartbeat(true);
546
+ try {
547
+ await ConsoleClusterService.updateCluster({
548
+ config: props.apiConfig,
549
+ params: { orgId: props.orgId, clusterId: props.clusterId },
550
+ body: { sessionHeartbeatEnabled: nextState },
551
+ });
552
+ await props.onReloadCluster();
553
+ }
554
+ catch (error) {
555
+ runtime.telemetry?.captureException?.(error, {
556
+ eventName: `sessionHeartbeat:${nextState}:confirm`,
557
+ message: 'Error while toggling session heartbeat',
558
+ orgId: props.orgId,
559
+ clusterId: props.clusterId,
560
+ state: nextState,
561
+ });
562
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
563
+ }
564
+ finally {
565
+ setIsUpdatingSessionHeartbeat(false);
566
+ }
567
+ }, [props, runtime.telemetry, settingUpdateFailedFallback]);
502
568
  // BYOIDP Phase 1 (#3190): toggle enable/disable. Config + secret are retained on
503
569
  // disable (D4), so re-enabling needs no re-entry.
504
570
  const updateExternalIdpEnabled = useCallback(async (nextState) => {
@@ -590,45 +656,36 @@ export const C4ClusterDetailsSettingsTab = (props) => {
590
656
  const shouldShowMultiTenancy = useMemo(() => {
591
657
  return checkClusterVersion('8.8.0-alpha7');
592
658
  }, [checkClusterVersion]);
659
+ // Matches the operator's SessionConfigSupported feature gate (camunda-operator
660
+ // #5863), the floor at which both session properties are wired through to
661
+ // Operate/Tasklist/the unified app.
662
+ const shouldShowSessionSettings = useMemo(() => {
663
+ return checkClusterVersion('8.10.0-alpha5');
664
+ }, [checkClusterVersion]);
593
665
  // BYOIDP Phase 1 (#3190). TODO(byoidp): byoidp remove gate at GA rollout
594
666
  const isByoidpFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.byoidp') ?? false;
595
667
  const shouldShowExternalIdp = useMemo(() => {
596
- return checkClusterVersion('8.10.0-alpha3') && isByoidpFeatureEnabled;
668
+ return checkClusterVersion(BYOIDP_MIN_VERSION) && isByoidpFeatureEnabled;
597
669
  }, [checkClusterVersion, isByoidpFeatureEnabled]);
598
- const isOptimizeFilteringFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.optimizeFiltering') ?? false;
599
670
  const shouldShowOptimizeFiltering = useMemo(() => {
600
671
  return (
601
672
  // `hasOptimize === false` means the plan allocates no Optimize replicas, so
602
673
  // there is no Optimize deployment for these filters to configure.
603
674
  props.cluster?.hasOptimize !== false &&
604
- checkClusterVersion(OPTIMIZE_FILTERING_MIN_VERSION) &&
605
- isOptimizeFilteringFeatureEnabled);
606
- }, [
607
- props.cluster?.hasOptimize,
608
- checkClusterVersion,
609
- isOptimizeFilteringFeatureEnabled,
610
- ]);
675
+ checkClusterVersion(OPTIMIZE_FILTERING_MIN_VERSION));
676
+ }, [props.cluster?.hasOptimize, checkClusterVersion]);
611
677
  const isAppIntegrationsFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.appIntegrations') ?? false;
612
678
  const shouldShowAppIntegrations = useMemo(() => {
613
- const zeebeVersion = props.cluster?.generation?.versions?.zeebe;
614
- if (!zeebeVersion || !isAppIntegrationsFeatureEnabled) {
679
+ if (!isAppIntegrationsFeatureEnabled) {
615
680
  return false;
616
681
  }
617
- // 8.9 stream needs >=8.9.12; everything else needs >=8.10.0-alpha3.
618
- // A plain >=8.9.12 would wrongly match 8.10.0-alpha1/2.
619
- const isIn89Stream = checkVersion({
620
- possiblyVersionOrDockerPath: zeebeVersion,
621
- trueForSnapshot: 'compare',
622
- operator: VersionCheckOperator.SameMinor,
623
- versionToCompareTo: '8.9.0',
624
- });
625
- return isIn89Stream
626
- ? checkClusterVersion('8.9.12')
627
- : checkClusterVersion('8.10.0-alpha3');
682
+ // Shared with the console-backend update guard — see
683
+ // isAppIntegrationsVersionSupported for the version rule itself.
684
+ return isAppIntegrationsVersionSupported(props.cluster?.generation?.versions ?? {});
628
685
  }, [
629
686
  props.cluster?.generation?.versions?.zeebe,
687
+ props.cluster?.generation?.versions?.connectorBridge,
630
688
  isAppIntegrationsFeatureEnabled,
631
- checkClusterVersion,
632
689
  ]);
633
690
  // Optimize data filters feed the generated spec, so a change restarts the
634
691
  // cluster. The toggle/save actions are awaited by the child panel, so route
@@ -824,6 +881,16 @@ export const C4ClusterDetailsSettingsTab = (props) => {
824
881
  enabled: props.cluster.externalIdpEnabled ?? false,
825
882
  configured: Boolean(props.cluster.externalIdpConfig),
826
883
  displayName: props.cluster.externalIdpConfig?.clientName,
884
+ // Saving would create a SecretSync that can never reconcile
885
+ // without the cluster's SecretSource — undefined (older cached
886
+ // responses) fails open rather than disabling BYOIDP everywhere.
887
+ supported: props.cluster.secretSourceProvisioned ?? true,
888
+ unsupportedNotification: props.cluster.secretSourceProvisioned === false
889
+ ? {
890
+ title: 'Not available yet',
891
+ subtitle: "This cluster hasn't finished provisioning for secret storage. Save any other cluster setting, then try again.",
892
+ }
893
+ : undefined,
827
894
  // BYOIDP (camunda-operator#5760): the secret now reaches the cluster via
828
895
  // a cloud secret manager + ESO sync, which is eventually consistent
829
896
  // rather than synchronous. Surface the operator's condition instead of
@@ -889,7 +956,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
889
956
  }),
890
957
  lowLatencyToggle: {
891
958
  enabled: props.cluster.playMode ?? false,
892
- description: (_jsxs(_Fragment, { children: [safeTranslate(props.t, 'clusterdetails:settings.lowLatency.description', 'When enabled, updates and changes in Modeler Play, Operate and Tasklist are applied quicker, which is ideal for testing purposes.'), _jsx("br", {}), _jsx("br", {}), safeTranslate(props.t, 'clusterdetails:settings.lowLatency.warning', 'This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput.')] })),
959
+ description: (_jsxs(_Fragment, { children: [safeTranslate(props.t, 'clusterdetails:settings.lowLatency.description', 'When enabled, updates and changes in Modeler Test mode, Operate and Tasklist are applied quicker, which is ideal for testing purposes.'), _jsx("br", {}), _jsx("br", {}), safeTranslate(props.t, 'clusterdetails:settings.lowLatency.warning', 'This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput.')] })),
893
960
  permissions: {
894
961
  mayChange: effectiveCanEdit,
895
962
  },
@@ -959,7 +1026,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
959
1026
  mayChange: effectiveCanEdit,
960
1027
  },
961
1028
  action: {
962
- label: safeTranslate(props.t, 'clusterdetails:settings.appIntegrations.title', 'Enable App Integrations'),
1029
+ label: safeTranslate(props.t, 'clusterdetails:settings.appIntegrations.title', 'Enable app integrations extensions'),
963
1030
  onClick: applyWithRestartConfirm(toggleAppIntegrations),
964
1031
  disabled: isUpdatingAppIntegrations,
965
1032
  },
@@ -993,6 +1060,22 @@ export const C4ClusterDetailsSettingsTab = (props) => {
993
1060
  onToggle: handleOptimizeFilteringToggle,
994
1061
  onSave: handleOptimizeFilteringSave,
995
1062
  },
1063
+ }), ...(shouldShowSessionSettings && {
1064
+ sessionSettings: {
1065
+ title: safeTranslate(props.t, 'clusterdetails:settings.sessionSettings.title', 'Session settings'),
1066
+ // 30 mirrors the operator's own default
1067
+ // (DefaultSessionMaxInactiveIntervalMinutes), applied when the
1068
+ // cluster predates this setting.
1069
+ maxInactiveIntervalMinutes: props.cluster.sessionMaxInactiveIntervalMinutes ?? 30,
1070
+ heartbeatEnabled: props.cluster.sessionHeartbeatEnabled ?? false,
1071
+ permissions: {
1072
+ mayChange: effectiveCanEdit &&
1073
+ !isUpdatingSessionTimeout &&
1074
+ !isUpdatingSessionHeartbeat,
1075
+ },
1076
+ onSaveMaxInactiveInterval: (minutes) => applyWithRestartConfirmAsync(() => updateSessionMaxInactiveIntervalMinutes(minutes)),
1077
+ onToggleHeartbeat: (nextState) => applyWithRestartConfirmAsync(() => updateSessionHeartbeatEnabled(nextState)),
1078
+ },
996
1079
  }), dangerZone: {
997
1080
  title: safeTranslate(props.t, 'clusterdetails:settings.dangerZone.title', 'Danger zone'),
998
1081
  deleteCluster: {
@@ -177,8 +177,10 @@ function buildDefaultTranslations(t) {
177
177
  overflowMenu: {
178
178
  delete: translate('c4console:clusters.list.overflowMenu.delete', 'Delete'),
179
179
  resume: translate('c4console:clusters.list.overflowMenu.resume', 'Resume'),
180
+ resumeUnavailableFailoverSource: translate('c4console:clusters.list.overflowMenu.resumeUnavailableFailoverSource', 'Resume (unavailable — this cluster was failed over)'),
180
181
  failover: translate('c4console:clusters.list.overflowMenu.failover', 'Failover'),
181
182
  failoverSyncPending: translate('c4console:clusters.list.overflowMenu.failoverSyncPending', 'Failover (unavailable until backup data is synced to the secondary region)'),
183
+ failoverAlreadyFailedOver: translate('c4console:clusters.list.overflowMenu.failoverAlreadyFailedOver', 'Failover (unavailable — this cluster was already failed over)'),
182
184
  },
183
185
  tags: {
184
186
  addLabel: translate('c4console:clusters.tags.addLabel', 'Add tag'),
@@ -857,6 +859,21 @@ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate,
857
859
  }, [rawClusters, runtime.stage]);
858
860
  const isMultiRegionClusterFallback = useCallback((clusterId) => multiRegionClusterIds.has(clusterId), [multiRegionClusterIds]);
859
861
  const isFailoverSyncPending = useCallback((clusterId) => syncPendingClusterIds.has(clusterId), [syncPendingClusterIds]);
862
+ const failoverSourceClusterIds = useMemo(() => {
863
+ const ids = new Set();
864
+ for (const rawCluster of rawClusters) {
865
+ if (rawCluster.isFailoverSource !== true)
866
+ continue;
867
+ const clusterId = getString(rawCluster, 'id') ??
868
+ getString(rawCluster, 'clusterId') ??
869
+ getString(rawCluster, 'uuid') ??
870
+ getString(rawCluster, 'clusterUuid');
871
+ if (clusterId)
872
+ ids.add(clusterId);
873
+ }
874
+ return ids;
875
+ }, [rawClusters]);
876
+ const isFailoverSource = useCallback((clusterId) => failoverSourceClusterIds.has(clusterId), [failoverSourceClusterIds]);
860
877
  const isPageLoading = isLoading || authz.isLoading;
861
878
  useEffect(() => {
862
879
  if (!error) {
@@ -867,7 +884,7 @@ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate,
867
884
  orgId,
868
885
  });
869
886
  }, [error, orgId, runtime.telemetry]);
870
- return (_jsxs(_Fragment, { children: [_jsx(C4ClusterList, { orgId: orgId, clusters: clusters, loading: isPageLoading, urls: urls, permissions: derivedPermissions, onNavigate: handleNavigate, onDeleteCluster: handleDeleteCluster, onAssignTag: handleAssignTag, onWakeCluster: handleWakeCluster, onFailoverCluster: handleFailoverCluster, trialNotification: derivedTrialNotification, encryptionNotification: encryptionNotification, clusterCapMessage: clusterCapMessage, emptyStateContent: derivedEmptyStateContent, translations: resolvedTranslations, isClusterPaused: isClusterPausedOverride ?? isClusterPausedFallback, isMultiRegionCluster: isMultiRegionClusterFallback, isFailoverSyncPending: isFailoverSyncPending, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride ??
887
+ return (_jsxs(_Fragment, { children: [_jsx(C4ClusterList, { orgId: orgId, clusters: clusters, loading: isPageLoading, urls: urls, permissions: derivedPermissions, onNavigate: handleNavigate, onDeleteCluster: handleDeleteCluster, onAssignTag: handleAssignTag, onWakeCluster: handleWakeCluster, onFailoverCluster: handleFailoverCluster, trialNotification: derivedTrialNotification, encryptionNotification: encryptionNotification, clusterCapMessage: clusterCapMessage, emptyStateContent: derivedEmptyStateContent, translations: resolvedTranslations, isClusterPaused: isClusterPausedOverride ?? isClusterPausedFallback, isMultiRegionCluster: isMultiRegionClusterFallback, isFailoverSyncPending: isFailoverSyncPending, isFailoverSource: isFailoverSource, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride ??
871
888
  isRunningOnUnsupportedGenerationFallback }), deleteTarget ? (_jsx(Modal, { open: deleteModalOpen, danger: true, modalHeading: safeTranslate('clustermodals:delete.heading', 'Delete cluster'), primaryButtonText: safeTranslate('clustermodals:delete.buttons.primary', 'Delete'), secondaryButtonText: safeTranslate('clustermodals:delete.buttons.secondary', 'Cancel'), primaryButtonDisabled: deleteBusy || deleteConfirmation.trim() !== 'DELETE', onRequestClose: () => {
872
889
  if (deleteBusy)
873
890
  return;
@@ -26,9 +26,13 @@ export interface C4ClustersPageTranslations {
26
26
  overflowMenu: {
27
27
  delete: string;
28
28
  resume: string;
29
+ /** Shown as the action label for a cluster that was failed over and can never be resumed. */
30
+ resumeUnavailableFailoverSource?: string;
29
31
  failover?: string;
30
32
  /** Shown as the action label while the initial secondary bucket sync is pending. */
31
33
  failoverSyncPending?: string;
34
+ /** Shown as the action label for a cluster that was already failed over. */
35
+ failoverAlreadyFailedOver?: string;
32
36
  };
33
37
  tags: {
34
38
  addLabel: string;
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { C4ManagementAppProps } from './c4-management-app.types.js';
3
- export declare const C4ManagementApp: (({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, tenantsValueMetricEnabled, hdpValueMetricsFor2025Enabled, urls, onNeedsReload, }: C4ManagementAppProps) => JSX.Element) & {
3
+ export declare const C4ManagementApp: (({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, tenantsValueMetricEnabled, hdpValueMetricsFor2025Enabled, permissionsReworkEnabled, urls, onNeedsReload, }: C4ManagementAppProps) => JSX.Element) & {
4
4
  displayName: string;
5
5
  };