@camunda/ccma-saas-frontend 0.0.44 → 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-overview/c4-cluster-overview.d.ts +1 -1
- 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 +8 -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-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/i18n/en/modals/clusters.json +6 -0
- package/lib/esm/i18n/en/pages/clusterdetails.json +4 -0
- package/lib/esm/i18n/en/pages/createcluster.json +1 -1
- package/lib/esm/icons/c4-icons.d.ts +11 -11
- 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 +23 -1
- 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-ip-whitelist-tab.js +37 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +91 -50
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +226 -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.js +3 -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-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/package.json +20 -20
|
@@ -11,7 +11,9 @@ import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-p
|
|
|
11
11
|
function safeTranslate(translateFn, key, fallback, options) {
|
|
12
12
|
try {
|
|
13
13
|
const result = translateFn(key, options);
|
|
14
|
-
const keyWithoutNamespace = key.includes(':')
|
|
14
|
+
const keyWithoutNamespace = key.includes(':')
|
|
15
|
+
? key.split(':').slice(1).join(':')
|
|
16
|
+
: key;
|
|
15
17
|
if (result === key || result === keyWithoutNamespace) {
|
|
16
18
|
return fallback;
|
|
17
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { C4ClustersPageProps } from './c4-clusters-page.types';
|
|
2
|
-
export declare const C4ClustersPage: (({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, }: C4ClustersPageProps) => import("react
|
|
2
|
+
export declare const C4ClustersPage: (({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, }: C4ClustersPageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
@@ -271,21 +271,27 @@ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate,
|
|
|
271
271
|
const isLoading = clustersCache?.isLoading ?? false;
|
|
272
272
|
const error = clustersCache?.error;
|
|
273
273
|
const upgradableGenerationsCache = data.upgradableGenerations;
|
|
274
|
+
const generationToClusterId = useMemo(() => {
|
|
275
|
+
const map = new Map();
|
|
276
|
+
for (const rawCluster of rawClusters) {
|
|
277
|
+
const genUuid = getClusterGenerationUuid(rawCluster);
|
|
278
|
+
const clusterUuid = getString(rawCluster, 'uuid') ??
|
|
279
|
+
getString(rawCluster, 'id') ??
|
|
280
|
+
getString(rawCluster, 'clusterId');
|
|
281
|
+
if (genUuid && clusterUuid && !map.has(genUuid)) {
|
|
282
|
+
map.set(genUuid, clusterUuid);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return map;
|
|
286
|
+
}, [rawClusters]);
|
|
274
287
|
useEffect(() => {
|
|
275
288
|
if (rawClusters.length === 0) {
|
|
276
289
|
return;
|
|
277
290
|
}
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
const generationUuid = getClusterGenerationUuid(rawCluster);
|
|
281
|
-
if (generationUuid) {
|
|
282
|
-
uniqueGenerationUuids.add(generationUuid);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
for (const generationUuid of uniqueGenerationUuids) {
|
|
286
|
-
void data.fetchUpgradableGenerations(generationUuid);
|
|
291
|
+
for (const [generationUuid, clusterId] of generationToClusterId) {
|
|
292
|
+
void data.fetchUpgradableGenerations(generationUuid, clusterId);
|
|
287
293
|
}
|
|
288
|
-
}, [data.fetchUpgradableGenerations, rawClusters]);
|
|
294
|
+
}, [data.fetchUpgradableGenerations, generationToClusterId, rawClusters]);
|
|
289
295
|
// Map cluster load from context
|
|
290
296
|
const clusterLoadData = useMemo(() => {
|
|
291
297
|
return clusterCapacityMap;
|
|
@@ -324,8 +330,11 @@ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate,
|
|
|
324
330
|
return { ...item, status: 'maintenance' };
|
|
325
331
|
}
|
|
326
332
|
const generationUuid = getClusterGenerationUuid(rawCluster);
|
|
333
|
+
const representativeClusterId = generationUuid
|
|
334
|
+
? generationToClusterId.get(generationUuid)
|
|
335
|
+
: undefined;
|
|
327
336
|
const upgradableCount = generationUuid
|
|
328
|
-
? (data.getUpgradableGenerations(generationUuid)?.length ?? 0)
|
|
337
|
+
? (data.getUpgradableGenerations(generationUuid, representativeClusterId)?.options.length ?? 0)
|
|
329
338
|
: 0;
|
|
330
339
|
const zeebeStatus = getPathString(rawCluster, [
|
|
331
340
|
'status',
|
|
@@ -355,6 +364,7 @@ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate,
|
|
|
355
364
|
authz,
|
|
356
365
|
clusterLoadData,
|
|
357
366
|
data,
|
|
367
|
+
generationToClusterId,
|
|
358
368
|
isOrgAdmin,
|
|
359
369
|
rawClusters,
|
|
360
370
|
runtime.i18n,
|
package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { C4ConnectorManagementExecutableDetailsPageProps } from './c4-connector-management-executable-details-page.types';
|
|
2
|
-
export declare const C4ConnectorManagementExecutableDetailsPage: (({ orgId, clusterId, connectorId, connectorInstanceId, onNavigate, }: C4ConnectorManagementExecutableDetailsPageProps) => import("react
|
|
2
|
+
export declare const C4ConnectorManagementExecutableDetailsPage: (({ orgId, clusterId, connectorId, connectorInstanceId, onNavigate, }: C4ConnectorManagementExecutableDetailsPageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { C4ConnectorManagementExecutablesTablePageProps } from './c4-connector-management-executables-table-page.types';
|
|
2
|
-
export declare const C4ConnectorManagementExecutablesTablePage: (({ orgId, clusterId, connectorId, onNavigate, }: C4ConnectorManagementExecutablesTablePageProps) => import("react
|
|
2
|
+
export declare const C4ConnectorManagementExecutablesTablePage: (({ orgId, clusterId, connectorId, onNavigate, }: C4ConnectorManagementExecutablesTablePageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { C4ConnectorManagementPageProps } from './c4-connector-management-page.types';
|
|
2
|
-
export declare const C4ConnectorManagementPage: (({ orgId, clusterId, onNavigate }: C4ConnectorManagementPageProps) => import("react
|
|
2
|
+
export declare const C4ConnectorManagementPage: (({ orgId, clusterId, onNavigate }: C4ConnectorManagementPageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
@@ -204,7 +204,7 @@ function buildCreateClusterTranslations(t) {
|
|
|
204
204
|
generationTitle: translate('createcluster:form.generation.title', 'Channel'),
|
|
205
205
|
olderGenerationsLabel: translate('createcluster:form.generation.olderGenerationsLabel', 'View older generations'),
|
|
206
206
|
olderGenerationsHelperText: translate('createcluster:form.generation.olderGenerationsHelperText', 'These are older generations that are used in your organization.'),
|
|
207
|
-
orgUnlockedGenerationsHelperText: translate('createcluster:form.generation.orgUnlockedGenerationsHelperText', 'These are
|
|
207
|
+
orgUnlockedGenerationsHelperText: translate('createcluster:form.generation.orgUnlockedGenerationsHelperText', 'These are generations that have been unlocked for your organization.'),
|
|
208
208
|
autoUpdateTitle: translate('createcluster:form.autoUpdate.title', 'Automatic cluster patch updates'),
|
|
209
209
|
autoUpdateDescription: translate('createcluster:form.autoUpdate.description', 'When enabled, the cluster will be updated to the latest patch release. For entirely new cluster versions, updates will need to be performed manually. Please note that during the update, there may be a brief period of unavailability for the cluster.'),
|
|
210
210
|
autoUpdateDescriptionIfDisabled: translate('createcluster:form.autoUpdate.descriptionIfDisabled', 'Only available for generations in the stable channel.'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -27,33 +27,33 @@
|
|
|
27
27
|
"@camunda/c4-identity": "0.0.41",
|
|
28
28
|
"@carbon/charts": "1.27.11",
|
|
29
29
|
"@carbon/charts-react": "1.27.11",
|
|
30
|
-
"@carbon/layout": "11.
|
|
30
|
+
"@carbon/layout": "11.53.0",
|
|
31
31
|
"@carbon/motion": "^11.46.0",
|
|
32
|
-
"@carbon/react": "1.
|
|
32
|
+
"@carbon/react": "1.109.0",
|
|
33
33
|
"@carbon/styles": "^1.107.0",
|
|
34
34
|
"@carbon/themes": "^11.74.0",
|
|
35
|
-
"@carbon/type": "11.
|
|
35
|
+
"@carbon/type": "11.61.0",
|
|
36
36
|
"@chromatic-com/storybook": "5.2.1",
|
|
37
37
|
"@mdx-js/react": "3.1.1",
|
|
38
|
-
"@storybook/addon-docs": "10.4.
|
|
39
|
-
"@storybook/addon-links": "10.4.
|
|
40
|
-
"@storybook/react": "10.4.
|
|
41
|
-
"@storybook/react-vite": "10.4.
|
|
38
|
+
"@storybook/addon-docs": "10.4.3",
|
|
39
|
+
"@storybook/addon-links": "10.4.3",
|
|
40
|
+
"@storybook/react": "10.4.3",
|
|
41
|
+
"@storybook/react-vite": "10.4.3",
|
|
42
42
|
"@testing-library/jest-dom": "6.9.1",
|
|
43
43
|
"@testing-library/react": "16.3.2",
|
|
44
44
|
"@testing-library/user-event": "14.6.1",
|
|
45
|
-
"eslint-import-resolver-typescript": "4.4.
|
|
45
|
+
"eslint-import-resolver-typescript": "4.4.5",
|
|
46
46
|
"eslint-plugin-react": "7.37.5",
|
|
47
47
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
48
|
-
"eslint-plugin-storybook": "10.4.
|
|
48
|
+
"eslint-plugin-storybook": "10.4.3",
|
|
49
49
|
"jsdom": "29.1.1",
|
|
50
|
-
"react": "19.2.
|
|
51
|
-
"react-dom": "19.2.
|
|
52
|
-
"react-is": "19.2.
|
|
50
|
+
"react": "19.2.7",
|
|
51
|
+
"react-dom": "19.2.7",
|
|
52
|
+
"react-is": "19.2.7",
|
|
53
53
|
"rimraf": "6.1.3",
|
|
54
|
-
"storybook": "10.4.
|
|
54
|
+
"storybook": "10.4.3",
|
|
55
55
|
"styled-components": "6.4.2",
|
|
56
|
-
"@camunda/camunda-composite-components": "0.
|
|
56
|
+
"@camunda/camunda-composite-components": "0.25.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@camunda/c4-connectors": "1.x",
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"@carbon/themes": "11.x",
|
|
67
67
|
"react": "18.x || 19.x",
|
|
68
68
|
"react-dom": "18.x || 19.x",
|
|
69
|
-
"react-markdown": "^8.0.7"
|
|
69
|
+
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
73
73
|
"cron-parser": "5.5.0",
|
|
74
|
-
"mobx": "6.
|
|
74
|
+
"mobx": "6.16.1",
|
|
75
75
|
"mobx-react-lite": "4.1.1",
|
|
76
76
|
"mobx-state-tree": "7.2.0",
|
|
77
|
-
"semver": "7.8.
|
|
78
|
-
"@camunda/ccma-api": "0.0.
|
|
79
|
-
"@camunda/ccma-shared-types": "0.1.
|
|
77
|
+
"semver": "7.8.4",
|
|
78
|
+
"@camunda/ccma-api": "0.0.9",
|
|
79
|
+
"@camunda/ccma-shared-types": "0.1.2"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"clean": "rimraf lib/",
|