@camunda/ccma-saas-frontend 0.0.35 → 0.0.37
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.
- package/lib/esm/assetUrls.d.ts +19 -0
- package/lib/esm/assetUrls.js +41 -0
- package/lib/esm/assets/ai.svg +14 -0
- package/lib/esm/assets/alerts.svg +5 -0
- package/lib/esm/assets/auditlogs.svg +9 -0
- package/lib/esm/assets/backup.svg +3 -0
- package/lib/esm/assets/clientApi.svg +10 -0
- package/lib/esm/assets/cluster.svg +4 -0
- package/lib/esm/assets/connectorSecret.svg +3 -0
- package/lib/esm/assets/consoleAPI.svg +3 -0
- package/lib/esm/assets/error.svg +11 -0
- package/lib/esm/assets/fatalError.svg +5 -0
- package/lib/esm/assets/ipwhitelist.svg +3 -0
- package/lib/esm/assets/monitoring.svg +6 -0
- package/lib/esm/assets/operatePreview.jpg +0 -0
- package/lib/esm/assets/optimizePreview.jpg +0 -0
- package/lib/esm/assets/secureConnectivity.svg +11 -0
- package/lib/esm/assets/tasklistPreview.jpg +0 -0
- package/lib/esm/assets/upgrade.svg +4 -0
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +2 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +3 -2
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +3 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +3 -2
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +3 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +5 -4
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +10 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +39 -28
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +2 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.js +87 -0
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +5 -1
- package/lib/esm/components/c4-cluster-overview/applications.js +52 -3
- package/lib/esm/components/c4-cluster-overview/applications.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +26 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +8 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +26 -7
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +4 -3
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +21 -7
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +116 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +2 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.js +2 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +2 -1
- package/lib/esm/externalUrls.const.d.ts +2 -1
- package/lib/esm/externalUrls.const.js +2 -1
- package/lib/esm/i18n/c4-console-i18n.js +0 -5
- package/lib/esm/i18n/en/modals/clusterclients.json +3 -0
- package/lib/esm/i18n/en/pages/clusterdetails.json +17 -1
- package/lib/esm/i18n/en/pages/createcluster.json +3 -2
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +17 -0
- package/lib/esm/runtime/build-cluster-swagger-url.js +44 -0
- package/lib/esm/runtime/c4-console-authz.d.ts +1 -0
- package/lib/esm/runtime/c4-console-authz.js +4 -3
- package/lib/esm/runtime/c4-console-authz.spec.js +6 -2
- package/lib/esm/runtime/to-api-domain.d.ts +25 -0
- package/lib/esm/runtime/to-api-domain.js +46 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +10 -11
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +0 -11
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +21 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +19 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +50 -20
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +142 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +33 -41
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +64 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +34 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +74 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +4 -2
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +1 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +7 -15
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.types.d.ts +0 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +1 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.js +35 -26
- package/lib/esm/widgets/group-details/c4-group-details-page.types.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-app.js +26 -23
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.js +42 -67
- package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +0 -1
- package/package.json +16 -16
|
@@ -0,0 +1,87 @@
|
|
|
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 { render, screen } from '@testing-library/react';
|
|
8
|
+
import userEvent from '@testing-library/user-event';
|
|
9
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
10
|
+
import { C4ClusterList } from './c4-cluster-list.js';
|
|
11
|
+
function buildProps() {
|
|
12
|
+
return {
|
|
13
|
+
orgId: 'org-1',
|
|
14
|
+
clusters: [
|
|
15
|
+
{
|
|
16
|
+
id: 'cluster-1',
|
|
17
|
+
name: 'Encryption Setup Cluster',
|
|
18
|
+
generation: '8.9',
|
|
19
|
+
type: 'Production',
|
|
20
|
+
region: 'eu-central-1',
|
|
21
|
+
status: 'waitingForInput',
|
|
22
|
+
statusInfoTooltip: 'Waiting for external encryption to be configured',
|
|
23
|
+
tags: ['prod'],
|
|
24
|
+
originalIndex: 0,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
loading: false,
|
|
28
|
+
urls: {
|
|
29
|
+
clusterDetails: (clusterId) => `/org/org-1/clusters/${clusterId}`,
|
|
30
|
+
createCluster: '/org/org-1/clusters/create',
|
|
31
|
+
},
|
|
32
|
+
permissions: {
|
|
33
|
+
canCreateCluster: true,
|
|
34
|
+
canEditCluster: true,
|
|
35
|
+
canDeleteCluster: true,
|
|
36
|
+
canUpdateTag: true,
|
|
37
|
+
canSeeClusterLoad: false,
|
|
38
|
+
canWakeCluster: true,
|
|
39
|
+
createClusterButtonDisabled: false,
|
|
40
|
+
},
|
|
41
|
+
onNavigate: vi.fn(),
|
|
42
|
+
onDeleteCluster: vi.fn(),
|
|
43
|
+
onAssignTag: vi.fn(),
|
|
44
|
+
onWakeCluster: vi.fn(),
|
|
45
|
+
translations: {
|
|
46
|
+
title: 'Clusters',
|
|
47
|
+
createButton: 'Create cluster',
|
|
48
|
+
searchLabel: 'Search',
|
|
49
|
+
emptyState: {
|
|
50
|
+
noClusters: 'No clusters',
|
|
51
|
+
},
|
|
52
|
+
headers: {
|
|
53
|
+
name: 'Name',
|
|
54
|
+
generation: 'Generation',
|
|
55
|
+
type: 'Type',
|
|
56
|
+
region: 'Region',
|
|
57
|
+
status: 'Status',
|
|
58
|
+
tags: 'Tags',
|
|
59
|
+
},
|
|
60
|
+
overflowMenu: {
|
|
61
|
+
delete: 'Delete',
|
|
62
|
+
resume: 'Resume',
|
|
63
|
+
},
|
|
64
|
+
tags: {
|
|
65
|
+
addLabel: 'Add tag',
|
|
66
|
+
},
|
|
67
|
+
tooltips: {
|
|
68
|
+
clusterLoad: 'Cluster load',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
isClusterPaused: () => false,
|
|
72
|
+
isRunningOnUnsupportedGeneration: () => false,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
describe('C4ClusterList waitingForInput status', () => {
|
|
76
|
+
it('shows the info icon and routes to encryption details', async () => {
|
|
77
|
+
const user = userEvent.setup();
|
|
78
|
+
const props = buildProps();
|
|
79
|
+
render(_jsx(C4ClusterList, { ...props }));
|
|
80
|
+
const infoButton = screen.getByRole('button', {
|
|
81
|
+
name: 'Waiting for external encryption to be configured',
|
|
82
|
+
});
|
|
83
|
+
expect(infoButton).toBeInTheDocument();
|
|
84
|
+
await user.click(infoButton);
|
|
85
|
+
expect(props.onNavigate).toHaveBeenCalledWith('/org/org-1/clusters/cluster-1/encryption');
|
|
86
|
+
});
|
|
87
|
+
});
|
|
@@ -4,9 +4,11 @@ export declare enum StatusColor {
|
|
|
4
4
|
UNHEALTHY = "var(--cds-support-error)",
|
|
5
5
|
CREATING = "var(--cds-support-warning)",
|
|
6
6
|
UPDATING = "var(--cds-support-warning)",
|
|
7
|
+
WAITING = "var(--cds-support-warning)",
|
|
7
8
|
SUSPENDED = "var(--cds-icon-secondary)"
|
|
8
9
|
}
|
|
9
|
-
export type ClusterStatus = 'healthy' | 'unhealthy' | 'creating' | 'updating' | 'suspended' | 'resuming';
|
|
10
|
+
export type ClusterStatus = 'healthy' | 'unhealthy' | 'creating' | 'updating' | 'waitingForInput' | 'suspended' | 'resuming';
|
|
11
|
+
export declare const normalizeClusterStatus: (status: string | undefined) => ClusterStatus | undefined;
|
|
10
12
|
export interface ApplicationTileProps {
|
|
11
13
|
name: string;
|
|
12
14
|
status: ClusterStatus;
|
|
@@ -30,6 +32,8 @@ export interface ApplicationTileProps {
|
|
|
30
32
|
export declare const ClusterStatusElement: (props: {
|
|
31
33
|
status: ClusterStatus;
|
|
32
34
|
style?: React.CSSProperties;
|
|
35
|
+
infoTooltip?: string;
|
|
36
|
+
onInfoClick?: () => void;
|
|
33
37
|
}) => JSX.Element;
|
|
34
38
|
export declare const ApplicationTile: (props: ApplicationTileProps) => JSX.Element;
|
|
35
39
|
export interface ApplicationsProps {
|
|
@@ -4,8 +4,8 @@ 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 { Layer, Link, Loading, Stack, Tile } from '@carbon/react';
|
|
8
|
-
import { ArrowRight, CheckmarkFilled, PauseOutlineFilled, PendingFilled, WarningFilled, } from '@carbon/react/icons/index.esm.js';
|
|
7
|
+
import { Layer, Link, Loading, Stack, Tile, Tooltip } from '@carbon/react';
|
|
8
|
+
import { ArrowRight, CheckmarkFilled, Information, PauseOutlineFilled, PendingFilled, WarningFilled, } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import { useEffect, useState } from 'react';
|
|
10
10
|
import { mediaSizeByWidth } from '../c4-billing-page/elements/current-usage-metrics.js';
|
|
11
11
|
import { C4TileWithTitleAndAction } from '../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
@@ -15,8 +15,32 @@ export var StatusColor;
|
|
|
15
15
|
StatusColor["UNHEALTHY"] = "var(--cds-support-error)";
|
|
16
16
|
StatusColor["CREATING"] = "var(--cds-support-warning)";
|
|
17
17
|
StatusColor["UPDATING"] = "var(--cds-support-warning)";
|
|
18
|
+
StatusColor["WAITING"] = "var(--cds-support-warning)";
|
|
18
19
|
StatusColor["SUSPENDED"] = "var(--cds-icon-secondary)";
|
|
19
20
|
})(StatusColor || (StatusColor = {}));
|
|
21
|
+
export const normalizeClusterStatus = (status) => {
|
|
22
|
+
if (!status) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
switch (status.trim().toLowerCase()) {
|
|
26
|
+
case 'healthy':
|
|
27
|
+
return 'healthy';
|
|
28
|
+
case 'unhealthy':
|
|
29
|
+
return 'unhealthy';
|
|
30
|
+
case 'creating':
|
|
31
|
+
return 'creating';
|
|
32
|
+
case 'updating':
|
|
33
|
+
return 'updating';
|
|
34
|
+
case 'waitingforinput':
|
|
35
|
+
return 'waitingForInput';
|
|
36
|
+
case 'suspended':
|
|
37
|
+
return 'suspended';
|
|
38
|
+
case 'resuming':
|
|
39
|
+
return 'resuming';
|
|
40
|
+
default:
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
20
44
|
export const ClusterStatusElement = (props) => {
|
|
21
45
|
let icon = null;
|
|
22
46
|
let text = '';
|
|
@@ -42,6 +66,11 @@ export const ClusterStatusElement = (props) => {
|
|
|
42
66
|
text = 'Updating';
|
|
43
67
|
color = StatusColor.UPDATING;
|
|
44
68
|
break;
|
|
69
|
+
case 'waitingForInput':
|
|
70
|
+
icon = _jsx(PendingFilled, {});
|
|
71
|
+
text = 'Waiting';
|
|
72
|
+
color = StatusColor.WAITING;
|
|
73
|
+
break;
|
|
45
74
|
case 'suspended':
|
|
46
75
|
icon = _jsx(PauseOutlineFilled, {});
|
|
47
76
|
text = 'Paused';
|
|
@@ -59,7 +88,27 @@ export const ClusterStatusElement = (props) => {
|
|
|
59
88
|
transform: 'translateY(-50%)',
|
|
60
89
|
display: 'flex',
|
|
61
90
|
color,
|
|
62
|
-
}, children: icon })),
|
|
91
|
+
}, children: icon })), _jsxs("span", { style: {
|
|
92
|
+
paddingInlineStart: icon ? '1.2rem' : '0rem',
|
|
93
|
+
display: 'inline-flex',
|
|
94
|
+
alignItems: 'center',
|
|
95
|
+
gap: '0.125rem',
|
|
96
|
+
}, children: [_jsx("span", { children: text }), props.status === 'waitingForInput' && props.infoTooltip && (_jsx(Tooltip, { align: 'bottom', description: _jsx("span", { style: {
|
|
97
|
+
display: 'block',
|
|
98
|
+
whiteSpace: 'normal',
|
|
99
|
+
maxWidth: '16rem',
|
|
100
|
+
}, children: props.infoTooltip }), children: _jsx("button", { type: 'button', "aria-label": props.infoTooltip, onClick: () => props.onInfoClick?.(), style: {
|
|
101
|
+
display: 'inline-flex',
|
|
102
|
+
alignItems: 'center',
|
|
103
|
+
justifyContent: 'center',
|
|
104
|
+
minBlockSize: '1.5rem',
|
|
105
|
+
minInlineSize: '1.5rem',
|
|
106
|
+
padding: 0,
|
|
107
|
+
border: 0,
|
|
108
|
+
background: 'transparent',
|
|
109
|
+
color: 'var(--cds-icon-primary)',
|
|
110
|
+
cursor: 'pointer',
|
|
111
|
+
}, children: _jsx(Information, {}) }) }))] })] }) }));
|
|
63
112
|
return component;
|
|
64
113
|
};
|
|
65
114
|
export const ApplicationTile = (props) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { render, screen } from '@testing-library/react';
|
|
8
|
+
import userEvent from '@testing-library/user-event';
|
|
9
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
10
|
+
import { ClusterStatusElement, normalizeClusterStatus } from './applications.js';
|
|
11
|
+
describe('ClusterStatusElement', () => {
|
|
12
|
+
it('renders waiting for input as waiting and forwards info clicks', async () => {
|
|
13
|
+
const onInfoClick = vi.fn();
|
|
14
|
+
const user = userEvent.setup();
|
|
15
|
+
render(_jsx(ClusterStatusElement, { status: 'waitingForInput', infoTooltip: 'Waiting for external encryption to be configured', onInfoClick: onInfoClick }));
|
|
16
|
+
expect(screen.getByText('Waiting')).toBeInTheDocument();
|
|
17
|
+
await user.click(screen.getByRole('button', {
|
|
18
|
+
name: 'Waiting for external encryption to be configured',
|
|
19
|
+
}));
|
|
20
|
+
expect(onInfoClick).toHaveBeenCalledTimes(1);
|
|
21
|
+
});
|
|
22
|
+
it('normalizes waiting for input status values', () => {
|
|
23
|
+
expect(normalizeClusterStatus('WaitingForInput')).toBe('waitingForInput');
|
|
24
|
+
expect(normalizeClusterStatus('waitingforinput')).toBe('waitingForInput');
|
|
25
|
+
});
|
|
26
|
+
});
|
|
@@ -33,6 +33,8 @@ export interface ClusterDetailsProps {
|
|
|
33
33
|
wakeVisibility: boolean;
|
|
34
34
|
sleepAction?: () => void;
|
|
35
35
|
sleepLabel?: string;
|
|
36
|
+
infoTooltip?: string;
|
|
37
|
+
onInfoClick?: () => void;
|
|
36
38
|
};
|
|
37
39
|
generation: {
|
|
38
40
|
label: string;
|
|
@@ -87,6 +89,12 @@ export interface ClusterDetailsProps {
|
|
|
87
89
|
label: string;
|
|
88
90
|
value: string;
|
|
89
91
|
};
|
|
92
|
+
swaggerUrl?: {
|
|
93
|
+
label: string;
|
|
94
|
+
url: string;
|
|
95
|
+
linkLabel: string;
|
|
96
|
+
pausedWarning?: string;
|
|
97
|
+
};
|
|
90
98
|
}
|
|
91
99
|
export declare const ClusterDetails: (props: ClusterDetailsProps) => JSX.Element;
|
|
92
100
|
export interface ClusterDetailsGenerationUpdateProps {
|
|
@@ -5,13 +5,13 @@ 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 { C3ClusterTag, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { Button, CodeSnippet, Layer, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, TextArea, } from '@carbon/react';
|
|
9
|
-
import { Add, Information, Pause, Play, UpdateNow } from '@carbon/react/icons/index.esm.js';
|
|
8
|
+
import { Button, CodeSnippet, Layer, Link, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, TextArea, Tooltip, } from '@carbon/react';
|
|
9
|
+
import { Add, Information, Launch, Pause, Play, UpdateNow, WarningAltFilled, } from '@carbon/react/icons/index.esm.js';
|
|
10
10
|
import { useEffect, useRef, useState } from 'react';
|
|
11
11
|
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
12
12
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
13
13
|
import { C4TileWithTitleAndAction } from '../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
14
|
-
import { ClusterStatusElement } from './applications.js';
|
|
14
|
+
import { ClusterStatusElement, normalizeClusterStatus, } from './applications.js';
|
|
15
15
|
export const ClusterDetails = (props) => {
|
|
16
16
|
const [isEditingDescription, setIsEditingDescription] = useState(false);
|
|
17
17
|
const [descriptionValue, setDescriptionValue] = useState('');
|
|
@@ -42,14 +42,14 @@ export const ClusterDetails = (props) => {
|
|
|
42
42
|
setDescriptionError('');
|
|
43
43
|
setIsEditingDescription(false);
|
|
44
44
|
};
|
|
45
|
+
const normalizedStatus = normalizeClusterStatus(props.status?.value);
|
|
45
46
|
const rowStyle = {
|
|
46
47
|
height: '61px',
|
|
47
48
|
maxHeight: '61px',
|
|
48
49
|
minHeight: '61px',
|
|
49
50
|
};
|
|
50
51
|
const renderStatusButton = () => {
|
|
51
|
-
if (
|
|
52
|
-
props?.status.wakeVisibility) {
|
|
52
|
+
if (normalizedStatus === 'suspended' && props?.status?.wakeVisibility) {
|
|
53
53
|
return (_jsx(Button, { onClick: () => props.status?.wakeAction(), size: 'sm', renderIcon: Play, children: props.status.wakeLabel }));
|
|
54
54
|
}
|
|
55
55
|
if (props?.status?.sleepAction) {
|
|
@@ -98,7 +98,7 @@ export const ClusterDetails = (props) => {
|
|
|
98
98
|
gridAutoFlow: 'column',
|
|
99
99
|
gap: '1.5rem',
|
|
100
100
|
alignItems: 'center',
|
|
101
|
-
}, children: [_jsx(ClusterStatusElement, { status: props.status.
|
|
101
|
+
}, children: [normalizedStatus ? (_jsx(ClusterStatusElement, { status: normalizedStatus, infoTooltip: props.status.infoTooltip, onInfoClick: props.status.onInfoClick })) : (props.status.value), renderStatusButton()] }) })] })), _jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.generation.label }), _jsx(StructuredListCell, { children: _jsxs("div", { style: {
|
|
102
102
|
display: 'grid',
|
|
103
103
|
gridTemplateColumns: 'auto 1fr',
|
|
104
104
|
gap: '0.5rem',
|
|
@@ -112,7 +112,26 @@ export const ClusterDetails = (props) => {
|
|
|
112
112
|
display: 'grid',
|
|
113
113
|
gridTemplateColumns: 'auto 1fr',
|
|
114
114
|
gap: '0.5rem',
|
|
115
|
-
}, children: props.tags.value?.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { children: props.tags.value.map((tag) => (_jsx(C3ClusterTag, { stage: tag }, `cluster-tag-${tag}`))) }), props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.updateTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, disabled: props.tags.updateDisabled }))] })) : (props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.addTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, icon: _jsx(Add, {}), disabled: props.tags.updateDisabled }))) }) })] })), props.regionId && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.regionId.label }), _jsx(StructuredListCell, { children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.regionId.value }) }) })] })), props.backupRegionId && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.backupRegionId.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.backupRegionId.value }) }) })] })), _jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.id.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.id.value }) }) })] }), props.
|
|
115
|
+
}, children: props.tags.value?.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("div", { children: props.tags.value.map((tag) => (_jsx(C3ClusterTag, { stage: tag }, `cluster-tag-${tag}`))) }), props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.updateTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, disabled: props.tags.updateDisabled }))] })) : (props.tags.updateVisible && (_jsx(C4LinkButton, { label: props.tags.addTagLabel, onClick: () => props.tags?.updateAction(), style: { alignSelf: 'center' }, icon: _jsx(Add, {}), disabled: props.tags.updateDisabled }))) }) })] })), props.regionId && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.regionId.label }), _jsx(StructuredListCell, { children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.regionId.value }) }) })] })), props.backupRegionId && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.backupRegionId.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.backupRegionId.value }) }) })] })), _jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.id.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsx(Layer, { style: { height: '0px', width: 'calc(100% - 4rem)' }, children: _jsx(CodeSnippet, { type: 'single', style: { maxWidth: '22rem' }, children: props.id.value }) }) })] }), props.swaggerUrl && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.swaggerUrl.label }), _jsx(StructuredListCell, { noWrap: true, children: _jsxs("span", { style: {
|
|
116
|
+
display: 'inline-flex',
|
|
117
|
+
alignItems: 'center',
|
|
118
|
+
gap: 'var(--cds-spacing-02)',
|
|
119
|
+
}, children: [props.swaggerUrl.pausedWarning && (_jsx(Tooltip, { align: 'bottom', description: _jsx("span", { style: {
|
|
120
|
+
display: 'block',
|
|
121
|
+
whiteSpace: 'normal',
|
|
122
|
+
maxWidth: '16rem',
|
|
123
|
+
}, children: props.swaggerUrl.pausedWarning }), children: _jsx("button", { type: 'button', "aria-label": props.swaggerUrl.pausedWarning, style: {
|
|
124
|
+
display: 'inline-flex',
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
padding: 0,
|
|
127
|
+
border: 0,
|
|
128
|
+
background: 'transparent',
|
|
129
|
+
color: 'var(--cds-support-warning)',
|
|
130
|
+
cursor: 'default',
|
|
131
|
+
}, children: _jsx(WarningAltFilled, {}) }) })), _jsxs(Link, { href: props.swaggerUrl.url, target: '_blank', rel: 'noopener noreferrer', children: [props.swaggerUrl.linkLabel, _jsx(Launch, { style: {
|
|
132
|
+
marginLeft: 'var(--cds-spacing-02)',
|
|
133
|
+
verticalAlign: 'middle',
|
|
134
|
+
} })] })] }) })] })), props.created && (_jsxs(StructuredListRow, { style: rowStyle, children: [_jsx(StructuredListCell, { noWrap: true, children: props.created.label }), _jsx(StructuredListCell, { noWrap: true, children: props.created.value })] }))] }) })] }));
|
|
116
135
|
return component;
|
|
117
136
|
};
|
|
118
137
|
export const ClusterDetailsGenerationUpdate = (props) => {
|
|
@@ -5,6 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
8
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
8
9
|
export const C4ClustersEmptyState = (props) => {
|
|
9
10
|
const { variant, texts, onCreateCluster, createClusterButtonDisabled, docsHref, onDocsClick, onUpgrade, } = props;
|
|
10
11
|
if (variant === 'noClusters') {
|
|
@@ -24,13 +25,13 @@ export const C4ClustersEmptyState = (props) => {
|
|
|
24
25
|
}
|
|
25
26
|
: undefined;
|
|
26
27
|
return (_jsx(C3EmptyState, { icon: {
|
|
27
|
-
path:
|
|
28
|
+
path: C4_ASSET_URLS.clusterIcon,
|
|
28
29
|
altText: 'clusterIcon',
|
|
29
30
|
}, heading: texts.noClusters.heading, description: texts.noClusters.description, button: button, link: link }));
|
|
30
31
|
}
|
|
31
32
|
if (variant === 'trialExpiredAdmin') {
|
|
32
33
|
return (_jsx(C3EmptyState, { icon: {
|
|
33
|
-
path:
|
|
34
|
+
path: C4_ASSET_URLS.upgradeIcon,
|
|
34
35
|
altText: 'upgradeIcon',
|
|
35
36
|
}, heading: texts.trialExpired.heading, description: texts.trialExpired.adminDescription, button: {
|
|
36
37
|
onClick: onUpgrade ?? (() => undefined),
|
|
@@ -38,7 +39,7 @@ export const C4ClustersEmptyState = (props) => {
|
|
|
38
39
|
} }));
|
|
39
40
|
}
|
|
40
41
|
return (_jsx(C3EmptyState, { icon: {
|
|
41
|
-
path:
|
|
42
|
+
path: C4_ASSET_URLS.upgradeIcon,
|
|
42
43
|
altText: 'upgradeIcon',
|
|
43
44
|
}, heading: texts.trialExpired.heading, description: texts.trialExpired.memberDescription }));
|
|
44
45
|
};
|
|
@@ -414,14 +414,20 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
|
|
|
414
414
|
const renderGenerationSection = () => {
|
|
415
415
|
const allGenerations = getSelectedChannel()?.generations ?? [];
|
|
416
416
|
const existingClusterGenerations = allGenerations.filter((g) => g.classification === 'existingCluster');
|
|
417
|
-
const
|
|
418
|
-
const
|
|
417
|
+
const orgUnlockedGenerations = allGenerations.filter((g) => g.classification === 'orgUnlocked');
|
|
418
|
+
const nonChannelGenerations = [
|
|
419
|
+
...existingClusterGenerations,
|
|
420
|
+
...orgUnlockedGenerations,
|
|
421
|
+
];
|
|
422
|
+
const channelGenerations = allGenerations.filter((g) => g.classification !== 'existingCluster' &&
|
|
423
|
+
g.classification !== 'orgUnlocked');
|
|
424
|
+
const hasOlderGenerations = nonChannelGenerations.length > 0;
|
|
419
425
|
return (_jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsxs(Stack, { gap: 2, children: [_jsx(FormLabel, { children: "Generation" }), renderGenerationRadioButtons(hasOlderGenerations ? channelGenerations : allGenerations), hasOlderGenerations && (_jsxs("div", { style: {
|
|
420
426
|
marginTop: 'var(--cds-spacing-03)',
|
|
421
427
|
}, children: [_jsx(Button, { kind: 'ghost', size: 'sm', type: 'button', onClick: () => {
|
|
422
428
|
setShowOlderGenerations((prev) => {
|
|
423
429
|
if (prev &&
|
|
424
|
-
|
|
430
|
+
nonChannelGenerations.some((g) => g.uuid === selectedGeneration)) {
|
|
425
431
|
return prev;
|
|
426
432
|
}
|
|
427
433
|
return !prev;
|
|
@@ -429,10 +435,18 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
|
|
|
429
435
|
}, renderIcon: showOlderGenerations ? ChevronUp : ChevronDown, "aria-expanded": showOlderGenerations, "aria-controls": 'older-generations-panel', children: formElements.generation.olderGenerationsLabel ??
|
|
430
436
|
'View older generations' }), showOlderGenerations && (_jsxs("div", { id: 'older-generations-panel', style: {
|
|
431
437
|
marginTop: 'var(--cds-spacing-03)',
|
|
432
|
-
}, children: [renderGenerationRadioButtons(existingClusterGenerations), _jsx("p", { style: {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
438
|
+
}, children: [existingClusterGenerations.length > 0 && (_jsxs(_Fragment, { children: [renderGenerationRadioButtons(existingClusterGenerations), _jsx("p", { style: {
|
|
439
|
+
color: 'var(--cds-text-helper)',
|
|
440
|
+
}, children: formElements.generation.olderGenerationsHelperText ??
|
|
441
|
+
'These are older generations that are used in your organization.' })] })), orgUnlockedGenerations.length > 0 && (_jsxs("div", { style: {
|
|
442
|
+
marginTop: existingClusterGenerations.length > 0
|
|
443
|
+
? 'var(--cds-spacing-05)'
|
|
444
|
+
: undefined,
|
|
445
|
+
}, children: [renderGenerationRadioButtons(orgUnlockedGenerations), _jsx("p", { style: {
|
|
446
|
+
color: 'var(--cds-text-helper)',
|
|
447
|
+
}, children: formElements.generation
|
|
448
|
+
.orgUnlockedGenerationsHelperText ??
|
|
449
|
+
'These are older generations that have been unlocked for your organization.' })] }))] }))] }))] }) }) }));
|
|
436
450
|
};
|
|
437
451
|
const renderContent = () => {
|
|
438
452
|
if (loading) {
|
|
@@ -65,6 +65,66 @@ function buildChannelsWithoutClassification() {
|
|
|
65
65
|
},
|
|
66
66
|
];
|
|
67
67
|
}
|
|
68
|
+
function buildChannelsWithOrgUnlocked() {
|
|
69
|
+
return [
|
|
70
|
+
{
|
|
71
|
+
title: 'Stable',
|
|
72
|
+
description: 'Stable channel',
|
|
73
|
+
uuid: 'stable',
|
|
74
|
+
default: true,
|
|
75
|
+
generations: [
|
|
76
|
+
{
|
|
77
|
+
title: 'Camunda 8.8+gen18',
|
|
78
|
+
uuid: 'gen-8.8-18',
|
|
79
|
+
default: true,
|
|
80
|
+
classification: 'channel',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: 'Camunda 8.7+gen24',
|
|
84
|
+
uuid: 'gen-8.7-24',
|
|
85
|
+
default: false,
|
|
86
|
+
classification: 'channel',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: 'Camunda 8.2+gen5',
|
|
90
|
+
uuid: 'gen-8.2-5',
|
|
91
|
+
default: false,
|
|
92
|
+
classification: 'orgUnlocked',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
function buildChannelsWithMixedNonChannel() {
|
|
99
|
+
return [
|
|
100
|
+
{
|
|
101
|
+
title: 'Stable',
|
|
102
|
+
description: 'Stable channel',
|
|
103
|
+
uuid: 'stable',
|
|
104
|
+
default: true,
|
|
105
|
+
generations: [
|
|
106
|
+
{
|
|
107
|
+
title: 'Camunda 8.8+gen18',
|
|
108
|
+
uuid: 'gen-8.8-18',
|
|
109
|
+
default: true,
|
|
110
|
+
classification: 'channel',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: 'Camunda 8.4+gen15',
|
|
114
|
+
uuid: 'gen-8.4-15',
|
|
115
|
+
default: false,
|
|
116
|
+
classification: 'existingCluster',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: 'Camunda 8.2+gen5',
|
|
120
|
+
uuid: 'gen-8.2-5',
|
|
121
|
+
default: false,
|
|
122
|
+
classification: 'orgUnlocked',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
}
|
|
68
128
|
function buildProps(channels) {
|
|
69
129
|
return {
|
|
70
130
|
loading: false,
|
|
@@ -123,6 +183,7 @@ function buildProps(channels) {
|
|
|
123
183
|
channels,
|
|
124
184
|
olderGenerationsLabel: 'View older generations',
|
|
125
185
|
olderGenerationsHelperText: 'These are older generations that are used in your organization.',
|
|
186
|
+
orgUnlockedGenerationsHelperText: 'These are older generations that have been unlocked for your organization.',
|
|
126
187
|
},
|
|
127
188
|
stageLabel: {
|
|
128
189
|
title: 'Tag',
|
|
@@ -184,4 +245,59 @@ describe('C4CreateCluster older generations toggle', () => {
|
|
|
184
245
|
expect(screen.getByLabelText('Camunda 8.8+gen18')).toBeInTheDocument();
|
|
185
246
|
expect(screen.getByLabelText('Camunda 8.7+gen24')).toBeInTheDocument();
|
|
186
247
|
});
|
|
248
|
+
it('hides orgUnlocked generations by default', () => {
|
|
249
|
+
render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithOrgUnlocked()) }));
|
|
250
|
+
expect(screen.getByLabelText('Camunda 8.8+gen18')).toBeInTheDocument();
|
|
251
|
+
expect(screen.getByLabelText('Camunda 8.7+gen24')).toBeInTheDocument();
|
|
252
|
+
expect(screen.queryByLabelText('Camunda 8.2+gen5')).not.toBeInTheDocument();
|
|
253
|
+
expect(screen.getByRole('button', { name: /view older generations/i })).toBeInTheDocument();
|
|
254
|
+
});
|
|
255
|
+
it('shows orgUnlocked generations when toggle is clicked', async () => {
|
|
256
|
+
render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithOrgUnlocked()) }));
|
|
257
|
+
const toggle = screen.getByRole('button', {
|
|
258
|
+
name: /view older generations/i,
|
|
259
|
+
});
|
|
260
|
+
await userEvent.click(toggle);
|
|
261
|
+
expect(screen.getByLabelText('Camunda 8.2+gen5')).toBeInTheDocument();
|
|
262
|
+
});
|
|
263
|
+
it('shows orgUnlockedGenerationsHelperText but not existingCluster helper text for orgUnlocked-only', async () => {
|
|
264
|
+
render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithOrgUnlocked()) }));
|
|
265
|
+
const toggle = screen.getByRole('button', {
|
|
266
|
+
name: /view older generations/i,
|
|
267
|
+
});
|
|
268
|
+
await userEvent.click(toggle);
|
|
269
|
+
expect(screen.getByText('These are older generations that have been unlocked for your organization.')).toBeInTheDocument();
|
|
270
|
+
expect(screen.queryByText('These are older generations that are used in your organization.')).not.toBeInTheDocument();
|
|
271
|
+
});
|
|
272
|
+
it('shows both helper texts separately for mixed existingCluster and orgUnlocked', async () => {
|
|
273
|
+
render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithMixedNonChannel()) }));
|
|
274
|
+
const toggle = screen.getByRole('button', {
|
|
275
|
+
name: /view older generations/i,
|
|
276
|
+
});
|
|
277
|
+
await userEvent.click(toggle);
|
|
278
|
+
expect(screen.getByText('These are older generations that are used in your organization.')).toBeInTheDocument();
|
|
279
|
+
expect(screen.getByText('These are older generations that have been unlocked for your organization.')).toBeInTheDocument();
|
|
280
|
+
});
|
|
281
|
+
it('groups orgUnlocked and existingCluster generations together under the toggle', async () => {
|
|
282
|
+
render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithMixedNonChannel()) }));
|
|
283
|
+
expect(screen.queryByLabelText('Camunda 8.4+gen15')).not.toBeInTheDocument();
|
|
284
|
+
expect(screen.queryByLabelText('Camunda 8.2+gen5')).not.toBeInTheDocument();
|
|
285
|
+
const toggle = screen.getByRole('button', {
|
|
286
|
+
name: /view older generations/i,
|
|
287
|
+
});
|
|
288
|
+
await userEvent.click(toggle);
|
|
289
|
+
expect(screen.getByLabelText('Camunda 8.4+gen15')).toBeInTheDocument();
|
|
290
|
+
expect(screen.getByLabelText('Camunda 8.2+gen5')).toBeInTheDocument();
|
|
291
|
+
});
|
|
292
|
+
it('prevents collapsing when an orgUnlocked generation is selected', async () => {
|
|
293
|
+
render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithOrgUnlocked()) }));
|
|
294
|
+
const toggle = screen.getByRole('button', {
|
|
295
|
+
name: /view older generations/i,
|
|
296
|
+
});
|
|
297
|
+
await userEvent.click(toggle);
|
|
298
|
+
const olderRadio = screen.getByLabelText('Camunda 8.2+gen5');
|
|
299
|
+
await userEvent.click(olderRadio);
|
|
300
|
+
await userEvent.click(toggle);
|
|
301
|
+
expect(screen.getByLabelText('Camunda 8.2+gen5')).toBeInTheDocument();
|
|
302
|
+
});
|
|
187
303
|
});
|
|
@@ -61,7 +61,7 @@ export interface C4CreateClusterChannelWithGenerations {
|
|
|
61
61
|
default: boolean;
|
|
62
62
|
uuid: string;
|
|
63
63
|
version?: string;
|
|
64
|
-
classification?: 'channel' | 'existingCluster';
|
|
64
|
+
classification?: 'channel' | 'existingCluster' | 'orgUnlocked';
|
|
65
65
|
}>;
|
|
66
66
|
}
|
|
67
67
|
export interface C4CreateClusterProps {
|
|
@@ -146,6 +146,7 @@ export interface C4CreateClusterProps {
|
|
|
146
146
|
channels: C4CreateClusterChannelWithGenerations[];
|
|
147
147
|
olderGenerationsLabel?: string;
|
|
148
148
|
olderGenerationsHelperText?: string;
|
|
149
|
+
orgUnlockedGenerationsHelperText?: string;
|
|
149
150
|
};
|
|
150
151
|
autoUpdate?: {
|
|
151
152
|
title: string;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js
CHANGED
|
@@ -49,7 +49,7 @@ function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translati
|
|
|
49
49
|
: [];
|
|
50
50
|
return (_jsxs(_Fragment, { children: [_jsx("h2", { children: translations.errorTable.title }), _jsx(C3DataTable, { id: 'errors-data-table', data: rows, headers: [
|
|
51
51
|
{
|
|
52
|
-
key: '
|
|
52
|
+
key: 'errorCode',
|
|
53
53
|
label: noWrapLabel(translations.errorTable.headers.errorType),
|
|
54
54
|
},
|
|
55
55
|
{
|
|
@@ -6,13 +6,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
*/
|
|
7
7
|
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { CodeSnippet, DataTableSkeleton, ListItem, Stack, UnorderedList, } from '@carbon/react';
|
|
9
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
9
10
|
export const C4ManagementApi = ({ clients, loading, showIpWhitelistColumn, showHotBackupColumn, text, urls, permissions, onShowDetails, onUpdateClient, onDeleteClient, onCreate, onOpenDocs, }) => {
|
|
10
11
|
if (loading) {
|
|
11
12
|
return _jsx(DataTableSkeleton, { showToolbar: false, showHeader: false });
|
|
12
13
|
}
|
|
13
14
|
if (clients.length === 0) {
|
|
14
15
|
return (_jsx(C3EmptyState, { icon: {
|
|
15
|
-
path:
|
|
16
|
+
path: C4_ASSET_URLS.consoleApiIcon,
|
|
16
17
|
altText: 'consoleAPI',
|
|
17
18
|
}, heading: text.emptyStateTitle, description: text.emptyStateDescription, button: permissions.canCreate
|
|
18
19
|
? {
|
|
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { C3DataTable, C3EmptyState, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { Button, Link, Stack, StaticNotification, StructuredListSkeleton, } from '@carbon/react';
|
|
9
9
|
import { ConnectionSend, Renew, TrashCan } from '@carbon/react/icons/index.esm.js';
|
|
10
|
+
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
10
11
|
import { C4ExternalLink } from '../c4-external-link/c4-external-link.js';
|
|
11
12
|
import { C4Toggle } from '../c4-toggle/c4-toggle.js';
|
|
12
13
|
export const C4ManagementSettings = ({ orgId: _orgId, organizationName: _organizationName, hasAcceptedBetaTerms, suppressDropDisks, earlyAccessFeatures, recentlyAcceptedBeta, loading, error, permissions, onLeaveOrganization, onDeleteOrganization, onToggleSuppressDropDisks, onToggleEarlyAccessFeature, onOptInToBeta, onOpenFeatureOptIn, onShareFeedback, onRetry, text, earlyAccessDocsUrl, }) => {
|
|
@@ -107,7 +108,7 @@ export const C4ManagementSettings = ({ orgId: _orgId, organizationName: _organiz
|
|
|
107
108
|
maxWidth: '100%',
|
|
108
109
|
marginBottom: '12px',
|
|
109
110
|
} }, 'optin-notification')), error ? (_jsx(C3EmptyState, { icon: {
|
|
110
|
-
path:
|
|
111
|
+
path: C4_ASSET_URLS.fatalErrorIcon,
|
|
111
112
|
altText: 'errorIcon',
|
|
112
113
|
}, heading: text.earlyAccess.errorTitle, description: text.earlyAccess.errorMessage, button: {
|
|
113
114
|
onClick: onRetry,
|
|
@@ -10,6 +10,7 @@ export declare const C4_EXTERNAL_URLS: {
|
|
|
10
10
|
readonly consoleApiClients: "https://docs.camunda.io/docs/next/apis-tools/administration-api/administration-api-reference/";
|
|
11
11
|
readonly consoleAlerts: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-alerts/";
|
|
12
12
|
readonly consoleClusterClients: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-api-clients/";
|
|
13
|
+
readonly consoleManageConnectors: "https://docs.camunda.io/docs/components/console/manage-connectors/";
|
|
13
14
|
readonly connectorSecrets: "https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets";
|
|
14
15
|
readonly consoleIpWhitelist: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/";
|
|
15
16
|
readonly conceptsRBA: "https://docs.camunda.io/docs/components/concepts/resource-authorizations/";
|
|
@@ -41,7 +42,7 @@ export declare const C4_EXTERNAL_URLS: {
|
|
|
41
42
|
readonly autoPause: "https://docs.camunda.io/docs/components/concepts/clusters/#auto-pause";
|
|
42
43
|
};
|
|
43
44
|
readonly auditLog: "https://docs.camunda.io/docs/next/components/audit-log/overview/";
|
|
44
|
-
readonly secureConnectivity: "https://docs.camunda.io/components/saas/secure-connectivity/";
|
|
45
|
+
readonly secureConnectivity: "https://docs.camunda.io/docs/components/saas/secure-connectivity/secure-connectivity-AWS/";
|
|
45
46
|
readonly releasePolicy: "https://camunda.com/release-policy/";
|
|
46
47
|
readonly jobDashboard: {
|
|
47
48
|
readonly roles: "https://docs.camunda.io/docs/components/identity/role/";
|