@camunda/ccma-saas-frontend 0.13.0 → 0.14.0
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-clusters-empty-state/c4-clusters-empty-state.d.ts +7 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +10 -3
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +9 -3
- package/lib/esm/i18n/en/modals/clusterclients.json +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +5 -5
- package/package.json +4 -4
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { C4ClustersEmptyStateProps } from './c4-clusters-empty-state.types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Every variant keeps the centered default of `C4EmptyState`, and passes no
|
|
5
|
+
* `align`. A host page puts this empty state in a wide content pane of its own,
|
|
6
|
+
* thus a left-aligned block looks unfinished beside the centered empty states
|
|
7
|
+
* of the other pages (#10119). Design owns this decision: do not add
|
|
8
|
+
* `align='start'` again without design.
|
|
9
|
+
*/
|
|
3
10
|
export declare const C4ClustersEmptyState: (props: C4ClustersEmptyStateProps) => JSX.Element;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
3
3
|
import { C4EmptyState } from '../c4-empty-state/c4-empty-state.js';
|
|
4
|
+
/**
|
|
5
|
+
* Every variant keeps the centered default of `C4EmptyState`, and passes no
|
|
6
|
+
* `align`. A host page puts this empty state in a wide content pane of its own,
|
|
7
|
+
* thus a left-aligned block looks unfinished beside the centered empty states
|
|
8
|
+
* of the other pages (#10119). Design owns this decision: do not add
|
|
9
|
+
* `align='start'` again without design.
|
|
10
|
+
*/
|
|
4
11
|
export const C4ClustersEmptyState = (props) => {
|
|
5
12
|
const { variant, texts, onCreateCluster, createClusterButtonDisabled, docsHref, onDocsClick, onUpgrade, onExtendTrial, } = props;
|
|
6
13
|
if (variant === 'noClusters') {
|
|
@@ -19,7 +26,7 @@ export const C4ClustersEmptyState = (props) => {
|
|
|
19
26
|
onClick: onDocsClick,
|
|
20
27
|
}
|
|
21
28
|
: undefined;
|
|
22
|
-
return (_jsx(C4EmptyState, {
|
|
29
|
+
return (_jsx(C4EmptyState, { icon: {
|
|
23
30
|
path: C4_ASSET_URLS.clusterIcon,
|
|
24
31
|
altText: 'clusterIcon',
|
|
25
32
|
}, heading: texts.noClusters.heading, description: texts.noClusters.description, button: button, link: link }));
|
|
@@ -29,7 +36,7 @@ export const C4ClustersEmptyState = (props) => {
|
|
|
29
36
|
onClick: onUpgrade ?? (() => undefined),
|
|
30
37
|
label: texts.trialExpired.upgradeButtonLabel,
|
|
31
38
|
};
|
|
32
|
-
return (_jsx(C4EmptyState, {
|
|
39
|
+
return (_jsx(C4EmptyState, { icon: {
|
|
33
40
|
path: C4_ASSET_URLS.upgradeIcon,
|
|
34
41
|
altText: 'upgradeIcon',
|
|
35
42
|
}, heading: texts.trialExpired.heading, description: texts.trialExpired.adminDescription, button: onExtendTrial ? undefined : upgradeButton, buttons: onExtendTrial
|
|
@@ -42,7 +49,7 @@ export const C4ClustersEmptyState = (props) => {
|
|
|
42
49
|
]
|
|
43
50
|
: undefined }));
|
|
44
51
|
}
|
|
45
|
-
return (_jsx(C4EmptyState, {
|
|
52
|
+
return (_jsx(C4EmptyState, { icon: {
|
|
46
53
|
path: C4_ASSET_URLS.upgradeIcon,
|
|
47
54
|
altText: 'upgradeIcon',
|
|
48
55
|
}, heading: texts.trialExpired.heading, description: texts.trialExpired.memberDescription }));
|
|
@@ -29,9 +29,15 @@ export const C4EmptyState = (props) => {
|
|
|
29
29
|
: undefined;
|
|
30
30
|
const secondaryActions = actions[1] || props.link ? (_jsxs(_Fragment, { children: [actions[1] ? renderAction(actions[1], 'secondary') : null, props.link ? (
|
|
31
31
|
// A link button keeps the horizontal padding of a button, which puts
|
|
32
|
-
// its label 10px off the edge that the text and the icon use. `
|
|
33
|
-
// gives the label the same edge.
|
|
34
|
-
|
|
32
|
+
// its label 10px off the edge that the text and the icon use. `p-0`
|
|
33
|
+
// gives the label the same edge. The link button has no vertical
|
|
34
|
+
// padding to begin with (height comes from `h-9`, not `py-*`), so
|
|
35
|
+
// zeroing all sides is equivalent to zeroing only the horizontal
|
|
36
|
+
// ones. Plain `px-0` doesn't work: the DS stylesheet is Tailwind's
|
|
37
|
+
// content-scanned output, and 0.62.0 stopped shipping a `.px-0`
|
|
38
|
+
// rule because no DS component uses it — `p-0` is the one DS's own
|
|
39
|
+
// components still use, so the rule keeps shipping.
|
|
40
|
+
_jsx(Button, { variant: 'link', asChild: true, className: alignStart ? 'p-0' : undefined, children: _jsx("a", { href: props.link.href, onClick: props.link.onClick, children: props.link.label }) })) : null] })) : undefined;
|
|
35
41
|
// The DS empty state centers its own content (`items-center text-center`) and
|
|
36
42
|
// gives it 4rem of vertical padding (`py-16`). tailwind-merge keeps the last
|
|
37
43
|
// class of a group, thus these three replace the centered defaults. Every
|
|
@@ -709,7 +709,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
|
|
|
709
709
|
items: [
|
|
710
710
|
{
|
|
711
711
|
key: 'clusterUrl',
|
|
712
|
-
label: safeTranslate(t, 'clusterclients:create.fields.url.label', '
|
|
712
|
+
label: safeTranslate(t, 'clusterclients:create.fields.url.label', 'Connection URL'),
|
|
713
713
|
value: clusterUrl || '',
|
|
714
714
|
onClick: () => {
|
|
715
715
|
trackEvent('apiClients:copy', 'Copy Credentials Modal', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { BackupStatus, ClusterEncryptionKey, isGenerationResumable,
|
|
2
|
+
import { BackupStatus, ClusterEncryptionKey, isGenerationResumable, OrganizationRole, SalesPlanType, } from '@camunda/ccma-shared-types';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { C4ClusterList } from '../../components/c4-cluster-list/c4-cluster-list.js';
|
|
@@ -809,9 +809,9 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
809
809
|
backupRegionCodes.length <= 1) {
|
|
810
810
|
continue;
|
|
811
811
|
}
|
|
812
|
-
// Only surface failover for
|
|
813
|
-
// the backend
|
|
814
|
-
if (
|
|
812
|
+
// Only surface failover for pairings that console-admin.yaml marks for
|
|
813
|
+
// it (#9120) — the backend reads the same flag as a backstop.
|
|
814
|
+
if (rawCluster.backupFailoverSupported !== true) {
|
|
815
815
|
continue;
|
|
816
816
|
}
|
|
817
817
|
// Must use the same priority as mapClusterToListItem so the ID stored
|
|
@@ -834,7 +834,7 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
834
834
|
multiRegionClusterIds: eligible,
|
|
835
835
|
syncPendingClusterIds: syncPending,
|
|
836
836
|
};
|
|
837
|
-
}, [rawClusters
|
|
837
|
+
}, [rawClusters]);
|
|
838
838
|
const isMultiRegionClusterFallback = useCallback((clusterId) => multiRegionClusterIds.has(clusterId), [multiRegionClusterIds]);
|
|
839
839
|
const isFailoverSyncPending = useCallback((clusterId) => syncPendingClusterIds.has(clusterId), [syncPendingClusterIds]);
|
|
840
840
|
const failoverSourceClusterIds = useMemo(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@playwright/test": "1.63.0",
|
|
48
48
|
"@camunda/c4-identity": "0.0.45",
|
|
49
49
|
"@camunda/camunda-composite-components": "0.25.4",
|
|
50
|
-
"@camunda/design-system": "0.
|
|
50
|
+
"@camunda/design-system": "0.62.0",
|
|
51
51
|
"@carbon/charts": "1.27.18",
|
|
52
52
|
"@carbon/charts-react": "1.27.18",
|
|
53
53
|
"@carbon/layout": "11.58.0",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@camunda/ccma-api": "2.
|
|
100
|
-
"@camunda/ccma-shared-types": "
|
|
99
|
+
"@camunda/ccma-api": "2.2.0",
|
|
100
|
+
"@camunda/ccma-shared-types": "4.0.0",
|
|
101
101
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
102
102
|
"cron-parser": "5.10.0",
|
|
103
103
|
"mobx": "6.16.1",
|