@camunda/ccma-saas-frontend 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/esm/components/c4-billing-page/elements/value-metric.js +2 -4
  2. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +24 -10
  3. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +6 -2
  4. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +2 -2
  5. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +2 -2
  6. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +4 -4
  7. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +1 -2
  8. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +2 -2
  9. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +1 -2
  10. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +1 -2
  11. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +1 -2
  12. package/lib/esm/components/c4-help-center/c4-help-center.js +3 -1
  13. package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +1 -1
  14. package/lib/esm/components/c4-management-api/c4-management-api.js +8 -3
  15. package/lib/esm/components/c4-sm-dashboard/health-status.js +1 -1
  16. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +1 -1
  17. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +3 -1
  18. package/lib/esm/components/shared-charts/ds-line-chart.js +25 -11
  19. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +16 -0
  20. package/lib/esm/components/shared-charts/recharts-tokens.js +31 -0
  21. package/lib/esm/i18n/en/entities/orgroles.json +2 -2
  22. package/lib/esm/runtime/build-cluster-swagger-url.js +2 -2
  23. package/lib/esm/runtime/nav/camunda-apps.js +2 -2
  24. package/lib/esm/ui/c4-definition-tooltip.d.ts +15 -0
  25. package/lib/esm/ui/c4-definition-tooltip.js +43 -0
  26. package/lib/esm/ui/index.d.ts +6 -0
  27. package/lib/esm/ui/index.js +20 -3
  28. package/lib/esm/utils/role-labels.js +5 -4
  29. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +5 -5
  30. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +5 -5
  31. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +33 -16
  32. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -2
  33. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +3 -4
  34. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +2 -2
  35. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +2 -2
  36. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -2
  37. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +16 -16
  38. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +13 -15
  39. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +2 -1
  40. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +2 -1
  41. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +2 -1
  42. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +2 -1
  43. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +177 -17
  44. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +15 -2
  45. package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -2
  46. package/lib/esm/widgets/management/c4-management-app.js +3 -3
  47. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -7
  48. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -2
  49. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +7 -1
  50. package/lib/esm/widgets/user-details/c4-user-details-page.js +3 -3
  51. package/package.json +4 -4
@@ -18,7 +18,8 @@
18
18
  * ONLY standalone *leaf* components belong here. Compound-family members
19
19
  * (RadioButton/RadioButtonGroup, Tabs/Tab/TabList/TabPanel, Select/SelectItem,
20
20
  * Switch (a ContentSwitcher child), MenuButton/MenuItem, Breadcrumb children,
21
- * Dropdown) must NOT be routed: Carbon parents detect/clone their children by
21
+ * Dropdown, DatePicker/DatePickerInput, RadioTile (a TileGroup child)) must NOT
22
+ * be routed: Carbon parents detect/clone their children by
22
23
  * component identity, and the `switchable` wrapper changes that identity, which
23
24
  * breaks state injection (checked/selected). Migrate such families as a whole
24
25
  * composite, not symbol-by-symbol.
@@ -30,17 +31,32 @@
30
31
  * To add a leaf: import the Carbon + carbon-compat versions and wrap with
31
32
  * `switchable(...)`, then point the consuming component's import at this module.
32
33
  */
33
- import { BreadcrumbSkeleton as DsBreadcrumbSkeleton, Button as DsButton, Checkbox as DsCheckbox, CodeSnippet as DsCodeSnippet, ComposedModal as DsComposedModal, Dropdown as DsDropdown, FilterableMultiSelect as DsFilterableMultiSelect, Link as DsLink, Loading as DsLoading, ModalBody as DsModalBody, ModalFooter as DsModalFooter, ModalHeader as DsModalHeader, MultiSelect as DsMultiSelect, OverflowMenu as DsOverflowMenu, OverflowMenuItem as DsOverflowMenuItem, ProgressBar as DsProgressBar, Search as DsSearch, SkeletonPlaceholder as DsSkeletonPlaceholder, SkeletonText as DsSkeletonText, Stack as DsStack, TabsSkeleton as DsTabsSkeleton, Tag as DsTag, TextArea as DsTextArea, TextInput as DsTextInput, Tile as DsTile, Toggle as DsToggle, Tooltip as DsTooltip, } from '@camunda/design-system/carbon-compat';
34
- import { BreadcrumbSkeleton as CarbonBreadcrumbSkeleton, Button as CarbonButton, Checkbox as CarbonCheckbox, CodeSnippet as CarbonCodeSnippet, ComposedModal as CarbonComposedModal, Dropdown as CarbonDropdown, FilterableMultiSelect as CarbonFilterableMultiSelect, Link as CarbonLink, Loading as CarbonLoading, Modal as CarbonModal, ModalBody as CarbonModalBody, ModalFooter as CarbonModalFooter, ModalHeader as CarbonModalHeader, MultiSelect as CarbonMultiSelect, OverflowMenu as CarbonOverflowMenu, OverflowMenuItem as CarbonOverflowMenuItem, ProgressBar as CarbonProgressBar, Search as CarbonSearch, SkeletonPlaceholder as CarbonSkeletonPlaceholder, SkeletonText as CarbonSkeletonText, Stack as CarbonStack, TabsSkeleton as CarbonTabsSkeleton, Tag as CarbonTag, TextArea as CarbonTextArea, TextInput as CarbonTextInput, Tile as CarbonTile, Toggle as CarbonToggle, Tooltip as CarbonTooltip, } from '@carbon/react';
34
+ import { BreadcrumbSkeleton as DsBreadcrumbSkeleton, Button as DsButton, Checkbox as DsCheckbox, CodeSnippet as DsCodeSnippet, ComposedModal as DsComposedModal, Dropdown as DsDropdown, FilterableMultiSelect as DsFilterableMultiSelect, Form as DsForm, FormGroup as DsFormGroup, IconButton as DsIconButton, Link as DsLink, ListItem as DsListItem, Loading as DsLoading, ModalBody as DsModalBody, ModalFooter as DsModalFooter, ModalHeader as DsModalHeader, MultiSelect as DsMultiSelect, OverflowMenu as DsOverflowMenu, OverflowMenuItem as DsOverflowMenuItem, ProgressBar as DsProgressBar, Search as DsSearch, SkeletonPlaceholder as DsSkeletonPlaceholder, SkeletonText as DsSkeletonText, Stack as DsStack, TabsSkeleton as DsTabsSkeleton, Tag as DsTag, TextArea as DsTextArea, TextInput as DsTextInput, Tile as DsTile, Toggle as DsToggle, Tooltip as DsTooltip, UnorderedList as DsUnorderedList, } from '@camunda/design-system/carbon-compat';
35
+ import { BreadcrumbSkeleton as CarbonBreadcrumbSkeleton, Button as CarbonButton, Checkbox as CarbonCheckbox, CodeSnippet as CarbonCodeSnippet, ComposedModal as CarbonComposedModal, DefinitionTooltip as CarbonDefinitionTooltip, Dropdown as CarbonDropdown, FilterableMultiSelect as CarbonFilterableMultiSelect, Form as CarbonForm, FormGroup as CarbonFormGroup, IconButton as CarbonIconButton, Link as CarbonLink, ListItem as CarbonListItem, Loading as CarbonLoading, Modal as CarbonModal, ModalBody as CarbonModalBody, ModalFooter as CarbonModalFooter, ModalHeader as CarbonModalHeader, MultiSelect as CarbonMultiSelect, OverflowMenu as CarbonOverflowMenu, OverflowMenuItem as CarbonOverflowMenuItem, ProgressBar as CarbonProgressBar, Search as CarbonSearch, SkeletonPlaceholder as CarbonSkeletonPlaceholder, SkeletonText as CarbonSkeletonText, Stack as CarbonStack, TabsSkeleton as CarbonTabsSkeleton, Tag as CarbonTag, TextArea as CarbonTextArea, TextInput as CarbonTextInput, Tile as CarbonTile, Toggle as CarbonToggle, Tooltip as CarbonTooltip, UnorderedList as CarbonUnorderedList, } from '@carbon/react';
35
36
  import { createElement, Fragment, } from 'react';
