@camunda/ccma-saas-frontend 0.13.1 → 0.15.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-create-cluster/c4-create-cluster.js +8 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +1 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +3 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +9 -3
- package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.d.ts +31 -0
- package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +31 -0
- package/lib/esm/externalUrls.const.d.ts +1 -0
- package/lib/esm/externalUrls.const.js +2 -0
- package/lib/esm/i18n/en/modals/clusterclients.json +1 -1
- package/lib/esm/i18n/en/pages/createcluster.json +1 -1
- package/lib/esm/index.d.ts +2 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/runtime/c4-console-runtime-context.js +90 -4
- 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/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +6 -2
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.types.d.ts +1 -0
- package/package.json +4 -4
|
@@ -594,7 +594,14 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
|
|
|
594
594
|
const selectedRegion = formElements.region.options.find((reg) => reg.uuid === region);
|
|
595
595
|
return (_jsxs(Stack, { gap: 2, children: [_jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx(FormElementTitle, { title: formElements.region.backupRegionTitle }) }) }), _jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx(C4CreateClusterTileGrid, { items: selectedRegion?.backups ?? [], getKey: (option) => option.uuid, getLabel: (option) => `${option.regions.length > 1
|
|
596
596
|
? 'Dual region: '
|
|
597
|
-
: 'Single region: '}${option.regions.map((reg) => reg.label).join(', ')}`, getBadge: (option) =>
|
|
597
|
+
: 'Single region: '}${option.regions.map((reg) => reg.label).join(', ')}`, getBadge: (option) => {
|
|
598
|
+
if (option.failover) {
|
|
599
|
+
return (_jsx(Tag, { type: 'green', size: 'sm', children: "Cold recovery supported" }));
|
|
600
|
+
}
|
|
601
|
+
// A single-region backup keeps no copy in a second
|
|
602
|
+
// region, thus it gets no tag.
|
|
603
|
+
return option.regions.length > 1 ? (_jsx(Tag, { type: 'gray', size: 'sm', children: "Secondary backup only" })) : undefined;
|
|
604
|
+
}, getDisabled: () => isSubmitting() || noAvailableSlots, value: backupRegion, onChange: updateBackupRegion, ariaLabel: formElements.region.backupRegionTitle, columnWidth: '260px', searchPlaceholder: 'Search backup regions' }, region) }) }), _jsx(Grid, { children: _jsx(Column, { span: 12, children: _jsx("p", { children: formElements.region.backupDescription }) }) })] }));
|
|
598
605
|
}
|
|
599
606
|
else {
|
|
600
607
|
return _jsx(_Fragment, {});
|
|
@@ -61,4 +61,5 @@ export declare const CLUSTER_NAME: {
|
|
|
61
61
|
message: string;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
+
export declare const backupDescription = "Choose single region to keep your data in one place, or dual region for higher redundancy across geographically separate locations. Some dual-region locations also support cross-region cold recovery, while others only keep a secondary copy of your backups.";
|
|
64
65
|
export declare const basicCreateClusterProps: C4CreateClusterProps;
|
|
@@ -266,6 +266,8 @@ export const CLUSTER_NAME = {
|
|
|
266
266
|
return response;
|
|
267
267
|
},
|
|
268
268
|
};
|
|
269
|
+
// The page adds a "Learn more" link after this text. The component does not.
|
|
270
|
+
export const backupDescription = 'Choose single region to keep your data in one place, or dual region for higher redundancy across geographically separate locations. Some dual-region locations also support cross-region cold recovery, while others only keep a secondary copy of your backups.';
|
|
269
271
|
export const basicCreateClusterProps = {
|
|
270
272
|
loading: false,
|
|
271
273
|
banner: {
|
|
@@ -285,7 +287,7 @@ export const basicCreateClusterProps = {
|
|
|
285
287
|
title: 'Select region',
|
|
286
288
|
description: 'Pre-selection is based on the best current load and performance.',
|
|
287
289
|
backupRegionTitle: 'Backup location',
|
|
288
|
-
backupDescription
|
|
290
|
+
backupDescription,
|
|
289
291
|
dualRegionBackups: true,
|
|
290
292
|
options: generateRegions(),
|
|
291
293
|
validationMessage: 'Please select a region for your cluster',
|
|
@@ -190,7 +190,7 @@ export interface C4CreateClusterProps {
|
|
|
190
190
|
title: string;
|
|
191
191
|
backupRegionTitle: string;
|
|
192
192
|
description: ReactNode;
|
|
193
|
-
backupDescription:
|
|
193
|
+
backupDescription: ReactNode;
|
|
194
194
|
dualRegionBackups: boolean;
|
|
195
195
|
options: C4CreateClusterRegion[];
|
|
196
196
|
validationMessage?: string;
|
|
@@ -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
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
/** The Camunda Hub docs page that the banner links to by default. */
|
|
3
|
+
export declare const HUB_DOCS_URL = "https://preview.docs.camunda.cloud/pr-10034/docs/next/components/hub/#about-camunda-hub";
|
|
4
|
+
declare const COPY: {
|
|
5
|
+
hub: {
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle: string;
|
|
8
|
+
};
|
|
9
|
+
console: {
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/** Props of `C4HubUpgradeBanner`. */
|
|
15
|
+
export interface C4HubUpgradeBannerProps {
|
|
16
|
+
/**
|
|
17
|
+
* The app that shows the banner. `hub` is for Hub and Web Modeler.
|
|
18
|
+
* `console` is for Console, because Console moves into the organization
|
|
19
|
+
* view of Hub.
|
|
20
|
+
*/
|
|
21
|
+
variant?: keyof typeof COPY;
|
|
22
|
+
/** The page that "Learn what's changing" opens. Default: `HUB_DOCS_URL`. */
|
|
23
|
+
docsUrl?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Announces the upgrade to Camunda Hub on October 13. The host decides when
|
|
27
|
+
* to render it; the banner has no date logic. A close hides the banner until
|
|
28
|
+
* the next page load.
|
|
29
|
+
*/
|
|
30
|
+
export declare const C4HubUpgradeBanner: ({ variant, docsUrl, }: C4HubUpgradeBannerProps) => JSX.Element | undefined;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { useState } from 'react';
|
|
8
|
+
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
9
|
+
/** The Camunda Hub docs page that the banner links to by default. */
|
|
10
|
+
export const HUB_DOCS_URL = 'https://preview.docs.camunda.cloud/pr-10034/docs/next/components/hub/#about-camunda-hub';
|
|
11
|
+
const COPY = {
|
|
12
|
+
hub: {
|
|
13
|
+
title: 'Camunda Hub is coming on October 13',
|
|
14
|
+
subtitle: 'Camunda is upgrading your Web Modeler experience to Camunda Hub on October 13 at 8:00 AM CET. No action is required, and your existing files and settings will remain unchanged.',
|
|
15
|
+
},
|
|
16
|
+
console: {
|
|
17
|
+
title: 'Console moves into Camunda Hub on October 13',
|
|
18
|
+
subtitle: "On October 13 at 8:00 AM CET, Console becomes part of Camunda Hub. You'll find your clusters, API clients, users, and organization settings in Hub's organization view. No action is required, and your clusters keep running as they are.",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Announces the upgrade to Camunda Hub on October 13. The host decides when
|
|
23
|
+
* to render it; the banner has no date logic. A close hides the banner until
|
|
24
|
+
* the next page load.
|
|
25
|
+
*/
|
|
26
|
+
export const C4HubUpgradeBanner = ({ variant = 'hub', docsUrl = HUB_DOCS_URL, }) => {
|
|
27
|
+
const [open, setOpen] = useState(true);
|
|
28
|
+
if (!open)
|
|
29
|
+
return undefined;
|
|
30
|
+
return (_jsx(C4ActionableNotification, { kind: 'info', inline: true, lowContrast: true, title: COPY[variant].title, subtitle: COPY[variant].subtitle, actionButtonLabel: "Learn what's changing", onActionButtonClick: () => window.open(docsUrl, '_blank', 'noopener'), onCloseButtonClick: () => setOpen(false), style: { maxWidth: '100%' } }));
|
|
31
|
+
};
|
|
@@ -17,6 +17,7 @@ export declare const C4_EXTERNAL_URLS: {
|
|
|
17
17
|
readonly springZeebe: "https://docs.camunda.io/docs/apis-tools/spring-zeebe-sdk/getting-started/";
|
|
18
18
|
readonly springZeebeConfig: "https://docs.camunda.io/docs/apis-tools/spring-zeebe-sdk/configuration/";
|
|
19
19
|
readonly hotBackups: "https://docs.camunda.io/docs/components/saas/backups/";
|
|
20
|
+
readonly crossRegionColdRecovery: "https://docs.camunda.io/docs/components/saas/cross-region-cold-recovery/";
|
|
20
21
|
readonly earlyAccess: "https://docs.camunda.io/docs/next/components/early-access/overview/";
|
|
21
22
|
readonly createCluster: "https://docs.camunda.io/docs/components/console/manage-clusters/create-cluster/";
|
|
22
23
|
readonly encryption: "https://docs.camunda.io/docs/components/console/manage-clusters/create-cluster/";
|
|
@@ -16,6 +16,7 @@ export const C4_EXTERNAL_URLS = {
|
|
|
16
16
|
springZeebe: 'https://docs.camunda.io/docs/apis-tools/spring-zeebe-sdk/getting-started/',
|
|
17
17
|
springZeebeConfig: 'https://docs.camunda.io/docs/apis-tools/spring-zeebe-sdk/configuration/',
|
|
18
18
|
hotBackups: 'https://docs.camunda.io/docs/components/saas/backups/',
|
|
19
|
+
crossRegionColdRecovery: 'https://docs.camunda.io/docs/components/saas/cross-region-cold-recovery/',
|
|
19
20
|
earlyAccess: 'https://docs.camunda.io/docs/next/components/early-access/overview/',
|
|
20
21
|
createCluster: 'https://docs.camunda.io/docs/components/console/manage-clusters/create-cluster/',
|
|
21
22
|
encryption: 'https://docs.camunda.io/docs/components/console/manage-clusters/create-cluster/',
|
|
@@ -137,6 +138,7 @@ export function getC4CreateClusterExternalLinks(links) {
|
|
|
137
138
|
C4_EXTERNAL_URLS.docs.tasklistApiVersions,
|
|
138
139
|
identityAuthorizations: links?.identityAuthorizations ??
|
|
139
140
|
C4_EXTERNAL_URLS.docs.identityAuthorizations,
|
|
141
|
+
docsColdRecovery: links?.docsColdRecovery ?? C4_EXTERNAL_URLS.docs.crossRegionColdRecovery,
|
|
140
142
|
};
|
|
141
143
|
}
|
|
142
144
|
export function getC4DashboardUrls(params) {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"backupRegion": {
|
|
44
44
|
"title": "Backup location",
|
|
45
|
-
"description": "Choose single region to keep your data in one place, or
|
|
45
|
+
"description": "Choose single region to keep your data in one place, or dual region for higher redundancy across geographically separate locations. Some dual-region locations also support cross-region cold recovery, while others only keep a secondary copy of your backups. <0>Learn more</0>"
|
|
46
46
|
},
|
|
47
47
|
"generation": {
|
|
48
48
|
"title": "Channel",
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -107,6 +107,8 @@ export type { C4HelpCenterData, C4HelpCenterLink, C4HelpCenterProps, C4HelpCente
|
|
|
107
107
|
export { C4HelpCenter, FEEDBACK_TAB_ID, } from './components/c4-help-center/c4-help-center.js';
|
|
108
108
|
export { HUB_HELP_CENTER_LINKS_FLAG, rewriteAppHostToHub, } from './components/c4-help-center/help-center-app-host.js';
|
|
109
109
|
export type { C4HelpCenterLinkPlaceholders } from './components/c4-help-center/help-center-placeholders.js';
|
|
110
|
+
export type { C4HubUpgradeBannerProps } from './components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js';
|
|
111
|
+
export { C4HubUpgradeBanner, HUB_DOCS_URL, } from './components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js';
|
|
110
112
|
export { C4InfoTooltip } from './components/c4-info-tooltip/c4-info-tooltip.js';
|
|
111
113
|
export type { C4InfoTooltipProps } from './components/c4-info-tooltip/c4-info-tooltip.types.js';
|
|
112
114
|
export { C4InlineNotification } from './components/c4-inline-notification/c4-inline-notification.js';
|
package/lib/esm/index.js
CHANGED
|
@@ -58,6 +58,7 @@ export { C4FeedbackForm, C4FeedbackModal, } from './components/c4-feedback-modal
|
|
|
58
58
|
export { C4FileUploader, } from './components/c4-file-uploader/c4-file-uploader.js';
|
|
59
59
|
export { C4HelpCenter, FEEDBACK_TAB_ID, } from './components/c4-help-center/c4-help-center.js';
|
|
60
60
|
export { HUB_HELP_CENTER_LINKS_FLAG, rewriteAppHostToHub, } from './components/c4-help-center/help-center-app-host.js';
|
|
61
|
+
export { C4HubUpgradeBanner, HUB_DOCS_URL, } from './components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js';
|
|
61
62
|
export { C4InfoTooltip } from './components/c4-info-tooltip/c4-info-tooltip.js';
|
|
62
63
|
export { C4InlineNotification } from './components/c4-inline-notification/c4-inline-notification.js';
|
|
63
64
|
export { C4InviteUserToOrganizationModal } from './components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js';
|
|
@@ -149,20 +149,106 @@ function useFetchedFeatureFlags(config) {
|
|
|
149
149
|
}, [hostOwnsFlags, stage, orgId, email, userId, accountsApiBaseUrl]);
|
|
150
150
|
return flags;
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Reads the clickwrap config from accounts-backend. The request runs on mount
|
|
154
|
+
* and runs again when the stage, the user id or the accounts URL changes. The
|
|
155
|
+
* hook keeps nothing between mounts.
|
|
156
|
+
*
|
|
157
|
+
* It fetches nothing when the host gives `config.clickwrap`, thus a host that
|
|
158
|
+
* feeds the config makes no request. It fetches nothing without an access
|
|
159
|
+
* token, so an anonymous route (`/login`, a public share link) sends no
|
|
160
|
+
* request that gets a 401. In both cases `runtime.clickwrap` stays undefined
|
|
161
|
+
* and the alpha-features opt-in stays hidden, the same as a tree with no
|
|
162
|
+
* provider.
|
|
163
|
+
*
|
|
164
|
+
* The config is not org-scoped, thus a change of the organization does not run
|
|
165
|
+
* the request again. Each run clears the old value first. Thus a logout or a
|
|
166
|
+
* change of backend does not show the clickwrap of the previous backend while
|
|
167
|
+
* the new request loads. A login gives a token, thus the config arrives.
|
|
168
|
+
*/
|
|
169
|
+
function useFetchedClickwrap(config) {
|
|
170
|
+
const [clickwrap, setClickwrap] = useState(undefined);
|
|
171
|
+
// The host usually gives `config` as an object literal, thus its identity
|
|
172
|
+
// changes on every render. The effect below must depend on primitives alone,
|
|
173
|
+
// or it fetches in a loop.
|
|
174
|
+
const configRef = useRef(config);
|
|
175
|
+
configRef.current = config;
|
|
176
|
+
const hostOwnsClickwrap = Boolean(config.clickwrap);
|
|
177
|
+
const { stage } = config;
|
|
178
|
+
const userId = config.user?.sub;
|
|
179
|
+
const accountsApiBaseUrl = config.backendUrls.accountsApiBaseUrl;
|
|
180
|
+
useEffect(() => {
|
|
181
|
+
if (hostOwnsClickwrap) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
// Clear the config of the previous backend and user before the request.
|
|
185
|
+
// Otherwise the old value answers until the new value arrives, thus the
|
|
186
|
+
// opt-in can show the clickwrap of the wrong backend. A logout, or a
|
|
187
|
+
// request that never settles, would keep it for the life of the page.
|
|
188
|
+
setClickwrap(undefined);
|
|
189
|
+
let cancelled = false;
|
|
190
|
+
const load = async () => {
|
|
191
|
+
try {
|
|
192
|
+
const runtime = configRef.current;
|
|
193
|
+
const token = await runtime.auth.getAccessToken();
|
|
194
|
+
if (cancelled || !token) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const fetched = await ExternalAccountsService.getClickwrapConfig({
|
|
198
|
+
// The token above is current, thus the request reuses it. A second
|
|
199
|
+
// call to `getAccessToken` of the host is not necessary.
|
|
200
|
+
config: {
|
|
201
|
+
...toApiConfig(runtime),
|
|
202
|
+
auth: { getToken: async () => token },
|
|
203
|
+
},
|
|
204
|
+
});
|
|
205
|
+
if (!cancelled) {
|
|
206
|
+
// A clickwrap needs an `accessId` to sign, thus an answer without one
|
|
207
|
+
// maps to undefined and the opt-in stays hidden.
|
|
208
|
+
setClickwrap(fetched.accessId
|
|
209
|
+
? {
|
|
210
|
+
accessId: fetched.accessId,
|
|
211
|
+
betaGroupKey: fetched.betaGroupKey,
|
|
212
|
+
}
|
|
213
|
+
: undefined);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
catch (error) {
|
|
217
|
+
if (!cancelled) {
|
|
218
|
+
setClickwrap(undefined);
|
|
219
|
+
configRef.current.telemetry?.captureException?.(error, {
|
|
220
|
+
source: 'C4ConsoleRuntimeProvider.clickwrap',
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
void load();
|
|
226
|
+
return () => {
|
|
227
|
+
cancelled = true;
|
|
228
|
+
};
|
|
229
|
+
}, [hostOwnsClickwrap, stage, userId, accountsApiBaseUrl]);
|
|
230
|
+
return clickwrap;
|
|
231
|
+
}
|
|
152
232
|
export const C4ConsoleRuntimeProvider = ({ config, children, }) => {
|
|
153
233
|
useSyncCarbonThemeToDesignSystem(config.designSystem ?? 'carbon');
|
|
154
234
|
const fetchedFlags = useFetchedFeatureFlags(config);
|
|
235
|
+
const fetchedClickwrap = useFetchedClickwrap(config);
|
|
155
236
|
const value = useMemo(() => {
|
|
156
|
-
|
|
157
|
-
|
|
237
|
+
// The host-fed clickwrap wins. A host that feeds none gets the fetched
|
|
238
|
+
// config, thus the opt-in works without a change in the host.
|
|
239
|
+
const withClickwrap = config.clickwrap
|
|
240
|
+
? config
|
|
241
|
+
: { ...config, clickwrap: fetchedClickwrap };
|
|
242
|
+
if (withClickwrap.featureFlags) {
|
|
243
|
+
return withClickwrap;
|
|
158
244
|
}
|
|
159
245
|
return {
|
|
160
|
-
...
|
|
246
|
+
...withClickwrap,
|
|
161
247
|
featureFlags: {
|
|
162
248
|
isEnabled: (flagKey) => readFlag(fetchedFlags, flagKey),
|
|
163
249
|
},
|
|
164
250
|
};
|
|
165
|
-
}, [config, fetchedFlags]);
|
|
251
|
+
}, [config, fetchedFlags, fetchedClickwrap]);
|
|
166
252
|
return (_jsx(RuntimeContext.Provider, { value: value, children: children }));
|
|
167
253
|
};
|
|
168
254
|
export const useC4ConsoleRuntime = () => {
|
|
@@ -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(() => {
|
|
@@ -222,7 +222,7 @@ export function buildCreateClusterTranslations(t) {
|
|
|
222
222
|
regionTeaseForEnterprise: translate('createcluster:form.region.teaseForEnterprise', 'Custom regions are available in the Enterprise plan and you can contact us to know more.'),
|
|
223
223
|
regionValidationMessage: translate('createcluster:form.region.validationMessage', 'Please select a region for your cluster'),
|
|
224
224
|
backupRegionTitle: translate('createcluster:form.backupRegion.title', 'Backup location'),
|
|
225
|
-
backupRegionDescription: translate('createcluster:form.backupRegion.description', 'Choose single region to keep your data in one place, or
|
|
225
|
+
backupRegionDescription: translate('createcluster:form.backupRegion.description', 'Choose single region to keep your data in one place, or dual region for higher redundancy across geographically separate locations. Some dual-region locations also support cross-region cold recovery, while others only keep a secondary copy of your backups. <0>Learn more</0>'),
|
|
226
226
|
generationTitle: translate('createcluster:form.generation.title', 'Channel'),
|
|
227
227
|
olderGenerationsLabel: translate('createcluster:form.generation.olderGenerationsLabel', 'View older generations'),
|
|
228
228
|
olderGenerationsHelperText: translate('createcluster:form.generation.olderGenerationsHelperText', 'These are older generations that are used in your organization.'),
|
|
@@ -939,7 +939,10 @@ export const C4CreateClusterPage = observer(({ orgId, afterCreateModalUrl, talkT
|
|
|
939
939
|
});
|
|
940
940
|
},
|
|
941
941
|
})] })) : undefined] })),
|
|
942
|
-
backupDescription: translations.backupRegionDescription,
|
|
942
|
+
backupDescription: renderLinkPlaceholder(translations.backupRegionDescription, {
|
|
943
|
+
href: links.docsColdRecovery,
|
|
944
|
+
labelFallback: 'Learn more',
|
|
945
|
+
}),
|
|
943
946
|
options: regions,
|
|
944
947
|
validationMessage: translations.regionValidationMessage,
|
|
945
948
|
},
|
|
@@ -1060,6 +1063,7 @@ export const C4CreateClusterPage = observer(({ orgId, afterCreateModalUrl, talkT
|
|
|
1060
1063
|
orgId,
|
|
1061
1064
|
orgIdSubjectToSleep,
|
|
1062
1065
|
links.docsAutopause,
|
|
1066
|
+
links.docsColdRecovery,
|
|
1063
1067
|
links.docsTasklistApiVersions,
|
|
1064
1068
|
links.identityAuthorizations,
|
|
1065
1069
|
regions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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": "
|
|
100
|
-
"@camunda/ccma-shared-types": "
|
|
99
|
+
"@camunda/ccma-api": "3.0.0",
|
|
100
|
+
"@camunda/ccma-shared-types": "5.0.0",
|
|
101
101
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
102
102
|
"cron-parser": "5.10.0",
|
|
103
103
|
"mobx": "6.16.1",
|