@camunda/ccma-saas-frontend 0.0.44 → 0.0.45

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 (47) hide show
  1. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
  2. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +3 -3
  3. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +3 -3
  4. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
  5. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.d.ts +1 -1
  6. package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
  7. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
  8. package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +3 -3
  9. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +8 -0
  10. package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
  11. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
  12. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +1 -1
  13. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -1
  14. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +1 -1
  15. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.d.ts +1 -1
  16. package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.d.ts +1 -1
  17. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
  18. package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
  19. package/lib/esm/components/c4-page-template/c4-page-template.d.ts +1 -1
  20. package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
  21. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +1 -1
  22. package/lib/esm/i18n/en/modals/clusters.json +6 -0
  23. package/lib/esm/i18n/en/pages/clusterdetails.json +4 -0
  24. package/lib/esm/i18n/en/pages/createcluster.json +1 -1
  25. package/lib/esm/icons/c4-icons.d.ts +11 -11
  26. package/lib/esm/runtime/c4-console-data-context.d.ts +1 -1
  27. package/lib/esm/runtime/c4-console-data-context.js +2 -2
  28. package/lib/esm/runtime/c4-console-data-context.types.d.ts +3 -3
  29. package/lib/esm/runtime/c4-console-data-store.d.ts +3 -3
  30. package/lib/esm/runtime/c4-console-data-store.js +34 -15
  31. package/lib/esm/runtime/c4-console-data-store.spec.js +55 -1
  32. package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
  33. package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
  34. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +23 -1
  35. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +1 -1
  36. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +37 -2
  37. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +91 -50
  38. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +226 -3
  39. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +17 -4
  40. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +3 -1
  41. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  42. package/lib/esm/widgets/clusters/c4-clusters-page.js +21 -11
  43. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
  44. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
  45. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  46. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  47. package/package.json +20 -20
@@ -1,2 +1,2 @@
1
1
  import type { C4AppTeaserCardsProps } from './c4-app-teaser-cards.types';
2
- export declare const C4AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: C4AppTeaserCardsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const C4AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: C4AppTeaserCardsProps) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import type { C4ClusterClientCredentialProps, C4ClusterClientCredentialVariantCodeSnippetProps, C4ClusterClientCredentialVariantItemsProps } from './c4-cluster-client-credentials.types';
2
- export declare const C4ClusterClientCredentialsModal: (props: C4ClusterClientCredentialProps) => import("react/jsx-runtime").JSX.Element;
3
- export declare const C4ClusterClientCredentialsVariantCodeSnippet: (props: C4ClusterClientCredentialVariantCodeSnippetProps) => import("react/jsx-runtime").JSX.Element;
4
- export declare const C4ClusterClientCredentialsVariantItems: (props: C4ClusterClientCredentialVariantItemsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const C4ClusterClientCredentialsModal: (props: C4ClusterClientCredentialProps) => import("react").JSX.Element;
3
+ export declare const C4ClusterClientCredentialsVariantCodeSnippet: (props: C4ClusterClientCredentialVariantCodeSnippetProps) => import("react").JSX.Element;
4
+ export declare const C4ClusterClientCredentialsVariantItems: (props: C4ClusterClientCredentialVariantItemsProps) => import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import type { C4ClusterClientCredentialsIdentityProps, C4ClusterClientCredentialsIdentityVariantCodeSnippetProps, C4ClusterClientCredentialsIdentityVariantItemsProps } from './c4-cluster-client-credentials-identity.types';
2
- export declare const C4ClusterClientCredentialsIdentityModal: (props: C4ClusterClientCredentialsIdentityProps) => import("react/jsx-runtime").JSX.Element;
3
- export declare const C4ClusterClientCredentialsIdentitysVariantCodeSnippet: (props: C4ClusterClientCredentialsIdentityVariantCodeSnippetProps) => import("react/jsx-runtime").JSX.Element;
4
- export declare const C4ClusterClientCredentialsIdentitysVariantItems: (props: C4ClusterClientCredentialsIdentityVariantItemsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const C4ClusterClientCredentialsIdentityModal: (props: C4ClusterClientCredentialsIdentityProps) => import("react").JSX.Element;
3
+ export declare const C4ClusterClientCredentialsIdentitysVariantCodeSnippet: (props: C4ClusterClientCredentialsIdentityVariantCodeSnippetProps) => import("react").JSX.Element;
4
+ export declare const C4ClusterClientCredentialsIdentitysVariantItems: (props: C4ClusterClientCredentialsIdentityVariantItemsProps) => import("react").JSX.Element;
@@ -14,7 +14,7 @@ export declare const C4IconAndTextElement: (props: {
14
14
  export declare function getClusterLoadConfig(currentValue: number): {
15
15
  type: string;
16
16
  color: string;
17
- icon: import("react/jsx-runtime").JSX.Element;
17
+ icon: JSX.Element;
18
18
  min: number;
19
19
  max: number;
20
20
  };
@@ -10,4 +10,4 @@ export interface TasklistModeToggleProps {
10
10
  mayChange: boolean;
11
11
  };
12
12
  }
13
- export declare const TasklistModeToggle: (props: TasklistModeToggleProps) => import("react/jsx-runtime").JSX.Element | null;
13
+ export declare const TasklistModeToggle: (props: TasklistModeToggleProps) => import("react").JSX.Element | null;
@@ -9,5 +9,5 @@ interface EmptyStateProps {
9
9
  disabled?: boolean;
10
10
  };
11
11
  }
12
- export declare const EmptyState: ({ iconName, text, action }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const EmptyState: ({ iconName, text, action }: EmptyStateProps) => import("react").JSX.Element;
13
13
  export {};
@@ -448,7 +448,7 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
448
448
  color: 'var(--cds-text-helper)',
449
449
  }, children: formElements.generation
450
450
  .orgUnlockedGenerationsHelperText ??
451
- 'These are older generations that have been unlocked for your organization.' })] }))] }))] }))] }) }) }));
451
+ 'These are generations that have been unlocked for your organization.' })] }))] }))] }))] }) }) }));
452
452
  };