36
37
  import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
38
+ import { C4DefinitionTooltip } from './c4-definition-tooltip.js';
37
39
  import { C4ModalDialog } from './c4-modal-dialog.js';
38
40
  import { switchable } from './switchable.js';
39
41
  export const Button = switchable(CarbonButton, DsButton);
40
42
  export const Checkbox = switchable(CarbonCheckbox, DsCheckbox);
41
43
  export const CodeSnippet = switchable(CarbonCodeSnippet, DsCodeSnippet);
44
+ // carbon-compat ships no definition-tooltip adapter, so the ds branch is the DS
45
+ // component directly (see ./c4-definition-tooltip). Unlike Carbon's, it renders
46
+ // the definition through a portal, so an ancestor that hides overflow does not
47
+ // clip it.
48
+ export const DefinitionTooltip = switchable(CarbonDefinitionTooltip, C4DefinitionTooltip);
42
49
  export const Dropdown = switchable(CarbonDropdown, DsDropdown);
50
+ export const Form = switchable(CarbonForm, DsForm);
51
+ // ds drops FormGroup `message`/`messageText` (Carbon's inline helper-text
52
+ // variant). No c4 call site passes them.
53
+ export const FormGroup = switchable(CarbonFormGroup, DsFormGroup);
54
+ export const IconButton = switchable(CarbonIconButton, DsIconButton);
43
55
  export const Link = switchable(CarbonLink, DsLink);
56
+ // carbon-compat has no OrderedList adapter, so an `<ol>` stays Carbon in both
57
+ // modes and styles its items through `.cds--list__item`. A ds ListItem inside
58
+ // that `<ol>` loses those styles. Use this export inside UnorderedList only.
59
+ export const ListItem = switchable(CarbonListItem, DsListItem);
44
60
  export const Loading = switchable(CarbonLoading, DsLoading);
45
61
  export const Modal = switchable(CarbonModal, C4ModalDialog);
46
62
  export const ComposedModal = switchable(CarbonComposedModal, DsComposedModal);
@@ -95,6 +111,7 @@ export const TextArea = C4TextArea;
95
111
  export const TextInput = switchable(CarbonTextInput, DsTextInput);
96
112
  export const Tile = switchable(CarbonTile, DsTile);
97
113
  export const Toggle = switchable(CarbonToggle, DsToggle);
114
+ export const UnorderedList = switchable(CarbonUnorderedList, DsUnorderedList);
98
115
  // Carbon Tooltip is generic over its trigger element; erase for the switch then
99
116
  // restore the Carbon type so call sites keep props like `align`/`autoAlign`.
100
117
  // Carbon mode uses them for positioning; the carbon-compat adapter has no
