@camunda/ccma-saas-frontend 0.0.40 → 0.0.41
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/externalUrls.const.d.ts +1 -1
- package/lib/esm/externalUrls.const.js +1 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +4 -1
- package/lib/esm/i18n/en/pages/job-dashboard.json +4 -4
- package/lib/esm/index.d.ts +3 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +17 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +5 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +35 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +22 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.spec.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.spec.js +55 -0
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +5 -0
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.js +309 -0
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +5 -0
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.js +197 -0
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +21 -0
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.js +82 -0
- package/lib/esm/widgets/job-worker/c4-job-worker.types.d.ts +31 -0
- package/lib/esm/widgets/job-worker/c4-job-worker.types.js +6 -0
- package/package.json +4 -4
|
@@ -29,7 +29,7 @@ export declare const C4_EXTERNAL_URLS: {
|
|
|
29
29
|
readonly byom: "https://docs.camunda.io/docs/components/saas/monitoring/cluster-metrics-endpoint/";
|
|
30
30
|
readonly mcpSetup: "https://docs.camunda.io/docs/next/apis-tools/orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-setup/#use-c8ctl-mcp-proxy";
|
|
31
31
|
readonly mcpOverview: "https://docs.camunda.io/docs/next/apis-tools/orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-overview/";
|
|
32
|
-
readonly llmTokens: "https://docs.camunda.io/docs/components/
|
|
32
|
+
readonly llmTokens: "https://docs.camunda.io/docs/next/components/agentic-orchestration/camunda-provided-llm/";
|
|
33
33
|
readonly aiBlueprintsMarketplace: "https://marketplace.camunda.com/";
|
|
34
34
|
readonly byok: {
|
|
35
35
|
readonly overview: "https://docs.camunda.io/docs/components/saas/byok/aws-external-encryption-setup/";
|
|
@@ -27,7 +27,7 @@ export const C4_EXTERNAL_URLS = {
|
|
|
27
27
|
byom: 'https://docs.camunda.io/docs/components/saas/monitoring/cluster-metrics-endpoint/',
|
|
28
28
|
mcpSetup: 'https://docs.camunda.io/docs/next/apis-tools/orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-setup/#use-c8ctl-mcp-proxy',
|
|
29
29
|
mcpOverview: 'https://docs.camunda.io/docs/next/apis-tools/orchestration-cluster-api-mcp/orchestration-cluster-api-mcp-overview/',
|
|
30
|
-
llmTokens: 'https://docs.camunda.io/docs/components/
|
|
30
|
+
llmTokens: 'https://docs.camunda.io/docs/next/components/agentic-orchestration/camunda-provided-llm/',
|
|
31
31
|
aiBlueprintsMarketplace: 'https://marketplace.camunda.com/',
|
|
32
32
|
byok: {
|
|
33
33
|
overview: 'https://docs.camunda.io/docs/components/saas/byok/aws-external-encryption-setup/',
|
|
@@ -123,7 +123,10 @@
|
|
|
123
123
|
"title": "Oops ... something went wrong.",
|
|
124
124
|
"description": "Please try reloading!",
|
|
125
125
|
"button": "Reload"
|
|
126
|
-
}
|
|
126
|
+
},
|
|
127
|
+
"secretsMovedIconAlt": "Connector secrets icon",
|
|
128
|
+
"secretsMovedHeading": "Secrets management has moved",
|
|
129
|
+
"secretsMovedPlaceholder": "Secrets management has moved to the orchestration cluster."
|
|
127
130
|
},
|
|
128
131
|
"hotbackups": {
|
|
129
132
|
"title": "Backups",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"jobWorkload": {
|
|
32
32
|
"title": "Job workload",
|
|
33
|
-
"tooltip": "Tracks the flow of created, completed and not completed (failed, cancelled, timed out) jobs over time for the chosen
|
|
33
|
+
"tooltip": "Tracks the flow of created, completed and not completed (failed, cancelled, timed out) jobs over time for the chosen job type.",
|
|
34
34
|
"subtitle": "Jobs created, completed and not completed (failed, cancelled, timed out) over time"
|
|
35
35
|
},
|
|
36
36
|
"createdVsCompleted": {
|
|
37
|
-
"title": "
|
|
37
|
+
"title": "Job completion rate",
|
|
38
38
|
"tooltip": "Indicates overall completion rate. How many created jobs were finished for the chosen job type."
|
|
39
39
|
},
|
|
40
40
|
"axes": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"headers": {
|
|
67
67
|
"errorType": "Error type",
|
|
68
68
|
"errorMessage": "Error message",
|
|
69
|
-
"jobsWithError": "
|
|
69
|
+
"jobsWithError": "Job workers with errors"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"empty": {
|
|
81
81
|
"title": "No data available.",
|
|
82
82
|
"description": "No data was found for this cluster.",
|
|
83
|
-
"learnMoreLabel": "Learn more about
|
|
83
|
+
"learnMoreLabel": "Learn more about jobs and job workers"
|
|
84
84
|
},
|
|
85
85
|
"generalError": {
|
|
86
86
|
"title": "Error while loading data",
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -206,6 +206,9 @@ export { C4DashboardApp } from './widgets/dashboard/c4-dashboard-app';
|
|
|
206
206
|
export type { C4DashboardAppProps, C4DashboardNavigateEvent, } from './widgets/dashboard/c4-dashboard-app.types';
|
|
207
207
|
export { C4GroupDetailsPage } from './widgets/group-details/c4-group-details-page';
|
|
208
208
|
export type { C4GroupDetailsExternalLinks, C4GroupDetailsNavigateEvent, C4GroupDetailsPageProps, } from './widgets/group-details/c4-group-details-page.types';
|
|
209
|
+
export type { C4JobWorkerDetailsPageProps, C4JobWorkerNavigateEvent, C4JobWorkerOverviewPageProps, } from './widgets/job-worker/c4-job-worker.types';
|
|
210
|
+
export { C4JobWorkerDetailsPage } from './widgets/job-worker/c4-job-worker-details-page';
|
|
211
|
+
export { C4JobWorkerOverviewPage } from './widgets/job-worker/c4-job-worker-overview-page';
|
|
209
212
|
export { C4ManagementApp } from './widgets/management/c4-management-app';
|
|
210
213
|
export type { C4ManagementAppProps, C4ManagementNavigateEvent, } from './widgets/management/c4-management-app.types';
|
|
211
214
|
export { C4ManagementPage } from './widgets/management/c4-management-page';
|
package/lib/esm/index.js
CHANGED
|
@@ -110,6 +110,8 @@ export { C4ConnectorManagementPage } from './widgets/connector-management/c4-con
|
|
|
110
110
|
export { C4CreateClusterPage } from './widgets/create-cluster/c4-create-cluster-page.js';
|
|
111
111
|
export { C4DashboardApp } from './widgets/dashboard/c4-dashboard-app.js';
|
|
112
112
|
export { C4GroupDetailsPage } from './widgets/group-details/c4-group-details-page.js';
|
|
113
|
+
export { C4JobWorkerDetailsPage } from './widgets/job-worker/c4-job-worker-details-page.js';
|
|
114
|
+
export { C4JobWorkerOverviewPage } from './widgets/job-worker/c4-job-worker-overview-page.js';
|
|
113
115
|
export { C4ManagementApp } from './widgets/management/c4-management-app.js';
|
|
114
116
|
export { C4ManagementPage } from './widgets/management/c4-management-page.js';
|
|
115
117
|
export { C4UserDetailsPage } from './widgets/user-details/c4-user-details-page.js';
|
|
@@ -415,6 +415,20 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
415
415
|
trueOnInvalidVersion: false,
|
|
416
416
|
});
|
|
417
417
|
}, [cluster?.generation?.versions?.zeebe]);
|
|
418
|
+
const isSecretsMovedToOrchestration = useMemo(() => {
|
|
419
|
+
if (!(runtime.featureFlags?.isEnabled?.('console.secretsMovedToOrchestrationCluster') ?? false)) {
|
|
420
|
+
return false;
|
|
421
|
+
}
|
|
422
|
+
const zeebe = cluster?.generation?.versions?.zeebe;
|
|
423
|
+
if (!zeebe)
|
|
424
|
+
return false;
|
|
425
|
+
return checkVersion({
|
|
426
|
+
possiblyVersionOrDockerPath: zeebe,
|
|
427
|
+
trueForSnapshot: 'compare',
|
|
428
|
+
operator: VersionCheckOperator.GreaterThanOrEqual,
|
|
429
|
+
versionToCompareTo: '8.10.0',
|
|
430
|
+
});
|
|
431
|
+
}, [cluster?.generation?.versions?.zeebe, runtime.featureFlags]);
|
|
418
432
|
const banner = useMemo(() => {
|
|
419
433
|
if (!cluster)
|
|
420
434
|
return undefined;
|
|
@@ -892,7 +906,7 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
892
906
|
t,
|
|
893
907
|
]);
|
|
894
908
|
const clientsComponent = useMemo(() => {
|
|
895
|
-
return (_jsx(C4ClusterDetailsClientsTab, { cluster: cluster, clients: clients, clientsLoading: clientsLoading, clientsError: clientsError, hasIdentityIntegration: hasIdentityIntegration, orgId: props.orgId, clusterId: props.clusterId, clientsDocsUrl: clientsDocsUrl, mcpSetupDocsUrl: urls.docs.mcpSetup, identityAuthorizationDocsUrl: urls.docs.identityAuthorization, springZeebeGettingStartedDocsUrl: urls.docs.springZeebeGettingStarted, springZeebeConfigDocsUrl: urls.docs.springZeebeConfig, apiConfig: apiConfig, canMutateCluster: canMutateCluster, t: t ?? ((key) => key), onNavigate: props.onNavigate, onReloadClients: reloadClients }));
|
|
909
|
+
return (_jsx(C4ClusterDetailsClientsTab, { cluster: cluster, clients: clients, clientsLoading: clientsLoading, clientsError: clientsError, hasIdentityIntegration: hasIdentityIntegration, isSecretsMovedToOrchestration: isSecretsMovedToOrchestration, orgId: props.orgId, clusterId: props.clusterId, clientsDocsUrl: clientsDocsUrl, mcpSetupDocsUrl: urls.docs.mcpSetup, identityAuthorizationDocsUrl: urls.docs.identityAuthorization, springZeebeGettingStartedDocsUrl: urls.docs.springZeebeGettingStarted, springZeebeConfigDocsUrl: urls.docs.springZeebeConfig, apiConfig: apiConfig, canMutateCluster: canMutateCluster, t: t ?? ((key) => key), onNavigate: props.onNavigate, onReloadClients: reloadClients }));
|
|
896
910
|
}, [
|
|
897
911
|
canMutateCluster,
|
|
898
912
|
clientsDocsUrl,
|
|
@@ -901,6 +915,7 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
901
915
|
clientsLoading,
|
|
902
916
|
cluster,
|
|
903
917
|
hasIdentityIntegration,
|
|
918
|
+
isSecretsMovedToOrchestration,
|
|
904
919
|
apiConfig,
|
|
905
920
|
props.clusterId,
|
|
906
921
|
props.onNavigate,
|
|
@@ -1033,7 +1048,7 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
1033
1048
|
const secureConnectivityComponent = (_jsx(C4ClusterDetailsSecureConnectivityTab, { orgId: props.orgId, clusterId: props.clusterId, apiConfig: apiConfig, canMutateCluster: canMutateCluster, isActive: activeTabId === 'privateNetworking', t: t, docsUrls: {
|
|
1034
1049
|
secureConnectivity: urls.docs.secureConnectivity,
|
|
1035
1050
|
}, onNavigate: props.onNavigate }));
|
|
1036
|
-
const connectorSecretsComponent = (_jsx(C4ClusterDetailsConnectorSecretsTab, { orgId: props.orgId, clusterId: props.clusterId, apiConfig: apiConfig, canMutateCluster: canMutateCluster, connectorSecretsPermissions: {
|
|
1051
|
+
const connectorSecretsComponent = (_jsx(C4ClusterDetailsConnectorSecretsTab, { orgId: props.orgId, clusterId: props.clusterId, apiConfig: apiConfig, canMutateCluster: canMutateCluster, isSecretsMovedToOrchestration: isSecretsMovedToOrchestration, connectorSecretsPermissions: {
|
|
1037
1052
|
canCreate: Boolean(orgPermissions?.cluster.connectorSecrets.create),
|
|
1038
1053
|
canRead: Boolean(orgPermissions?.cluster.connectorSecrets.read),
|
|
1039
1054
|
canUpdate: Boolean(orgPermissions?.cluster.connectorSecrets.update),
|
|
@@ -16,6 +16,7 @@ interface C4ClusterDetailsClientsTabProps {
|
|
|
16
16
|
springZeebeConfigDocsUrl: string;
|
|
17
17
|
apiConfig: RequestBaseParamsConfig;
|
|
18
18
|
canMutateCluster: boolean;
|
|
19
|
+
isSecretsMovedToOrchestration?: boolean;
|
|
19
20
|
t: TranslateFn | undefined;
|
|
20
21
|
onNavigate?: (event: unknown) => void;
|
|
21
22
|
onReloadClients: () => Promise<void>;
|
|
@@ -71,7 +71,7 @@ function renderInlineLink(value, opts) {
|
|
|
71
71
|
}
|
|
72
72
|
export const C4ClusterDetailsClientsTab = (props) => {
|
|
73
73
|
const runtime = useC4ConsoleRuntime();
|
|
74
|
-
const { cluster, clients, clientsLoading, clientsError, hasIdentityIntegration, orgId, clusterId, clientsDocsUrl, mcpSetupDocsUrl: mcpSetupDocsUrlFromProps, identityAuthorizationDocsUrl, springZeebeGettingStartedDocsUrl, springZeebeConfigDocsUrl, apiConfig, canMutateCluster, t, onNavigate, onReloadClients, } = props;
|
|
74
|
+
const { cluster, clients, clientsLoading, clientsError, hasIdentityIntegration, orgId, clusterId, clientsDocsUrl, mcpSetupDocsUrl: mcpSetupDocsUrlFromProps, identityAuthorizationDocsUrl, springZeebeGettingStartedDocsUrl, springZeebeConfigDocsUrl, apiConfig, canMutateCluster, isSecretsMovedToOrchestration, t, onNavigate, onReloadClients, } = props;
|
|
75
75
|
const oauthTokenUrl = useMemo(() => {
|
|
76
76
|
const base = runtime.publicUrls?.loginBaseUrl || runtime.backendUrls.identityApiBaseUrl;
|
|
77
77
|
return base ? joinUrl(base, '/oauth/token') : '';
|
|
@@ -329,7 +329,10 @@ export const C4ClusterDetailsClientsTab = (props) => {
|
|
|
329
329
|
value: 'Secrets',
|
|
330
330
|
label: safeTranslate(t, 'clusterclients:create.fields.scopes.secrets', 'Secrets'),
|
|
331
331
|
},
|
|
332
|
-
])
|
|
332
|
+
])
|
|
333
|
+
.filter((scope) => !(isSecretsMovedToOrchestration &&
|
|
334
|
+
scope.value === 'Secrets'))
|
|
335
|
+
.map((scope) => (_jsx(Checkbox, { labelText: scope.label, id: scope.value, value: scope.value, checked: clientScopes.includes(scope.value), onChange: () => {
|
|
333
336
|
setClientScopes((current) => {
|
|
334
337
|
if (current.includes(scope.value)) {
|
|
335
338
|
return current.filter((s) => s !== scope.value);
|
|
@@ -66,7 +66,7 @@ function renderTab(opts) {
|
|
|
66
66
|
permissions: ['Zeebe'],
|
|
67
67
|
internal: false,
|
|
68
68
|
},
|
|
69
|
-
], clientsLoading: false, clientsError: false, hasIdentityIntegration: false, orgId: 'org-1', clusterId: 'cluster-1', clientsDocsUrl: 'https://docs.example/clients', mcpSetupDocsUrl: 'https://docs.example/mcp-setup', identityAuthorizationDocsUrl: 'https://docs.example/identity-auth', springZeebeGettingStartedDocsUrl: 'https://docs.example/spring-zeebe', springZeebeConfigDocsUrl: 'https://docs.example/spring-zeebe-config', apiConfig: { stage: 'dev' }, canMutateCluster: true, t: undefined, onReloadClients: async () => undefined }) }));
|
|
69
|
+
], clientsLoading: false, clientsError: false, hasIdentityIntegration: opts?.hasIdentityIntegration ?? false, isSecretsMovedToOrchestration: opts?.isSecretsMovedToOrchestration ?? false, orgId: 'org-1', clusterId: 'cluster-1', clientsDocsUrl: 'https://docs.example/clients', mcpSetupDocsUrl: 'https://docs.example/mcp-setup', identityAuthorizationDocsUrl: 'https://docs.example/identity-auth', springZeebeGettingStartedDocsUrl: 'https://docs.example/spring-zeebe', springZeebeConfigDocsUrl: 'https://docs.example/spring-zeebe-config', apiConfig: { stage: 'dev' }, canMutateCluster: true, t: undefined, onReloadClients: async () => undefined }) }));
|
|
70
70
|
}
|
|
71
71
|
class ResizeObserverMock {
|
|
72
72
|
observe() { }
|
|
@@ -139,6 +139,40 @@ describe('C4ClusterDetailsClientsTab', () => {
|
|
|
139
139
|
expect(within(createDialog).getByText('Maximum number of clients reached for this cluster')).toBeTruthy();
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
|
+
describe('Secrets scope visibility', () => {
|
|
143
|
+
async function openCreateDialog() {
|
|
144
|
+
await userEvent.click(screen.getByRole('button', { name: 'Open create client' }));
|
|
145
|
+
return screen.findByRole('dialog', {
|
|
146
|
+
name: 'Create new client credentials',
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
it('shows Secrets scope when isSecretsMovedToOrchestration is false (non-identity)', async () => {
|
|
150
|
+
renderTab({ isSecretsMovedToOrchestration: false });
|
|
151
|
+
await openCreateDialog();
|
|
152
|
+
expect(screen.getByLabelText('Secrets')).toBeInTheDocument();
|
|
153
|
+
});
|
|
154
|
+
it('hides Secrets scope when isSecretsMovedToOrchestration is true (non-identity)', async () => {
|
|
155
|
+
renderTab({ isSecretsMovedToOrchestration: true });
|
|
156
|
+
await openCreateDialog();
|
|
157
|
+
expect(screen.queryByLabelText('Secrets')).not.toBeInTheDocument();
|
|
158
|
+
});
|
|
159
|
+
it('shows Secrets scope when isSecretsMovedToOrchestration is false (identity)', async () => {
|
|
160
|
+
renderTab({
|
|
161
|
+
hasIdentityIntegration: true,
|
|
162
|
+
isSecretsMovedToOrchestration: false,
|
|
163
|
+
});
|
|
164
|
+
await openCreateDialog();
|
|
165
|
+
expect(screen.getByLabelText('Administration API - Resource: Secrets')).toBeInTheDocument();
|
|
166
|
+
});
|
|
167
|
+
it('hides Secrets scope when isSecretsMovedToOrchestration is true (identity)', async () => {
|
|
168
|
+
renderTab({
|
|
169
|
+
hasIdentityIntegration: true,
|
|
170
|
+
isSecretsMovedToOrchestration: true,
|
|
171
|
+
});
|
|
172
|
+
await openCreateDialog();
|
|
173
|
+
expect(screen.queryByLabelText('Administration API - Resource: Secrets')).not.toBeInTheDocument();
|
|
174
|
+
});
|
|
175
|
+
});
|
|
142
176
|
it("does not include a trailing '/' in ZEEBE_ADDRESS", async () => {
|
|
143
177
|
vi.mocked(ConsoleClusterClientsService.create).mockResolvedValue({
|
|
144
178
|
uuid: 'uuid-new',
|
|
@@ -18,6 +18,7 @@ interface C4ClusterDetailsConnectorSecretsTabProps {
|
|
|
18
18
|
kind: string;
|
|
19
19
|
url?: string;
|
|
20
20
|
}) => void;
|
|
21
|
+
isSecretsMovedToOrchestration?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare const C4ClusterDetailsConnectorSecretsTab: (props: C4ClusterDetailsConnectorSecretsTabProps) => JSX.Element;
|
|
23
24
|
export {};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { C3EmptyState } from '@camunda/camunda-composite-components';
|
|
2
8
|
import { ConsoleConnectorSecretsService } from '@camunda/ccma-api';
|
|
3
9
|
import { SECRETS_MAX_LENGTH, SseEntity } from '@camunda/ccma-shared-types';
|
|
4
10
|
import { CodeSnippet, FileUploader, Form, InlineLoading, InlineNotification, Link, Modal, PasswordInput, Select, SelectItem, Stack, TextArea, TextInput, } from '@carbon/react';
|
|
5
11
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
12
|
+
import { C4_ASSET_URLS } from '../../../assetUrls.js';
|
|
6
13
|
import { C4ClusterDetailsConnectorSecrets } from '../../../components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js';
|
|
7
14
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
8
15
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
@@ -38,7 +45,7 @@ function renderInlineLink0(value, linkRenderer) {
|
|
|
38
45
|
return (_jsxs("span", { children: [before, linkRenderer(label), after] }));
|
|
39
46
|
}
|
|
40
47
|
export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
41
|
-
const { orgId, clusterId, apiConfig, canMutateCluster, connectorSecretsPermissions, docsUrl, t, onNavigate, } = props;
|
|
48
|
+
const { orgId, clusterId, apiConfig, canMutateCluster, connectorSecretsPermissions, docsUrl, t, onNavigate, isSecretsMovedToOrchestration, } = props;
|
|
42
49
|
const data = useC4ConsoleData();
|
|
43
50
|
const runtime = useC4ConsoleRuntime();
|
|
44
51
|
const trackEvent = useCallback((eventName, message, meta) => {
|
|
@@ -127,17 +134,21 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
127
134
|
}, [clusterId, connectorSecretsMap, reloadConnectorSecrets]);
|
|
128
135
|
const sseSecretsVersion = data.getSseEntityVersion(orgId, SseEntity.CONNECTOR_SECRETS, clusterId);
|
|
129
136
|
useEffect(() => {
|
|
137
|
+
if (isSecretsMovedToOrchestration)
|
|
138
|
+
return;
|
|
130
139
|
connectorSecretsLoadedRef.current = false;
|
|
131
140
|
setConnectorSecretsMap({});
|
|
132
141
|
setConnectorSecretsError(false);
|
|
133
142
|
void reloadConnectorSecrets();
|
|
134
|
-
}, [reloadConnectorSecrets]);
|
|
143
|
+
}, [reloadConnectorSecrets, isSecretsMovedToOrchestration]);
|
|
135
144
|
useEffect(() => {
|
|
145
|
+
if (isSecretsMovedToOrchestration)
|
|
146
|
+
return;
|
|
136
147
|
if (!connectorSecretsLoadedRef.current) {
|
|
137
148
|
return;
|
|
138
149
|
}
|
|
139
150
|
void reloadConnectorSecrets();
|
|
140
|
-
}, [reloadConnectorSecrets, sseSecretsVersion]);
|
|
151
|
+
}, [reloadConnectorSecrets, sseSecretsVersion, isSecretsMovedToOrchestration]);
|
|
141
152
|
// Secrets prefixed with 'CAMUNDA_PROVIDED_' are system-managed and should be
|
|
142
153
|
// shown as protected (hidden) — users cannot reveal, update, or delete them.
|
|
143
154
|
const secrets = Object.keys(connectorSecretsMap)
|
|
@@ -155,6 +166,14 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
155
166
|
url: docsUrl ?? '',
|
|
156
167
|
});
|
|
157
168
|
}, children: label })));
|
|
169
|
+
if (isSecretsMovedToOrchestration) {
|
|
170
|
+
return (_jsx(C3EmptyState, { icon: {
|
|
171
|
+
path: C4_ASSET_URLS.connectorSecretIcon,
|
|
172
|
+
altText: safeTranslate(t, 'clusterdetails:connectorSecrets.secretsMovedIconAlt', 'Connector secrets icon'),
|
|
173
|
+
}, heading: safeTranslate(t, 'clusterdetails:connectorSecrets.secretsMovedHeading', 'Secrets management has moved'), description:
|
|
174
|
+
/* TBD: Replace with final copy before promoting to preprod. */
|
|
175
|
+
safeTranslate(t, 'clusterdetails:connectorSecrets.secretsMovedPlaceholder', 'Secrets management has moved to the orchestration cluster.') }));
|
|
176
|
+
}
|
|
158
177
|
return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsConnectorSecrets, { secrets: secrets, isLoading: connectorSecretsLoading, hasError: connectorSecretsError, hasImportFromClusterFeature: true, hasExportFeature: true, text: {
|
|
159
178
|
title: safeTranslate(t, 'clusterdetails:connectorSecrets.title', 'Connector secrets'),
|
|
160
179
|
createButton: safeTranslate(t, 'clusterdetails:connectorSecrets.createButton', 'Create secret'),
|
package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
// @vitest-environment jsdom
|
|
8
|
+
import { cleanup, render, screen } from '@testing-library/react';
|
|
9
|
+
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
10
|
+
import { C4ConsoleRuntimeProvider } from '../../../runtime/c4-console-runtime-context.js';
|
|
11
|
+
import { C4ClusterDetailsConnectorSecretsTab } from './c4-cluster-details-connector-secrets-tab.js';
|
|
12
|
+
vi.mock('@camunda/ccma-api', async () => {
|
|
13
|
+
const actual = await vi.importActual('@camunda/ccma-api');
|
|
14
|
+
return {
|
|
15
|
+
...actual,
|
|
16
|
+
ConsoleConnectorSecretsService: {
|
|
17
|
+
getAll: vi.fn().mockResolvedValue({}),
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
vi.mock('@camunda/camunda-composite-components', async () => {
|
|
22
|
+
const actual = await vi.importActual('@camunda/camunda-composite-components');
|
|
23
|
+
return {
|
|
24
|
+
...actual,
|
|
25
|
+
C3EmptyState: ({ heading, description, icon, }) => (_jsxs("div", { "data-testid": 'secrets-moved-placeholder', children: [icon && _jsx("img", { src: icon.path, alt: icon.altText }), _jsx("h2", { children: heading }), _jsx("p", { children: description })] })),
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
vi.mock('../../../runtime/c4-console-data-context', () => ({
|
|
29
|
+
useC4ConsoleData: () => ({
|
|
30
|
+
clusters: { getClusters: vi.fn().mockReturnValue([]) },
|
|
31
|
+
getSseEntityVersion: vi.fn().mockReturnValue(0),
|
|
32
|
+
}),
|
|
33
|
+
}));
|
|
34
|
+
function renderTab(opts) {
|
|
35
|
+
return render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
36
|
+
stage: 'dev',
|
|
37
|
+
auth: { getAccessToken: async () => 'token' },
|
|
38
|
+
backendUrls: {},
|
|
39
|
+
}, children: _jsx(C4ClusterDetailsConnectorSecretsTab, { orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canMutateCluster: true, isSecretsMovedToOrchestration: opts?.isSecretsMovedToOrchestration ?? false }) }));
|
|
40
|
+
}
|
|
41
|
+
describe('C4ClusterDetailsConnectorSecretsTab', () => {
|
|
42
|
+
afterEach(() => {
|
|
43
|
+
cleanup();
|
|
44
|
+
});
|
|
45
|
+
it('does not render the placeholder when isSecretsMovedToOrchestration is false', () => {
|
|
46
|
+
renderTab({ isSecretsMovedToOrchestration: false });
|
|
47
|
+
expect(screen.queryByTestId('secrets-moved-placeholder')).not.toBeInTheDocument();
|
|
48
|
+
});
|
|
49
|
+
it('renders the moved placeholder when isSecretsMovedToOrchestration is true', () => {
|
|
50
|
+
renderTab({ isSecretsMovedToOrchestration: true });
|
|
51
|
+
expect(screen.getByTestId('secrets-moved-placeholder')).toBeInTheDocument();
|
|
52
|
+
expect(screen.getByRole('heading', { name: 'Secrets management has moved' })).toBeInTheDocument();
|
|
53
|
+
expect(screen.getByRole('img', { name: 'Connector secrets icon' })).toBeInTheDocument();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import type { C4JobWorkerDetailsPageProps } from './c4-job-worker.types';
|
|
3
|
+
export declare const C4JobWorkerDetailsPage: (({ orgId, clusterId, jobType: jobTypeProp, onNavigate, docsUrls, }: C4JobWorkerDetailsPageProps) => JSX.Element) & {
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
@@ -0,0 +1,309 @@
|
|
|
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 { ConsoleClusterService, SaaSJobsService } from '@camunda/ccma-api';
|
|
8
|
+
import { observer } from 'mobx-react-lite';
|
|
9
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
10
|
+
import { C4JobDashboardDetailsPage } from '../../components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js';
|
|
11
|
+
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
12
|
+
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
13
|
+
import { getRegion, latestUpdateTime, makeTr, safeDecodeURIComponent, safeT, toJobsError, } from './c4-job-worker.helpers.js';
|
|
14
|
+
function buildDetailsTranslations(tr) {
|
|
15
|
+
return {
|
|
16
|
+
title: tr('details.title', 'Job type details'),
|
|
17
|
+
lastUpdated: tr('shared.lastUpdated', 'Last updated'),
|
|
18
|
+
jobTypeLabel: tr('details.jobTypeLabel', 'View details for job type:'),
|
|
19
|
+
backgroundFetching: tr('shared.backgroundFetching', 'Loading more data'),
|
|
20
|
+
dataLimitWarning: {
|
|
21
|
+
title: tr('shared.dataLimitWarning.title', 'Data loading limit reached.'),
|
|
22
|
+
description: tr('shared.dataLimitWarning.description', 'Job data limit has been reached for the selected date range.'),
|
|
23
|
+
},
|
|
24
|
+
charts: {
|
|
25
|
+
jobLabel: {
|
|
26
|
+
singular: tr('details.charts.jobLabel.singular', 'job'),
|
|
27
|
+
plural: tr('details.charts.jobLabel.plural', 'jobs'),
|
|
28
|
+
},
|
|
29
|
+
jobWorkload: {
|
|
30
|
+
title: tr('details.charts.jobWorkload.title', 'Job workload'),
|
|
31
|
+
tooltip: tr('details.charts.jobWorkload.tooltip', 'Tracks the flow of created, completed and not completed (failed, cancelled, timed out) jobs over time for the chosen job type.'),
|
|
32
|
+
subtitle: tr('details.charts.jobWorkload.subtitle', 'Jobs created, completed and not completed (failed, cancelled, timed out) over time'),
|
|
33
|
+
},
|
|
34
|
+
createdVsCompleted: {
|
|
35
|
+
title: tr('details.charts.createdVsCompleted.title', 'Job completion rate'),
|
|
36
|
+
tooltip: tr('details.charts.createdVsCompleted.tooltip', 'Indicates overall completion rate. How many created jobs were finished for the chosen job type.'),
|
|
37
|
+
},
|
|
38
|
+
axes: {
|
|
39
|
+
time: tr('details.charts.axes.time', 'Time'),
|
|
40
|
+
numberOfJobs: tr('details.charts.axes.numberOfJobs', 'Number of jobs'),
|
|
41
|
+
},
|
|
42
|
+
legend: {
|
|
43
|
+
created: tr('details.charts.legend.created', 'Created'),
|
|
44
|
+
completed: tr('details.charts.legend.completed', 'Completed'),
|
|
45
|
+
failed: tr('details.charts.legend.failed', 'Not completed'),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
workerTable: {
|
|
49
|
+
title: tr('details.workerTable.title', 'Job workers'),
|
|
50
|
+
headers: {
|
|
51
|
+
workerName: tr('details.workerTable.headers.workerName', 'Worker name'),
|
|
52
|
+
createdJobs: tr('details.workerTable.headers.createdJobs', 'Created jobs'),
|
|
53
|
+
completedJobs: tr('details.workerTable.headers.completedJobs', 'Completed jobs'),
|
|
54
|
+
completedJobsTooltip: tr('details.workerTable.headers.completedJobsTooltip', 'Jobs that have finished executing successfully.'),
|
|
55
|
+
failedJobs: tr('details.workerTable.headers.failedJobs', 'Not completed jobs'),
|
|
56
|
+
failedJobsTooltip: tr('details.workerTable.headers.failedJobsTooltip', 'Jobs that encountered an error and could not complete.'),
|
|
57
|
+
lastCompleted: tr('details.workerTable.headers.lastCompleted', 'Last completed'),
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
errorTable: {
|
|
61
|
+
title: tr('details.errorTable.title', 'Not completed jobs by error type'),
|
|
62
|
+
searchLabel: tr('details.errorTable.searchLabel', 'Search'),
|
|
63
|
+
viewErrorsAction: tr('details.errorTable.viewErrorsAction', 'View errors'),
|
|
64
|
+
headers: {
|
|
65
|
+
errorType: tr('details.errorTable.headers.errorType', 'Error type'),
|
|
66
|
+
errorMessage: tr('details.errorTable.headers.errorMessage', 'Error message'),
|
|
67
|
+
jobsWithError: tr('details.errorTable.headers.jobsWithError', 'Job workers with errors'),
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
errorHandler: {
|
|
71
|
+
forbidden: {
|
|
72
|
+
title: tr('shared.errorHandler.forbidden.title', 'Missing permissions to view or feature disabled'),
|
|
73
|
+
description: tr('shared.errorHandler.forbidden.description', 'Please contact your organization owner or admin to give you the necessary permissions or enable this feature'),
|
|
74
|
+
learnMoreLabel: tr('shared.errorHandler.forbidden.learnMoreLabel', 'Learn more about roles and restrictions'),
|
|
75
|
+
},
|
|
76
|
+
empty: {
|
|
77
|
+
title: tr('shared.errorHandler.empty.title', 'No data available.'),
|
|
78
|
+
description: tr('shared.errorHandler.empty.description', 'No data was found for this cluster.'),
|
|
79
|
+
learnMoreLabel: tr('shared.errorHandler.empty.learnMoreLabel', 'Learn more about jobs and job workers'),
|
|
80
|
+
},
|
|
81
|
+
generalError: {
|
|
82
|
+
title: tr('shared.errorHandler.generalError.title', 'Error while loading data'),
|
|
83
|
+
description: tr('shared.errorHandler.generalError.description', "We couldn't load the requested data. Please try again."),
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
dropdown: {
|
|
87
|
+
label: tr('shared.dropdown.label', 'Select time range'),
|
|
88
|
+
last: tr('shared.dropdown.last', 'Last'),
|
|
89
|
+
minute: tr('shared.dropdown.minute', 'minute'),
|
|
90
|
+
minutes: tr('shared.dropdown.minutes', 'minutes'),
|
|
91
|
+
hour: tr('shared.dropdown.hour', 'hour'),
|
|
92
|
+
hours: tr('shared.dropdown.hours', 'hours'),
|
|
93
|
+
days: tr('shared.dropdown.days', 'days'),
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
const INITIAL_JOB_DATA = {
|
|
98
|
+
isIncomplete: false,
|
|
99
|
+
isLoading: false,
|
|
100
|
+
};
|
|
101
|
+
const INITIAL_WORKER_DATA = { items: [], isLoading: false };
|
|
102
|
+
const INITIAL_TIME_SERIES = { items: [], isLoading: false };
|
|
103
|
+
const INITIAL_ERROR_DATA = { items: [], isLoading: false };
|
|
104
|
+
export const C4JobWorkerDetailsPage = observer(({ orgId, clusterId, jobType: jobTypeProp, onNavigate, docsUrls, }) => {
|
|
105
|
+
const runtime = useC4ConsoleRuntime();
|
|
106
|
+
const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
|
|
107
|
+
const t = runtime.i18n?.t;
|
|
108
|
+
const tr = useMemo(() => makeTr(t), [t]);
|
|
109
|
+
const [cluster, setCluster] = useState();
|
|
110
|
+
const [clusterLoading, setClusterLoading] = useState(false);
|
|
111
|
+
const [config, setConfig] = useState();
|
|
112
|
+
const [configLoading, setConfigLoading] = useState(false);
|
|
113
|
+
const [lastUpdatedAt, setLastUpdatedAt] = useState('');
|
|
114
|
+
const [jobData, setJobData] = useState(INITIAL_JOB_DATA);
|
|
115
|
+
const [workerData, setWorkerData] = useState(INITIAL_WORKER_DATA);
|
|
116
|
+
const [timeSeries, setTimeSeries] = useState(INITIAL_TIME_SERIES);
|
|
117
|
+
const [errorData, setErrorData] = useState(INITIAL_ERROR_DATA);
|
|
118
|
+
const [range, setRange] = useState(1440);
|
|
119
|
+
useEffect(() => {
|
|
120
|
+
setCluster(undefined);
|
|
121
|
+
setConfig(undefined);
|
|
122
|
+
setLastUpdatedAt('');
|
|
123
|
+
setJobData(INITIAL_JOB_DATA);
|
|
124
|
+
setWorkerData(INITIAL_WORKER_DATA);
|
|
125
|
+
setTimeSeries(INITIAL_TIME_SERIES);
|
|
126
|
+
setErrorData(INITIAL_ERROR_DATA);
|
|
127
|
+
}, [orgId, clusterId]);
|
|
128
|
+
const loadCluster = useCallback(async () => {
|
|
129
|
+
if (!orgId || !clusterId)
|
|
130
|
+
return;
|
|
131
|
+
setClusterLoading(true);
|
|
132
|
+
try {
|
|
133
|
+
const loaded = await ConsoleClusterService.getCluster({
|
|
134
|
+
config: apiConfig,
|
|
135
|
+
params: { orgId, clusterId },
|
|
136
|
+
});
|
|
137
|
+
setCluster(loaded);
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
setCluster(undefined);
|
|
141
|
+
}
|
|
142
|
+
finally {
|
|
143
|
+
setClusterLoading(false);
|
|
144
|
+
}
|
|
145
|
+
}, [apiConfig, clusterId, orgId]);
|
|
146
|
+
useEffect(() => {
|
|
147
|
+
void loadCluster();
|
|
148
|
+
}, [loadCluster]);
|
|
149
|
+
const loadData = useCallback(async () => {
|
|
150
|
+
if (!cluster)
|
|
151
|
+
return;
|
|
152
|
+
if (cluster.uuid !== clusterId)
|
|
153
|
+
return;
|
|
154
|
+
const region = getRegion(cluster);
|
|
155
|
+
const jobType = safeDecodeURIComponent(jobTypeProp);
|
|
156
|
+
const now = Date.now();
|
|
157
|
+
const from = new Date(now - range * 60 * 1000);
|
|
158
|
+
const to = new Date(now);
|
|
159
|
+
// Config (fire-and-forget)
|
|
160
|
+
setConfigLoading(true);
|
|
161
|
+
SaaSJobsService.getJobStatisticsConfiguration({
|
|
162
|
+
config: apiConfig,
|
|
163
|
+
params: { orgId, clusterId, region },
|
|
164
|
+
})
|
|
165
|
+
.then((raw) => setConfig(raw?.jobMetrics ?? undefined))
|
|
166
|
+
.catch(() => setConfig(undefined))
|
|
167
|
+
.finally(() => setConfigLoading(false));
|
|
168
|
+
// Last updated timestamp (24h window)
|
|
169
|
+
SaaSJobsService.getJobStatisticsGlobal({
|
|
170
|
+
config: apiConfig,
|
|
171
|
+
params: {
|
|
172
|
+
orgId,
|
|
173
|
+
clusterId,
|
|
174
|
+
region,
|
|
175
|
+
from: new Date(now - 24 * 60 * 60 * 1000),
|
|
176
|
+
to: new Date(now),
|
|
177
|
+
},
|
|
178
|
+
})
|
|
179
|
+
.then((raw) => setLastUpdatedAt(latestUpdateTime(raw)))
|
|
180
|
+
.catch(() => setLastUpdatedAt(''));
|
|
181
|
+
// Job global summary
|
|
182
|
+
setJobData({ isIncomplete: false, isLoading: true });
|
|
183
|
+
SaaSJobsService.getJobStatisticsGlobal({
|
|
184
|
+
config: apiConfig,
|
|
185
|
+
params: { orgId, clusterId, region, from, to, jobType },
|
|
186
|
+
})
|
|
187
|
+
.then((raw) => setJobData({
|
|
188
|
+
data: {
|
|
189
|
+
created: raw.created,
|
|
190
|
+
completed: raw.completed,
|
|
191
|
+
failed: raw.failed,
|
|
192
|
+
lastUpdatedAt: latestUpdateTime(raw),
|
|
193
|
+
},
|
|
194
|
+
isIncomplete: Boolean(raw.isIncomplete),
|
|
195
|
+
isLoading: false,
|
|
196
|
+
}))
|
|
197
|
+
.catch((err) => setJobData({
|
|
198
|
+
isIncomplete: false,
|
|
199
|
+
isLoading: false,
|
|
200
|
+
error: toJobsError(err),
|
|
201
|
+
}));
|
|
202
|
+
// Time series
|
|
203
|
+
setTimeSeries({ items: [], isLoading: true });
|
|
204
|
+
SaaSJobsService.getJobStatisticsTimeSeries({
|
|
205
|
+
config: apiConfig,
|
|
206
|
+
params: { orgId, clusterId, region, from, to, jobType },
|
|
207
|
+
})
|
|
208
|
+
.then((raw) => setTimeSeries({
|
|
209
|
+
items: (raw.items ?? []).map((item) => ({
|
|
210
|
+
time: item.time,
|
|
211
|
+
lastUpdatedAt: '',
|
|
212
|
+
created: item.created,
|
|
213
|
+
completed: item.completed,
|
|
214
|
+
failed: item.failed,
|
|
215
|
+
})),
|
|
216
|
+
isLoading: false,
|
|
217
|
+
}))
|
|
218
|
+
.catch((err) => setTimeSeries({
|
|
219
|
+
items: [],
|
|
220
|
+
isLoading: false,
|
|
221
|
+
error: toJobsError(err),
|
|
222
|
+
}));
|
|
223
|
+
// Workers with full pagination
|
|
224
|
+
setWorkerData({ items: [], isLoading: true });
|
|
225
|
+
void (async () => {
|
|
226
|
+
try {
|
|
227
|
+
let allWorkers = [];
|
|
228
|
+
let cursor;
|
|
229
|
+
do {
|
|
230
|
+
const response = await SaaSJobsService.getJobStatisticsWorkers({
|
|
231
|
+
config: apiConfig,
|
|
232
|
+
params: { orgId, clusterId, region, from, to, jobType, cursor },
|
|
233
|
+
});
|
|
234
|
+
allWorkers = [...allWorkers, ...(response.items ?? [])];
|
|
235
|
+
cursor = response.page?.endCursor || undefined;
|
|
236
|
+
} while (cursor);
|
|
237
|
+
setWorkerData({
|
|
238
|
+
items: allWorkers.map((item) => ({
|
|
239
|
+
worker: item.worker,
|
|
240
|
+
lastUpdatedAt: latestUpdateTime(item),
|
|
241
|
+
created: item.created,
|
|
242
|
+
completed: item.completed,
|
|
243
|
+
failed: item.failed,
|
|
244
|
+
})),
|
|
245
|
+
isLoading: false,
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
catch (err) {
|
|
249
|
+
setWorkerData({
|
|
250
|
+
items: [],
|
|
251
|
+
isLoading: false,
|
|
252
|
+
error: toJobsError(err),
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
})();
|
|
256
|
+
// Errors with full pagination
|
|
257
|
+
setErrorData({ items: [], isLoading: true });
|
|
258
|
+
void (async () => {
|
|
259
|
+
try {
|
|
260
|
+
let allErrors = [];
|
|
261
|
+
let cursor;
|
|
262
|
+
do {
|
|
263
|
+
const response = await SaaSJobsService.getJobStatisticsErrors({
|
|
264
|
+
config: apiConfig,
|
|
265
|
+
params: { orgId, clusterId, region, from, to, jobType, cursor },
|
|
266
|
+
});
|
|
267
|
+
allErrors = [...allErrors, ...(response.items ?? [])];
|
|
268
|
+
cursor = response.page?.endCursor || undefined;
|
|
269
|
+
} while (cursor);
|
|
270
|
+
setErrorData({
|
|
271
|
+
items: allErrors.map((item) => ({
|
|
272
|
+
errorCode: item.errorCode ?? '',
|
|
273
|
+
errorMessage: item.errorMessage ?? '',
|
|
274
|
+
workers: item.workers ?? 0,
|
|
275
|
+
})),
|
|
276
|
+
isLoading: false,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
catch (err) {
|
|
280
|
+
setErrorData({ items: [], isLoading: false, error: toJobsError(err) });
|
|
281
|
+
}
|
|
282
|
+
})();
|
|
283
|
+
}, [apiConfig, cluster, clusterId, jobTypeProp, orgId, range]);
|
|
284
|
+
useEffect(() => {
|
|
285
|
+
void loadData();
|
|
286
|
+
}, [loadData]);
|
|
287
|
+
const translations = useMemo(() => buildDetailsTranslations(tr), [tr]);
|
|
288
|
+
const breadcrumb = useMemo(() => ({
|
|
289
|
+
elements: [
|
|
290
|
+
{
|
|
291
|
+
key: '1',
|
|
292
|
+
label: safeT(t, 'c4console:clusters.list.title', 'Clusters'),
|
|
293
|
+
onClick: () => onNavigate?.({ kind: 'clusters', orgId }),
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
key: '2',
|
|
297
|
+
label: cluster?.name ?? clusterId,
|
|
298
|
+
onClick: () => onNavigate?.({ kind: 'clusterDetails', orgId, clusterId }),
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
key: '3',
|
|
302
|
+
label: safeT(t, 'c4console:clusters.details.jobDashboard', 'Job dashboard'),
|
|
303
|
+
onClick: () => onNavigate?.({ kind: 'jobWorkerOverview', orgId, clusterId }),
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
}), [cluster?.name, clusterId, onNavigate, orgId, t]);
|
|
307
|
+
const operateBaseUrl = cluster?.status?.operateUrl ?? null;
|
|
308
|
+
return (_jsx(C4JobDashboardDetailsPage, { jobType: safeDecodeURIComponent(jobTypeProp), config: config, isLoadingConfig: configLoading || clusterLoading, lastUpdatedAt: lastUpdatedAt, breadcrumb: breadcrumb, jobData: jobData, workerData: workerData, timeSeries: timeSeries, errorData: { ...errorData, operateBaseUrl }, onTimeRangeChange: setRange, translations: translations, docsUrls: docsUrls }));
|
|
309
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import type { C4JobWorkerOverviewPageProps } from './c4-job-worker.types';
|
|
3
|
+
export declare const C4JobWorkerOverviewPage: (({ orgId, clusterId, onNavigate, docsUrls, }: C4JobWorkerOverviewPageProps) => JSX.Element) & {
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
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 { ConsoleClusterService, SaaSJobsService } from '@camunda/ccma-api';
|
|
8
|
+
import { observer } from 'mobx-react-lite';
|
|
9
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
10
|
+
import { C4JobDashboardOverviewPage } from '../../components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js';
|
|
11
|
+
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
12
|
+
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
13
|
+
import { getRegion, latestUpdateTime, makeTr, safeT, toJobsError, } from './c4-job-worker.helpers.js';
|
|
14
|
+
function buildOverviewTranslations(tr) {
|
|
15
|
+
return {
|
|
16
|
+
title: tr('overview.title', 'Job types'),
|
|
17
|
+
description: tr('overview.description', 'View all job types running against the cluster.'),
|
|
18
|
+
learnMoreLabel: tr('overview.learnMoreLabel', 'See more information about job types here.'),
|
|
19
|
+
searchLabel: tr('overview.search.label', 'Search'),
|
|
20
|
+
lastUpdated: tr('shared.lastUpdated', 'Last updated'),
|
|
21
|
+
backgroundFetching: tr('shared.backgroundFetching', 'Loading more data'),
|
|
22
|
+
dataLimitWarning: {
|
|
23
|
+
title: tr('shared.dataLimitWarning.title', 'Data loading limit reached.'),
|
|
24
|
+
description: tr('shared.dataLimitWarning.description', 'Job data limit has been reached for the selected date range.'),
|
|
25
|
+
},
|
|
26
|
+
tableHeaders: {
|
|
27
|
+
jobType: tr('overview.table.headers.jobType', 'Job type'),
|
|
28
|
+
assignedWorkers: tr('overview.table.headers.assignedWorkers', 'Assigned workers'),
|
|
29
|
+
createdJobs: tr('overview.table.headers.createdJobs', 'Created jobs'),
|
|
30
|
+
createdJobsTooltip: tr('overview.table.headers.createdJobsTooltip', 'All jobs created regardless of their current or final state'),
|
|
31
|
+
completedJobs: tr('overview.table.headers.completedJobs', 'Completed jobs'),
|
|
32
|
+
completedJobsTooltip: tr('overview.table.headers.completedJobsTooltip', 'Jobs that have finished executing successfully.'),
|
|
33
|
+
failedJobs: tr('overview.table.headers.failedJobs', 'Not completed jobs'),
|
|
34
|
+
failedJobsTooltip: tr('overview.table.headers.failedJobsTooltip', 'Jobs that encountered an error and could not complete.'),
|
|
35
|
+
lastCompleted: tr('overview.table.headers.lastCompleted', 'Last completed'),
|
|
36
|
+
},
|
|
37
|
+
errorHandler: {
|
|
38
|
+
forbidden: {
|
|
39
|
+
title: tr('shared.errorHandler.forbidden.title', 'Missing permissions to view or feature disabled'),
|
|
40
|
+
description: tr('shared.errorHandler.forbidden.description', 'Contact your organization admin to grant the required permissions or enable this feature.'),
|
|
41
|
+
learnMoreLabel: tr('shared.errorHandler.forbidden.learnMoreLabel', 'Learn more about roles and restrictions'),
|
|
42
|
+
},
|
|
43
|
+
empty: {
|
|
44
|
+
title: tr('shared.errorHandler.empty.title', 'No data available.'),
|
|
45
|
+
description: tr('shared.errorHandler.empty.description', 'No data was found for this cluster.'),
|
|
46
|
+
learnMoreLabel: tr('shared.errorHandler.empty.learnMoreLabel', 'Learn more about Jobs and Job workers'),
|
|
47
|
+
},
|
|
48
|
+
generalError: {
|
|
49
|
+
title: tr('shared.errorHandler.generalError.title', 'Error while loading data'),
|
|
50
|
+
description: tr('shared.errorHandler.generalError.description', "We couldn't load the requested data. Please try again."),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
dropdown: {
|
|
54
|
+
label: tr('shared.dropdown.label', 'Select time range'),
|
|
55
|
+
last: tr('shared.dropdown.last', 'Last'),
|
|
56
|
+
minute: tr('shared.dropdown.minute', 'minute'),
|
|
57
|
+
minutes: tr('shared.dropdown.minutes', 'minutes'),
|
|
58
|
+
hour: tr('shared.dropdown.hour', 'hour'),
|
|
59
|
+
hours: tr('shared.dropdown.hours', 'hours'),
|
|
60
|
+
days: tr('shared.dropdown.days', 'days'),
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export const C4JobWorkerOverviewPage = observer(({ orgId, clusterId, onNavigate, docsUrls, }) => {
|
|
65
|
+
const runtime = useC4ConsoleRuntime();
|
|
66
|
+
const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
|
|
67
|
+
const t = runtime.i18n?.t;
|
|
68
|
+
const tr = useMemo(() => makeTr(t), [t]);
|
|
69
|
+
const [cluster, setCluster] = useState();
|
|
70
|
+
const [clusterLoading, setClusterLoading] = useState(false);
|
|
71
|
+
const [config, setConfig] = useState();
|
|
72
|
+
const [configLoading, setConfigLoading] = useState(false);
|
|
73
|
+
const [lastUpdatedAt, setLastUpdatedAt] = useState('');
|
|
74
|
+
const [items, setItems] = useState([]);
|
|
75
|
+
const [isIncomplete, setIsIncomplete] = useState(false);
|
|
76
|
+
const [tableLoading, setTableLoading] = useState(false);
|
|
77
|
+
const [tableError, setTableError] = useState();
|
|
78
|
+
const [range, setRange] = useState(1440);
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
setCluster(undefined);
|
|
81
|
+
setConfig(undefined);
|
|
82
|
+
setLastUpdatedAt('');
|
|
83
|
+
setItems([]);
|
|
84
|
+
setIsIncomplete(false);
|
|
85
|
+
setTableError(undefined);
|
|
86
|
+
}, [orgId, clusterId]);
|
|
87
|
+
const loadCluster = useCallback(async () => {
|
|
88
|
+
if (!orgId || !clusterId)
|
|
89
|
+
return;
|
|
90
|
+
setClusterLoading(true);
|
|
91
|
+
try {
|
|
92
|
+
const loaded = await ConsoleClusterService.getCluster({
|
|
93
|
+
config: apiConfig,
|
|
94
|
+
params: { orgId, clusterId },
|
|
95
|
+
});
|
|
96
|
+
setCluster(loaded);
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
setCluster(undefined);
|
|
100
|
+
}
|
|
101
|
+
finally {
|
|
102
|
+
setClusterLoading(false);
|
|
103
|
+
}
|
|
104
|
+
}, [apiConfig, clusterId, orgId]);
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
void loadCluster();
|
|
107
|
+
}, [loadCluster]);
|
|
108
|
+
const loadData = useCallback(async () => {
|
|
109
|
+
if (!cluster)
|
|
110
|
+
return;
|
|
111
|
+
if (cluster.uuid !== clusterId)
|
|
112
|
+
return;
|
|
113
|
+
const region = getRegion(cluster);
|
|
114
|
+
const now = Date.now();
|
|
115
|
+
const from = new Date(now - range * 60 * 1000);
|
|
116
|
+
const to = new Date(now);
|
|
117
|
+
// Load config (fire-and-forget, non-blocking for table)
|
|
118
|
+
setConfigLoading(true);
|
|
119
|
+
SaaSJobsService.getJobStatisticsConfiguration({
|
|
120
|
+
config: apiConfig,
|
|
121
|
+
params: { orgId, clusterId, region },
|
|
122
|
+
})
|
|
123
|
+
.then((raw) => setConfig(raw?.jobMetrics ?? undefined))
|
|
124
|
+
.catch(() => setConfig(undefined))
|
|
125
|
+
.finally(() => setConfigLoading(false));
|
|
126
|
+
// Load last updated timestamp using 24h global stats
|
|
127
|
+
SaaSJobsService.getJobStatisticsGlobal({
|
|
128
|
+
config: apiConfig,
|
|
129
|
+
params: {
|
|
130
|
+
orgId,
|
|
131
|
+
clusterId,
|
|
132
|
+
region,
|
|
133
|
+
from: new Date(now - 24 * 60 * 60 * 1000),
|
|
134
|
+
to: new Date(now),
|
|
135
|
+
},
|
|
136
|
+
})
|
|
137
|
+
.then((raw) => setLastUpdatedAt(latestUpdateTime(raw)))
|
|
138
|
+
.catch(() => setLastUpdatedAt(''));
|
|
139
|
+
// Load overview data with full pagination
|
|
140
|
+
setTableLoading(true);
|
|
141
|
+
setTableError(undefined);
|
|
142
|
+
try {
|
|
143
|
+
let allItems = [];
|
|
144
|
+
let incomplete = false;
|
|
145
|
+
let cursor;
|
|
146
|
+
do {
|
|
147
|
+
const response = await SaaSJobsService.getJobStatisticsOverview({
|
|
148
|
+
config: apiConfig,
|
|
149
|
+
params: { orgId, clusterId, region, from, to, cursor },
|
|
150
|
+
});
|
|
151
|
+
allItems = [...allItems, ...(response.items ?? [])];
|
|
152
|
+
incomplete = incomplete || Boolean(response.isIncomplete);
|
|
153
|
+
cursor = response.page?.endCursor || undefined;
|
|
154
|
+
} while (cursor);
|
|
155
|
+
setIsIncomplete(incomplete);
|
|
156
|
+
setItems(allItems.map((item) => ({
|
|
157
|
+
jobType: item.jobType,
|
|
158
|
+
workers: item.workers ?? 0,
|
|
159
|
+
lastUpdatedAt: latestUpdateTime(item),
|
|
160
|
+
created: item.created,
|
|
161
|
+
completed: item.completed,
|
|
162
|
+
failed: item.failed,
|
|
163
|
+
onClick: () => onNavigate?.({
|
|
164
|
+
kind: 'jobWorkerDetails',
|
|
165
|
+
orgId,
|
|
166
|
+
clusterId,
|
|
167
|
+
jobType: item.jobType,
|
|
168
|
+
}),
|
|
169
|
+
})));
|
|
170
|
+
}
|
|
171
|
+
catch (err) {
|
|
172
|
+
setTableError(toJobsError(err));
|
|
173
|
+
}
|
|
174
|
+
finally {
|
|
175
|
+
setTableLoading(false);
|
|
176
|
+
}
|
|
177
|
+
}, [apiConfig, cluster, clusterId, onNavigate, orgId, range]);
|
|
178
|
+
useEffect(() => {
|
|
179
|
+
void loadData();
|
|
180
|
+
}, [loadData]);
|
|
181
|
+
const translations = useMemo(() => buildOverviewTranslations(tr), [tr]);
|
|
182
|
+
const breadcrumb = useMemo(() => ({
|
|
183
|
+
elements: [
|
|
184
|
+
{
|
|
185
|
+
key: '1',
|
|
186
|
+
label: safeT(t, 'c4console:clusters.list.title', 'Clusters'),
|
|
187
|
+
onClick: () => onNavigate?.({ kind: 'clusters', orgId }),
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
key: '2',
|
|
191
|
+
label: cluster?.name ?? clusterId,
|
|
192
|
+
onClick: () => onNavigate?.({ kind: 'clusterDetails', orgId, clusterId }),
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
}), [cluster?.name, clusterId, onNavigate, orgId, t]);
|
|
196
|
+
return (_jsx(C4JobDashboardOverviewPage, { breadcrumb: breadcrumb, lastUpdatedAt: lastUpdatedAt, items: items, onTimeRangeChange: setRange, error: tableError, config: config, isIncomplete: isIncomplete, isLoadingConfig: configLoading || clusterLoading, isLoadingTable: tableLoading, docsUrls: docsUrls, translations: translations }));
|
|
197
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ConsoleClusterDto } from '@camunda/ccma-shared-types';
|
|
2
|
+
import type { JobsError } from '../../components/c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
3
|
+
export type TranslateFn = (key: string) => string;
|
|
4
|
+
export type Tr = (key: string, fallback: string) => string;
|
|
5
|
+
export declare function makeTr(t: TranslateFn | undefined): Tr;
|
|
6
|
+
export declare function safeT(t: TranslateFn | undefined, key: string, fallback: string): string;
|
|
7
|
+
export declare function getRegion(cluster: ConsoleClusterDto): string;
|
|
8
|
+
export declare function formatDateTime(dateStr: string | null | undefined): string;
|
|
9
|
+
export declare function latestUpdateTime(item: {
|
|
10
|
+
created: {
|
|
11
|
+
lastUpdatedAt?: string | null;
|
|
12
|
+
};
|
|
13
|
+
completed: {
|
|
14
|
+
lastUpdatedAt?: string | null;
|
|
15
|
+
};
|
|
16
|
+
failed: {
|
|
17
|
+
lastUpdatedAt?: string | null;
|
|
18
|
+
};
|
|
19
|
+
}): string;
|
|
20
|
+
export declare function toJobsError(err: any): JobsError;
|
|
21
|
+
export declare function safeDecodeURIComponent(value: string): string;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
export function makeTr(t) {
|
|
7
|
+
return (key, fallback) => {
|
|
8
|
+
if (!t)
|
|
9
|
+
return fallback;
|
|
10
|
+
try {
|
|
11
|
+
const full = `jobDashboard:${key}`;
|
|
12
|
+
const result = t(full);
|
|
13
|
+
return result && result !== full ? result : fallback;
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
return fallback;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function safeT(t, key, fallback) {
|
|
21
|
+
if (!t)
|
|
22
|
+
return fallback;
|
|
23
|
+
try {
|
|
24
|
+
const result = t(key);
|
|
25
|
+
return result && result !== key ? result : fallback;
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
return fallback;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function getRegion(cluster) {
|
|
32
|
+
const zeebeRestUrl = cluster.status?.zeebeRestUrl;
|
|
33
|
+
if (!zeebeRestUrl)
|
|
34
|
+
return '';
|
|
35
|
+
const normalizedHost = zeebeRestUrl.replace(/^https?:\/\//, '').split('/')[0];
|
|
36
|
+
return normalizedHost.split('.')[0] ?? '';
|
|
37
|
+
}
|
|
38
|
+
export function formatDateTime(dateStr) {
|
|
39
|
+
if (!dateStr)
|
|
40
|
+
return '';
|
|
41
|
+
try {
|
|
42
|
+
const d = new Date(dateStr);
|
|
43
|
+
if (isNaN(d.getTime()))
|
|
44
|
+
return '';
|
|
45
|
+
return d.toLocaleString('en-US', {
|
|
46
|
+
month: 'short',
|
|
47
|
+
day: '2-digit',
|
|
48
|
+
year: 'numeric',
|
|
49
|
+
hour: '2-digit',
|
|
50
|
+
minute: '2-digit',
|
|
51
|
+
hour12: false,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
return '';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export function latestUpdateTime(item) {
|
|
59
|
+
const dates = [
|
|
60
|
+
item.created?.lastUpdatedAt,
|
|
61
|
+
item.completed?.lastUpdatedAt,
|
|
62
|
+
item.failed?.lastUpdatedAt,
|
|
63
|
+
].filter((d) => Boolean(d));
|
|
64
|
+
return dates.length
|
|
65
|
+
? formatDateTime(dates.reduce((a, b) => (a > b ? a : b)))
|
|
66
|
+
: '';
|
|
67
|
+
}
|
|
68
|
+
export function toJobsError(err) {
|
|
69
|
+
return {
|
|
70
|
+
status: err?.status ?? 500,
|
|
71
|
+
details: String(err?.statusText ?? ''),
|
|
72
|
+
message: String(err?.message ?? 'Failed to load data'),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function safeDecodeURIComponent(value) {
|
|
76
|
+
try {
|
|
77
|
+
return decodeURIComponent(value);
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DocsUrls } from '../../components/c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
2
|
+
export type C4JobWorkerNavigateEvent = {
|
|
3
|
+
kind: 'clusters';
|
|
4
|
+
orgId: string;
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'clusterDetails';
|
|
7
|
+
orgId: string;
|
|
8
|
+
clusterId: string;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'jobWorkerOverview';
|
|
11
|
+
orgId: string;
|
|
12
|
+
clusterId: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: 'jobWorkerDetails';
|
|
15
|
+
orgId: string;
|
|
16
|
+
clusterId: string;
|
|
17
|
+
jobType: string;
|
|
18
|
+
};
|
|
19
|
+
export interface C4JobWorkerOverviewPageProps {
|
|
20
|
+
orgId: string;
|
|
21
|
+
clusterId: string;
|
|
22
|
+
onNavigate?: (event: C4JobWorkerNavigateEvent) => void;
|
|
23
|
+
docsUrls?: DocsUrls;
|
|
24
|
+
}
|
|
25
|
+
export interface C4JobWorkerDetailsPageProps {
|
|
26
|
+
orgId: string;
|
|
27
|
+
clusterId: string;
|
|
28
|
+
jobType: string;
|
|
29
|
+
onNavigate?: (event: C4JobWorkerNavigateEvent) => void;
|
|
30
|
+
docsUrls?: DocsUrls;
|
|
31
|
+
}
|
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.41",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"rimraf": "6.1.3",
|
|
51
51
|
"storybook": "10.3.5",
|
|
52
52
|
"styled-components": "6.4.0",
|
|
53
|
-
"@camunda/camunda-composite-components": "0.23.
|
|
53
|
+
"@camunda/camunda-composite-components": "0.23.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@camunda/c4-connectors": "1.x",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"mobx-react-lite": "4.1.1",
|
|
71
71
|
"mobx-state-tree": "7.2.0",
|
|
72
72
|
"semver": "7.7.4",
|
|
73
|
-
"@camunda/ccma-api": "0.0.
|
|
74
|
-
"@camunda/ccma-shared-types": "0.0.
|
|
73
|
+
"@camunda/ccma-api": "0.0.6",
|
|
74
|
+
"@camunda/ccma-shared-types": "0.0.6"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"clean": "rimraf lib/",
|