@camunda/ccma-saas-frontend 0.0.44 → 0.0.46

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 (65) 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-list/c4-cluster-list.d.ts +1 -1
  5. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +13 -1
  6. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +4 -0
  7. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
  8. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  9. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +5 -2
  10. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  11. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +17 -0
  12. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +75 -0
  13. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.d.ts +1 -1
  14. package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
  15. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
  16. package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +3 -3
  17. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +8 -0
  18. package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
  19. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
  20. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +1 -1
  21. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -1
  22. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +1 -1
  23. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.d.ts +1 -1
  24. package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.d.ts +1 -1
  25. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
  26. package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
  27. package/lib/esm/components/c4-page-template/c4-page-template.d.ts +1 -1
  28. package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
  29. package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +1 -1
  30. package/lib/esm/i18n/c4-console-i18n.js +4 -0
  31. package/lib/esm/i18n/en/modals/clusters.json +6 -0
  32. package/lib/esm/i18n/en/pages/clusterdetails.json +4 -0
  33. package/lib/esm/i18n/en/pages/clusters.json +5 -1
  34. package/lib/esm/i18n/en/pages/createcluster.json +1 -1
  35. package/lib/esm/icons/c4-icons.d.ts +11 -11
  36. package/lib/esm/runtime/c4-console-authz.d.ts +1 -0
  37. package/lib/esm/runtime/c4-console-authz.js +1 -0
  38. package/lib/esm/runtime/c4-console-data-context.d.ts +1 -1
  39. package/lib/esm/runtime/c4-console-data-context.js +2 -2
  40. package/lib/esm/runtime/c4-console-data-context.types.d.ts +3 -3
  41. package/lib/esm/runtime/c4-console-data-store.d.ts +3 -3
  42. package/lib/esm/runtime/c4-console-data-store.js +34 -15
  43. package/lib/esm/runtime/c4-console-data-store.spec.js +55 -1
  44. package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
  45. package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
  46. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +34 -2
  47. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +1 -1
  48. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +7 -0
  49. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +5 -2
  50. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +49 -1
  51. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +37 -2
  52. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +91 -50
  53. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +226 -3
  54. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +17 -4
  55. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +56 -1
  56. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  57. package/lib/esm/widgets/clusters/c4-clusters-page.js +207 -17
  58. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +87 -0
  59. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +2 -0
  60. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
  61. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
  62. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  63. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  64. package/lib/esm/widgets/job-worker/c4-job-worker.helpers.js +14 -2
  65. package/package.json +22 -22
@@ -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;
@@ -1,3 +1,3 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { C4ClusterListProps } from './c4-cluster-list.types';
3
- export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
3
+ export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
@@ -25,7 +25,7 @@ function isPlainLeftClick(event) {
25
25
  !event.ctrlKey &&
26
26
  !event.shiftKey);
27
27
  }
28
- export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isRunningOnUnsupportedGeneration, }) => {
28
+ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isRunningOnUnsupportedGeneration, }) => {
29
29
  const tableContainerRef = useRef(null);
30
30
  const stableClustersRef = useRef(clusters.map((cluster) => ({ ...cluster })));
31
31
  const selectedPageRef = useRef(1);
@@ -307,6 +307,18 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
307
307
  onClick: (row) => onWakeCluster(row.id),
308
308
  visible: (row) => isClusterPaused(row.id) && permissions.canWakeCluster,
309
309
  },