@@ -112,15 +112,16 @@ const ROLE_LABEL_DEFAULTS = {
112
112
  * aligned model gives it new copy; anything absent keeps its pre-alignment label
113
113
  * and description. Display projection only; raw role ids are unchanged.
114
114
  *
115
- * Org Owner / Org Admin use the short form so the familiar terms survive while
116
- * naming the org level, now that Workspace Admin exists. `member` is renamed
115
+ * Org Owner and Org Admin show the full "Organization" word, not the short
116
+ * form. The short form saved little space. It also forced screen readers to
117
+ * expand an abbreviation on every announcement. `member` is renamed
117
118
  * because `modeler` takes over the "Member" name; it is a rename, not a
118
119
  * promotion, so it stays legacy-marked. `analyst` is here only for its
119
120
  * description, which now refers to Member rather than Modeler.
120
121
  */
121
122
  const ALIGNED_ROLE_LABEL_DEFAULTS = {
122
- [OrganizationRole.OWNER]: 'Org Owner',
123
- [OrganizationRole.ADMIN]: 'Org Admin',
123
+ [OrganizationRole.OWNER]: 'Organization Owner',
124
+ [OrganizationRole.ADMIN]: 'Organization Admin',
124
125
  [OrganizationRole.MODELER]: 'Member',
125
126
  [OrganizationRole.OPERATIONS_ENGINEER]: 'DevOps',
126
127
  [OrganizationRole.MEMBER]: 'Console Member',
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ConsoleClusterClientsService, ConsoleClusterService, } from '@camunda/ccma-api';
3
- import { checkVersion, VersionCheckOperator } from '@camunda/ccma-shared-types';
3
+ import { checkVersion, IDENTITY_MANAGEMENT_MIN_VERSION, REST_API_URL_TRANSFORM_MIN_VERSION, REST_API_V2_MIN_VERSION, VersionCheckOperator, ZEEBE_REST_URL_MIN_VERSION, } from '@camunda/ccma-shared-types';
4
4
  import { observer } from 'mobx-react-lite';
5
5
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
6
6
  import { C4InlineNotification } from '../../components/c4-inline-notification/c4-inline-notification.js';
@@ -147,7 +147,7 @@ export const C4ClusterClientDetailsApp = observer((props) => {
147
147
  possiblyVersionOrDockerPath: zeebe,
148
148
  trueForSnapshot: true,
149
149
  operator: VersionCheckOperator.GreaterThanOrEqual,
150
- versionToCompareTo: '8.8.0-alpha5',
150
+ versionToCompareTo: IDENTITY_MANAGEMENT_MIN_VERSION,
151
151
  trueOnInvalidVersion: false,
152
152
  });
153
153
  }, [cluster?.generation?.versions?.zeebe]);
@@ -257,7 +257,7 @@ export const C4ClusterClientDetailsApp = observer((props) => {
257
257
  possiblyVersionOrDockerPath: cluster?.generation?.versions?.zeebe,
258
258
  trueForSnapshot: true,
259
259
  operator: VersionCheckOperator.GreaterThanOrEqual,
260
- versionToCompareTo: '8.8.0-alpha1',
260
+ versionToCompareTo: ZEEBE_REST_URL_MIN_VERSION,
261
261
  })
262
262
  ? cluster.status?.zeebeRestUrl
263
263
  : cluster.status?.zeebeUrl) ?? '';
@@ -307,7 +307,7 @@ export const C4ClusterClientDetailsApp = observer((props) => {
307
307
  possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
308
308
  trueForSnapshot: true,
309
309
  operator: VersionCheckOperator.GreaterThanOrEqual,
310
- versionToCompareTo: '8.10.0-alpha1',
310
+ versionToCompareTo: REST_API_V2_MIN_VERSION,
311
311
  });
312
312
  if (supportsRestApiV2) {
313
313
  // From 8.10 onwards (including alphas) the operator publishes
@@ -324,7 +324,7 @@ export const C4ClusterClientDetailsApp = observer((props) => {
324
324
  possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
325
325
  trueForSnapshot: true,
326
326
  operator: VersionCheckOperator.GreaterThanOrEqual,
327
- versionToCompareTo: '8.6.0',
327
+ versionToCompareTo: REST_API_URL_TRANSFORM_MIN_VERSION,
328
328
  trueOnInvalidVersion: true,
329
329
  })) {
330
330
  // 8.6 – 8.9 fallback: derive the REST URL by string-transforming the
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { AuditLoggerService, ConsoleAlertsService, ConsoleByomMonitoringService, ConsoleClusterClientsService, ConsoleClusterParametersService, ConsoleClusterService, HdpService, HttpError, SaaSJobsService, } from '@camunda/ccma-api';
8
- import { checkVersion, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
8
+ import { AUDIT_LOG_TAB_MIN_VERSION, CLUSTER_SECRETS_LABEL_MIN_VERSION, CLUSTER_STATISTICS_CONFIG_MIN_VERSION, checkVersion, IDENTITY_MANAGEMENT_MIN_VERSION, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
9
9
  import { observer } from 'mobx-react-lite';
10
10
  import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
11
11
  import { getC4ClusterDetailsUrls } from '../../externalUrls.const.js';
@@ -473,7 +473,7 @@ export const C4ClusterDetailsApp = observer((props) => {
473
473
  possiblyVersionOrDockerPath: zeebe,
474
474
  trueForSnapshot: true,
475
475
  operator: VersionCheckOperator.GreaterThanOrEqual,
476
- versionToCompareTo: '8.9.0-alpha5',
476
+ versionToCompareTo: CLUSTER_STATISTICS_CONFIG_MIN_VERSION,
477
477
  trueOnInvalidVersion: false,
478
478
  })) {
479
479
  return;
@@ -520,7 +520,7 @@ export const C4ClusterDetailsApp = observer((props) => {
520
520
  possiblyVersionOrDockerPath: zeebe,
521
521
  trueForSnapshot: true,
522
522
  operator: VersionCheckOperator.GreaterThanOrEqual,
523
- versionToCompareTo: '8.8.0-alpha5',
523
+ versionToCompareTo: IDENTITY_MANAGEMENT_MIN_VERSION,
524
524
  trueOnInvalidVersion: false,
525
525
  });
526
526
  }, [cluster?.generation?.versions?.zeebe]);
@@ -532,7 +532,7 @@ export const C4ClusterDetailsApp = observer((props) => {
532
532
  possiblyVersionOrDockerPath: zeebe,
533
533
  trueForSnapshot: 'compare',
534
534
  operator: VersionCheckOperator.GreaterThanOrEqual,
535
- versionToCompareTo: '8.10.0',
535
+ versionToCompareTo: CLUSTER_SECRETS_LABEL_MIN_VERSION,
536
536
  });
537
537
  }, [cluster?.generation?.versions?.zeebe]);
