@camunda/ccma-saas-frontend 0.16.0 → 0.17.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 (101) hide show
  1. package/lib/esm/components/c4-audit-log/c4-audit-log.js +53 -42
  2. package/lib/esm/components/c4-billing-page/c4-billing-page.js +5 -1
  3. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +8 -3
  4. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +10 -0
  5. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +9 -1
  6. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +13 -5
  7. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +14 -0
  8. package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +18 -0
  9. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +18 -7
  10. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +2 -2
  11. package/lib/esm/components/c4-cluster-overview/applications.d.ts +16 -0
  12. package/lib/esm/components/c4-cluster-overview/applications.js +39 -1
  13. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +5 -2
  14. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +8 -5
  15. package/lib/esm/components/c4-cluster-overview/cluster-details.js +10 -2
  16. package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +4 -3
  17. package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -13
  18. package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +23 -0
  19. package/lib/esm/components/c4-cluster-overview/ds-section.js +19 -0
  20. package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +1 -1
  21. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +7 -1
  22. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +6 -1
  23. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +5 -2
  24. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +3 -5
  25. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +3 -2
  26. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +40 -15
  27. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +24 -4
  28. package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +12 -0
  29. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +2 -1
  30. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +11 -0
  31. package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +16 -0
  32. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +4 -1
  33. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -2
  34. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +6 -0
  35. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +1 -1
  36. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +1 -0
  37. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +1 -1
  38. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +13 -6
  39. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +24 -5
  40. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +4 -4
  41. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +1 -1
  42. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +1 -1
  43. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +3 -1
  44. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +7 -1
  45. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +8 -4
  46. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +6 -1
  47. package/lib/esm/components/c4-management-settings/c4-management-settings.js +58 -42
  48. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -0
  49. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +11 -10
  50. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +4 -0
  51. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +9 -1
  52. package/lib/esm/components/c4-tabs/c4-tabs.js +6 -1
  53. package/lib/esm/externalUrls.const.d.ts +1 -1
  54. package/lib/esm/externalUrls.const.js +1 -2
  55. package/lib/esm/i18n/en/modals/billing.json +2 -2
  56. package/lib/esm/i18n/en/modals/clusterclients.json +6 -6
  57. package/lib/esm/i18n/en/modals/invitations.json +1 -0
  58. package/lib/esm/i18n/en/modals/users.json +1 -0
  59. package/lib/esm/i18n/en/pages/clusterdetails.json +4 -1
  60. package/lib/esm/i18n/en/pages/createcluster.json +5 -0
  61. package/lib/esm/i18n/en/pages/dashboard.json +7 -5
  62. package/lib/esm/i18n/en/pages/orgmanagement.json +4 -0
  63. package/lib/esm/ui/ds-compact-code-block.d.ts +15 -0
  64. package/lib/esm/ui/ds-compact-code-block.js +33 -0
  65. package/lib/esm/ui/index.d.ts +13 -3
  66. package/lib/esm/ui/index.js +6 -0
  67. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +21 -3
  68. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +4 -2
  69. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
  70. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +29 -9
  71. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +5 -0
  72. package/lib/esm/widgets/cluster-details/cluster-region-code.d.ts +8 -0
  73. package/lib/esm/widgets/cluster-details/cluster-region-code.js +17 -0
  74. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +44 -6
  75. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +6 -4
  76. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +7 -0
  77. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +20 -8
  78. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +11 -10
  79. package/lib/esm/widgets/cluster-details/upgrade-gate.d.ts +23 -0
  80. package/lib/esm/widgets/cluster-details/upgrade-gate.js +36 -0
  81. package/lib/esm/widgets/cluster-details/use-upgrade-gate.d.ts +24 -0
  82. package/lib/esm/widgets/cluster-details/use-upgrade-gate.js +73 -0
  83. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +3 -0
  84. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +38 -1
  85. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +7 -5
  86. package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +3 -3
  87. package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
  88. package/lib/esm/widgets/group-details/c4-group-details-page.js +10 -3
  89. package/lib/esm/widgets/group-details/c4-group-details-page.types.d.ts +5 -0
  90. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  91. package/lib/esm/widgets/management/c4-management-app.js +16 -4
  92. package/lib/esm/widgets/management/c4-management-app.types.d.ts +6 -0
  93. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
  94. package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +3 -1
  95. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +2 -2
  96. package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
  97. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -2
  98. package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +5 -0
  99. package/package.json +9 -9
  100. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.d.ts +0 -13
  101. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +0 -26
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "desktopmodeler": {
31
31
  "title": "Desktop Modeler",
32
- "description": "Paste these credentials into Desktop Modeler when deploying a diagram to a cluster."
32
+ "description": "Paste these credentials into Desktop Modeler when deploying a diagram to a runtime environment."
33
33
  },
34
34
  "mcp": {
35
35
  "description": "Use these credentials with an MCP (Model Context Protocol) client to connect AI agents to your Camunda cluster through the <0>Orchestration Cluster MCP Server</0>."
@@ -47,7 +47,7 @@
47
47
  "scopes": {
48
48
  "label": "Scopes",
49
49
  "helperText": "Scopes define the access for client credentials.",
50
- "helperText8_8": "Granular authorizations for the Orchestration Cluster API can be managed via Orchestration Cluster Identity.",
50
+ "helperText8_8": "Granular authorizations for the Orchestration Cluster API can be managed via the Admin component of the orchestration cluster.",
51
51
  "learnMoreHelperText": "Read more about <0>Scopes for Client Credentials</0>.",
52
52
  "zeebe": "Zeebe",
53
53
  "tasklist": "Tasklist",
@@ -88,7 +88,7 @@
88
88
  "errorTitle": "Failed to create connector secret"
89
89
  },
90
90
  "clusterSecret": {
91
- "buttonText": "Save as cluster secret",
91
+ "buttonText": "Save as secret",
92
92
  "successTitle": "Cluster secret created",
93
93
  "successSubtitle": "The cluster secret has been created successfully.",
94
94
  "updateTitle": "Cluster secret updated",
@@ -97,9 +97,9 @@
97
97
  },
98
98
  "identity": {
99
99
  "step1Header": "Step 1: Select a format and save your credentials",
100
- "step2Header": "Step 2: Copy the client ID over to Identity and set authorizations",
101
- "step2Description": "Navigate to the cluster’s Identity to set up authorizations for the client ID. Paste the ID and configure the required access and roles. You will still be able to access the client ID after closing this message window.",
102
- "buttonText": "Configure authorizations in Identity"
100
+ "step2Header": "Step 2: Copy the client ID over to Admin and set authorizations",
101
+ "step2Description": "Navigate to the Admin component to set up authorizations for the client ID. Paste the ID and configure the required access and roles. You will still be able to access the client ID after closing this message window.",
102
+ "buttonText": "Configure authorizations in Admin"
103
103
  }
104
104
  },