453
453
  const renderContent = () => {
454
454
  if (loading) {
@@ -183,7 +183,7 @@ function buildProps(channels) {
183
183
  channels,
184
184
  olderGenerationsLabel: 'View older generations',
185
185
  olderGenerationsHelperText: 'These are older generations that are used in your organization.',
186
- orgUnlockedGenerationsHelperText: 'These are older generations that have been unlocked for your organization.',
186
+ orgUnlockedGenerationsHelperText: 'These are generations that have been unlocked for your organization.',
187
187
  },
188
188
  stageLabel: {
189
189
  title: 'Tag',
@@ -266,7 +266,7 @@ describe('C4CreateCluster older generations toggle', () => {
266
266
  name: /view older generations/i,
267
267
  });
268
268
  await userEvent.click(toggle);
269
- expect(screen.getByText('These are older generations that have been unlocked for your organization.')).toBeInTheDocument();
269
+ expect(screen.getByText('These are generations that have been unlocked for your organization.')).toBeInTheDocument();
270
270
  expect(screen.queryByText('These are older generations that are used in your organization.')).not.toBeInTheDocument();
271
271
  });
272
272
  it('shows both helper texts separately for mixed existingCluster and orgUnlocked', async () => {
@@ -276,7 +276,7 @@ describe('C4CreateCluster older generations toggle', () => {
276
276
  });
277
277
  await userEvent.click(toggle);
278
278
  expect(screen.getByText('These are older generations that are used in your organization.')).toBeInTheDocument();
279
- expect(screen.getByText('These are older generations that have been unlocked for your organization.')).toBeInTheDocument();
279
+ expect(screen.getByText('These are generations that have been unlocked for your organization.')).toBeInTheDocument();
280
280
  });
281
281
  it('groups orgUnlocked and existingCluster generations together under the toggle', async () => {
282
282
  render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithMixedNonChannel()) }));
@@ -216,6 +216,14 @@ function getAvailableScopes(t) {
216
216
  label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.delete', 'Delete'),
217
217
  value: 'DeleteHotBackups',
218
218
  },
219
+ {
220
+ label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.restore', 'Restore'),
221
+ value: 'RestoreHotBackup',
222
+ },
223
+ {
224
+ label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.getRestore', 'Get restore status'),
225
+ value: 'GetHotBackupRestore',
226
+ },
219
227
  ],
220
228
  },
221
229
  ];
@@ -1,2 +1,2 @@
1
1
  import type { C4DividerProps } from './c4-divider.types';