538
538
  const [dismissedFailedRestores, setDismissedFailedRestores] = useState(loadDismissedFailedRestores);
@@ -1416,7 +1416,7 @@ export const C4ClusterDetailsApp = observer((props) => {
1416
1416
  possiblyVersionOrDockerPath: cluster.generation.versions.zeebe,
1417
1417
  trueForSnapshot: true,
1418
1418
  operator: VersionCheckOperator.GreaterThanOrEqual,
1419
- versionToCompareTo: '8.9.0-alpha5',
1419
+ versionToCompareTo: AUDIT_LOG_TAB_MIN_VERSION,
1420
1420
  trueOnInvalidVersion: false,
1421
1421
  })),
1422
1422
  init: () => { },
@@ -4,9 +4,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
+ import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from '@camunda/design-system';
7
8
  import { WarningAltFilled } from '@carbon/react/icons/index.esm.js';
9
+ import { TriangleAlert } from 'lucide-react';
8
10
  import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
9
- import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
11
+ import { useC4ConsoleRuntime, useC4DesignSystem, } from '../../runtime/c4-console-runtime-context.js';
10
12
  import { BreadcrumbSkeleton, Link, SkeletonText, Stack, TabsSkeleton, Tooltip, } from '../../ui/index.js';
11
13
  const breadCrumbWrapperStyles = {
12
14
  minHeight: '40px',
@@ -100,14 +102,37 @@ function buildBanner(opts) {
100
102
  }
101
103
  return undefined;
102
104
  }