105
105
  "rotate": {
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "roles": "Select role(s) to the platform",
23
23
  "clusterAuthDisabledNote": "If cluster authorizations are disabled, the user will have full access to the cluster and its components.",
24
+ "environmentAuthDisabledNote": "If authorizations are disabled for the environment's cluster, the user will have full access to the environment and its applications.",
24
25
  "moreRoles": "Select additional role(s) to clusters on version 8.7 or older",
25
26
  "rolesInvalid": {
26
27
  "atleastone": "Please select at least one role"
@@ -7,6 +7,7 @@
7
7
  },
8
8
  "notification": {
9
9
  "title": "Starting with version 8.8, user access to clusters is managed independently.",
10
+ "titleEnvironments": "Starting with version 8.8, user access to environments is managed independently.",
10
11
  "learnMore": "Learn more"
11
12
  },
12
13
  "form": {
@@ -421,7 +421,10 @@
421
421
  "noUpdate": "No updates available - running on latest available version",
422
422
  "updateAvailable": "Review Update",
423
423
  "updateAvailableNoPermission": "Contact the organization admin to update.",
424
- "updateAvailableWaitNeeded": "To ensure cluster stabilization, your cluster can only be upgraded in {{ hours }} hours, at {{ endDate }}. <0>Learn more</0>"
424
+ "updateAvailableWaitNeeded": "To ensure cluster stabilization, your cluster can only be upgraded in {{ hours }} hours, at {{ endDate }}. <0>Learn more</0>",
425
+ "updateAvailableWaitChecking": "Checking if your cluster is ready for an update.",
426
+ "updateAvailableWaitReadiness": "Your cluster is still finishing its last update. You can update it again when that is done.",
427
+ "updateAvailableWaitUnknown": "We could not check if your cluster is ready for an update. We will try again in a moment."
425
428
  },
426
429
  "hardwarePackages": "Number of allocated Hardware Packages"
427
430
  },
@@ -28,6 +28,11 @@
28
28
  "clusterPlanType": {
29
29
  "title": "Select a cluster type"
30
30
  },