2
- export declare const C4Divider: ({ width }: C4DividerProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const C4Divider: ({ width }: C4DividerProps) => import("react").JSX.Element;
@@ -6,4 +6,4 @@ export interface ColorScale {
6
6
  }
7
7
  export declare const CHART_HEIGHT = "20vh";
8
8
  export declare const PIE_CHART_MAX_WIDTH_PX = 400;
9
- export declare const C4JobDashboardDetailsPage: ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, }: C4JobDashboardDetailsPageProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const C4JobDashboardDetailsPage: ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, }: C4JobDashboardDetailsPageProps) => import("react").JSX.Element;
@@ -8,5 +8,5 @@ interface C4JobDashboardErrorTableProps {
8
8
  translations: JobDashboardDetailsTranslations;
9
9
  trackErrorClick?: (error: ErrorTableData) => void;
10
10
  }
11
- declare function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translations, error, trackErrorClick, }: C4JobDashboardErrorTableProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translations, error, trackErrorClick, }: C4JobDashboardErrorTableProps): import("react").JSX.Element;
12
12
  export default C4JobDashboardErrorTable;
@@ -8,5 +8,5 @@ export interface C4JobDashboardPieChartProps {
8
8
  isLoading: boolean;
9
9
  translations: JobDashboardDetailsTranslations;
10
10
  }
11
- declare function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, translations, }: C4JobDashboardPieChartProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, translations, }: C4JobDashboardPieChartProps): import("react").JSX.Element;
12
12
  export default C4JobDashboardPieChart;
@@ -8,5 +8,5 @@ interface C4JobDashboardWorkerTableProps {
8
8
  isLoading: boolean;
9
9
  translations: JobDashboardDetailsTranslations;
10
10
  }