103
- function buildAuthorizationsDisabledIndicator(opts) {
104
- const { banner, t } = opts;
105
- if (!banner || banner.kind !== 'authorizationsDisabled') {
106
- return undefined;
107
- }
105
+ /**
106
+ * Cluster-header indicator for "authorizations disabled".
107
+ *
108
+ * Transformation component (cf. `docs/c4-carbon-compat.md`): the carbon branch
109
+ * reproduces the deployed Carbon render exactly — a `Tooltip` recoloured to a
110
+ * light surface through `--cds-*-inverse` overrides, with the docs link inlined
111
+ * in the tooltip description.
112
+ *
113
+ * The ds branch does not carry that hack over: the `--cds-*-inverse` overrides
114
+ * are no-ops outside Carbon, and Carbon's tooltip type scale doesn't match the
115
+ * `Link` nested inside it (feedback: "odd padding around text, learn more has
116
+ * different font-size"). It renders the DS `Popover` instead, which owns its
117
+ * padding and type scale. A tooltip is also the wrong component for actionable
118
+ * content — its description isn't hoverable or focusable, so the "Learn more"
119
+ * link can't actually be reached.
120
+ */
121
+ function AuthorizationsDisabledIndicator(props) {
122
+ const { banner, t } = props;
123
+ const designSystem = useC4DesignSystem();
108
124
  const title = safeTranslate(t, 'c4console:clusterDetails.banner.authorizationsDisabled.title', 'Authorizations disabled');
109
125
  const subtitle = safeTranslate(t, 'c4console:clusterDetails.banner.authorizationsDisabled.subtitle', 'All authenticated users & clients have full access to this cluster’s resources. To restrict access, enable authorizations in the settings.');
110
126
  const actionLabel = safeTranslate(t, 'c4console:clusterDetails.banner.authorizationsDisabled.actionLabel', 'Learn more about managing authorizations');
127
+ const onLearnMoreClick = (event) => {
128
+ if (banner.onLearnMore) {
129
+ event.preventDefault();
130
+ banner.onLearnMore();
131
+ }
132
+ };
133
+ if (designSystem === 'ds') {
134
+ return (_jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { type: 'button', "aria-label": title, className: 'inline-flex items-center gap-1 text-sm text-neutral-foreground-subtle', children: [_jsx(TriangleAlert, { size: 16, className: 'text-warning-action-default', "aria-hidden": true }), title] }) }), _jsxs(PopoverContent, { align: 'end', className: 'w-80', children: [_jsxs(PopoverHeader, { children: [_jsx(PopoverTitle, { children: title }), _jsx(PopoverDescription, { children: subtitle })] }), _jsx(Link, { href: banner.docsUrl, target: '_blank', rel: 'noopener noreferrer', onClick: onLearnMoreClick, children: actionLabel })] })] }));
135
+ }
111
136
  return (_jsx("div", { style: {
112
137
  '--cds-background-inverse': 'var(--cds-layer)',
113
138
  '--cds-text-inverse': 'var(--cds-text-primary)',
@@ -116,12 +141,7 @@ function buildAuthorizationsDisabledIndicator(opts) {
116
141
  display: 'block',
117
142
  whiteSpace: 'normal',
118
143
  maxWidth: '20rem',
119
- }, children: [subtitle, ' ', _jsx(Link, { href: banner.docsUrl, target: '_blank', rel: 'noopener noreferrer', inline: true, onClick: (event) => {
120
- if (banner.onLearnMore) {
121
- event.preventDefault();
122
- banner.onLearnMore();
123
- }
124
- }, children: actionLabel })] }), children: _jsxs("button", { type: 'button', "aria-label": title, style: {
144
+ }, children: [subtitle, ' ', _jsx(Link, { href: banner.docsUrl, target: '_blank', rel: 'noopener noreferrer', inline: true, onClick: onLearnMoreClick, children: actionLabel })] }), children: _jsxs("button", { type: 'button', "aria-label": title, style: {
125
145
  display: 'inline-flex',
126
146
  alignItems: 'center',
127
147
  gap: '0.25rem',
@@ -143,10 +163,7 @@ export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan,
143
163
  ? safeTranslate(t, 'c4console:clusterDetails.tag.development', 'Development')
144
164
  : '';
145
165
  const bannerProps = buildBanner({ banner, t });
146
- const authorizationsIndicator = buildAuthorizationsDisabledIndicator({
147
- banner,
148
- t,
149
- });
166
+ const authorizationsIndicator = banner?.kind === 'authorizationsDisabled' ? (_jsx(AuthorizationsDisabledIndicator, { banner: banner, t: t })) : undefined;
150
167
  return (_jsx(C4PageTemplate, { loading: loading, banner: bannerProps, header: {
151
168
  title: clusterName ?? '',
152
169
  tag,
@@ -4,14 +4,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Form, PasswordInput } from '@carbon/react';
7
+ import { PasswordInput } from '@carbon/react';
8
8
  import { Fragment, useCallback, useRef, useState } from 'react';
9
9
  import { C4ActionableNotification } from '../../../components/c4-actionable-notification/c4-actionable-notification.js';
10
10
  import { C4ClusterDetailsAlerts } from '../../../components/c4-cluster-details-alerts/c4-cluster-details-alerts.js';
11
11
  import { C4CreateAlertModal } from '../../../components/c4-create-alert-modal/c4-create-alert-modal.js';
12
12
  import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
13
13
  import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
14
- import { Checkbox, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
14
+ import { Checkbox, Form, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
15
15
  import { useRadioFamily } from '../../../ui/families.js';
16
16
  // Helper to translate with fallback
17
17
  function safeTranslate(translateFn, key, fallback, options) {
@@ -1,14 +1,13 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ConsoleClusterClientsService, ConsoleConnectorSecretsService, } from '@camunda/ccma-api';
3
- import { checkVersion, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
4
- import { Form } from '@carbon/react';
3
+ import { checkVersion, MCP_MIN_VERSION, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
5
4
  import { useCallback, useMemo, useState } from 'react';
6
5
  import { C4ClusterClientCredentialsModal } from '../../../components/c4-cluster-client-credentials/c4-cluster-client-credentials.js';
7
6
  import { C4ClusterClientCredentialsIdentityModal } from '../../../components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js';
8
7
  import { C4ClusterDetailsClients } from '../../../components/c4-cluster-details-clients/c4-cluster-details-clients.js';
9
8
  import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
10
9
  import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
11
- import { Checkbox, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
10
+ import { Checkbox, Form, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
12
11
  import { toHostWithoutProtocol } from './url-utils.js';
13
12
  // Helper function to ensure translations work
14
13
  function safeTranslate(t, key, fallback) {
@@ -435,7 +434,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
435
434
  possiblyVersionOrDockerPath: cluster?.generation?.versions?.zeebe,
436
435
  trueForSnapshot: true,
437
436
  operator: VersionCheckOperator.GreaterThanOrEqual,
438
- versionToCompareTo: '8.9.0-alpha4',
437
+ versionToCompareTo: MCP_MIN_VERSION,
439
438
  trueOnInvalidVersion: false,
440
439
  });
441
440
  const mcpSetupDocsUrl = mcpSetupDocsUrlFromProps;
@@ -1,14 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { ConsoleConnectorSecretsService } from '@camunda/ccma-api';
3
3
  import { SECRETS_MAX_LENGTH, SseEntity } from '@camunda/ccma-shared-types';
4
- import { FileUploader, Form, InlineLoading, PasswordInput } from '@carbon/react';
4
+ import { FileUploader, InlineLoading, PasswordInput } from '@carbon/react';
5
5
  import { observer } from 'mobx-react-lite';
6
6
  import { useCallback, useEffect, useRef, useState } from 'react';
7
7
  import { C4ClusterDetailsConnectorSecrets } from '../../../components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js';
8
8
  import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
9
9
  import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
10
10
  import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
11
- import { CodeSnippet, Link, Modal, Stack, TextArea, TextInput, } from '../../../ui/index.js';
11
+ import { CodeSnippet, Form, Link, Modal, Stack, TextArea, TextInput, } from '../../../ui/index.js';
12
12
  import { useSelectFamily } from '../../../ui/families.js';
13
13
  function safeTranslate(t, key, fallback) {
14
14
  if (!t)
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { ConsoleBackupScheduleService, ConsoleHotBackupsService, } from '@camunda/ccma-api';
3
- import { BackupStatus, checkVersion, HOTBACKUP_MIN_CREATE_PERIOD, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
3
+ import { BackupStatus, checkVersion, HOT_BACKUP_MIN_VERSION, HOTBACKUP_MIN_CREATE_PERIOD, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
4
4
  import { CronExpression, CronExpressionParser, CronFieldCollection, } from 'cron-parser';
5
5
  import { observer } from 'mobx-react-lite';
6
6
  import { useCallback, useEffect, useRef, useState } from 'react';
@@ -310,7 +310,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
310
310
  possiblyVersionOrDockerPath: zeebe,
311
311
  trueForSnapshot: true,
312
312
  operator: VersionCheckOperator.GreaterThanOrEqual,
313
- versionToCompareTo: '8.2.4',
313
+ versionToCompareTo: HOT_BACKUP_MIN_VERSION,
314
314
  })
315
315
  : false;
316
316
  // Same-cluster restore is currently dev-only. Until the operator side ships
@@ -1,13 +1,12 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ConsoleIpWhitelistService, ConsoleSecureConnectivityService, } from '@camunda/ccma-api';
3
3
  import { normalizeCIDRList, } from '@camunda/ccma-shared-types';
4
- import { Form } from '@carbon/react';
5
4
  import { useCallback, useEffect, useRef, useState } from 'react';
6
5
  import { C4ClusterDetailsIpWhitelist } from '../../../components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js';
7
6
  import { C4CreateIpWhitelistModal } from '../../../components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js';
8
7
  import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
9
8
  import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
10
- import { Modal, Stack, TextInput } from '../../../ui/index.js';
9
+ import { Form, Modal, Stack, TextInput } from '../../../ui/index.js';
11
10
  // Helper function to ensure translations work
12
11
  function safeTranslate(t, key, fallback) {
13
12
  if (!t)
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
6
6
  */
7
7
  import { C3ClusterTag, useC3Profile, } from '@camunda/camunda-composite-components';
8
8
  import { SaaSJobsService, } from '@camunda/ccma-api';
9
- import { ClusterPlanTypeAvailabilityClass, ClusterPlanTypeCategory, checkVersion, MAX_HARDWARE_PACKAGE_COUNT, sortGenerationBySemverOfZeebe, VersionCheckOperator, } from '@camunda/ccma-shared-types';
9
+ import { ADMIN_APP_RENAME_MIN_VERSION, ClusterPlanTypeAvailabilityClass, ClusterPlanTypeCategory, CONNECTORS_MANAGEMENT_LINK_MIN_VERSION, checkVersion, IDENTITY_AUTHORIZATION_MIN_VERSION, IDENTITY_AUTHORIZATION_NOTICE_MAX_VERSION, INTERNAL_CONNECTORS_MANAGEMENT_MIN_VERSION, JOB_DASHBOARD_MIN_VERSION, LINE_8_9_MIN_VERSION, LINE_8_10_MIN_VERSION, MAX_HARDWARE_PACKAGE_COUNT, SWAGGER_MIN_VERSION, sortGenerationBySemverOfZeebe, TASKLIST_V2_UPGRADE_MIN_VERSION, TASKLIST_V2_UPGRADE_TARGET_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
10
10
  import { Api_1, ApiKey, CheckmarkFilled, Renew, Security, UserAccessLocked, } from '@carbon/react/icons/index.esm.js';
11
11
  import { observer } from 'mobx-react-lite';
12
12
  import { Fragment, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
@@ -81,7 +81,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
81
81
  possiblyVersionOrDockerPath: zeebe,
82
82
  trueForSnapshot: true,
83
83
  trueOnInvalidVersion: false,
84
- versionToCompareTo: '8.9.0-alpha5',
84
+ versionToCompareTo: JOB_DASHBOARD_MIN_VERSION,
85
85
  operator: VersionCheckOperator.GreaterThanOrEqual,
86
86
  });
87
87
  }, [cluster?.generation?.versions?.zeebe]);
@@ -138,21 +138,21 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
138
138
  trueForSnapshot: true,
139
139
  trueOnInvalidVersion: false,
140
140
  operator: VersionCheckOperator.GreaterThanOrEqual,
141
- versionToCompareTo: '8.8.0-alpha1',
141
+ versionToCompareTo: IDENTITY_AUTHORIZATION_MIN_VERSION,
142
142
  }) &&
143
143
  checkVersion({
144
144
  possiblyVersionOrDockerPath: targetZeebe,
145
145
  trueForSnapshot: 'compare',
146
146
  trueOnInvalidVersion: false,
147
147
  operator: VersionCheckOperator.LessThan,
148
- versionToCompareTo: '8.9.0-alpha1',
148
+ versionToCompareTo: IDENTITY_AUTHORIZATION_NOTICE_MAX_VERSION,
149
149
  }) &&
150
150
  checkVersion({
151
151
  possiblyVersionOrDockerPath: currentZeebe,
152
152
  trueForSnapshot: 'compare',
153
153
  trueOnInvalidVersion: false,
154
154
  operator: VersionCheckOperator.LessThan,
155
- versionToCompareTo: '8.8.0-alpha1',
155
+ versionToCompareTo: IDENTITY_AUTHORIZATION_MIN_VERSION,
156
156
  }));
157
157
  }, [
158
158
  selectedUpgradeGeneration?.versions?.zeebe,
@@ -175,28 +175,28 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
175
175
  trueForSnapshot: true,
176
176
  trueOnInvalidVersion: false,
177
177
  operator: VersionCheckOperator.GreaterThanOrEqual,
178
- versionToCompareTo: '8.8.0-alpha1',
178
+ versionToCompareTo: TASKLIST_V2_UPGRADE_TARGET_MIN_VERSION,
179
179
  });
180
180
  const targetGenerationIsOn88OrHigher = checkVersion({
181
181
  possiblyVersionOrDockerPath: targetZeebe,
182
182
  trueForSnapshot: true,
183
183
  trueOnInvalidVersion: false,
184
184
  operator: VersionCheckOperator.GreaterThanOrEqual,
185
- versionToCompareTo: '8.8.0-alpha1',
185
+ versionToCompareTo: TASKLIST_V2_UPGRADE_TARGET_MIN_VERSION,
186
186
  });
187
187
  const currentGenerationNot810Yet = checkVersion({
188
188
  possiblyVersionOrDockerPath: currentZeebe,
189
189
  trueForSnapshot: 'compare',
190
190
  trueOnInvalidVersion: false,
191
191
  operator: VersionCheckOperator.LessThan,
192
- versionToCompareTo: '8.10.0-0',
192
+ versionToCompareTo: LINE_8_10_MIN_VERSION,
193
193
  });
194
194
  const currentGenerationGoodEnoughForTasklistV2 = checkVersion({
195
195
  possiblyVersionOrDockerPath: currentZeebe,
196
196
  trueForSnapshot: true,
197
197
  trueOnInvalidVersion: false,
198
198
  operator: VersionCheckOperator.GreaterThanOrEqual,
199
- versionToCompareTo: '8.7.0-alpha4',
199
+ versionToCompareTo: TASKLIST_V2_UPGRADE_MIN_VERSION,
200
200
  });
201
201
  return (!currentGenerationIsOn88 &&
202
202
  targetGenerationIsOn88OrHigher &&
@@ -226,21 +226,21 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
226
226
  trueForSnapshot: 'compare',
227
227
  trueOnInvalidVersion: false,
228
228
  operator: VersionCheckOperator.GreaterThanOrEqual,
229
- versionToCompareTo: '8.9.0-0',
229
+ versionToCompareTo: LINE_8_9_MIN_VERSION,
230
230
  }) &&
231
231
  checkVersion({
232
232
  possiblyVersionOrDockerPath: currentZeebe,
233
233
  trueForSnapshot: 'compare',
234
234
  trueOnInvalidVersion: false,
235
235
  operator: VersionCheckOperator.LessThan,
236
- versionToCompareTo: '8.10.0-0',
236
+ versionToCompareTo: LINE_8_10_MIN_VERSION,
237
237
  });
238
238
  const target810OrHigher = checkVersion({
239
239
  possiblyVersionOrDockerPath: targetZeebe,
240
240
  trueForSnapshot: true,
241
241
  trueOnInvalidVersion: false,
242
242
  operator: VersionCheckOperator.GreaterThanOrEqual,
243
- versionToCompareTo: '8.10.0-0',
243
+ versionToCompareTo: LINE_8_10_MIN_VERSION,
244
244
  });
245
245
  return currentIs89 && target810OrHigher;
246
246
  }, [
@@ -1139,7 +1139,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1139
1139
  possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
1140
1140
  trueForSnapshot: true,
1141
1141
  trueOnInvalidVersion: false,
1142
- versionToCompareTo: '8.7.0-alpha1',
1142
+ versionToCompareTo: CONNECTORS_MANAGEMENT_LINK_MIN_VERSION,
1143
1143
  operator: VersionCheckOperator.GreaterThanOrEqual,
1144
1144
  });
1145
1145
  const supportsInternalConnectorsManagement = checkVersion({
@@ -1147,7 +1147,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1147
1147
  possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
1148
1148
  trueForSnapshot: true,
1149
1149
  trueOnInvalidVersion: false,
1150
- versionToCompareTo: '8.8.0-alpha1',
1150
+ versionToCompareTo: INTERNAL_CONNECTORS_MANAGEMENT_MIN_VERSION,
1151
1151
  operator: VersionCheckOperator.GreaterThanOrEqual,
1152
1152
  });
1153
1153
  const appDescription = {
@@ -1161,7 +1161,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1161
1161
  const isAdminVersion = checkVersion({
1162
1162
  possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
1163
1163
  trueForSnapshot: true,
1164
- versionToCompareTo: '8.9.0-alpha5',
1164
+ versionToCompareTo: ADMIN_APP_RENAME_MIN_VERSION,
1165
1165
  operator: VersionCheckOperator.GreaterThanOrEqual,
1166
1166
  });
1167
1167
  const identityName = isAdminVersion ? 'Admin' : 'Identity';
@@ -1169,7 +1169,7 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
1169
1169
  possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
1170
1170
  trueForSnapshot: true,
1171
1171
  trueOnInvalidVersion: false,
1172
- versionToCompareTo: '8.8.0-alpha8',
1172
+ versionToCompareTo: SWAGGER_MIN_VERSION,
1173
1173
  operator: VersionCheckOperator.GreaterThanOrEqual,
1174
1174
  });
1175
1175
  const apps = {
@@ -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 { BYOIDP_MIN_VERSION, checkVersion, isAppIntegrationsVersionSupported, OPTIMIZE_FILTERING_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
3
+ import { BUSINESS_ID_UNIQUENESS_MIN_VERSION, BYOIDP_MIN_VERSION, checkVersion, ENFORCE_GROUPS_TASKLIST_V2_HIDDEN_MIN_VERSION, ENFORCE_GROUPS_TOGGLE_MIN_VERSION, IDENTITY_MANAGEMENT_MIN_VERSION, isAppIntegrationsVersionSupported, LINE_8_10_MIN_VERSION, MCP_MIN_VERSION, MULTI_TENANCY_TOGGLE_MIN_VERSION, OPTIMIZE_FILTERING_MIN_VERSION, RESOURCE_BASED_AUTHORIZATIONS_MIN_VERSION, SESSION_CONFIG_MIN_VERSION, SWAGGER_MIN_VERSION, TASKLIST_UPGRADE_BANNER_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';
@@ -123,31 +123,31 @@ export const C4ClusterDetailsSettingsTab = (props) => {
123
123
  const isEnforceGroupsToggleVisible = useMemo(() => {
124
124
  if (!props.cluster)
125
125
  return false;
126
- const is8_8ClusterOrAboveAndTasklistV2 = checkClusterVersion('8.8.0') &&
126
+ const is8_8ClusterOrAboveAndTasklistV2 = checkClusterVersion(ENFORCE_GROUPS_TASKLIST_V2_HIDDEN_MIN_VERSION) &&
127
127
  props.cluster.externalMetadata?.tasklistV2Enabled === true;
128
128
  if (is8_8ClusterOrAboveAndTasklistV2) {
129
129
  return false;
130
130
  }
131
- return checkClusterVersion('8.5.0-alpha2');
131
+ return checkClusterVersion(ENFORCE_GROUPS_TOGGLE_MIN_VERSION);
132
132
  }, [props.cluster, checkClusterVersion]);
133
133
  const isSwaggerToggleVisible = useMemo(() => {
134
- return checkClusterVersion('8.8.0-alpha8');
134
+ return checkClusterVersion(SWAGGER_MIN_VERSION);
135
135
  }, [checkClusterVersion]);
136
136
  const isMcpToggleVisible = useMemo(() => {
137
- return checkClusterVersion('8.9.0-alpha4');
137
+ return checkClusterVersion(MCP_MIN_VERSION);
138
138
  }, [checkClusterVersion]);
139
139
  const isBusinessIdUniquenessToggleVisible = useMemo(() => {
140
- return checkClusterVersion('8.9.0-alpha5');
140
+ return checkClusterVersion(BUSINESS_ID_UNIQUENESS_MIN_VERSION);
141
141
  }, [checkClusterVersion]);
142
142
  const canUpgradeTasklist = useMemo(() => {
143
143
  if (!props.cluster?.generation?.versions?.zeebe)
144
144
  return false;
145
- return (checkClusterVersion('8.8.0-alpha2') &&
145
+ return (checkClusterVersion(TASKLIST_UPGRADE_BANNER_MIN_VERSION) &&
146
146
  checkVersion({
147
147
  possiblyVersionOrDockerPath: props.cluster.generation.versions.zeebe,
148
148
  trueForSnapshot: 'compare',
149
149
  operator: VersionCheckOperator.LessThan,
150
- versionToCompareTo: '8.10.0-0',
150
+ versionToCompareTo: LINE_8_10_MIN_VERSION,
151
151
  }));
152
152
  }, [props.cluster?.generation?.versions?.zeebe, checkClusterVersion]);
153
153
  const toggleAutoUpdate = useCallback(async () => {
@@ -651,16 +651,14 @@ export const C4ClusterDetailsSettingsTab = (props) => {
651
651
  setAuthorizationsConfirmError(undefined);
652
652
  }, [props.cluster]);
653
653
  const shouldShowResourceBasedAuthorizations = useMemo(() => {
654
- return checkClusterVersion('8.6.0') && !checkClusterVersion('8.8.0-alpha5');
654
+ return (checkClusterVersion(RESOURCE_BASED_AUTHORIZATIONS_MIN_VERSION) &&
655
+ !checkClusterVersion(IDENTITY_MANAGEMENT_MIN_VERSION));
655
656
  }, [checkClusterVersion]);
656
657
  const shouldShowMultiTenancy = useMemo(() => {
657
- return checkClusterVersion('8.8.0-alpha7');
658
+ return checkClusterVersion(MULTI_TENANCY_TOGGLE_MIN_VERSION);
658
659
  }, [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
660
  const shouldShowSessionSettings = useMemo(() => {
663
- return checkClusterVersion('8.10.0-alpha5');
661
+ return checkClusterVersion(SESSION_CONFIG_MIN_VERSION);
664
662
  }, [checkClusterVersion]);
665
663
  // BYOIDP Phase 1 (#3190). TODO(byoidp): byoidp remove gate at GA rollout
666
664
  const isByoidpFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.byoidp') ?? false;
@@ -737,7 +735,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
737
735
  ]);
738
736
  if (!props.cluster)
739
737
  return _jsx(_Fragment, {});
740
- const isSubjectToIdentityAuthorization = checkClusterVersion('8.8.0-alpha5');
738
+ const isSubjectToIdentityAuthorization = checkClusterVersion(IDENTITY_MANAGEMENT_MIN_VERSION);
741
739
  const authorizationsConfirmTitle = (() => {
742
740
  if (!authorizationsConfirm) {
743
741
  return '';
@@ -5,6 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C4ExecutableDetails } from '@camunda/c4-connectors';
8
+ import { CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION } from '@camunda/ccma-shared-types';
8
9
  import { ErrorBoundary } from '@carbon/react';
9
10
  import { observer } from 'mobx-react-lite';
10
11
  import { useMemo } from 'react';
@@ -25,7 +26,7 @@ export const C4ConnectorManagementExecutableDetailsPage = observer(({ orgId, clu
25
26
  if (!isProviderReady) {
26
27
  return _jsx("p", { children: "Loading..." });
27
28
  }
28
- return (_jsx(Provider, { children: _jsx(C4ExecutableDetails, { connectorId: connectorId, executableId: connectorInstanceId, showRestartButton: checkClusterVersion('8.10.0-alpha3'), connectorsBaseUrl: connectorsUrl }) }));
29
+ return (_jsx(Provider, { children: _jsx(C4ExecutableDetails, { connectorId: connectorId, executableId: connectorInstanceId, showRestartButton: checkClusterVersion(CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION), connectorsBaseUrl: connectorsUrl }) }));
29
30
  }, [
30
31
  Provider,
31
32
  checkClusterVersion,
@@ -5,6 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C4ExecutablesTable } from '@camunda/c4-connectors';
8
+ import { CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION } from '@camunda/ccma-shared-types';
8
9
  import { ErrorBoundary } from '@carbon/react';
9
10
  import { observer } from 'mobx-react-lite';
10
11
  import { useMemo } from 'react';
@@ -25,7 +26,7 @@ export const C4ConnectorManagementExecutablesTablePage = observer(({ orgId, clus
25
26
  if (!isProviderReady) {
26
27
  return _jsx("p", { children: "Loading..." });
27
28
  }
28
- const show810Alpha3Features = checkClusterVersion('8.10.0-alpha3');
29
+ const show810Alpha3Features = checkClusterVersion(CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION);
29
30
  return (_jsx(Provider, { children: _jsx(C4ExecutablesTable, { connectorId: connectorId, showRestartButton: show810Alpha3Features, showMetrics: show810Alpha3Features, operateBaseUrl: operateBaseUrl ?? undefined, onClick: (connectorInstanceId) => {
30
31
  sendNavigate(onNavigate, {
31
32
  kind: 'connectorExecutableDetails',
@@ -5,6 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C4OutboundConnectorDetails } from '@camunda/c4-connectors';
8
+ import { CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION } from '@camunda/ccma-shared-types';
8
9
  import { ErrorBoundary } from '@carbon/react';
9
10
  import { observer } from 'mobx-react-lite';
10
11
  import { useMemo } from 'react';
@@ -25,7 +26,7 @@ export const C4ConnectorManagementOutboundDetailsPage = observer(({ orgId, clust
25
26
  if (!isProviderReady) {
26
27
  return _jsx("p", { children: "Loading..." });
27
28
  }
28
- return (_jsx(Provider, { children: _jsx(C4OutboundConnectorDetails, { connectorType: connectorType, showMetrics: checkClusterVersion('8.10.0-alpha3') }) }));
29
+ return (_jsx(Provider, { children: _jsx(C4OutboundConnectorDetails, { connectorType: connectorType, showMetrics: checkClusterVersion(CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION) }) }));
29
30
  }, [
30
31
  Provider,
31
32
  checkClusterVersion,