31
+ "clusterPlan": {
32
+ "title": "Cluster plan",
33
+ "defaultLabel": "Plan type default",
34
+ "description": "These cluster plans are unlocked for your organization. The cluster still uses a reservation of the selected cluster type."
35
+ },
31
36
  "hardwarePackages": {
32
37
  "title": "Cluster size",
33
38
  "description": "Increase the cluster size to enhance performance and capacity. Each size increase uses an additional reservation slot.",
@@ -2,10 +2,11 @@
2
2
  "title": "Camunda Console",
3
3
  "welcome": {
4
4
  "title": "Welcome to Camunda!",
5
- "text": "<p>This is the Console, where you can manage users and clusters. Clusters host processes and instances of Tasklist, Operate, and Optimize. You have a few options to get started:</p>",
6
- "item1": "<strong>Model a process</strong>: Jump straight into Modeler and explore at your own pace. For additional in-app guidance, disable your ad blocker and enable analytics cookies.",
7
- "item2": "<strong>Getting Started Guide</strong>: Our guides walk you through each step of orchestrating a process.",
8
- "item3": "<strong>Watch a demo</strong>: The Camunda Academy has free, on-demand content like a 25-minute product demo.",
5
+ "text": "<p>This is the Console, where you manage users and clusters. Clusters are the infrastructure you deploy your processes to. Each cluster runs your processes and hosts Operate, Tasklist, Optimize, and Admin. You have a few options to get started:</p>",
6
+ "item1": "<strong>Create a workspace</strong>: Workspaces bring your team and projects together in one place.",
7
+ "item2": "<strong>Model a process</strong>: Open a project in your workspace and model your first process.",
8
+ "item3": "<strong>Review the Getting Started Guide</strong>: Our guides walk you through each step of orchestrating a process.",
9
+ "item4": "<strong>Watch a demo</strong>: The Camunda Academy has free, on-demand content like a 25-minute product demo.",
9
10
  "gsg": "Getting Started Guide",
10
11
  "watchADemo": "Watch a demo",
11
12
  "cta": "Model a process"
@@ -76,7 +77,8 @@
76
77
  "users": {
77
78
  "title": "Users",
78
79
  "viewAll": "View all",
79
- "alone": "You are the only user in this organization. <br /><br />Invite other users to help design, execute, and improve your processes.<br /><br /><1>Invite a user</1>",
80
+ "alone": "You are the only user in this organization. Invite other users to help design, execute, and improve your processes.",
81
+ "inviteUser": "Invite a user",
80
82
  "text": "There are currently {{usersAmount}} {{pluralize}} in your organization.",
81
83
  "user": "User",
82
84
  "users": "Users",
@@ -42,6 +42,10 @@
42
42
  "text1": "For clusters running 8.8 or above, authorizations must be managed in the Identity cluster component.",
43
43
  "text2": "For clusters running 8.3 to 8.7, authorizations can be managed here and will be applied when the cluster’s settings enable resource-based authorizations.",
44
44
  "link": "Learn more about managing authorizations"
45
+ },
46
+ "environmentsNotice": {
47
+ "title": "Organization group management updates for environments on version 8.8 or higher",
48
+ "description": "Starting with version 8.8, groups created in Console are no longer recommended for use. Instead, user groups and authorizations must be managed in the Admin application of an environment."
45
49
  }
46
50
  },
47
51
  "users": {
@@ -0,0 +1,15 @@
1
+ import { CodeBlock } from '@camunda/design-system';
2
+ import type { ComponentProps, CSSProperties, JSX } from 'react';
3
+ /**
4
+ * ds-mode only. A single-line DS `CodeBlock` with less vertical padding and a
5
+ * vertically centered copy button, for a value in a row next to its label.
6
+ *
7
+ * The DS `CodeBlock` pads its box by 12px on every side, which makes a
8
+ * one-line value taller than the other rows. Its `className` only reaches the
9
+ * inner `pre`, so the wrapper sets a 6px vertical padding on the box and
10
+ * centers the copy button vertically. It depends on the CodeBlock markup,
11
+ * which `src/ui/ds-markup-contract.spec.tsx` pins.
12
+ */
13
+ export declare function DsCompactCodeBlock({ maxWidth, ...props }: Omit<ComponentProps<typeof CodeBlock>, 'variant'> & {
14
+ maxWidth?: CSSProperties['maxWidth'];
15
+ }): JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx } 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 { CodeBlock } from '@camunda/design-system';
8
+ import styled from 'styled-components';
9
+ const Frame = styled.div `
10
+ min-width: 0;
11
+
12
+ & [data-slot='code-block'] {
13
+ padding-block: 0.375rem;
14
+ }
15
+
16
+ & [data-slot='code-block'] > button {
17
+ top: 50%;
18
+ transform: translateY(-50%);
19
+ }
20
+ `;
21
+ /**
22
+ * ds-mode only. A single-line DS `CodeBlock` with less vertical padding and a
23
+ * vertically centered copy button, for a value in a row next to its label.
24
+ *
25
+ * The DS `CodeBlock` pads its box by 12px on every side, which makes a
26
+ * one-line value taller than the other rows. Its `className` only reaches the
27
+ * inner `pre`, so the wrapper sets a 6px vertical padding on the box and
28
+ * centers the copy button vertically. It depends on the CodeBlock markup,
29
+ * which `src/ui/ds-markup-contract.spec.tsx` pins.
30
+ */
31
+ export function DsCompactCodeBlock({ maxWidth, ...props }) {
32
+ return (_jsx(Frame, { style: maxWidth === undefined ? undefined : { maxWidth }, children: _jsx(CodeBlock, { variant: 'single', ...props }) }));
33
+ }
@@ -19,8 +19,17 @@ export declare const ListItem: ComponentType<import("@carbon/react").ListItemPro
19
19
  export declare const Loading: ComponentType<import("@carbon/react").LoadingProps>;
20
20
  export declare const Modal: ComponentType<import("@carbon/react").ModalProps & import("react").RefAttributes<HTMLDivElement>>;
21
21
  export declare const ComposedModal: ComponentType<import("@carbon/react").ComposedModalProps & import("react").RefAttributes<HTMLDivElement>>;
22
- export declare const ModalHeader: ComponentType<import("@carbon/react").ModalHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
23
- export declare const ModalBody: ComponentType<import("@carbon/react").ModalBodyProps & import("react").RefAttributes<HTMLDivElement>>;
22
+ export declare const ModalHeader: ComponentType<Omit<import("@carbon/react").ModalHeaderProps & {
23
+ ref?: React.Ref<HTMLDivElement>;
24
+ }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
25
+ export declare const ModalBody: ComponentType<Omit<{
26
+ children?: React.ReactNode;
27
+ className?: string;
28
+ hasForm?: boolean;
29
+ hasScrollingContent?: boolean;
30
+ } & import("react").HTMLAttributes<HTMLDivElement> & {
31
+ ref?: React.Ref<HTMLDivElement>;
32
+ }, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
24
33
  export declare const ModalFooter: ComponentType<import("@carbon/react").ModalFooterProps & import("react").RefAttributes<HTMLElement>>;
25
34
  export declare const MultiSelect: typeof CarbonMultiSelect;
26
35
  export declare const FilterableMultiSelect: typeof CarbonFilterableMultiSelect;
@@ -41,4 +50,5 @@ export declare const Tile: ComponentType<import("@carbon/react").TileProps & imp
41
50
  export declare const Toggle: ComponentType<import("@carbon/react").ToggleProps>;
42
51
  export declare const UnorderedList: ComponentType<import("@carbon/react").UnorderedListProps>;
43
52
  export declare const Tooltip: typeof CarbonTooltip;
44
- export {};
53
+ export { Badge as DsBadge, Card as DsCard, CodeBlock as DsCodeBlock, Heading as DsHeading, Popover as DsPopover, PopoverContent as DsPopoverContent, PopoverDescription as DsPopoverDescription, PopoverHeader as DsPopoverHeader, PopoverTitle as DsPopoverTitle, PopoverTrigger as DsPopoverTrigger, Progress as DsProgress, Text as DsText, } from '@camunda/design-system';
54
+ export { DsCompactCodeBlock } from './ds-compact-code-block.js';
@@ -160,3 +160,9 @@ function C4Tooltip(props) {
160
160
  return createElement(DsTooltip, dsProps);
161
161
  }
162
162
  export const Tooltip = C4Tooltip;
163
+ // ds-mode only. DS leaves with no carbon counterpart, for the ds branch of a
164
+ // transformation component (one that branches on `useC4DesignSystem()`). A
165
+ // carbon branch must not render them. Import them from here, not from the DS
166
+ // package, so feature code keeps one import point for UI.
167
+ export { Badge as DsBadge, Card as DsCard, CodeBlock as DsCodeBlock, Heading as DsHeading, Popover as DsPopover, PopoverContent as DsPopoverContent, PopoverDescription as DsPopoverDescription, PopoverHeader as DsPopoverHeader, PopoverTitle as DsPopoverTitle, PopoverTrigger as DsPopoverTrigger, Progress as DsProgress, Text as DsText, } from '@camunda/design-system';
168
+ export { DsCompactCodeBlock } from './ds-compact-code-block.js';
@@ -4,7 +4,7 @@ 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 { AuditLoggerService, ConsoleAlertsService, ConsoleByomMonitoringService, ConsoleClusterParametersService, ConsoleClusterService, HdpService, HttpError, SaaSJobsService, } from '@camunda/ccma-api';
7
+ import { AuditLoggerService, ConsoleAlertsService, ConsoleByomMonitoringService, ConsoleClusterParametersService, ConsoleClusterService, GenerationService, HdpService, HttpError, SaaSJobsService, } from '@camunda/ccma-api';
8
8
  import { AUDIT_LOG_TAB_MIN_VERSION, CLUSTER_STATISTICS_CONFIG_MIN_VERSION, checkVersion, deriveEncryptionStatus, deriveSecondaryStorageStatus, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
9
9
  import { observer } from 'mobx-react-lite';
10
10
  import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
@@ -22,6 +22,7 @@ import { useClusterApiClients } from '../environment/use-cluster-api-clients.js'
22
22
  import { useClusterVersionFlags } from '../environment/use-cluster-version-flags.js';
23
23
  import { C4ClusterDetailsPage } from './c4-cluster-details-page.js';
24
24
  import { clusterDetailsTab } from './cluster-details-tabs.js';
25
+ import { getClusterRegionCode } from './cluster-region-code.js';
25
26
  import { C4ClusterDetailsActivityTab } from './tabs/c4-cluster-details-activity-tab.js';
26
27
  import { C4ClusterDetailsAlertsTab } from './tabs/c4-cluster-details-alerts-tab.js';
27
28
  import { C4ClusterDetailsAuditLogTab } from './tabs/c4-cluster-details-audit-log-tab.js';
@@ -34,6 +35,7 @@ import { C4ClusterDetailsIpWhitelistTab } from './tabs/c4-cluster-details-ip-whi
34
35
  import { C4ClusterDetailsOverviewTab } from './tabs/c4-cluster-details-overview-tab.js';
35
36
  import { C4ClusterDetailsSecureConnectivityTab } from './tabs/c4-cluster-details-secure-connectivity-tab.js';
36
37
  import { C4ClusterDetailsSettingsTab } from './tabs/c4-cluster-details-settings-tab.js';
38
+ import { useUpgradeGate } from './use-upgrade-gate.js';
37
39
  function renderInlineStrong(value) {
38
40
  const match = value.match(/^(.*)<strong>(.*)<\/strong>(.*)$/);
39
41
  if (!match)
@@ -288,6 +290,7 @@ function isUnsupportedGenerationStarted(isUnsupportedStarting) {
288
290
  export const C4ClusterDetailsApp = observer((props) => {
289
291
  const runtime = useC4ConsoleRuntime();
290
292
  const clusterCreationBlocked = useC4FeatureFlag(CLUSTER_CREATION_BLOCKED_FLAG);
293
+ const upgradeReadinessGateEnabled = useC4FeatureFlag('console.upgradeReadinessGate');
291
294
  const data = useC4ConsoleData();
292
295
  const t = runtime.i18n?.t;
293
296
  const urls = useMemo(() => getC4ClusterDetailsUrls(props.urls), [props.urls]);
@@ -1016,6 +1019,19 @@ export const C4ClusterDetailsApp = observer((props) => {
1016
1019
  const orgInfo = data.getOrgInfo(props.orgId);
1017
1020
  const clustersOfOrg = data.getClusters(props.orgId);
1018
1021
  const ignoreGracePeriod = Boolean(orgInfo?.organizationToSalesPlan?.limits?.ignoreGracePeriod);
1022
+ // This app loads its own data with `apiConfig`, like
1023
+ // `reloadStatisticsConfig` above. The tabs stay presentational.
1024
+ const upgradeGate = useUpgradeGate({
1025
+ enabled: upgradeReadinessGateEnabled,
1026
+ clusterId: props.clusterId,
1027
+ generationUuid: cluster?.generation?.uuid,
1028
+ status: cluster?.status?.ready,
1029
+ read: () => GenerationService.getUpgradeReadiness({
1030
+ orgId: props.orgId,
1031
+ clusterId: props.clusterId,
1032
+ config: apiConfig,
1033
+ }),
1034
+ });
1019
1035
  const clusterPlanTypeReservations = orgInfo?.organizationToSalesPlan
1020
1036
  ?.clusterPlanTypesToReserved;
1021
1037
  // A duplicate makes a cluster, thus it needs the create permission and not
@@ -1045,7 +1061,7 @@ export const C4ClusterDetailsApp = observer((props) => {
1045
1061
  }
1046
1062
  return _jsx(_Fragment, {});
1047
1063
  }
1048
- return (_jsx(C4ClusterDetailsOverviewTab, { cluster: cluster, clusterError: clusterError, creationParameters: creationParameters, clustersOfOrg: clustersOfOrg, clusterPlanTypeReservations: clusterPlanTypeReservations, clusterLoadLatest: clusterLoadLatest, clusterLoadPerDay: clusterLoadPerDay, clusterLoad24h: clusterLoad24h, clusterLoadLoading: clusterLoadLoading, canSeeClusterLoad: canSeeClusterLoad, canEditCluster: Boolean(authz.visibilities.clusters?.canEdit), canWakeCluster: Boolean(authz.visibilities.clusters?.canWake), canSleepCluster: Boolean(authz.visibilities.clusters?.canSleep), canManageUsers: canManageUsers, canViewConnectorsLink: Boolean(orgPermissions?.cluster.connectors.read), hasIdentityIntegration: hasIdentityIntegration, orgId: props.orgId, clusterId: props.clusterId, jobDashboardEnabled: true, upgradeDocsUrls: urls.docs.upgrade, statisticsConfig: statisticsConfig, apiConfig: apiConfig, t: t ?? ((key) => key), onReloadCluster: reloadCluster, onReloadClusterLoad: reloadClusterLoad, onNavigate: props.onNavigate, ignoreGracePeriod: ignoreGracePeriod, clusterLoadDocsUrl: urls.docs.clusterLoad, restoreInProgress: cluster?.restoreInProgress, overviewSection: props.overviewSection, sectionVariant: props.sectionVariant }));
1064
+ return (_jsx(C4ClusterDetailsOverviewTab, { cluster: cluster, clusterError: clusterError, creationParameters: creationParameters, clustersOfOrg: clustersOfOrg, clusterPlanTypeReservations: clusterPlanTypeReservations, clusterLoadLatest: clusterLoadLatest, clusterLoadPerDay: clusterLoadPerDay, clusterLoad24h: clusterLoad24h, clusterLoadLoading: clusterLoadLoading, canSeeClusterLoad: canSeeClusterLoad, canEditCluster: Boolean(authz.visibilities.clusters?.canEdit), canWakeCluster: Boolean(authz.visibilities.clusters?.canWake), canSleepCluster: Boolean(authz.visibilities.clusters?.canSleep), canManageUsers: canManageUsers, canViewConnectorsLink: Boolean(orgPermissions?.cluster.connectors.read), hasIdentityIntegration: hasIdentityIntegration, orgId: props.orgId, clusterId: props.clusterId, jobDashboardEnabled: true, upgradeDocsUrls: urls.docs.upgrade, statisticsConfig: statisticsConfig, apiConfig: apiConfig, t: t ?? ((key) => key), onReloadCluster: reloadCluster, onReloadClusterLoad: reloadClusterLoad, onNavigate: props.onNavigate, ignoreGracePeriod: ignoreGracePeriod, upgradeGate: upgradeGate, clusterLoadDocsUrl: urls.docs.clusterLoad, restoreInProgress: cluster?.restoreInProgress, overviewSection: props.overviewSection, sectionVariant: props.sectionVariant }));
1049
1065
  }, [
1050
1066
  apiConfig,
1051
1067
  authz.visibilities.clusters?.canEdit,
@@ -1064,6 +1080,7 @@ export const C4ClusterDetailsApp = observer((props) => {
1064
1080
  canSeeClusterLoad,
1065
1081
  hasIdentityIntegration,
1066
1082
  ignoreGracePeriod,
1083
+ upgradeGate,
1067
1084
  orgPermissions?.cluster.connectors.read,
1068
1085
  statisticsConfig,
1069
1086
  props.clusterId,
@@ -1514,6 +1531,7 @@ export const C4ClusterDetailsApp = observer((props) => {
1514
1531
  // `generation.name` already reads "Camunda 8.10.0-alpha4" — the org's Clusters list renders it
1515
1532
  // verbatim as the Generation column, so this does too rather than prefixing "Camunda" again.
1516
1533
  const headerVersionLabel = cluster?.generation?.name;
1534
+ const headerRegionCode = getClusterRegionCode(cluster);
1517
1535
  // primaryBanner takes priority — an active restore, an unmaintained
1518
1536
  // generation, or disabled authorizations all matter more than a
1519
1537
  // one-time "update your endpoint" nudge.
@@ -1537,7 +1555,7 @@ export const C4ClusterDetailsApp = observer((props) => {
1537
1555
  tabId: next,
1538
1556
  });
1539
1557
  };
1540
- return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsPage, { loading: isClusterLoading || authz.isLoading, padding: props.padding, clusterName: cluster?.name, phaseTag: headerPhaseTag, healthStatus: headerHealthStatus, versionLabel: headerVersionLabel, isDevelopmentPlan: cluster?.planType?.development, urls: { clusters: urls.clusters }, onNavigateToClusters: () => props.onNavigate?.({ kind: 'clusters', orgId: props.orgId }), menu: {
1558
+ return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsPage, { loading: isClusterLoading || authz.isLoading, padding: props.padding, clusterName: cluster?.name, phaseTag: headerPhaseTag, healthStatus: headerHealthStatus, versionLabel: headerVersionLabel, regionCode: headerRegionCode, isDevelopmentPlan: cluster?.planType?.development, urls: { clusters: urls.clusters }, onNavigateToClusters: () => props.onNavigate?.({ kind: 'clusters', orgId: props.orgId }), menu: {
1541
1559
  canRename,
1542
1560
  canDelete,
1543
1561
  canDuplicate,
@@ -53,8 +53,10 @@ export interface C4ClusterDetailsAppProps {
53
53
  /**
54
54
  * `'tile'` (default) renders the Components, Cluster Details, Cluster
55
55
  * Load, and Jobs sections each inside their own bordered card — Console's
56
- * own look. `'plain'` drops those cards in favor of bare headings, for a
57
- * host whose `overviewSection` already renders a bare heading of its own.
56
+ * own look. `'plain'` is for a host whose `overviewSection` renders a
57
+ * heading of its own. In carbon mode it drops those cards in favor of bare
58
+ * headings. In ds mode every section gets the shared 18px heading on top,
59
+ * and Cluster Load and Jobs show their content in a DS card.
58
60
  */
59
61
  sectionVariant?: 'tile' | 'plain';
60
62
  /**
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4ClusterDetailsPageProps } from './c4-cluster-details-page.types.js';
3
- export declare const C4ClusterDetailsPage: ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, urls, onNavigateToClusters, menu, banner, secondaryReplicationNotReady, onGoToEncryptionTab, tabs, padding, }: C4ClusterDetailsPageProps) => JSX.Element;
3
+ export declare const C4ClusterDetailsPage: ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, regionCode, urls, onNavigateToClusters, menu, banner, secondaryReplicationNotReady, onGoToEncryptionTab, tabs, padding, }: C4ClusterDetailsPageProps) => JSX.Element;
@@ -1,16 +1,15 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  /*
3
3
  * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
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';
8
7
  import { WarningAltFilled } from '@carbon/react/icons/index.esm.js';
9
8
  import { TriangleAlert } from 'lucide-react';
10
- import { ClusterStatusElement } from '../../components/c4-cluster-overview/applications.js';
9
+ import { ClusterStatusElement, getDsClusterStatusBadge, } from '../../components/c4-cluster-overview/applications.js';
11
10
  import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
12
11
  import { useC4ConsoleRuntime, useC4DesignSystem, } from '../../runtime/c4-console-runtime-context.js';
13
- import { BreadcrumbSkeleton, ClusterTag, Link, SkeletonText, Stack, TabsSkeleton, Tooltip, } from '../../ui/index.js';
12
+ import { BreadcrumbSkeleton, ClusterTag, DsBadge, DsPopover, DsPopoverContent, DsPopoverDescription, DsPopoverHeader, DsPopoverTitle, DsPopoverTrigger, Link, SkeletonText, Stack, TabsSkeleton, Tooltip, } from '../../ui/index.js';
14
13
  import { safeTranslate } from '../../utils/safe-translate.js';
15
14
  const breadCrumbWrapperStyles = {
16
15
  minHeight: '40px',
@@ -153,7 +152,7 @@ function AuthorizationsDisabledIndicator(props) {
153
152
  }
154
153
  };
155
154
  if (designSystem === 'ds') {
156
- 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 })] })] }));
155
+ return (_jsxs(DsPopover, { children: [_jsx(DsPopoverTrigger, { 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(DsPopoverContent, { align: 'end', className: 'w-80', children: [_jsxs(DsPopoverHeader, { children: [_jsx(DsPopoverTitle, { children: title }), _jsx(DsPopoverDescription, { children: subtitle })] }), _jsx(Link, { href: banner.docsUrl, target: '_blank', rel: 'noopener noreferrer', onClick: onLearnMoreClick, children: actionLabel })] })] }));
157
156
  }
158
157
  return (_jsx("div", { style: {
159
158
  '--cds-background-inverse': 'var(--cds-layer)',
@@ -210,13 +209,28 @@ const clusterHeaderBadges = ({ phaseTag, healthStatus, versionLabel, }) => {
210
209
  }
211
210
  return (_jsxs(Stack, { orientation: 'horizontal', gap: 3, children: [phaseTag && _jsx(ClusterTag, { stage: phaseTag }), healthStatus && (_jsx("span", { style: headerBadgeStyle, children: _jsx(ClusterStatusElement, { status: healthStatus }) })), versionLabel && _jsx("span", { style: headerBadgeStyle, children: versionLabel })] }));
212
211
  };
213
- export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, urls, onNavigateToClusters, menu, banner, secondaryReplicationNotReady, onGoToEncryptionTab, tabs, padding = 'default', }) => {
212
+ /**
213
+ * The badges under the cluster name in ds mode. Every badge is a DS `Badge`
214
+ * with a normal font weight, as in the cluster and environment headers of Hub:
215
+ * development plan (primary, first), stage tag, health, version and region.
216
+ */
217
+ const DsClusterHeaderBadges = ({ phaseTag, developmentPlanLabel, healthStatus, versionLabel, regionCode, }) => {
218
+ const status = getDsClusterStatusBadge(healthStatus);
219
+ return (_jsxs(_Fragment, { children: [developmentPlanLabel && (_jsx(DsBadge, { variant: 'primary', className: 'font-normal', children: developmentPlanLabel })), phaseTag && _jsx(ClusterTag, { stage: phaseTag }), status && (_jsxs(DsBadge, { variant: status.variant, className: 'gap-1 font-normal', children: [_jsx(status.icon, { "aria-hidden": true }), status.label] })), versionLabel && (_jsx(DsBadge, { variant: 'neutral', className: 'font-normal', children: versionLabel })), regionCode && (_jsx(DsBadge, { variant: 'neutral', className: 'font-normal', children: regionCode }))] }));
220
+ };
221
+ export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, regionCode, urls, onNavigateToClusters, menu, banner, secondaryReplicationNotReady, onGoToEncryptionTab, tabs, padding = 'default', }) => {
214
222
  const runtime = useC4ConsoleRuntime();
223
+ const designSystem = useC4DesignSystem();
215
224
  const t = runtime.i18n?.t;
216
225
  if (loading) {
217
226
  return (_jsxs(Stack, { gap: 4, children: [_jsx("div", { style: breadCrumbWrapperStyles, children: _jsx(BreadcrumbSkeleton, {}) }), _jsx("div", { style: { width: 300, height: 36, marginBottom: 0 }, children: _jsx(SkeletonText, {}) }), _jsx(TabsSkeleton, {}, 'tabs-skeleton')] }));
218
227
  }
219
- const tag = isDevelopmentPlan
228
+ // In ds mode the development plan is a badge in the row under the name, and
229
+ // it spells out "plan" so it does not read as the `dev` stage tag.
230
+ const developmentPlanLabel = designSystem === 'ds' && isDevelopmentPlan
231
+ ? safeTranslate(t, 'c4console:clusterDetails.tag.developmentPlan', 'Development plan')
232
+ : undefined;
233
+ const tag = isDevelopmentPlan && designSystem !== 'ds'
220
234
  ? safeTranslate(t, 'c4console:clusterDetails.tag.development', 'Development')
221
235
  : '';
222
236
  const bannerProps = buildBanner({ banner, t });
@@ -232,11 +246,17 @@ export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan,
232
246
  // `authorizationsIndicator` alone used to render — no new wrapper element
233
247
  // around it, so carbon mode's existing render is untouched.
234
248
  const indicator = activeIndicators.length > 1 ? (_jsx(Stack, { orientation: 'horizontal', gap: 3, children: activeIndicators })) : (activeIndicators[0]);
235
- const subtitleBadges = clusterHeaderBadges({
249
+ // No badge row at all when the cluster has none of the facts.
250
+ const hasDsHeaderBadges = Boolean(developmentPlanLabel ||
251
+ phaseTag ||
252
+ getDsClusterStatusBadge(healthStatus) ||
253
+ versionLabel ||
254
+ regionCode);
255
+ const subtitleBadges = designSystem === 'ds' ? (hasDsHeaderBadges ? (_jsx(DsClusterHeaderBadges, { phaseTag: phaseTag, developmentPlanLabel: developmentPlanLabel, healthStatus: healthStatus, versionLabel: versionLabel, regionCode: regionCode })) : undefined) : (clusterHeaderBadges({
236
256
  phaseTag,
237
257
  healthStatus,
238
258
  versionLabel,
239
- });
259
+ }));
240
260
  return (_jsx(C4PageTemplate, { loading: loading, banner: bannerProps, header: {
241
261
  title: clusterName ?? '',
242
262
  tag,
@@ -37,6 +37,11 @@ export interface C4ClusterDetailsPageProps {
37
37
  phaseTag?: CamundaClusterStage;
38
38
  healthStatus?: ClusterStatus;
39
39
  versionLabel?: string;
40
+ /**
41
+ * The region code of the cluster, for example `europe-north1`. ds mode
42
+ * shows it as a badge after the version.
43
+ */
44
+ regionCode?: string;
40
45
  urls: {
41
46
  clusters: string;
42
47
  };
@@ -0,0 +1,8 @@
1
+ import type { ConsoleClusterDto } from '@camunda/ccma-shared-types';
2
+ /**
3
+ * The region code of a cluster, for example `europe-north1`. It is the code
4
+ * that the Region row of the Cluster Details table shows in parentheses:
5
+ * "Finland, Europe (europe-north1)". A name without parentheses falls back to
6
+ * the region of the k8s context. Gives `undefined` when neither is known.
7
+ */
8
+ export declare function getClusterRegionCode(cluster: Pick<ConsoleClusterDto, 'k8sContext'> | undefined): string | undefined;
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ /**
7
+ * The region code of a cluster, for example `europe-north1`. It is the code
8
+ * that the Region row of the Cluster Details table shows in parentheses:
9
+ * "Finland, Europe (europe-north1)". A name without parentheses falls back to
10
+ * the region of the k8s context. Gives `undefined` when neither is known.
11
+ */
12
+ export function getClusterRegionCode(cluster) {
13
+ const fromName = cluster?.k8sContext?.name
14
+ ?.match(/\(([^()]+)\)\s*$/)?.[1]
15
+ ?.trim();
16
+ return fromName || cluster?.k8sContext?.region || undefined;
17
+ }
@@ -2,11 +2,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { ConsoleByomMonitoringService, HttpError } from '@camunda/ccma-api';
3
3
  import { FormLabel, InlineLoading, Layer } from '@carbon/react';
4
4
  import { CheckmarkFilled, Information, WarningFilled, } from '@carbon/react/icons/index.esm.js';
5
+ import { CircleCheck, CircleX } from 'lucide-react';
5
6
  import { useCallback, useEffect, useMemo, useState } from 'react';
6
- import { C4ClusterByomClients } from '../../../components/c4-cluster-byom-clients/c4-cluster-byom-clients.js';
7
+ import { byomClientsShowsOwnCard, C4ClusterByomClients, } from '../../../components/c4-cluster-byom-clients/c4-cluster-byom-clients.js';
8
+ import { SpinningLoader } from '../../../components/c4-cluster-overview/ds-status-icon-text.js';
7
9
  import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
8
- import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
9
- import { Button, CodeSnippet, Modal, Stack, TextInput } from '../../../ui/index.js';
10
+ import { useC4ConsoleRuntime, useC4DesignSystem, } from '../../../runtime/c4-console-runtime-context.js';
11
+ import { Button, CodeSnippet, DsBadge, DsCard, DsCodeBlock, Modal, Stack, TextInput, } from '../../../ui/index.js';
10
12
  import { safeTranslate } from '../../../utils/safe-translate.js';
11
13
  import { SECTION_HEADING_STYLE } from '../../../utils/section-heading-style.js';
12
14
  function asByomStatusLike(value) {
@@ -34,6 +36,19 @@ function formatMetricsEndpoint(metricsEndpoint) {
34
36
  }
35
37
  export const C4ClusterDetailsByomClientsTab = (props) => {
36
38
  const runtime = useC4ConsoleRuntime();
39
+ const isDs = useC4DesignSystem() === 'ds';
40
+ // ds mode: the table view sits in a card, like the other sections of the
41
+ // cluster details page. The error and empty states of
42
+ // `C4ClusterByomClients` are an empty-state card of their own, so they get
43
+ // no second card. The component exports the condition it uses.
44
+ const wrapInDsCard = (children) => {
45
+ const showsOwnCard = byomClientsShowsOwnCard({
46
+ hasError: byomError,
47
+ isLoading: byomLoading,
48
+ clients: byomClients,
49
+ });
50
+ return isDs && !showsOwnCard ? (_jsx(DsCard, { className: 'gap-4 p-5', children: children })) : (children);
51
+ };
37
52
  const { cluster, byomClients, byomStatus, byomLoading, byomError, orgId, clusterId, apiConfig, canMutateCluster, t, onNavigate, onReloadByom, } = props;
38
53
  const trackEvent = useCallback((eventName, message, meta) => {
39
54
  runtime.telemetry?.track?.(eventName, {
@@ -196,9 +211,32 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
196
211
  })();
197
212
  const monitoringDescription = safeTranslate(t, 'clusterdetails:byomClients.monitoringDescription', 'Activate a secure metrics endpoint for the cluster and integrate it with an external monitoring system that supports Prometheus scraping.');
198
213
  const monitoringEndpointLabel = safeTranslate(t, 'clusterdetails:byomClients.monitoringEndpoint', 'Monitoring endpoint');
199
- return (_jsxs(_Fragment, { children: [_jsx(C4ClusterByomClients, { clients: byomClients, isLoading: byomLoading, hasError: byomError, text: {
214
+ const deactivateLabel = safeTranslate(t, 'clusterdetails:byomClients.deactivate', 'Deactivate');
215
+ const openDeactivate = () => {
216
+ trackEvent('byomClients:deactivate:open', 'Open Deactivate BYOM Modal');
217
+ setByomDeactivateError({ title: '', description: '' });
218
+ setByomDeactivateOpen(true);
219
+ };
220
+ // ds mode: the endpoint status is a DS badge with a lucide icon, the same
221
+ // as the status badge in the page header.
222
+ const dsStatusBadge = (() => {
223
+ switch (readyReason) {
224
+ case 'Ready':
225
+ case 'Degraded':
226
+ return (_jsxs(DsBadge, { variant: 'success', className: 'gap-1 font-normal', children: [_jsx(CircleCheck, { "aria-hidden": true }), "Ready"] }));
227
+ case 'Error':
228
+ case 'Down':
229
+ return (_jsxs(DsBadge, { variant: 'danger', className: 'gap-1 font-normal', children: [_jsx(CircleX, { "aria-hidden": true }), "Unhealthy"] }));
230
+ default:
231
+ return (_jsxs(DsBadge, { variant: 'info', className: 'gap-1 font-normal', children: [_jsx(SpinningLoader, { "aria-hidden": true }), "Creating"] }));
232
+ }
233
+ })();
234
+ // The data table renders the subtitle in a small, muted block. The parts
235
+ // that are headings or values set their own size and color.
236
+ const dsSubtitle = (_jsxs("div", { className: 'flex flex-col gap-4', children: [_jsx("p", { className: 'm-0', children: monitoringDescription }), endpointForDisplay ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'flex flex-col gap-2', children: [_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx("h2", { className: 'm-0 text-sm font-semibold text-neutral-foreground-strong', children: monitoringEndpointLabel }), dsStatusBadge] }), _jsxs("div", { className: 'flex flex-wrap items-center gap-2', children: [_jsx("div", { className: 'min-w-0 flex-1', style: { maxWidth: '44rem' }, children: _jsx(DsCodeBlock, { variant: 'single', children: endpointForDisplay }) }), _jsx(Button, { kind: 'secondary', size: 'sm', disabled: !canMutateCluster, onClick: openDeactivate, children: deactivateLabel })] })] }), _jsx("h2", { className: 'm-0 text-base font-semibold text-neutral-foreground-strong', children: "Credentials for authentication" })] })) : null] }));
237
+ return (_jsxs(_Fragment, { children: [wrapInDsCard(_jsx(C4ClusterByomClients, { clients: byomClients, isLoading: byomLoading, hasError: byomError, text: {
200
238
  title: safeTranslate(t, 'clusterdetails:byomClients.dataTableTitle', 'Cluster Monitoring endpoint activated'),
201
- subtitle: (_jsxs(Stack, { children: [_jsx("p", { children: monitoringDescription }), endpointForDisplay ? (_jsxs(_Fragment, { children: [_jsxs(Stack, { orientation: 'horizontal', style: { width: '40%' }, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: monitoringEndpointLabel }), statusComponent] }), _jsxs(Stack, { orientation: 'horizontal', children: [_jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', children: endpointForDisplay }) }), _jsx(Button, { kind: 'ghost', disabled: !canMutateCluster, onClick: () => {
239
+ subtitle: isDs ? (dsSubtitle) : (_jsxs(Stack, { children: [_jsx("p", { children: monitoringDescription }), endpointForDisplay ? (_jsxs(_Fragment, { children: [_jsxs(Stack, { orientation: 'horizontal', style: { width: '40%' }, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: monitoringEndpointLabel }), statusComponent] }), _jsxs(Stack, { orientation: 'horizontal', children: [_jsx(Layer, { children: _jsx(CodeSnippet, { type: 'single', children: endpointForDisplay }) }), _jsx(Button, { kind: 'ghost', disabled: !canMutateCluster, onClick: () => {
202
240
  trackEvent('byomClients:deactivate:open', 'Open Deactivate BYOM Modal');
203
241
  setByomDeactivateError({ title: '', description: '' });
204
242
  setByomDeactivateOpen(true);
@@ -254,7 +292,7 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
254
292
  kind: 'openUrl',
255
293
  url: props.docLink,
256
294
  });
257
- } }), _jsx(Modal, { open: byomCreateOpen, size: 'sm', modalHeading: byomActivateOnSubmit
295
+ } })), _jsx(Modal, { open: byomCreateOpen, size: 'sm', modalHeading: byomActivateOnSubmit
258
296
  ? safeTranslate(t, 'byomClients:create.title', 'Activate monitoring endpoint')
259
297
  : safeTranslate(t, 'byomClients:create.title', 'Create new credentials'), primaryButtonText: byomActivateOnSubmit
260
298
  ? safeTranslate(t, 'byomClients:create.activate', 'Activate')
@@ -5,6 +5,7 @@ import { useCallback, useMemo, useState } from 'react';
5
5
  import { C4ClusterClientCredentialsModal } from '../../../components/c4-cluster-client-credentials/c4-cluster-client-credentials.js';
6
6
  import { C4ClusterClientCredentialsIdentityModal } from '../../../components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js';
7
7
  import { C4ClusterDetailsClients } from '../../../components/c4-cluster-details-clients/c4-cluster-details-clients.js';
8
+ import { ScopesDescriptionText } from '../../../components/c4-create-cluster-api-client-modal/scopes-description-text.js';
8
9
  import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
9
10
  import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
10
11
  import { Checkbox, Form, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
@@ -293,7 +294,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
293
294
  });
294
295
  }, children: "Learn more about authorizations" }) })] })), clientMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'clusterclients:create.error.title', 'Error'), subtitle: clientMutationError, hideCloseButton: true, lowContrast: true })), _jsx(TextInput, { id: 'clusterClientName-create', name: 'name', "data-modal-primary-focus": true, labelText: safeTranslate(t, 'clusterclients:create.fields.name.label', 'Client Name'), maxLength: 50, value: clientName, placeholder: safeTranslate(t, 'clusterclients:create.fields.name.label', 'Client Name'), helperText: safeTranslate(t, 'clusterclients:create.fields.name.helperText', 'can contain letters, dashes, underscores, and digits'), invalid: Boolean(clientNameTouched && validateClientName(clientName)), invalidText: (clientNameTouched && validateClientName(clientName)) ?? '', onChange: (event) => {
295
296
  setClientName(event.target.value);
296
- }, onBlur: () => setClientNameTouched(true) }), _jsxs(Stack, { gap: 2, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: safeTranslate(t, 'clusterclients:create.fields.scopes.label', 'Scopes') }), _jsx("p", { children: safeTranslate(t, 'clusterclients:create.fields.scopes.helperText', 'Scopes define the access for client credentials.') }), hasIdentityIntegration && (_jsx("p", { children: safeTranslate(t, 'clusterclients:create.fields.scopes.helperText8_8', 'Granular authorizations for the Orchestration Cluster API can be managed via Orchestration Cluster Identity.') })), _jsx("div", { style: { marginBottom: '8px' }, children: renderInlineLink(safeTranslate(t, 'clusterclients:create.fields.scopes.learnMoreHelperText', 'Read more about <0>Scopes for Client Credentials</0>.'), {
297
+ }, onBlur: () => setClientNameTouched(true) }), _jsxs(Stack, { gap: 2, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: safeTranslate(t, 'clusterclients:create.fields.scopes.label', 'Scopes') }), _jsx(ScopesDescriptionText, { as: 'p', children: safeTranslate(t, 'clusterclients:create.fields.scopes.helperText', 'Scopes define the access for client credentials.') }), hasIdentityIntegration && (_jsx(ScopesDescriptionText, { as: 'p', children: safeTranslate(t, 'clusterclients:create.fields.scopes.helperText8_8', 'Granular authorizations for the Orchestration Cluster API can be managed via the Admin component of the orchestration cluster.') })), _jsx(ScopesDescriptionText, { as: 'div', style: { marginBottom: '8px' }, children: renderInlineLink(safeTranslate(t, 'clusterclients:create.fields.scopes.learnMoreHelperText', 'Read more about <0>Scopes for Client Credentials</0>.'), {
297
298
  href: clientsDocsUrl,
298
299
  onNavigate,
299
300
  labelFallback: 'Scopes for Client Credentials',
@@ -467,7 +468,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
467
468
  toHostWithoutProtocol(cluster?.status?.zeebeRestUrl);
468
469
  const downloadLabel = safeTranslate(t, 'clusterclients:create.download.buttonText', 'Download credentials');
469
470
  const saveAsSecretLabel = useClusterSecretsLabel
470
- ? safeTranslate(t, 'clusterclients:create.clusterSecret.buttonText', 'Save as cluster secret')
471
+ ? safeTranslate(t, 'clusterclients:create.clusterSecret.buttonText', 'Save as secret')
471
472
  : safeTranslate(t, 'clusterclients:create.connectorSecret.buttonText', 'Save as connector secret');
472
473
  const saveSecret = async () => {
473
474
  trackEvent('apiClients:createConnectorSecret', 'Save credentials as secret', { clientId });
@@ -556,6 +557,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
556
557
  `export ZEEBE_CLIENT_SECRET='${clientSecret}'`,
557
558
  `export ZEEBE_AUTHORIZATION_SERVER_URL='${oauthTokenUrl}'`,
558
559
  `export ZEEBE_REST_ADDRESS='${zeebeRestAddress}'`,
560
+ `export CAMUNDA_BASE_URL='${zeebeRestAddress}'`,
559
561
  `export ZEEBE_GRPC_ADDRESS='${zeebeGrpcAddress}'`,
560
562
  `export ZEEBE_TOKEN_AUDIENCE='${tokenAudience}'`,
561
563
  `export CAMUNDA_TOKEN_AUDIENCE='${tokenAudience}'`,
@@ -704,7 +706,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
704
706
  key: 'desktopmodeler',
705
707
  tabTitle: safeTranslate(t, 'clusterclients:create.generated.desktopmodeler.title', 'Desktop Modeler'),
706
708
  type: 'items',
707
- description: safeTranslate(t, 'clusterclients:create.generated.desktopmodeler.description', 'Paste these credentials into Desktop Modeler when deploying a diagram to a cluster.'),
709
+ description: safeTranslate(t, 'clusterclients:create.generated.desktopmodeler.description', 'Paste these credentials into Desktop Modeler when deploying a diagram to a runtime environment.'),
708
710
  notificationText: safeTranslate(t, 'clusterclients:create.warning', 'The client secret will not be shown again.'),
709
711
  items: [
710
712
  {
@@ -822,7 +824,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
822
824
  setClientCreateResponse(undefined);
823
825
  setClientCreatedName('');
824
826
  setClientCreatedScopes([]);
825
- }, step1Header: safeTranslate(t, 'clusterclients:create.identity.step1Header', 'Step 1: Select a format and save your credentials'), step2Header: safeTranslate(t, 'clusterclients:create.identity.step2Header', 'Step 2: Copy the client ID over to Identity and set authorizations'), step2Description: safeTranslate(t, 'clusterclients:create.identity.step2Description', 'Navigate to the cluster’s Identity to set up authorizations for the client ID. Paste the ID and configure the required access and roles. You will still be able to access the client ID after closing this message window.'), clientId: clientId, notificationText: safeTranslate(t, 'clusterclients:create.warning', 'The client secret will not be shown again.'), identityButtonText: safeTranslate(t, 'clusterclients:create.identity.buttonText', 'Configure authorizations in Identity'), identityLink: cluster?.status?.identityUrl ?? '', variants: variantsIdentity }));
827
+ }, step1Header: safeTranslate(t, 'clusterclients:create.identity.step1Header', 'Step 1: Select a format and save your credentials'), step2Header: safeTranslate(t, 'clusterclients:create.identity.step2Header', 'Step 2: Copy the client ID over to Admin and set authorizations'), step2Description: safeTranslate(t, 'clusterclients:create.identity.step2Description', 'Navigate to the Admin component to set up authorizations for the client ID. Paste the ID and configure the required access and roles. You will still be able to access the client ID after closing this message window.'), clientId: clientId, notificationText: safeTranslate(t, 'clusterclients:create.warning', 'The client secret will not be shown again.'), identityButtonText: safeTranslate(t, 'clusterclients:create.identity.buttonText', 'Configure authorizations in Admin'), identityLink: cluster?.status?.identityUrl ?? '', variants: variantsIdentity }));
826
828
  }
827
829
  return (_jsx(C4ClusterClientCredentialsModal, { isOpen: Boolean(clientCreateResponse), heading: heading, onRequestClose: () => {
828
830
  trackEvent('apiClients:create:cancel', 'Cancel Create Api Client Modal');