11
- declare function C4JobDashboardWorkerTable({ workerData, error, isLoading, translations, }: C4JobDashboardWorkerTableProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function C4JobDashboardWorkerTable({ workerData, error, isLoading, translations, }: C4JobDashboardWorkerTableProps): import("react").JSX.Element;
12
12
  export default C4JobDashboardWorkerTable;
@@ -13,5 +13,5 @@ interface C4JobDashboardTimeRangeDropdownProps {
13
13
  disabled?: boolean;
14
14
  translations: JobDashboardDropdownTranslationProps;
15
15
  }
16
- declare function C4JobDashboardTimeRangeDropdown({ onChange, exportInterval, disabled, translations, }: C4JobDashboardTimeRangeDropdownProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function C4JobDashboardTimeRangeDropdown({ onChange, exportInterval, disabled, translations, }: C4JobDashboardTimeRangeDropdownProps): import("react").JSX.Element;
17
17
  export default C4JobDashboardTimeRangeDropdown;
@@ -2,5 +2,5 @@ interface C4TimestampInformationProps {
2
2
  description: string;
3
3
  lastUpdatedAt: string;
4
4
  }
5
- export declare const C4TimestampInformation: ({ description, lastUpdatedAt, }: C4TimestampInformationProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const C4TimestampInformation: ({ description, lastUpdatedAt, }: C4TimestampInformationProps) => import("react").JSX.Element;
6
6
  export default C4TimestampInformation;
@@ -1,2 +1,2 @@
1
1
  import type { C4MultiStepUglyModalProps } from './c4-multi-step-modal-ugly.types';
2
- export declare const C4MultiStepUglyModal: ({ open, steps, onClose, size, }: C4MultiStepUglyModalProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ export declare const C4MultiStepUglyModal: ({ open, steps, onClose, size, }: C4MultiStepUglyModalProps) => import("react").JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import type { C4NumberInputProps } from './c4-number-input.types';
2
- export declare const C4NumberInput: ({ label, min, max, step, value, invalid, invalidText, disabled, onChange, }: C4NumberInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const C4NumberInput: ({ label, min, max, step, value, invalid, invalidText, disabled, onChange, }: C4NumberInputProps) => import("react").JSX.Element;
@@ -26,5 +26,5 @@ type C4PageProps = {
26
26
  };
27
27
  children?: React.ReactNode;
28
28
  };
29
- declare const C4PageTemplate: ({ header, tabs, banner, children, loading, breadcrumbs, }: C4PageProps) => import("react/jsx-runtime").JSX.Element;
29
+ declare const C4PageTemplate: ({ header, tabs, banner, children, loading, breadcrumbs, }: C4PageProps) => import("react").JSX.Element;
30
30
  export { C4PageTemplate };
@@ -1,2 +1,2 @@
1
1
  import type { C4SearchResultsProps } from './c4-search-results.types';
2
- export declare const C4SearchResults: (props: C4SearchResultsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const C4SearchResults: (props: C4SearchResultsProps) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import type { SVGProps } from 'react';
2
- export declare const TelemetryMetricsEmptyStateImage: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const TelemetryMetricsEmptyStateImage: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
@@ -151,6 +151,12 @@
151
151
  "content": "Please review how this may impact your deployed workers and clients before upgrading."
152
152
  }
153
153
  },
154
+ "selectVersion": {
155
+ "title": "Select target version",
156
+ "legend": "Available versions",
157
+ "latestLabel": "{{name}} (latest)",
158
+ "optionLabel": "{{name}}"
159
+ },
154
160
  "tasklistV2": {
155
161
  "title": "Tasklist version",
156
162
  "notification": {
@@ -250,6 +250,10 @@
250
250
  "title": "Oops ... something went wrong.",
251
251
  "description": "Please try reloading!",
252
252
  "button": "Reload"
253
+ },
254
+ "ipAllowlistConflict": {
255
+ "title": "IP allowlist may block PrivateLink traffic",
256
+ "subtitle": "The IP allowlist also applies to PrivateLink traffic. PrivateLink connections arrive with private VPC IPs (not your public or corporate IPs), so they will be blocked unless the allowlist includes your VPC CIDR. Add your VPC CIDR to the allowlist, or remove the allowlist entirely."
253
257
  }
254
258
  },
255
259
  "encryption": {
@@ -48,7 +48,7 @@
48
48
  "title": "Channel",
49
49
  "olderGenerationsLabel": "View older generations",
50
50
  "olderGenerationsHelperText": "These are older generations that are used in your organization.",
51
- "orgUnlockedGenerationsHelperText": "These are older generations that have been unlocked for your organization."
51
+ "orgUnlockedGenerationsHelperText": "These are generations that have been unlocked for your organization."
52
52
  },
53
53
  "autoUpdate": {
54
54
  "title": "Automatic cluster patch updates",
@@ -1,12 +1,12 @@
1
1
  import type { C4IconProps } from './c4-icons.types';
2
- export declare const C4AppMenuIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
3
- export declare const C4ModelerIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
4
- export declare const C4OperateIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
5
- export declare const C4TasklistIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
6
- export declare const C4OptimizeIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
7
- export declare const ErrorIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
8
- export declare const AccessRestrictedIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
9
- export declare const EmptyJobsIcon: ({ size }: C4IconProps) => import("react/jsx-runtime").JSX.Element;
10
- export declare const JobsCompletedIcon: () => import("react/jsx-runtime").JSX.Element;
11
- export declare const JobsCreatedIcon: () => import("react/jsx-runtime").JSX.Element;
12
- export declare const JobsFailedIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare const C4AppMenuIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
3
+ export declare const C4ModelerIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
4
+ export declare const C4OperateIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
5
+ export declare const C4TasklistIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
6
+ export declare const C4OptimizeIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
7
+ export declare const ErrorIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
8
+ export declare const AccessRestrictedIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
9
+ export declare const EmptyJobsIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
10
+ export declare const JobsCompletedIcon: () => import("react").JSX.Element;
11
+ export declare const JobsCreatedIcon: () => import("react").JSX.Element;
12
+ export declare const JobsFailedIcon: () => import("react").JSX.Element;
@@ -20,7 +20,7 @@ export interface C4ConsoleDataProviderProps {
20
20
  * </C4ConsoleDataProvider>
21
21
  * </C4ConsoleRuntimeProvider>
22
22
  */
23
- export declare const C4ConsoleDataProvider: ({ children, initialState, }: C4ConsoleDataProviderProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const C4ConsoleDataProvider: ({ children, initialState, }: C4ConsoleDataProviderProps) => React.JSX.Element;
24
24
  /**
25
25
  * Hook to access shared console data state
26
26
  *
@@ -61,7 +61,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
61
61
  const fetchOrgOwner = useCallback((orgId, options) => store.fetchOrgOwner(orgId, options), [store]);
62
62
  const fetchEarlyAccessFeatures = useCallback((orgId, options) => store.fetchEarlyAccessFeatures(orgId, options), [store]);
63
63
  const fetchClusterCapacity = useCallback((orgId, clusterIds, options) => store.fetchClusterCapacity(orgId, clusterIds, options), [store]);
64
- const fetchUpgradableGenerations = useCallback((fromGenerationUuid, options) => store.fetchUpgradableGenerations(fromGenerationUuid, options), [store]);
64
+ const fetchUpgradableGenerations = useCallback((fromGenerationUuid, clusterId, options) => store.fetchUpgradableGenerations(fromGenerationUuid, clusterId, options), [store]);
65
65
  const fetchGenerationDetails = useCallback((generationUuid, options) => store.fetchGenerationDetails(generationUuid, options), [store]);
66
66
  const upgradeClusterGeneration = useCallback((params) => store.upgradeClusterGeneration(params), [store]);
67
67
  const upsertCluster = useCallback((orgId, cluster) => store.upsertCluster(orgId, cluster), [store]);
@@ -80,7 +80,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
80
80
  const getAudits = useCallback((orgId) => store.getAudits(orgId), [store]);
81
81
  const getClusterCapacity = useCallback((orgId, clusterId) => store.getClusterCapacity(orgId, clusterId), [store]);
82
82
  const getSseEntityVersion = useCallback((orgId, entity, clusterId) => store.getSseEntityVersion(orgId, entity, clusterId), [store]);
83
- const getUpgradableGenerations = useCallback((fromGenerationUuid) => store.getUpgradableGenerations(fromGenerationUuid), [store]);
83
+ const getUpgradableGenerations = useCallback((fromGenerationUuid, clusterId) => store.getUpgradableGenerations(fromGenerationUuid, clusterId), [store]);
84
84
  const getGenerationDetails = useCallback((generationUuid) => store.getGenerationDetails(generationUuid), [store]);
85
85
  const api = useMemo(() => ({
86
86
  get clusters() {
@@ -1,4 +1,4 @@
1
- import type { ConsoleClusterDto, SseEntity } from '@camunda/ccma-shared-types';
1
+ import type { ConsoleClusterDto, SseEntity, UpgradableGenerationsDto } from '@camunda/ccma-shared-types';
2
2
  /**
3
3
  * Shared data cache state for C4 console widgets
4
4
  *
@@ -49,7 +49,7 @@ export interface C4ConsoleDataState {
49
49
  fetchClusterCapacity: (orgId: string, clusterIds: string[], options?: {
50
50
  force?: boolean;
51
51
  }) => Promise<void>;
52
- fetchUpgradableGenerations: (fromGenerationUuid: string, options?: {
52
+ fetchUpgradableGenerations: (fromGenerationUuid: string, clusterId?: string, options?: {
53
53
  force?: boolean;
54
54
  }) => Promise<void>;
55
55
  fetchGenerationDetails: (generationUuid: string, options?: {
@@ -81,7 +81,7 @@ export interface C4ConsoleDataState {
81
81
  getMembers: (orgId: string) => any[] | undefined;
82
82
  getAudits: (orgId: string) => any[] | undefined;
83
83
  getClusterCapacity: (orgId: string, clusterId: string) => number | undefined;
84
- getUpgradableGenerations: (fromGenerationUuid: string) => any[] | undefined;
84
+ getUpgradableGenerations: (fromGenerationUuid: string, clusterId?: string) => UpgradableGenerationsDto | undefined;
85
85
  getGenerationDetails: (generationUuid: string) => any | undefined;
86
86
  /**
87
87
  * Returns a monotonically increasing number that changes when C4 observes an
@@ -1,4 +1,4 @@
1
- import { type ConsoleClusterDto, SseEntity } from '@camunda/ccma-shared-types';
1
+ import { type ConsoleClusterDto, SseEntity, type UpgradableGenerationsDto } from '@camunda/ccma-shared-types';
2
2
  import { type SnapshotIn } from 'mobx-state-tree';
3
3
  import type { C4ConsoleRuntimeConfig } from './c4-console-runtime.types';
4
4
  export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
@@ -83,7 +83,7 @@ export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
83
83
  getMembers(orgId: string): any[] | undefined;
84
84
  getAudits(orgId: string): any[] | undefined;
85
85
  getClusterCapacity(orgId: string, clusterId: string): number | undefined;
86
- getUpgradableGenerations(fromGenerationUuid: string): any[] | undefined;
86
+ getUpgradableGenerations(fromGenerationUuid: string, clusterId?: string): UpgradableGenerationsDto | undefined;
87
87
  getGenerationDetails(generationUuid: string): any | undefined;
88
88
  getSseEntityVersion(orgId: string, entity: SseEntity, clusterId?: string): number;
89
89
  } & {
@@ -113,7 +113,7 @@ export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
113
113
  fetchClusters: (orgId: string, options?: {
114
114
  force?: boolean;
115
115
  } | undefined) => Promise<void>;
116
- fetchUpgradableGenerations: (fromGenerationUuid: string, options?: {
116
+ fetchUpgradableGenerations: (fromGenerationUuid: string, clusterId?: string | undefined, options?: {
117
117
  force?: boolean;
118
118
  } | undefined) => Promise<void>;
119
119
  fetchGenerationDetails: (generationUuid: string, options?: {
@@ -144,8 +144,9 @@ export const ConsoleDataStore = types
144
144
  const map = self.clusterCapacity.get(orgId);
145
145
  return map?.get(clusterId);
146
146
  },
147
- getUpgradableGenerations(fromGenerationUuid) {
148
- const cached = self.upgradableGenerations.get(fromGenerationUuid);
147
+ getUpgradableGenerations(fromGenerationUuid, clusterId) {
148
+ const key = `${fromGenerationUuid}:${clusterId ?? ''}`;
149
+ const cached = self.upgradableGenerations.get(key);
149
150
  return cached?.data;
150
151
  },
151
152
  getGenerationDetails(generationUuid) {
@@ -439,22 +440,23 @@ export const ConsoleDataStore = types
439
440
  self.inFlightClusters.delete(orgId);
440
441
  }
441
442
  }),
442
- fetchUpgradableGenerations: flow(function* (fromGenerationUuid, options) {
443
+ fetchUpgradableGenerations: flow(function* (fromGenerationUuid, clusterId, options) {
443
444
  if (!self.runtime) {
444
445
  throw new Error('Runtime config not set');
445
446
  }
446
447
  if (!fromGenerationUuid) {
447
448
  return;
448
449
  }
449
- const cached = self.upgradableGenerations.get(fromGenerationUuid);
450
+ const cacheKey = `${fromGenerationUuid}:${clusterId ?? ''}`;
451
+ const cached = self.upgradableGenerations.get(cacheKey);
450
452
  if (!options?.force && cached && (cached.isLoading || cached.data)) {
451
453
  return;
452
454
  }
453
- if (self.inFlightUpgradableGenerations.has(fromGenerationUuid)) {
455
+ if (self.inFlightUpgradableGenerations.has(cacheKey)) {
454
456
  return;
455
457
  }
456
- self.inFlightUpgradableGenerations.add(fromGenerationUuid);
457
- self.upgradableGenerations.set(fromGenerationUuid, {
458
+ self.inFlightUpgradableGenerations.add(cacheKey);
459
+ self.upgradableGenerations.set(cacheKey, {
458
460
  data: cached?.data,
459
461
  isLoading: true,
460
462
  error: null,
@@ -462,19 +464,36 @@ export const ConsoleDataStore = types
462
464
  });
463
465
  try {
464
466
  const apiConfig = toApiConfig(self.runtime);
465
- const gens = yield GenerationService.getUpgradable({
466
- fromGenerationUuid,
467
- config: apiConfig,
468
- });
469
- self.upgradableGenerations.set(fromGenerationUuid, {
470
- data: Array.isArray(gens) ? gens : [],
467
+ const flagOn = self.runtime.featureFlags?.isEnabled('console.upgradeVersionSelection') ?? false;
468
+ let dto;
469
+ if (flagOn) {
470
+ dto = yield GenerationService.getUpgradableMulti({
471
+ fromGenerationUuid,
472
+ ...(clusterId ? { clusterId } : {}),
473
+ config: apiConfig,
474
+ });
475
+ }
476
+ else {
477
+ const gens = yield GenerationService.getUpgradable({
478
+ fromGenerationUuid,
479
+ ...(clusterId ? { clusterId } : {}),
480
+ config: apiConfig,
481
+ });
482
+ // Normalize to UpgradableGenerationsDto — preferred is the only item (existing behavior)
483
+ dto = {
484
+ preferred: Array.isArray(gens) && gens.length > 0 ? gens[0] : null,
485
+ options: Array.isArray(gens) ? gens : [],
486
+ };
487
+ }
488
+ self.upgradableGenerations.set(cacheKey, {
489
+ data: dto,
471
490
  isLoading: false,
472
491
  error: null,
473
492
  lastFetched: new Date(),
474
493
  });
475
494
  }
476
495
  catch (error) {
477
- self.upgradableGenerations.set(fromGenerationUuid, {
496
+ self.upgradableGenerations.set(cacheKey, {
478
497
  data: cached?.data,
479
498
  isLoading: false,
480
499
  error: error,
@@ -482,7 +501,7 @@ export const ConsoleDataStore = types
482
501
  });
483
502
  }
484
503
  finally {
485
- self.inFlightUpgradableGenerations.delete(fromGenerationUuid);
504
+ self.inFlightUpgradableGenerations.delete(cacheKey);
486
505
  }
487
506
  }),
488
507
  fetchGenerationDetails: flow(function* (generationUuid, options) {
@@ -4,8 +4,62 @@
4
4
  * You may not use this file except in compliance with the commercial license.
5
5
  */
6
6
  import { SseEntity } from '@camunda/ccma-shared-types';
7
- import { describe, expect, it } from 'vitest';
7
+ import { beforeEach, describe, expect, it, vi } from 'vitest';
8
8
  import { ConsoleDataStore } from './c4-console-data-store.js';
9
+ vi.mock('@camunda/ccma-api', () => ({
10
+ GenerationService: {
11
+ getUpgradable: vi.fn().mockResolvedValue([]),
12
+ getGeneration: vi.fn().mockResolvedValue(undefined),
13
+ upgradeCluster: vi.fn().mockResolvedValue(undefined),
14
+ },
15
+ ClusterService: { updateCluster: vi.fn() },
16
+ OrgsService: { getOrgInfo: vi.fn(), getOwner: vi.fn() },
17
+ EarlyAccessService: { getEarlyAccessFeatures: vi.fn() },
18
+ MembersService: { getMembers: vi.fn() },
19
+ AuditService: { getAudits: vi.fn() },
20
+ }));
21
+ import { GenerationService } from '@camunda/ccma-api';
22
+ const FAKE_RUNTIME = {
23
+ stage: 'dev',
24
+ auth: { getAccessToken: async () => 'token' },
25
+ backendUrls: {
26
+ consoleApiBaseUrl: 'https://console.example.com',
27
+ },
28
+ };
29
+ const makeStore = () => ConsoleDataStore.create({
30
+ clusters: {},
31
+ orgInfo: {},
32
+ orgOwner: {},
33
+ earlyAccessFeatures: {},
34
+ members: {},
35
+ audits: {},
36
+ clusterCapacity: {},
37
+ upgradableGenerations: {},
38
+ generationDetails: {},
39
+ });
40
+ describe('ConsoleDataStore.fetchUpgradableGenerations', () => {
41
+ beforeEach(() => {
42
+ vi.clearAllMocks();
43
+ });
44
+ it('passes clusterId to GenerationService.getUpgradable', async () => {
45
+ const store = makeStore();
46
+ store.setRuntime(FAKE_RUNTIME);
47
+ await store.fetchUpgradableGenerations('gen-uuid', 'cluster-uuid');
48
+ expect(GenerationService.getUpgradable).toHaveBeenCalledWith(expect.objectContaining({
49
+ fromGenerationUuid: 'gen-uuid',
50
+ clusterId: 'cluster-uuid',
51
+ }));
52
+ });
53
+ it('calls GenerationService.getUpgradable without clusterId when not provided', async () => {
54
+ const store = makeStore();
55
+ store.setRuntime(FAKE_RUNTIME);
56
+ await store.fetchUpgradableGenerations('gen-uuid');
57
+ expect(GenerationService.getUpgradable).toHaveBeenCalledWith(expect.objectContaining({
58
+ fromGenerationUuid: 'gen-uuid',
59
+ }));
60
+ expect(GenerationService.getUpgradable).toHaveBeenCalledWith(expect.not.objectContaining({ clusterId: expect.anything() }));
61
+ });
62
+ });
9
63
  describe('ConsoleDataStore.handleClusterChange', () => {
10
64
  it('bumps sse entity versions for all SseEntity values', () => {
11
65
  const store = ConsoleDataStore.create({
@@ -3,5 +3,5 @@ import type { C4ConsoleNotificationsState } from './c4-console-notifications-con
3
3
  export interface C4ConsoleNotificationsProviderProps {
4
4
  children: React.ReactNode;
5
5
  }
6
- export declare const C4ConsoleNotificationsProvider: ({ children, }: C4ConsoleNotificationsProviderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const C4ConsoleNotificationsProvider: ({ children, }: C4ConsoleNotificationsProviderProps) => React.JSX.Element;
7
7
  export declare const useC4ConsoleNotifications: () => C4ConsoleNotificationsState;
@@ -4,5 +4,5 @@ export interface C4ConsoleRuntimeProviderProps {
4
4
  config: C4ConsoleRuntimeConfig;
5
5
  children: React.ReactNode;
6
6
  }
7
- export declare const C4ConsoleRuntimeProvider: ({ config, children, }: C4ConsoleRuntimeProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const C4ConsoleRuntimeProvider: ({ config, children, }: C4ConsoleRuntimeProviderProps) => React.JSX.Element;
8
8
  export declare const useC4ConsoleRuntime: () => C4ConsoleRuntimeConfig;
@@ -228,6 +228,12 @@ export const C4ClusterDetailsApp = observer((props) => {
228
228
  const [clusterError, setClusterError] = useState('');
229
229
  const [isClusterLoading, setIsClusterLoading] = useState(true);
230
230
  const [creationParameters, setCreationParameters] = useState(undefined);
231
+ // Tracks whether the creationParameters fetch has settled (success OR
232
+ // failure). Needed because `creationParameters === undefined` is
233
+ // ambiguous: it can mean "not yet loaded" or "load failed". Without
234
+ // this distinction, the `privateNetworking` tab fallback below races
235
+ // with the parameters fetch on hard refresh.
236
+ const [isCreationParametersLoading, setIsCreationParametersLoading] = useState(true);
231
237
  const isAwsCluster = useMemo(() => {
232
238
  const regionUuid = cluster?.k8sContext?.uuid;
233
239
  const providerFromCreationParameters = regionUuid
@@ -283,6 +289,7 @@ export const C4ClusterDetailsApp = observer((props) => {
283
289
  }
284
290
  }, [apiConfig, data, props.clusterId, props.orgId]);
285
291
  const reloadCreationParameters = useCallback(async () => {
292
+ setIsCreationParametersLoading(true);
286
293
  try {
287
294
  const loaded = await ConsoleClusterParametersService.getCreationParameters({
288
295
  config: apiConfig,
@@ -293,6 +300,9 @@ export const C4ClusterDetailsApp = observer((props) => {
293
300
  catch {
294
301
  setCreationParameters(undefined);
295
302
  }
303
+ finally {
304
+ setIsCreationParametersLoading(false);
305
+ }
296
306
  }, [apiConfig, props.orgId]);
297
307
  const canSeeClusterLoad = Boolean(authz.visibilities.clusters?.canSeeClusterLoad);
298
308
  const clusterLoadLoadedRef = useRef(false);
@@ -1263,12 +1273,24 @@ export const C4ClusterDetailsApp = observer((props) => {
1263
1273
  t,
1264
1274
  ]);
1265
1275
  useEffect(() => {
1276
+ // Only fall back once we have confirmed that the cluster doesn't
1277
+ // support PrivateLink. Both the cluster fetch and the
1278
+ // creation-parameters fetch must settle first — otherwise a hard
1279
+ // refresh on `.../privateNetworking` races the in-flight parameters
1280
+ // load and falsely bounces the user to Overview before
1281
+ // `isAwsCluster` can be determined.
1266
1282
  if (!isClusterLoading &&
1283
+ !isCreationParametersLoading &&
1267
1284
  activeTabId === 'privateNetworking' &&
1268
1285
  !isSecureConnectivityTabVisible) {
1269
1286
  setActiveTabId('overview');
1270
1287
  }
1271
- }, [activeTabId, isClusterLoading, isSecureConnectivityTabVisible]);
1288
+ }, [
1289
+ activeTabId,
1290
+ isClusterLoading,
1291
+ isCreationParametersLoading,
1292
+ isSecureConnectivityTabVisible,
1293
+ ]);
1272
1294
  return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsPage, { loading: isClusterLoading || authz.isLoading, clusterName: cluster?.name, isDevelopmentPlan: cluster?.planType?.development, urls: { clusters: urls.clusters }, onNavigateToClusters: () => props.onNavigate?.({ kind: 'clusters', orgId: props.orgId }), menu: {
1273
1295
  canRename,
1274
1296
  canDelete,
@@ -109,7 +109,7 @@ describe('C4ClusterDetailsClientsTab', () => {
109
109
  vi.mocked(ConsoleClusterClientsService.delete).mockResolvedValue(undefined);
110
110
  renderTab();
111
111
  await userEvent.click(screen.getByRole('button', { name: 'Open delete client' }));
112
- await userEvent.click(screen.getByRole('button', { name: 'dangerDelete' }));
112
+ await userEvent.click(screen.getByRole('button', { name: 'Delete' }));
113
113
  await waitFor(() => {
114
114
  expect(ConsoleClusterClientsService.delete).toHaveBeenCalledWith(expect.objectContaining({
115
115
  params: expect.objectContaining({