@camunda/ccma-saas-frontend 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +3 -3
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +3 -3
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +2 -1
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +2 -2
- package/lib/esm/components/c4-cluster-overview/applications.js +10 -2
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.d.ts +3 -3
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.js +5 -13
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +42 -0
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +3 -3
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +12 -0
- package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +3 -0
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.js +21 -0
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.types.d.ts +6 -0
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.types.js +6 -0
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +1 -1
- package/lib/esm/externalUrls.const.d.ts +1 -0
- package/lib/esm/externalUrls.const.js +2 -0
- package/lib/esm/externalUrls.const.spec.js +1 -0
- package/lib/esm/i18n/en/modals/apiclients.json +1 -0
- package/lib/esm/i18n/en/modals/clusters.json +6 -0
- package/lib/esm/i18n/en/pages/clusterdetails.json +25 -0
- package/lib/esm/i18n/en/pages/createcluster.json +1 -1
- package/lib/esm/i18n/en/pages/orgmanagement.json +1 -0
- package/lib/esm/icons/c4-icons.d.ts +11 -11
- package/lib/esm/index.d.ts +2 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/runtime/c4-console-data-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-data-context.js +2 -2
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +3 -3
- package/lib/esm/runtime/c4-console-data-store.d.ts +3 -3
- package/lib/esm/runtime/c4-console-data-store.js +34 -15
- package/lib/esm/runtime/c4-console-data-store.spec.js +55 -1
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +27 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +7 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +2 -18
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +37 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +128 -59
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +297 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +17 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +63 -10
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +116 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +21 -11
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +2 -2
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +2 -2
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +1 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +6 -0
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +7 -0
- package/package.json +21 -21
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { C4AppTeaserCardsProps } from './c4-app-teaser-cards.types';
|
|
2
|
-
export declare const C4AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: C4AppTeaserCardsProps) => import("react
|
|
2
|
+
export declare const C4AppTeaserCards: ({ title, subtitle, cards, cta, subtext, }: C4AppTeaserCardsProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { C4ClusterClientCredentialProps, C4ClusterClientCredentialVariantCodeSnippetProps, C4ClusterClientCredentialVariantItemsProps } from './c4-cluster-client-credentials.types';
|
|
2
|
-
export declare const C4ClusterClientCredentialsModal: (props: C4ClusterClientCredentialProps) => import("react
|
|
3
|
-
export declare const C4ClusterClientCredentialsVariantCodeSnippet: (props: C4ClusterClientCredentialVariantCodeSnippetProps) => import("react
|
|
4
|
-
export declare const C4ClusterClientCredentialsVariantItems: (props: C4ClusterClientCredentialVariantItemsProps) => import("react
|
|
2
|
+
export declare const C4ClusterClientCredentialsModal: (props: C4ClusterClientCredentialProps) => import("react").JSX.Element;
|
|
3
|
+
export declare const C4ClusterClientCredentialsVariantCodeSnippet: (props: C4ClusterClientCredentialVariantCodeSnippetProps) => import("react").JSX.Element;
|
|
4
|
+
export declare const C4ClusterClientCredentialsVariantItems: (props: C4ClusterClientCredentialVariantItemsProps) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { C4ClusterClientCredentialsIdentityProps, C4ClusterClientCredentialsIdentityVariantCodeSnippetProps, C4ClusterClientCredentialsIdentityVariantItemsProps } from './c4-cluster-client-credentials-identity.types';
|
|
2
|
-
export declare const C4ClusterClientCredentialsIdentityModal: (props: C4ClusterClientCredentialsIdentityProps) => import("react
|
|
3
|
-
export declare const C4ClusterClientCredentialsIdentitysVariantCodeSnippet: (props: C4ClusterClientCredentialsIdentityVariantCodeSnippetProps) => import("react
|
|
4
|
-
export declare const C4ClusterClientCredentialsIdentitysVariantItems: (props: C4ClusterClientCredentialsIdentityVariantItemsProps) => import("react
|
|
2
|
+
export declare const C4ClusterClientCredentialsIdentityModal: (props: C4ClusterClientCredentialsIdentityProps) => import("react").JSX.Element;
|
|
3
|
+
export declare const C4ClusterClientCredentialsIdentitysVariantCodeSnippet: (props: C4ClusterClientCredentialsIdentityVariantCodeSnippetProps) => import("react").JSX.Element;
|
|
4
|
+
export declare const C4ClusterClientCredentialsIdentitysVariantItems: (props: C4ClusterClientCredentialsIdentityVariantItemsProps) => import("react").JSX.Element;
|
package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EncryptionStatus } from '@camunda/ccma-shared-types';
|
|
1
2
|
export interface C4ClusterDetailsEncryptionProps {
|
|
2
3
|
cluster: ClusterEncryptionData;
|
|
3
4
|
encryption: EncryptionFormData;
|
|
@@ -74,4 +75,4 @@ export interface EncryptionFormData {
|
|
|
74
75
|
validArnRegionSecondary: boolean;
|
|
75
76
|
actionRequired: boolean;
|
|
76
77
|
}
|
|
77
|
-
export type EncryptionStatus
|
|
78
|
+
export type { EncryptionStatus };
|
|
@@ -11,11 +11,11 @@ export type ClusterStatus = 'healthy' | 'unhealthy' | 'creating' | 'updating' |
|
|
|
11
11
|
export declare const normalizeClusterStatus: (status: string | undefined) => ClusterStatus | undefined;
|
|
12
12
|
export interface ApplicationTileProps {
|
|
13
13
|
name: string;
|
|
14
|
-
status
|
|
14
|
+
status?: ClusterStatus;
|
|
15
15
|
version: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
link?: {
|
|
18
|
-
url
|
|
18
|
+
url?: string;
|
|
19
19
|
label: string;
|
|
20
20
|
onClick?: () => void;
|
|
21
21
|
visible: boolean;
|
|
@@ -154,11 +154,19 @@ export const ApplicationTile = (props) => {
|
|
|
154
154
|
display: 'grid',
|
|
155
155
|
gridTemplateRows: '1fr auto',
|
|
156
156
|
height: props.description ? '60px' : undefined,
|
|
157
|
-
}, children: [props.description && _jsx("p", { children: props.description }), normalizedLink?.visible &&
|
|
157
|
+
}, children: [props.description && _jsx("p", { children: props.description }), normalizedLink?.visible &&
|
|
158
|
+
(props.status === 'healthy' ||
|
|
159
|
+
((props.status === 'suspended' || props.status === undefined) &&
|
|
160
|
+
!!normalizedLink?.onClick)) && (_jsxs(Link, { href: normalizedLink.url ?? '', style: {
|
|
158
161
|
justifySelf: 'start',
|
|
159
162
|
alignSelf: 'end',
|
|
160
163
|
cursor: 'pointer',
|
|
161
|
-
}, onClick: () =>
|
|
164
|
+
}, onClick: (e) => {
|
|
165
|
+
if (normalizedLink?.onClick) {
|
|
166
|
+
e.preventDefault();
|
|
167
|
+
normalizedLink.onClick();
|
|
168
|
+
}
|
|
169
|
+
}, children: [normalizedLink.label, ' ', _jsx(ArrowRight, { style: { marginLeft: '0.5rem', marginBottom: '-0.2rem' } })] }))] })] }) }) }));
|
|
162
170
|
return component;
|
|
163
171
|
};
|
|
164
172
|
const templateColumnsBySize = {
|
|
@@ -14,7 +14,7 @@ export declare const C4IconAndTextElement: (props: {
|
|
|
14
14
|
export declare function getClusterLoadConfig(currentValue: number): {
|
|
15
15
|
type: string;
|
|
16
16
|
color: string;
|
|
17
|
-
icon:
|
|
17
|
+
icon: JSX.Element;
|
|
18
18
|
min: number;
|
|
19
19
|
max: number;
|
|
20
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
1
|
+
import type { JSX, ReactNode } from 'react';
|
|
2
2
|
export interface MultiTenancyProps {
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
action: {
|
|
@@ -8,7 +8,7 @@ export interface MultiTenancyProps {
|
|
|
8
8
|
permissions: {
|
|
9
9
|
mayToggle: boolean;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
description: ReactNode;
|
|
12
12
|
docsUrl: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const MultiTenancy: ({ action, enabled, permissions,
|
|
14
|
+
export declare const MultiTenancy: ({ action, enabled, permissions, description, }: MultiTenancyProps) => JSX.Element;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
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 { Stack } from '@carbon/react';
|
|
8
|
-
import { C4LinkButton } from '../../c4-link-button/c4-link-button.js';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
2
|
import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
|
|
10
|
-
export const MultiTenancy = ({ action, enabled, permissions,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return component;
|
|
3
|
+
export const MultiTenancy = ({ action, enabled, permissions, description, }) => {
|
|
4
|
+
return (_jsx(C4Toggle, { id: 'multi-tenancy-toggle', enabled: enabled, supported: true, title: action.label, notices: [{ notice: description }], onClick: action.onClick, permissions: {
|
|
5
|
+
mayToggle: permissions.mayToggle,
|
|
6
|
+
} }));
|
|
15
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } 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 '@testing-library/jest-dom/vitest';
|
|
8
|
+
import { render, screen } from '@testing-library/react';
|
|
9
|
+
import userEvent from '@testing-library/user-event';
|
|
10
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
11
|
+
import { MultiTenancy } from './multi-tenancy.js';
|
|
12
|
+
function makeProps(overrides = {}) {
|
|
13
|
+
return {
|
|
14
|
+
enabled: false,
|
|
15
|
+
action: { label: 'Multi-tenancy', onClick: vi.fn() },
|
|
16
|
+
permissions: { mayToggle: true },
|
|
17
|
+
description: (_jsxs("p", { children: ["Description text with a ", _jsx("a", { href: 'https://docs.example/mt', children: "docs link" })] })),
|
|
18
|
+
docsUrl: 'https://docs.example/mt',
|
|
19
|
+
...overrides,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
describe('MultiTenancy', () => {
|
|
23
|
+
it('renders the toggle title and description', () => {
|
|
24
|
+
render(_jsx(MultiTenancy, { ...makeProps() }));
|
|
25
|
+
expect(screen.getByRole('heading', { name: 'Multi-tenancy' })).toBeInTheDocument();
|
|
26
|
+
expect(screen.getByText('docs link')).toHaveAttribute('href', 'https://docs.example/mt');
|
|
27
|
+
});
|
|
28
|
+
it('invokes action.onClick when toggled', async () => {
|
|
29
|
+
const onClick = vi.fn();
|
|
30
|
+
render(_jsx(MultiTenancy, { ...makeProps({ action: { label: 'Multi-tenancy', onClick } }) }));
|
|
31
|
+
await userEvent.click(screen.getByLabelText('Switch Multi-tenancy'));
|
|
32
|
+
expect(onClick).toHaveBeenCalledTimes(1);
|
|
33
|
+
});
|
|
34
|
+
it('disables the toggle when permissions.mayToggle is false', () => {
|
|
35
|
+
render(_jsx(MultiTenancy, { ...makeProps({ permissions: { mayToggle: false } }) }));
|
|
36
|
+
expect(screen.getByLabelText('Switch Multi-tenancy')).toBeDisabled();
|
|
37
|
+
});
|
|
38
|
+
it('renders as enabled when enabled=true', () => {
|
|
39
|
+
render(_jsx(MultiTenancy, { ...makeProps({ enabled: true }) }));
|
|
40
|
+
expect(screen.getByLabelText('Switch Multi-tenancy')).toHaveAttribute('aria-checked', 'true');
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -10,4 +10,4 @@ export interface TasklistModeToggleProps {
|
|
|
10
10
|
mayChange: boolean;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
export declare const TasklistModeToggle: (props: TasklistModeToggleProps) => import("react
|
|
13
|
+
export declare const TasklistModeToggle: (props: TasklistModeToggleProps) => import("react").JSX.Element | null;
|
|
@@ -9,5 +9,5 @@ interface EmptyStateProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
export declare const EmptyState: ({ iconName, text, action }: EmptyStateProps) => import("react
|
|
12
|
+
export declare const EmptyState: ({ iconName, text, action }: EmptyStateProps) => import("react").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -448,7 +448,7 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
|
|
|
448
448
|
color: 'var(--cds-text-helper)',
|
|
449
449
|
}, children: formElements.generation
|
|
450
450
|
.orgUnlockedGenerationsHelperText ??
|
|
451
|
-
'These are
|
|
451
|
+
'These are generations that have been unlocked for your organization.' })] }))] }))] }))] }) }) }));
|
|
452
452
|
};
|
|
453
453
|
const renderContent = () => {
|
|
454
454
|
if (loading) {
|
|
@@ -183,7 +183,7 @@ function buildProps(channels) {
|
|
|
183
183
|
channels,
|
|
184
184
|
olderGenerationsLabel: 'View older generations',
|
|
185
185
|
olderGenerationsHelperText: 'These are older generations that are used in your organization.',
|
|
186
|
-
orgUnlockedGenerationsHelperText: 'These are
|
|
186
|
+
orgUnlockedGenerationsHelperText: 'These are generations that have been unlocked for your organization.',
|
|
187
187
|
},
|
|
188
188
|
stageLabel: {
|
|
189
189
|
title: 'Tag',
|
|
@@ -266,7 +266,7 @@ describe('C4CreateCluster older generations toggle', () => {
|
|
|
266
266
|
name: /view older generations/i,
|
|
267
267
|
});
|
|
268
268
|
await userEvent.click(toggle);
|
|
269
|
-
expect(screen.getByText('These are
|
|
269
|
+
expect(screen.getByText('These are generations that have been unlocked for your organization.')).toBeInTheDocument();
|
|
270
270
|
expect(screen.queryByText('These are older generations that are used in your organization.')).not.toBeInTheDocument();
|
|
271
271
|
});
|
|
272
272
|
it('shows both helper texts separately for mixed existingCluster and orgUnlocked', async () => {
|
|
@@ -276,7 +276,7 @@ describe('C4CreateCluster older generations toggle', () => {
|
|
|
276
276
|
});
|
|
277
277
|
await userEvent.click(toggle);
|
|
278
278
|
expect(screen.getByText('These are older generations that are used in your organization.')).toBeInTheDocument();
|
|
279
|
-
expect(screen.getByText('These are
|
|
279
|
+
expect(screen.getByText('These are generations that have been unlocked for your organization.')).toBeInTheDocument();
|
|
280
280
|
});
|
|
281
281
|
it('groups orgUnlocked and existingCluster generations together under the toggle', async () => {
|
|
282
282
|
render(_jsx(C4CreateCluster, { ...buildProps(buildChannelsWithMixedNonChannel()) }));
|
package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js
CHANGED
|
@@ -77,6 +77,10 @@ function getAvailableScopes(t) {
|
|
|
77
77
|
label: safeTranslate(t, 'apiclients:create.fields.scopes.cluster.update', 'Update'),
|
|
78
78
|
value: 'UpdateCluster',
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
label: safeTranslate(t, 'apiclients:create.fields.scopes.cluster.updateEncryption', 'Update encryption'),
|
|
82
|
+
value: 'UpdateClusterEncryption',
|
|
83
|
+
},
|
|
80
84
|
],
|
|
81
85
|
},
|
|
82
86
|
{
|
|
@@ -212,6 +216,14 @@ function getAvailableScopes(t) {
|
|
|
212
216
|
label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.delete', 'Delete'),
|
|
213
217
|
value: 'DeleteHotBackups',
|
|
214
218
|
},
|
|
219
|
+
{
|
|
220
|
+
label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.restore', 'Restore'),
|
|
221
|
+
value: 'RestoreHotBackup',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.getRestore', 'Get restore status'),
|
|
225
|
+
value: 'GetHotBackupRestore',
|
|
226
|
+
},
|
|
215
227
|
],
|
|
216
228
|
},
|
|
217
229
|
];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { C4DividerProps } from './c4-divider.types';
|
|
2
|
-
export declare const C4Divider: ({ width }: C4DividerProps) => import("react
|
|
2
|
+
export declare const C4Divider: ({ width }: C4DividerProps) => import("react").JSX.Element;
|
|
@@ -6,4 +6,4 @@ export interface ColorScale {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const CHART_HEIGHT = "20vh";
|
|
8
8
|
export declare const PIE_CHART_MAX_WIDTH_PX = 400;
|
|
9
|
-
export declare const C4JobDashboardDetailsPage: ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, }: C4JobDashboardDetailsPageProps) => import("react
|
|
9
|
+
export declare const C4JobDashboardDetailsPage: ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, }: C4JobDashboardDetailsPageProps) => import("react").JSX.Element;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ interface C4JobDashboardErrorTableProps {
|
|
|
8
8
|
translations: JobDashboardDetailsTranslations;
|
|
9
9
|
trackErrorClick?: (error: ErrorTableData) => void;
|
|
10
10
|
}
|
|
11
|
-
declare function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translations, error, trackErrorClick, }: C4JobDashboardErrorTableProps): import("react
|
|
11
|
+
declare function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translations, error, trackErrorClick, }: C4JobDashboardErrorTableProps): import("react").JSX.Element;
|
|
12
12
|
export default C4JobDashboardErrorTable;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export interface C4JobDashboardPieChartProps {
|
|
|
8
8
|
isLoading: boolean;
|
|
9
9
|
translations: JobDashboardDetailsTranslations;
|
|
10
10
|
}
|
|
11
|
-
declare function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, translations, }: C4JobDashboardPieChartProps): import("react
|
|
11
|
+
declare function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, translations, }: C4JobDashboardPieChartProps): import("react").JSX.Element;
|
|
12
12
|
export default C4JobDashboardPieChart;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ interface C4JobDashboardWorkerTableProps {
|
|
|
8
8
|
isLoading: boolean;
|
|
9
9
|
translations: JobDashboardDetailsTranslations;
|
|
10
10
|
}
|
|
11
|
-
declare function C4JobDashboardWorkerTable({ workerData, error, isLoading, translations, }: C4JobDashboardWorkerTableProps): import("react
|
|
11
|
+
declare function C4JobDashboardWorkerTable({ workerData, error, isLoading, translations, }: C4JobDashboardWorkerTableProps): import("react").JSX.Element;
|
|
12
12
|
export default C4JobDashboardWorkerTable;
|
package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ interface C4JobDashboardTimeRangeDropdownProps {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
translations: JobDashboardDropdownTranslationProps;
|
|
15
15
|
}
|
|
16
|
-
declare function C4JobDashboardTimeRangeDropdown({ onChange, exportInterval, disabled, translations, }: C4JobDashboardTimeRangeDropdownProps): import("react
|
|
16
|
+
declare function C4JobDashboardTimeRangeDropdown({ onChange, exportInterval, disabled, translations, }: C4JobDashboardTimeRangeDropdownProps): import("react").JSX.Element;
|
|
17
17
|
export default C4JobDashboardTimeRangeDropdown;
|
|
@@ -2,5 +2,5 @@ interface C4TimestampInformationProps {
|
|
|
2
2
|
description: string;
|
|
3
3
|
lastUpdatedAt: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const C4TimestampInformation: ({ description, lastUpdatedAt, }: C4TimestampInformationProps) => import("react
|
|
5
|
+
export declare const C4TimestampInformation: ({ description, lastUpdatedAt, }: C4TimestampInformationProps) => import("react").JSX.Element;
|
|
6
6
|
export default C4TimestampInformation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { C4MultiStepUglyModalProps } from './c4-multi-step-modal-ugly.types';
|
|
2
|
-
export declare const C4MultiStepUglyModal: ({ open, steps, onClose, size, }: C4MultiStepUglyModalProps) => import("react
|
|
2
|
+
export declare const C4MultiStepUglyModal: ({ open, steps, onClose, size, }: C4MultiStepUglyModalProps) => import("react").JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { C4NumberInputProps } from './c4-number-input.types';
|
|
2
|
-
export declare const C4NumberInput: ({ label, min, max, step, value, invalid, invalidText, disabled, onChange, }: C4NumberInputProps) => import("react
|
|
2
|
+
export declare const C4NumberInput: ({ label, min, max, step, value, invalid, invalidText, disabled, onChange, }: C4NumberInputProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { C4AsyncModal } from '../c4-async-modal/c4-async-modal.js';
|
|
3
|
+
export const C4OptimizeActivationModal = ({ open, description, onClose, onActivate, }) => {
|
|
4
|
+
return (_jsx(C4AsyncModal, { open: open, modalHeading: 'Enable Optimize', primaryButtonText: 'Enable', secondaryButtonText: 'Cancel', loadingText: 'Enabling Optimize...', onRequestClose: onClose, onRequestSubmit: async () => {
|
|
5
|
+
try {
|
|
6
|
+
await onActivate();
|
|
7
|
+
return { success: true };
|
|
8
|
+
}
|
|
9
|
+
catch (error) {
|
|
10
|
+
return {
|
|
11
|
+
success: false,
|
|
12
|
+
error: {
|
|
13
|
+
title: 'Failed to enable Optimize',
|
|
14
|
+
description: error instanceof Error
|
|
15
|
+
? error.message
|
|
16
|
+
: 'Something went wrong. Try again.',
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}, children: _jsx("p", { children: description }) }));
|
|
21
|
+
};
|
|
@@ -26,5 +26,5 @@ type C4PageProps = {
|
|
|
26
26
|
};
|
|
27
27
|
children?: React.ReactNode;
|
|
28
28
|
};
|
|
29
|
-
declare const C4PageTemplate: ({ header, tabs, banner, children, loading, breadcrumbs, }: C4PageProps) => import("react
|
|
29
|
+
declare const C4PageTemplate: ({ header, tabs, banner, children, loading, breadcrumbs, }: C4PageProps) => import("react").JSX.Element;
|
|
30
30
|
export { C4PageTemplate };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { C4SearchResultsProps } from './c4-search-results.types';
|
|
2
|
-
export declare const C4SearchResults: (props: C4SearchResultsProps) => import("react
|
|
2
|
+
export declare const C4SearchResults: (props: C4SearchResultsProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SVGProps } from 'react';
|
|
2
|
-
export declare const TelemetryMetricsEmptyStateImage: (props: SVGProps<SVGSVGElement>) => import("react
|
|
2
|
+
export declare const TelemetryMetricsEmptyStateImage: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
@@ -20,6 +20,7 @@ export declare const C4_EXTERNAL_URLS: {
|
|
|
20
20
|
readonly encryption: "https://docs.camunda.io/docs/components/console/manage-clusters/create-cluster/";
|
|
21
21
|
readonly clusterLoad: "https://docs.camunda.io/docs/next/components/console/manage-clusters/cluster-capacity/";
|
|
22
22
|
readonly identityAuthorizations: "https://docs.camunda.io/docs/next/components/concepts/access-control/authorizations/";
|
|
23
|
+
readonly multiTenancy: "https://docs.camunda.io/docs/components/admin/tenant/";
|
|
23
24
|
readonly tasklistApiVersions: "https://docs.camunda.io/docs/next/components/tasklist/api-versions/";
|
|
24
25
|
readonly whatsNewIn88: "https://docs.camunda.io/docs/reference/announcements-release-notes/880/whats-new-in-88/";
|
|
25
26
|
readonly announcementsApiTools: "https://docs.camunda.io/docs/reference/announcements-release-notes/880/880-announcements/#apis--tools";
|
|
@@ -19,6 +19,7 @@ export const C4_EXTERNAL_URLS = {
|
|
|
19
19
|
encryption: 'https://docs.camunda.io/docs/components/console/manage-clusters/create-cluster/',
|
|
20
20
|
clusterLoad: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/cluster-capacity/',
|
|
21
21
|
identityAuthorizations: 'https://docs.camunda.io/docs/next/components/concepts/access-control/authorizations/',
|
|
22
|
+
multiTenancy: 'https://docs.camunda.io/docs/components/admin/tenant/',
|
|
22
23
|
tasklistApiVersions: 'https://docs.camunda.io/docs/next/components/tasklist/api-versions/',
|
|
23
24
|
whatsNewIn88: 'https://docs.camunda.io/docs/reference/announcements-release-notes/880/whats-new-in-88/',
|
|
24
25
|
announcementsApiTools: 'https://docs.camunda.io/docs/reference/announcements-release-notes/880/880-announcements/#apis--tools',
|
|
@@ -91,6 +92,7 @@ export function getC4ClusterDetailsUrls(urls) {
|
|
|
91
92
|
identityAuthorization: urls.docs?.identityAuthorization ??
|
|
92
93
|
C4_EXTERNAL_URLS.docs.identityAuthorizations,
|
|
93
94
|
resourceAuthorizations: urls.docs?.resourceAuthorizations ?? C4_EXTERNAL_URLS.docs.conceptsRBA,
|
|
95
|
+
multiTenancy: urls.docs?.multiTenancy ?? C4_EXTERNAL_URLS.docs.multiTenancy,
|
|
94
96
|
swagger: urls.docs?.swagger ?? C4_EXTERNAL_URLS.docs.swagger,
|
|
95
97
|
mcpOverview: urls.docs?.mcpOverview ?? C4_EXTERNAL_URLS.docs.mcpOverview,
|
|
96
98
|
tasklistApiVersions: urls.docs?.tasklistApiVersions ??
|
|
@@ -47,6 +47,7 @@ describe('getC4ClusterDetailsUrls', () => {
|
|
|
47
47
|
releasePolicy: C4_EXTERNAL_URLS.docs.releasePolicy,
|
|
48
48
|
identityAuthorization: C4_EXTERNAL_URLS.docs.identityAuthorizations,
|
|
49
49
|
resourceAuthorizations: C4_EXTERNAL_URLS.docs.conceptsRBA,
|
|
50
|
+
multiTenancy: C4_EXTERNAL_URLS.docs.multiTenancy,
|
|
50
51
|
swagger: C4_EXTERNAL_URLS.docs.swagger,
|
|
51
52
|
mcpOverview: C4_EXTERNAL_URLS.docs.mcpOverview,
|
|
52
53
|
tasklistApiVersions: C4_EXTERNAL_URLS.docs.tasklistApiVersions,
|
|
@@ -151,6 +151,12 @@
|
|
|
151
151
|
"content": "Please review how this may impact your deployed workers and clients before upgrading."
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
+
"selectVersion": {
|
|
155
|
+
"title": "Select target version",
|
|
156
|
+
"legend": "Available versions",
|
|
157
|
+
"latestLabel": "{{name}} (latest)",
|
|
158
|
+
"optionLabel": "{{name}}"
|
|
159
|
+
},
|
|
154
160
|
"tasklistV2": {
|
|
155
161
|
"title": "Tasklist version",
|
|
156
162
|
"notification": {
|
|
@@ -250,6 +250,10 @@
|
|
|
250
250
|
"title": "Oops ... something went wrong.",
|
|
251
251
|
"description": "Please try reloading!",
|
|
252
252
|
"button": "Reload"
|
|
253
|
+
},
|
|
254
|
+
"ipAllowlistConflict": {
|
|
255
|
+
"title": "IP allowlist may block PrivateLink traffic",
|
|
256
|
+
"subtitle": "The IP allowlist also applies to PrivateLink traffic. PrivateLink connections arrive with private VPC IPs (not your public or corporate IPs), so they will be blocked unless the allowlist includes your VPC CIDR. Add your VPC CIDR to the allowlist, or remove the allowlist entirely."
|
|
253
257
|
}
|
|
254
258
|
},
|
|
255
259
|
"encryption": {
|
|
@@ -318,6 +322,16 @@
|
|
|
318
322
|
"optimize": "Get insights to improve your processes",
|
|
319
323
|
"connectors": "Integrate with external systems",
|
|
320
324
|
"identity": "Manage authentication and authorization"
|
|
325
|
+
},
|
|
326
|
+
"optimize": {
|
|
327
|
+
"disabled": {
|
|
328
|
+
"canEdit": "Optimize is not active for this cluster.",
|
|
329
|
+
"noPermission": "Optimize is not active for this cluster. Ask an admin to enable it.",
|
|
330
|
+
"cta": "Enable Optimize",
|
|
331
|
+
"modal": {
|
|
332
|
+
"description": "When enabled, the Optimize component is deployed alongside this cluster for process analytics and reporting."
|
|
333
|
+
}
|
|
334
|
+
}
|
|
321
335
|
}
|
|
322
336
|
},
|
|
323
337
|
"clusterDetails": {
|
|
@@ -601,6 +615,17 @@
|
|
|
601
615
|
"disable": "Disable"
|
|
602
616
|
}
|
|
603
617
|
},
|
|
618
|
+
"multiTenancy": {
|
|
619
|
+
"title": "Multi-tenancy",
|
|
620
|
+
"description": {
|
|
621
|
+
"enabled": "When enabled, tenant-level authorization checks will be enforced for all resource-based authorizations. Users, groups, and roles not assigned to a tenant will lose access to any resources scoped to that tenant.",
|
|
622
|
+
"disabled": "When disabled, tenants can still be created and principals assigned, but tenant-level checks will not be enforced until the feature is enabled. All data is associated with the \u003cdefault\u003e tenant."
|
|
623
|
+
},
|
|
624
|
+
"docsLink": {
|
|
625
|
+
"prefix": "Learn more about",
|
|
626
|
+
"label": "managing tenants"
|
|
627
|
+
}
|
|
628
|
+
},
|
|
604
629
|
"businessIdUniqueness": {
|
|
605
630
|
"title": "Enable Business ID Uniqueness",
|
|
606
631
|
"description": "When enabled, the cluster enforces uniqueness constraints on business identifiers to prevent duplicate process instances.",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"title": "Channel",
|
|
49
49
|
"olderGenerationsLabel": "View older generations",
|
|
50
50
|
"olderGenerationsHelperText": "These are older generations that are used in your organization.",
|
|
51
|
-
"orgUnlockedGenerationsHelperText": "These are
|
|
51
|
+
"orgUnlockedGenerationsHelperText": "These are generations that have been unlocked for your organization."
|
|
52
52
|
},
|
|
53
53
|
"autoUpdate": {
|
|
54
54
|
"title": "Automatic cluster patch updates",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { C4IconProps } from './c4-icons.types';
|
|
2
|
-
export declare const C4AppMenuIcon: ({ size }: C4IconProps) => import("react
|
|
3
|
-
export declare const C4ModelerIcon: ({ size }: C4IconProps) => import("react
|
|
4
|
-
export declare const C4OperateIcon: ({ size }: C4IconProps) => import("react
|
|
5
|
-
export declare const C4TasklistIcon: ({ size }: C4IconProps) => import("react
|
|
6
|
-
export declare const C4OptimizeIcon: ({ size }: C4IconProps) => import("react
|
|
7
|
-
export declare const ErrorIcon: ({ size }: C4IconProps) => import("react
|
|
8
|
-
export declare const AccessRestrictedIcon: ({ size }: C4IconProps) => import("react
|
|
9
|
-
export declare const EmptyJobsIcon: ({ size }: C4IconProps) => import("react
|
|
10
|
-
export declare const JobsCompletedIcon: () => import("react
|
|
11
|
-
export declare const JobsCreatedIcon: () => import("react
|
|
12
|
-
export declare const JobsFailedIcon: () => import("react
|
|
2
|
+
export declare const C4AppMenuIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
3
|
+
export declare const C4ModelerIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
4
|
+
export declare const C4OperateIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
5
|
+
export declare const C4TasklistIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const C4OptimizeIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
7
|
+
export declare const ErrorIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const AccessRestrictedIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const EmptyJobsIcon: ({ size }: C4IconProps) => import("react").JSX.Element;
|
|
10
|
+
export declare const JobsCompletedIcon: () => import("react").JSX.Element;
|
|
11
|
+
export declare const JobsCreatedIcon: () => import("react").JSX.Element;
|
|
12
|
+
export declare const JobsFailedIcon: () => import("react").JSX.Element;
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -123,6 +123,8 @@ export { C4NumberInput } from './components/c4-number-input/c4-number-input';
|
|
|
123
123
|
export type { C4NumberInputProps } from './components/c4-number-input/c4-number-input.types';
|
|
124
124
|
export { C4OldDashboard } from './components/c4-old-dashboard/c4-old-dashboard';
|
|
125
125
|
export type { C4OldDashboardProps } from './components/c4-old-dashboard/c4-old-dashboard.types';
|
|
126
|
+
export { C4OptimizeActivationModal } from './components/c4-optimize-activation-modal/c4-optimize-activation-modal';
|
|
127
|
+
export type { C4OptimizeActivationModalProps } from './components/c4-optimize-activation-modal/c4-optimize-activation-modal.types';
|
|
126
128
|
export { C4PageTemplate } from './components/c4-page-template/c4-page-template';
|
|
127
129
|
export { C4PermissionErrorPage } from './components/c4-permission-error-page/c4-permission-error-page';
|
|
128
130
|
export type { C4PermissionErrorPageProps } from './components/c4-permission-error-page/c4-permission-error-page.types';
|
package/lib/esm/index.js
CHANGED
|
@@ -65,6 +65,7 @@ export { C4MultiStepModal } from './components/c4-multi-step-modal/c4-multi-step
|
|
|
65
65
|
export { C4MultiStepUglyModal } from './components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js';
|
|
66
66
|
export { C4NumberInput } from './components/c4-number-input/c4-number-input.js';
|
|
67
67
|
export { C4OldDashboard } from './components/c4-old-dashboard/c4-old-dashboard.js';
|
|
68
|
+
export { C4OptimizeActivationModal } from './components/c4-optimize-activation-modal/c4-optimize-activation-modal.js';
|
|
68
69
|
export { C4PageTemplate } from './components/c4-page-template/c4-page-template.js';
|
|
69
70
|
export { C4PermissionErrorPage } from './components/c4-permission-error-page/c4-permission-error-page.js';
|
|
70
71
|
export { C4Pricing } from './components/c4-pricing/c4-pricing.js';
|
|
@@ -20,7 +20,7 @@ export interface C4ConsoleDataProviderProps {
|
|
|
20
20
|
* </C4ConsoleDataProvider>
|
|
21
21
|
* </C4ConsoleRuntimeProvider>
|
|
22
22
|
*/
|
|
23
|
-
export declare const C4ConsoleDataProvider: ({ children, initialState, }: C4ConsoleDataProviderProps) =>
|
|
23
|
+
export declare const C4ConsoleDataProvider: ({ children, initialState, }: C4ConsoleDataProviderProps) => React.JSX.Element;
|
|
24
24
|
/**
|
|
25
25
|
* Hook to access shared console data state
|
|
26
26
|
*
|
|
@@ -61,7 +61,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
61
61
|
const fetchOrgOwner = useCallback((orgId, options) => store.fetchOrgOwner(orgId, options), [store]);
|
|
62
62
|
const fetchEarlyAccessFeatures = useCallback((orgId, options) => store.fetchEarlyAccessFeatures(orgId, options), [store]);
|
|
63
63
|
const fetchClusterCapacity = useCallback((orgId, clusterIds, options) => store.fetchClusterCapacity(orgId, clusterIds, options), [store]);
|
|
64
|
-
const fetchUpgradableGenerations = useCallback((fromGenerationUuid, options) => store.fetchUpgradableGenerations(fromGenerationUuid, options), [store]);
|
|
64
|
+
const fetchUpgradableGenerations = useCallback((fromGenerationUuid, clusterId, options) => store.fetchUpgradableGenerations(fromGenerationUuid, clusterId, options), [store]);
|
|
65
65
|
const fetchGenerationDetails = useCallback((generationUuid, options) => store.fetchGenerationDetails(generationUuid, options), [store]);
|
|
66
66
|
const upgradeClusterGeneration = useCallback((params) => store.upgradeClusterGeneration(params), [store]);
|
|
67
67
|
const upsertCluster = useCallback((orgId, cluster) => store.upsertCluster(orgId, cluster), [store]);
|
|
@@ -80,7 +80,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
80
80
|
const getAudits = useCallback((orgId) => store.getAudits(orgId), [store]);
|
|
81
81
|
const getClusterCapacity = useCallback((orgId, clusterId) => store.getClusterCapacity(orgId, clusterId), [store]);
|
|
82
82
|
const getSseEntityVersion = useCallback((orgId, entity, clusterId) => store.getSseEntityVersion(orgId, entity, clusterId), [store]);
|
|
83
|
-
const getUpgradableGenerations = useCallback((fromGenerationUuid) => store.getUpgradableGenerations(fromGenerationUuid), [store]);
|
|
83
|
+
const getUpgradableGenerations = useCallback((fromGenerationUuid, clusterId) => store.getUpgradableGenerations(fromGenerationUuid, clusterId), [store]);
|
|
84
84
|
const getGenerationDetails = useCallback((generationUuid) => store.getGenerationDetails(generationUuid), [store]);
|
|
85
85
|
const api = useMemo(() => ({
|
|
86
86
|
get clusters() {
|