310
+ ...(onFailoverCluster && isMultiRegionCluster
311
+ ? [
312
+ {
313
+ id: 'failover-cluster',
314
+ label: translations.overflowMenu.failover ?? 'Failover',
315
+ kind: 'ghost',
316
+ onClick: (row) => onFailoverCluster(row.id),
317
+ visible: (row) => (permissions.canFailoverCluster ?? false) &&
318
+ isMultiRegionCluster(row.id),
319
+ },
320
+ ]
321
+ : []),
310
322
  {
311
323
  id: 'delete-cluster',
312
324
  label: translations.overflowMenu.delete,
@@ -21,6 +21,7 @@ export interface ClusterListPermissions {
21
21
  canUpdateTag: boolean;
22
22
  canSeeClusterLoad: boolean;
23
23
  canWakeCluster: boolean;
24
+ canFailoverCluster?: boolean;
24
25
  createClusterButtonDisabled: boolean;
25
26
  }
26
27
  export interface ClusterListNotification {
@@ -40,6 +41,7 @@ export interface C4ClusterListProps {
40
41
  onDeleteCluster: (clusterId: string) => void;
41
42
  onAssignTag: (clusterId: string) => void;
42
43
  onWakeCluster: (clusterId: string) => void;
44
+ onFailoverCluster?: (clusterId: string) => void;
43
45
  trialNotification?: React.ReactNode;
44
46
  encryptionNotification?: ClusterListNotification;
45
47
  clusterCapMessage?: string;
@@ -63,6 +65,7 @@ export interface C4ClusterListProps {
63
65
  overflowMenu: {
64
66
  delete: string;
65
67
  resume: string;
68
+ failover?: string;
66
69
  };
67
70
  tags: {
68
71
  addLabel: string;
@@ -72,5 +75,6 @@ export interface C4ClusterListProps {
72
75
  };
73
76
  };
74
77
  isClusterPaused: (clusterId: string) => boolean;
78
+ isMultiRegionCluster?: (clusterId: string) => boolean;
75
79
  isRunningOnUnsupportedGeneration: (clusterId: string) => boolean;
76
80
  }
@@ -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
  };
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4ClusterSettingsProps } from './c4-cluster-settings.types';
3
- export declare const C4ClusterSettings: ({ settings, tasklistSettings, dangerZone, }: C4ClusterSettingsProps) => JSX.Element;
3
+ export declare const C4ClusterSettings: ({ settings, tasklistSettings, optimizeFilteringSettings, dangerZone, }: C4ClusterSettingsProps) => JSX.Element;
@@ -7,11 +7,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
7
  import { Stack } from '@carbon/react';
8
8
  import { ClusterSettings } from './elements/cluster-settings.js';
9
9
  import { DangerZone } from './elements/danger-zone.js';
10
+ import { OptimizeFilteringSettings } from './elements/optimize-filtering-settings.js';
11
+ import { SettingsTile } from './elements/settings-tile.js';
10
12
  import { TasklistSettings } from './elements/tasklist-mode-settings.js';
11
- export const C4ClusterSettings = ({ settings, tasklistSettings, dangerZone, }) => {
13
+ export const C4ClusterSettings = ({ settings, tasklistSettings, optimizeFilteringSettings, dangerZone, }) => {
12
14
  const settingsComponent = _jsx(ClusterSettings, { ...settings });
13
15
  const tasklistComponent = tasklistSettings?.enabled && (_jsx(TasklistSettings, { ...tasklistSettings }));
16
+ const optimizeFilteringComponent = optimizeFilteringSettings ? (_jsx(SettingsTile, { title: optimizeFilteringSettings.title, children: _jsx(OptimizeFilteringSettings, { filtering: optimizeFilteringSettings.filtering, permissions: optimizeFilteringSettings.permissions, onToggle: optimizeFilteringSettings.onToggle, onSave: optimizeFilteringSettings.onSave }) })) : undefined;
14
17
  const dangerZoneComponent = dangerZone ? (_jsx(DangerZone, { ...dangerZone })) : undefined;
15
- const component = (_jsxs(Stack, { gap: 6, children: [settingsComponent, tasklistComponent, dangerZoneComponent] }));
18
+ const component = (_jsxs(Stack, { gap: 6, children: [settingsComponent, tasklistComponent, optimizeFilteringComponent, dangerZoneComponent] }));
16
19
  return component;
17
20
  };
@@ -1,5 +1,6 @@
1
1
  import type { ClusterSettingsProps } from './elements/cluster-settings';
2
2
  import type { DangerZoneProps } from './elements/danger-zone';
3
+ import type { OptimizeFilteringSettingsProps } from './elements/optimize-filtering-settings';
3
4
  import type { SwaggerToggleProps } from './elements/swagger-toggle';
4
5
  import type { TasklistModeToggleProps } from './elements/tasklist-mode-toggle';
5
6
  export interface C4ClusterSettingsProps {
@@ -8,5 +9,8 @@ export interface C4ClusterSettingsProps {
8
9
  title: string;
9
10
  };
10
11
  swaggerToggle?: SwaggerToggleProps;
12
+ optimizeFilteringSettings?: OptimizeFilteringSettingsProps & {
13
+ title: string;
14
+ };
11
15
  dangerZone?: DangerZoneProps;
12
16
  }
@@ -0,0 +1,17 @@
1
+ import { type JSX } from 'react';
2
+ export interface OptimizeFilteringConfig {
3
+ includeProcessIds?: string[] | null;
4
+ excludeProcessIds?: string[] | null;
5
+ includeVariableNames?: string[] | null;
6
+ excludeVariableNames?: string[] | null;
7
+ }
8
+ export interface OptimizeFilteringSettingsProps {
9
+ /** undefined = filtering deactivated / not configured */
10
+ filtering: OptimizeFilteringConfig | undefined;
11
+ permissions: {
12
+ mayChange: boolean;
13
+ };
14
+ onToggle: (enabled: boolean) => Promise<void>;
15
+ onSave: (config: OptimizeFilteringConfig) => Promise<void>;
16
+ }
17
+ export declare const OptimizeFilteringSettings: ({ filtering, permissions, onToggle, onSave, }: OptimizeFilteringSettingsProps) => JSX.Element;
@@ -0,0 +1,75 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /*
3
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
+ * under one or more contributor license agreements. Licensed under a commercial license.
5
+ * You may not use this file except in compliance with the commercial license.
6
+ */
7
+ import { Button, Stack, TextArea } from '@carbon/react';
8
+ import { useEffect, useState } from 'react';
9
+ import { C4Divider } from '../../c4-divider/c4-divider.js';
10
+ import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
11
+ function patternsToText(patterns) {
12
+ return patterns?.join('\n') ?? '';
13
+ }
14
+ function textToPatterns(text) {
15
+ const trimmed = text
16
+ .split('\n')
17
+ .map((s) => s.trim())
18
+ .filter(Boolean);
19
+ return trimmed.length > 0 ? trimmed : null;
20
+ }
21
+ export const OptimizeFilteringSettings = ({ filtering, permissions, onToggle, onSave, }) => {
22
+ const isActive = filtering !== undefined;
23
+ const [includeProcessIds, setIncludeProcessIds] = useState(patternsToText(filtering?.includeProcessIds));
24
+ const [excludeProcessIds, setExcludeProcessIds] = useState(patternsToText(filtering?.excludeProcessIds));
25
+ const [includeVariableNames, setIncludeVariableNames] = useState(patternsToText(filtering?.includeVariableNames));
26
+ const [excludeVariableNames, setExcludeVariableNames] = useState(patternsToText(filtering?.excludeVariableNames));
27
+ const [isSaving, setIsSaving] = useState(false);
28
+ const [isToggling, setIsToggling] = useState(false);
29
+ // Sync text fields from server state. Blocked while a toggle is in flight so
30
+ // intermediate renders (e.g. isClusterLoading flipping) don't clear edits.
31
+ useEffect(() => {
32
+ if (isToggling)
33
+ return;
34
+ setIncludeProcessIds(patternsToText(filtering?.includeProcessIds));
35
+ setExcludeProcessIds(patternsToText(filtering?.excludeProcessIds));
36
+ setIncludeVariableNames(patternsToText(filtering?.includeVariableNames));
37
+ setExcludeVariableNames(patternsToText(filtering?.excludeVariableNames));
38
+ }, [filtering, isToggling]);
39
+ const handleToggle = async () => {
40
+ setIsToggling(true);
41
+ try {
42
+ await onToggle(!isActive);
43
+ }
44
+ catch {
45
+ // error notification is shown by the parent handler
46
+ }
47
+ finally {
48
+ setIsToggling(false);
49
+ }
50
+ };
51
+ const handleSave = async () => {
52
+ setIsSaving(true);
53
+ try {
54
+ await onSave({
55
+ includeProcessIds: textToPatterns(includeProcessIds),
56
+ excludeProcessIds: textToPatterns(excludeProcessIds),
57
+ includeVariableNames: textToPatterns(includeVariableNames),
58
+ excludeVariableNames: textToPatterns(excludeVariableNames),
59
+ });
60
+ }
61
+ finally {
62
+ setIsSaving(false);
63
+ }
64
+ };
65
+ const isPending = isToggling || isSaving;
66
+ return (_jsxs(Stack, { gap: 6, children: [_jsx(C4Toggle, { id: 'optimize-filtering-toggle', supported: true, enabled: isActive, title: 'Enable data filters', notices: [
67
+ {
68
+ notice: 'When enabled, the Optimize exporter will only process data matching the configured include/exclude patterns. Patterns support wildcards (e.g. business_*).',
69
+ },
70
+ ], onClick: handleToggle, permissions: { mayToggle: permissions.mayChange && !isPending } }), isActive && (_jsxs(_Fragment, { children: [_jsx(C4Divider, {}), _jsx("p", { style: {
71
+ color: 'var(--cds-text-secondary)',
72
+ fontSize: 'var(--cds-body-compact-01-font-size)',
73
+ maxWidth: '650px',
74
+ }, children: "Enter one pattern per line. Wildcards (*) are supported." }), _jsxs(Stack, { gap: 5, style: { maxWidth: '650px' }, children: [_jsx(TextArea, { id: 'optimize-include-process-ids', labelText: 'Include process definitions', helperText: 'Only process definitions with a matching bpmnProcessId will be exported. All records for those processes follow the same rule.', value: includeProcessIds, onChange: (e) => setIncludeProcessIds(e.target.value), disabled: !permissions.mayChange || isPending, rows: 3 }), _jsx(TextArea, { id: 'optimize-exclude-process-ids', labelText: 'Exclude process definitions', helperText: 'Process definitions with a matching bpmnProcessId will not be exported. Exclusion takes precedence over inclusion.', value: excludeProcessIds, onChange: (e) => setExcludeProcessIds(e.target.value), disabled: !permissions.mayChange || isPending, rows: 3 }), _jsx(TextArea, { id: 'optimize-include-variable-names', labelText: 'Include variable names', helperText: 'Only variables with matching names will be exported', value: includeVariableNames, onChange: (e) => setIncludeVariableNames(e.target.value), disabled: !permissions.mayChange || isPending, rows: 3 }), _jsx(TextArea, { id: 'optimize-exclude-variable-names', labelText: 'Exclude variable names', helperText: 'Variables with matching names will not be exported', value: excludeVariableNames, onChange: (e) => setExcludeVariableNames(e.target.value), disabled: !permissions.mayChange || isPending, rows: 3 }), permissions.mayChange && (_jsx("div", { children: _jsx(Button, { size: 'md', kind: 'primary', onClick: handleSave, disabled: isPending, children: isSaving ? 'Saving…' : 'Save filters' }) }))] })] }))] }));
75
+ };
@@ -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;
@@ -51,6 +51,7 @@ const resources = {
51
51
  overflowMenu: {
52
52
  delete: 'Delete',
53
53
  resume: 'Resume',
54
+ failover: 'Failover',
54
55
  },
55
56
  },
56
57
  tags: {
@@ -65,6 +66,9 @@ const resources = {
65
66
  text: 'Complete the remaining steps to finalize the cluster creation.',
66
67
  },
67
68
  },
69
+ details: {
70
+ jobDashboard: 'Job dashboard',
71
+ },
68
72
  },
69
73
  clusterDetails: {
70
74
  tag: {
@@ -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": {
@@ -32,9 +32,13 @@
32
32
  "overflowMenu": {
33
33
  "rename": "Rename",
34
34
  "delete": "Delete",
35
- "resume": "Resume"
35
+ "resume": "Resume",
36
+ "failover": "Failover"
36
37
  }
37
38
  },
39
+ "details": {
40
+ "jobDashboard": "Job dashboard"
41
+ },
38
42
  "createModal": {
39
43
  "title": "Create new cluster",
40
44
  "createButton": "Create",
@@ -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;
@@ -12,6 +12,7 @@ export interface C4ConsoleVisibilities {
12
12
  canWake?: boolean;
13
13
  canSleep?: boolean;
14
14
  canSeeClusterLoad?: boolean;
15
+ canFailover?: boolean;
15
16
  };
16
17
  }
17
18
  export interface C4ConsoleAuthzState {
@@ -134,6 +134,7 @@ export function deriveConsoleAuthzFromAccessToken(params) {
134
134
  // Backport behavior exposed cluster load to org members with cluster
135
135
  // read access, while still allowing token-scoped internal access.
136
136
  canSeeClusterLoad: canSeeClusterLoadFromOrgPermissions ?? clusters.canReadAllClusterInfo,
137
+ canFailover: canCreateFromOrgPermissions ?? clusters.createOnBehalf,
137
138
  },
138
139
  };
139
140
  return {
@@ -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?: {