@camunda/ccma-saas-frontend 0.13.1 → 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.
@@ -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. `px-0`
33
- // gives the label the same edge.
34
- _jsx(Button, { variant: 'link', asChild: true, className: alignStart ? 'px-0' : undefined, children: _jsx("a", { href: props.link.href, onClick: props.link.onClick, children: props.link.label }) })) : null] })) : undefined;
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
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "fields": {
39
39
  "url": {
40
- "label": "Cluster URL",
40
+ "label": "Connection URL",
41
41
  "helperText": "can contain letters, dashes, underscores, and digits"
42
42
  },
43
43
  "name": {
@@ -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', 'Cluster URL'),
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, isSupportedFailoverRegionPair, OrganizationRole, SalesPlanType, } from '@camunda/ccma-shared-types';
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 supported reverse-region pairs (#9120) —
813
- // the backend enforces the same list as a backstop.
814
- if (!isSupportedFailoverRegionPair(backupRegionCodes[0], backupRegionCodes[1], runtime.stage)) {
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, runtime.stage]);
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.13.1",
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.54.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.1.0",
100
- "@camunda/ccma-shared-types": "3.0.0",
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",