@camunda/ccma-saas-frontend 0.21.8 → 0.21.10
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-console-dashboard/c4-console-dashboard.js +4 -4
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +1 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -0
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +6 -0
- package/package.json +21 -21
|
@@ -157,10 +157,10 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
|
|
|
157
157
|
display: 'flex',
|
|
158
158
|
gap: '8px',
|
|
159
159
|
alignItems: 'center',
|
|
160
|
-
}, children: [_jsx("h3", { children: texts.charts.decisionInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', "aria-label": texts.charts.tooltipText, children: _jsx(CircleHelp, { size: 16, "aria-hidden": true }) }) }) })] }), _jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
|
|
160
|
+
}, children: [_jsx("h3", { children: texts.charts.decisionInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', "aria-label": texts.charts.tooltipText, children: _jsx(CircleHelp, { size: 16, "aria-hidden": true }) }) }) })] }), permissions.showUsage && (_jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
|
|
161
161
|
e.preventDefault();
|
|
162
162
|
actions.onNavigateToUsage();
|
|
163
|
-
}, children: texts.charts.viewUsage }) })] }), decisionInstancesChartLast14Days.dataPoints.length >
|
|
163
|
+
}, children: texts.charts.viewUsage }) }))] }), decisionInstancesChartLast14Days.dataPoints.length >
|
|
164
164
|
0 ? (_jsx("div", { style: { maxHeight: '424px', overflowY: 'auto' }, children: _jsx(ValueMetricsLineChart, { ...decisionInstancesChartLast14Days }, `${orgId}-di`) })) : (_jsx(EmptyState, { iconName: 'ChartLine', text: texts.charts.noUsage }))] }) }) }), _jsx("div", { style: { flex: '1 1 20rem', minWidth: 0 }, children: _jsx(Tile, { style: { height: '100%' }, children: _jsxs("div", { style: {
|
|
165
165
|
display: 'flex',
|
|
166
166
|
gap: '8px',
|
|
@@ -175,10 +175,10 @@ export const C4ConsoleDashboard = ({ orgId, embedded = false, usersAmount, taskU
|
|
|
175
175
|
display: 'flex',
|
|
176
176
|
gap: '8px',
|
|
177
177
|
alignItems: 'center',
|
|
178
|
-
}, children: [_jsx("h3", { children: texts.charts.processInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', "aria-label": texts.charts.tooltipText, children: _jsx(CircleHelp, { size: 16, "aria-hidden": true }) }) }) })] }), _jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
|
|
178
|
+
}, children: [_jsx("h3", { children: texts.charts.processInstances }), _jsx("div", { style: { maxHeight: '16px' }, children: _jsx(Tooltip, { align: 'bottom', label: texts.charts.tooltipText, children: _jsx("button", { style: { all: 'unset' }, type: 'button', "aria-label": texts.charts.tooltipText, children: _jsx(CircleHelp, { size: 16, "aria-hidden": true }) }) }) })] }), permissions.showUsage && (_jsx("div", { children: _jsx(Link, { href: urls.usage, onClick: (e) => {
|
|
179
179
|
e.preventDefault();
|
|
180
180
|
actions.onNavigateToUsage();
|
|
181
|
-
}, children: texts.charts.viewUsage }) })] }), processInstancesChartLast14Days.dataPoints.length > 0 ? (_jsx("div", { style: { maxHeight: '424px', overflowY: 'auto' }, children: _jsx(ValueMetricsLineChart, { ...processInstancesChartLast14Days }, `${orgId}-pi`) })) : (_jsx(EmptyState, { iconName: 'ChartLine', text: texts.charts.noUsage }))] }) }) })] }) })] }) }), _jsx("div", { style: { flex: '5 1 18rem', minWidth: 0 }, children: _jsx("div", { children: _jsx("div", { children: _jsxs(Stack, { gap: 5, children: [_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: texts.alerts.title }), _jsx(Stack, { gap: 4, children: alerts.length > 0 ? (alerts.map((alert) => {
|
|
181
|
+
}, children: texts.charts.viewUsage }) }))] }), processInstancesChartLast14Days.dataPoints.length > 0 ? (_jsx("div", { style: { maxHeight: '424px', overflowY: 'auto' }, children: _jsx(ValueMetricsLineChart, { ...processInstancesChartLast14Days }, `${orgId}-pi`) })) : (_jsx(EmptyState, { iconName: 'ChartLine', text: texts.charts.noUsage }))] }) }) })] }) })] }) }), _jsx("div", { style: { flex: '5 1 18rem', minWidth: 0 }, children: _jsx("div", { children: _jsx("div", { children: _jsxs(Stack, { gap: 5, children: [_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsx("h3", { children: texts.alerts.title }), _jsx(Stack, { gap: 4, children: alerts.length > 0 ? (alerts.map((alert) => {
|
|
182
182
|
return (_jsx(C4ActionableNotification, { role: 'status', title: alert.text, kind: alert.kind, actionButtonLabel: texts.alerts.inspectButton, lowContrast: true, onActionButtonClick: actions.onNavigateToClusters, style: { marginBottom: '.5rem' }, onCloseButtonClick: () => {
|
|
183
183
|
actions.onCloseAlert(alert);
|
|
184
184
|
} }, alert.text));
|
|
@@ -418,6 +418,11 @@ export const C4DashboardApp = observer((props) => {
|
|
|
418
418
|
const clientsCount = shouldLoadApiClients ? clients.length : 0;
|
|
419
419
|
const salesPlanType = orgInfo?.organizationToSalesPlan?.salesPlan?.salesPlanType;
|
|
420
420
|
const isTrialOrg = salesPlanType === 'trial';
|
|
421
|
+
// Same rule as the Usage tab of Management: permission and a sales plan
|
|
422
|
+
// that has usage. Shown while orgInfo is not loaded, like canViewUsers.
|
|
423
|
+
const canViewUsage = (orgInfo?.permissions?.org?.usage?.read ?? true) &&
|
|
424
|
+
(salesPlanType === undefined ||
|
|
425
|
+
['trial', 'in-negotiation', 'enterprise', 'internal'].includes(salesPlanType));
|
|
421
426
|
// Mirrors the "trial expired" gating used elsewhere in Console (e.g. the
|
|
422
427
|
// Clusters nav item / cluster list) so the dashboard's Create Cluster CTA
|
|
423
428
|
// doesn't let expired trials submit a request that will fail server-side.
|
|
@@ -532,6 +537,7 @@ export const C4DashboardApp = observer((props) => {
|
|
|
532
537
|
zoomBar: { enabled: false },
|
|
533
538
|
}, activityEntries: activityEntries, alerts: [], quickLinks: quickLinks, permissions: {
|
|
534
539
|
showUsers: canViewUsers,
|
|
540
|
+
showUsage: canViewUsage,
|
|
535
541
|
showClusterLoad: canViewClusterLoad,
|
|
536
542
|
clusterCreateDisabled: !canCreateCluster,
|
|
537
543
|
}, actions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.10",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -44,33 +44,33 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@camunda/c4-connectors": "1.10.3",
|
|
47
|
-
"@playwright/test": "1.
|
|
47
|
+
"@playwright/test": "1.64.1",
|
|
48
48
|
"@camunda/c4-identity": "0.0.45",
|
|
49
49
|
"@camunda/camunda-composite-components": "0.25.5",
|
|
50
|
-
"@camunda/design-system": "0.
|
|
51
|
-
"@carbon/react": "1.
|
|
50
|
+
"@camunda/design-system": "0.74.0",
|
|
51
|
+
"@carbon/react": "1.118.0",
|
|
52
52
|
"recharts": "3.10.1",
|
|
53
|
-
"@chromatic-com/storybook": "5.
|
|
53
|
+
"@chromatic-com/storybook": "5.5.1",
|
|
54
54
|
"@mdx-js/react": "3.1.1",
|
|
55
|
-
"@storybook/addon-docs": "10.6.
|
|
56
|
-
"@storybook/addon-links": "10.6.
|
|
57
|
-
"@storybook/react": "10.6.
|
|
58
|
-
"@storybook/react-vite": "10.6.
|
|
55
|
+
"@storybook/addon-docs": "10.6.2",
|
|
56
|
+
"@storybook/addon-links": "10.6.2",
|
|
57
|
+
"@storybook/react": "10.6.2",
|
|
58
|
+
"@storybook/react-vite": "10.6.2",
|
|
59
59
|
"@testing-library/jest-dom": "7.0.1",
|
|
60
60
|
"@testing-library/react": "16.3.3",
|
|
61
|
-
"@testing-library/user-event": "14.6.
|
|
61
|
+
"@testing-library/user-event": "14.6.8",
|
|
62
62
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
63
63
|
"eslint-plugin-react": "7.37.5",
|
|
64
64
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
65
|
-
"eslint-plugin-storybook": "10.6.
|
|
66
|
-
"jsdom": "30.1.
|
|
67
|
-
"lucide-react": "1.
|
|
68
|
-
"react": "19.3.
|
|
69
|
-
"react-dom": "19.3.
|
|
70
|
-
"react-is": "19.3.
|
|
65
|
+
"eslint-plugin-storybook": "10.6.2",
|
|
66
|
+
"jsdom": "30.1.3",
|
|
67
|
+
"lucide-react": "1.59.0",
|
|
68
|
+
"react": "19.3.1",
|
|
69
|
+
"react-dom": "19.3.1",
|
|
70
|
+
"react-is": "19.3.1",
|
|
71
71
|
"rimraf": "6.1.3",
|
|
72
|
-
"storybook": "10.6.
|
|
73
|
-
"styled-components": "6.
|
|
72
|
+
"storybook": "10.6.2",
|
|
73
|
+
"styled-components": "6.6.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@camunda/c4-connectors": "1.x",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@camunda/ccma-api": "5.20.
|
|
89
|
-
"@camunda/ccma-shared-types": "10.7.
|
|
88
|
+
"@camunda/ccma-api": "5.20.1",
|
|
89
|
+
"@camunda/ccma-shared-types": "10.7.1",
|
|
90
90
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
91
|
-
"cron-parser": "5.10.
|
|
91
|
+
"cron-parser": "5.10.2",
|
|
92
92
|
"mobx": "6.16.1",
|
|
93
93
|
"mobx-react-lite": "4.1.1",
|
|
94
94
|
"mobx-state-tree": "7.4.0"
|