@camunda/ccma-saas-frontend 0.7.1 → 0.8.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-breadcrumb/c4-breadcrumb.d.ts +1 -1
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +9 -5
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.types.d.ts +6 -0
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +9 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +6 -3
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +9 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +2 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +19 -21
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +19 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +4 -3
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +2 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +6 -4
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +20 -0
- package/lib/esm/components/c4-cluster-overview/applications.js +37 -24
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +5 -5
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +6 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +15 -2
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +10 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +7 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +5 -2
- package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +8 -0
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +20 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +4 -2
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +3 -1
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +7 -3
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +9 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +69 -12
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +10 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +16 -2
- package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/optional-telemetry-toggle.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.d.ts +15 -0
- package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +10 -0
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +2 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +4 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +24 -3
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +1 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +2 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +10 -5
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +10 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +7 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +8 -0
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +10 -5
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +10 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +3 -2
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
- package/lib/esm/components/c4-link-button/c4-link-button.js +2 -2
- package/lib/esm/components/c4-link-button/c4-link-button.types.d.ts +6 -0
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +13 -1
- package/lib/esm/components/c4-page-template/c4-page-template.js +3 -3
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts +5 -0
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +2 -1
- package/lib/esm/externalUrls.const.d.ts +1 -1
- package/lib/esm/externalUrls.const.js +1 -1
- package/lib/esm/i18n/c4-console-i18n.js +6 -0
- package/lib/esm/i18n/en/pages/clusterdetails.json +28 -3
- package/lib/esm/i18n/en/pages/job-dashboard.json +2 -0
- package/lib/esm/index.d.ts +13 -3
- package/lib/esm/index.js +7 -3
- package/lib/esm/runtime/build-cluster-sso-callback-url.d.ts +34 -0
- package/lib/esm/runtime/build-cluster-sso-callback-url.js +49 -0
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +7 -2
- package/lib/esm/runtime/build-cluster-swagger-url.js +20 -5
- package/lib/esm/runtime/index.d.ts +2 -0
- package/lib/esm/runtime/index.js +2 -0
- package/lib/esm/ui/families.d.ts +4 -0
- package/lib/esm/ui/families.js +22 -2
- package/lib/esm/utils/safe-translate.d.ts +27 -0
- package/lib/esm/utils/safe-translate.js +56 -0
- package/lib/esm/utils/section-heading-style.d.ts +13 -0
- package/lib/esm/utils/section-heading-style.js +25 -0
- package/lib/esm/widgets/c4-widget-scope.types.d.ts +20 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +16 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +92 -74
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +27 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +81 -13
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +24 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +3 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +10 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +8 -13
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +42 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +38 -23
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +7 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +26 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +16 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +50 -18
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +174 -3
- package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.d.ts +13 -0
- package/lib/esm/widgets/cluster-details/tabs/cluster-load-texts.js +29 -0
- package/lib/esm/widgets/cluster-health-override.d.ts +16 -0
- package/lib/esm/widgets/cluster-health-override.js +33 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +10 -10
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +7 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +10 -5
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.types.d.ts +9 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +10 -5
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.types.d.ts +9 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +10 -5
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +9 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +10 -5
- package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +10 -0
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.d.ts +5 -0
- package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.js +66 -0
- package/lib/esm/widgets/environment/c4-cluster-api-clients-widget.types.d.ts +21 -0
- package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.d.ts +5 -0
- package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.js +59 -0
- package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.types.d.ts +22 -0
- package/lib/esm/widgets/environment/c4-cluster-connector-secrets-widget.types.js +6 -0
- package/lib/esm/widgets/environment/use-cluster-api-clients.d.ts +26 -0
- package/lib/esm/widgets/environment/use-cluster-api-clients.js +48 -0
- package/lib/esm/widgets/environment/use-cluster-swagger-url.d.ts +22 -0
- package/lib/esm/widgets/environment/use-cluster-swagger-url.js +47 -0
- package/lib/esm/widgets/environment/use-cluster-version-flags.d.ts +16 -0
- package/lib/esm/widgets/environment/use-cluster-version-flags.js +40 -0
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.js +34 -25
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.js +26 -21
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +12 -0
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.js +6 -0
- package/lib/esm/widgets/job-worker/c4-job-worker.types.d.ts +19 -0
- package/package.json +25 -25
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +0 -16
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +0 -40
- package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.d.ts +0 -16
- package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +0 -142
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +0 -14
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +0 -136
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +0 -13
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +0 -58
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +0 -16
- package/lib/esm/components/c4-advanced-search-filters/OrSection.js +0 -118
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +0 -3
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +0 -408
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.d.ts +0 -32
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +0 -14
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +0 -5
- package/lib/esm/components/c4-advanced-search-filters/utils.js +0 -58
- /package/lib/esm/{components/c4-advanced-search-filters/c4-advanced-search-filters.types.js → widgets/c4-widget-scope.types.js} +0 -0
- /package/lib/esm/{components/c4-advanced-search-filters/state.types.js → widgets/environment/c4-cluster-api-clients-widget.types.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Stack } from '../../../ui/index.js';
|
|
3
|
+
import { useSelectFamily } from '../../../ui/families.js';
|
|
4
|
+
export const SecretsFilterModeToggle = (props) => {
|
|
5
|
+
const { Select, SelectItem } = useSelectFamily();
|
|
6
|
+
const component = (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h6", { children: props.action.label }), _jsx("div", { style: { maxWidth: '400px' }, children: _jsxs(Select, { id: 'secrets-filter-mode-select', labelText: props.action.label, hideLabel: true, value: props.mode, disabled: !props.permissions.mayChange || props.action.disabled, onChange: (event) => {
|
|
7
|
+
props.action.onChange(event.target.value);
|
|
8
|
+
}, children: [_jsx(SelectItem, { value: 'DISABLED', text: 'Disabled' }), _jsx(SelectItem, { value: 'LAX', text: 'Lax' }), _jsx(SelectItem, { value: 'STRICT', text: 'Strict' })] }) })] }), props.description && (_jsx("div", { style: { maxWidth: '650px' }, children: typeof props.description === 'string' ? (_jsx("p", { children: props.description })) : (props.description) }))] }));
|
|
9
|
+
return component;
|
|
10
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Stack, Tile } from '../../../ui/index.js';
|
|
3
|
+
import { SECTION_HEADING_STYLE } from '../../../utils/section-heading-style.js';
|
|
3
4
|
import { C4Divider } from '../../c4-divider/c4-divider.js';
|
|
4
5
|
export const SettingsTile = ({ description, title, children, }) => {
|
|
5
|
-
const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { children: title }), description && _jsx("p", { style: { maxWidth: '650px' }, children: description }), _jsx(C4Divider, {})] }), children] }) }));
|
|
6
|
+
const component = (_jsx(Tile, { children: _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 4, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: title }), description && _jsx("p", { style: { maxWidth: '650px' }, children: description }), _jsx(C4Divider, {})] }), children] }) }));
|
|
6
7
|
return component;
|
|
7
8
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { type JSX } from 'react';
|
|
1
|
+
import { type JSX, type ReactNode } from 'react';
|
|
2
2
|
interface C4CreateClusterTileGridProps<T> {
|
|
3
3
|
items: T[];
|
|
4
4
|
getKey: (item: T) => string;
|
|
5
5
|
getLabel: (item: T) => string;
|
|
6
6
|
getDescription?: (item: T) => string | undefined;
|
|
7
|
+
/** Optional trailing badge/tag rendered next to the label. */
|
|
8
|
+
getBadge?: (item: T) => ReactNode;
|
|
7
9
|
getDisabled?: (item: T) => boolean;
|
|
8
10
|
/** Currently selected item key (radio value). */
|
|
9
11
|
value: string | undefined;
|
|
@@ -28,5 +30,5 @@ interface C4CreateClusterTileGridProps<T> {
|
|
|
28
30
|
* `getLabel`) and a "Load more" button, so small sections stay uncluttered while
|
|
29
31
|
* large ones (e.g. many generations/regions) don't blow up the page height.
|
|
30
32
|
*/
|
|
31
|
-
export declare function C4CreateClusterTileGrid<T>({ items, getKey, getLabel, getDescription, getDisabled, value, onChange, ariaLabel, initialCount, loadMoreIncrement, columnWidth, searchPlaceholder, emptyStateText, }: C4CreateClusterTileGridProps<T>): JSX.Element;
|
|
33
|
+
export declare function C4CreateClusterTileGrid<T>({ items, getKey, getLabel, getDescription, getBadge, getDisabled, value, onChange, ariaLabel, initialCount, loadMoreIncrement, columnWidth, searchPlaceholder, emptyStateText, }: C4CreateClusterTileGridProps<T>): JSX.Element;
|
|
32
34
|
export {};
|
|
@@ -34,7 +34,7 @@ function normalizeForSearch(value) {
|
|
|
34
34
|
* `getLabel`) and a "Load more" button, so small sections stay uncluttered while
|
|
35
35
|
* large ones (e.g. many generations/regions) don't blow up the page height.
|
|
36
36
|
*/
|
|
37
|
-
export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescription, getDisabled, value, onChange, ariaLabel, initialCount = 8, loadMoreIncrement, columnWidth = '280px', searchPlaceholder = 'Search', emptyStateText = 'No matches found', }) {
|
|
37
|
+
export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescription, getBadge, getDisabled, value, onChange, ariaLabel, initialCount = 8, loadMoreIncrement, columnWidth = '280px', searchPlaceholder = 'Search', emptyStateText = 'No matches found', }) {
|
|
38
38
|
const designSystem = useC4DesignSystem();
|
|
39
39
|
const [searchValue, setSearchValue] = useState('');
|
|
40
40
|
const [visibleCount, setVisibleCount] = useState(initialCount);
|
|
@@ -65,7 +65,7 @@ export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescriptio
|
|
|
65
65
|
gridTemplateColumns: gridColumns,
|
|
66
66
|
gap: '1rem',
|
|
67
67
|
overflowWrap: 'anywhere',
|
|
68
|
-
}, children: visibleItems.map((item) => (_jsx(ChoiceCard, { value: getKey(item), title: getLabel(item), description: getDescription?.(item), disabled: getDisabled?.(item) }, getKey(item)))) }));
|
|
68
|
+
}, children: visibleItems.map((item) => (_jsx(ChoiceCard, { value: getKey(item), title: getLabel(item), description: getDescription?.(item), badge: getBadge?.(item), disabled: getDisabled?.(item) }, getKey(item)))) }));
|
|
69
69
|
}
|
|
70
70
|
return (_jsx("div", { style: {
|
|
71
71
|
display: 'grid',
|
|
@@ -74,7 +74,28 @@ export function C4CreateClusterTileGrid({ items, getKey, getLabel, getDescriptio
|
|
|
74
74
|
overflowWrap: 'anywhere',
|
|
75
75
|
}, children: visibleItems.map((item) => {
|
|
76
76
|
const description = getDescription?.(item);
|
|
77
|
-
|
|
77
|
+
const badge = getBadge?.(item);
|
|
78
|
+
// A description bolds the label to set it off from the helper text
|
|
79
|
+
// below it. Bold only the label text here, before it reaches the
|
|
80
|
+
// badge — a badge is a Tag component, not a bold-appropriate text
|
|
81
|
+
// label, and wrapping it in <strong> too would misrepresent it to
|
|
82
|
+
// assistive technology as emphasized text.
|
|
83
|
+
const labelText = description ? (_jsx("strong", { children: getLabel(item) })) : (getLabel(item));
|
|
84
|
+
// Only wrap the label in the flex column when a badge is present, so
|
|
85
|
+
// a caller that never passes getBadge renders the exact same tree as
|
|
86
|
+
// before this prop existed (Carbon mode must stay byte-identical).
|
|
87
|
+
// The badge sits below the label text (not inline) so the text
|
|
88
|
+
// starts at the same position as a tile with no badge.
|
|
89
|
+
// `align-items: flex-start` is necessary: a column flex container
|
|
90
|
+
// stretches its items by default, which makes the Tag as wide as
|
|
91
|
+
// the tile.
|
|
92
|
+
const labelNode = badge ? (_jsxs("span", { style: {
|
|
93
|
+
display: 'flex',
|
|
94
|
+
flexDirection: 'column',
|
|
95
|
+
alignItems: 'flex-start',
|
|
96
|
+
gap: '8px',
|
|
97
|
+
}, children: [_jsx("span", { children: labelText }), badge] })) : (labelText);
|
|
98
|
+
return (_jsx("div", { style: { height: '100%', display: 'grid' }, children: _jsx(C4SelectableTile, { value: getKey(item), checked: getKey(item) === value, onChange: () => onChange(getKey(item)), disabled: getDisabled?.(item), style: { height: '100%' }, children: description ? (_jsxs(Stack, { gap: 2, children: [labelNode, _jsx("p", { style: { color: 'var(--cds-text-helper)' }, children: description })] })) : (labelNode) }) }, getKey(item)));
|
|
78
99
|
}) }));
|
|
79
100
|
};
|
|
80
101
|
return (_jsxs("div", { style: designSystem === 'ds' ? { marginBottom: '0.75rem' } : undefined, children: [showSearchAndLoadMore && (_jsx("div", { style: { maxWidth: '20rem', marginBottom: '1rem' }, children: _jsx(Search, { labelText: searchPlaceholder, placeholder: searchPlaceholder, size: 'md', value: searchValue, onChange: (event) => {
|
|
@@ -493,7 +493,7 @@ export const C4CreateCluster = ({ loading, cta, formElements, autoUpdate, taskli
|
|
|
493
493
|
const selectedRegion = formElements.region.options.find((reg) => reg.uuid === region);
|
|
494
494
|
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
|
|
495
495
|
? 'Dual region: '
|
|
496
|
-
: 'Single region: '}${option.regions.map((reg) => reg.label).join(', ')}`, 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 }) }) })] }));
|
|
496
|
+
: 'Single region: '}${option.regions.map((reg) => reg.label).join(', ')}`, getBadge: (option) => option.failover ? (_jsx(Tag, { type: 'green', size: 'sm', children: "Failover supported" })) : undefined, 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 }) }) })] }));
|
|
497
497
|
}
|
|
498
498
|
else {
|
|
499
499
|
return _jsx(_Fragment, {});
|
|
@@ -46,6 +46,8 @@ export interface C4CreateClusterEncryption {
|
|
|
46
46
|
export interface C4CreateClusterBackup {
|
|
47
47
|
uuid: string;
|
|
48
48
|
regions: C4CreateClusterBackupRegion[];
|
|
49
|
+
/** True when this pairing's operator support is complete enough to fail over. */
|
|
50
|
+
failover?: boolean;
|
|
49
51
|
}
|
|
50
52
|
export interface C4CreateClusterBackupRegion {
|
|
51
53
|
id: string;
|
|
@@ -6,4 +6,4 @@ export interface ColorScale {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const CHART_HEIGHT = "20vh";
|
|
8
8
|
export declare const PIE_CHART_MAX_WIDTH_PX = 400;
|
|
9
|
-
export declare const C4JobDashboardDetailsPage: ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, }: C4JobDashboardDetailsPageProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const C4JobDashboardDetailsPage: ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, padding, }: C4JobDashboardDetailsPageProps) => import("react").JSX.Element;
|
|
@@ -44,7 +44,7 @@ const PieChartWrapper = styled(TileWithShadow) `
|
|
|
44
44
|
`;
|
|
45
45
|
export const CHART_HEIGHT = '20vh';
|
|
46
46
|
export const PIE_CHART_MAX_WIDTH_PX = 400;
|
|
47
|
-
export const C4JobDashboardDetailsPage = ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, }) => {
|
|
47
|
+
export const C4JobDashboardDetailsPage = ({ jobType, config, isLoadingConfig, lastUpdatedAt, errorData, timeSeries, workerData, jobData, onTimeRangeChange, breadcrumb, translations, trackErrorClick, padding = 'default', }) => {
|
|
48
48
|
const colorScale = {
|
|
49
49
|
Created: '#002D9C',
|
|
50
50
|
Completed: '#009D9A',
|
|
@@ -55,5 +55,5 @@ export const C4JobDashboardDetailsPage = ({ jobType, config, isLoadingConfig, la
|
|
|
55
55
|
const error = { status: 403, details: 'Feature is disabled', message: '' };
|
|
56
56
|
return (_jsx(C4JobDashboardErrorHandler, { itemsLength: 0, showIcons: true, translations: translations.errorHandler, error: error }));
|
|
57
57
|
}
|
|
58
|
-
return (_jsx(C4PageLayout, { children: _jsxs(Stack, { gap: 4, children: [_jsx(C4Breadcrumb, { title: translations.title, elements: breadcrumb.elements }), _jsxs("p", { children: [translations.jobTypeLabel, " ", _jsx("strong", { children: jobType })] }), _jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: lastUpdatedAt }), _jsx(C4JobDashboardTimeRangeDropdown, { onChange: onTimeRangeChange, exportInterval: config?.exportInterval, disabled: isLoadingConfig, translations: translations.dropdown }), jobData.isIncomplete && (_jsx(C4InlineNotification, { style: { maxWidth: '100%' }, lowContrast: true, kind: 'warning', title: translations.dataLimitWarning.title, subtitle: translations.dataLimitWarning.description })), _jsx(ChartContainer, { children: _jsxs(ChartGrid, { children: [_jsx(TimeChartWrapper, { children: _jsx(C4JobDashboardTimeChart, { timeSeries: timeSeries.items, colorScale: colorScale, isLoading: timeSeries.isLoading, translations: translations, error: timeSeries.error }) }), _jsx(PieChartWrapper, { children: _jsx(C4JobDashboardPieChart, { jobData: jobData.data, colorScale: colorScale, isLoading: jobData.isLoading, translations: translations, error: jobData.error }) })] }) }), _jsx(TileWithShadow, { children: _jsx(C4JobDashboardWorkerTable, { workerData: workerData.items, isLoading: workerData.isLoading, translations: translations, error: workerData.error }) }), _jsx(TileWithShadow, { children: _jsx(C4JobDashboardErrorTable, { errors: errorData.items, operateBaseUrl: errorData.operateBaseUrl, isLoading: errorData.isLoading, translations: translations, error: errorData.error, trackErrorClick: trackErrorClick }) })] }) }));
|
|
58
|
+
return (_jsx(C4PageLayout, { padding: padding, children: _jsxs(Stack, { gap: 4, children: [_jsx(C4Breadcrumb, { title: translations.title, elements: breadcrumb.elements }), _jsxs("p", { children: [translations.jobTypeLabel, " ", _jsx("strong", { children: jobType })] }), _jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: lastUpdatedAt }), _jsx(C4JobDashboardTimeRangeDropdown, { onChange: onTimeRangeChange, exportInterval: config?.exportInterval, disabled: isLoadingConfig, translations: translations.dropdown }), jobData.isIncomplete && (_jsx(C4InlineNotification, { style: { maxWidth: '100%' }, lowContrast: true, kind: 'warning', title: translations.dataLimitWarning.title, subtitle: translations.dataLimitWarning.description })), _jsx(ChartContainer, { children: _jsxs(ChartGrid, { children: [_jsx(TimeChartWrapper, { children: _jsx(C4JobDashboardTimeChart, { timeSeries: timeSeries.items, colorScale: colorScale, isLoading: timeSeries.isLoading, translations: translations, error: timeSeries.error }) }), _jsx(PieChartWrapper, { children: _jsx(C4JobDashboardPieChart, { jobData: jobData.data, colorScale: colorScale, isLoading: jobData.isLoading, translations: translations, error: jobData.error }) })] }) }), _jsx(TileWithShadow, { children: _jsx(C4JobDashboardWorkerTable, { workerData: workerData.items, isLoading: workerData.isLoading, translations: translations, error: workerData.error }) }), _jsx(TileWithShadow, { children: _jsx(C4JobDashboardErrorTable, { errors: errorData.items, operateBaseUrl: errorData.operateBaseUrl, isLoading: errorData.isLoading, translations: translations, error: errorData.error, trackErrorClick: trackErrorClick }) })] }) }));
|
|
59
59
|
};
|
package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js
CHANGED
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
* You may not use this file except in compliance with the commercial license.
|
|
5
5
|
*/
|
|
6
6
|
import { getDropdownTranslations, getErrorHandlerTranslations, } from '../c4-job-dashboard-shared/c4-stories-data-generator.js';
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
7
|
+
// A mock must not read the wall clock: a story that pictures this data is
|
|
8
|
+
// captured as a docs screenshot, and a value that moves between two runs
|
|
9
|
+
// turns an unrelated pull request red. The instant matches the pin in
|
|
10
|
+
// packages/screenshot-tooling-storybook/.storybook/preview-head.html, and
|
|
11
|
+
// `isoAt` drops the milliseconds that its aria test rejects.
|
|
10
12
|
const MINUTE = 60 * 1000;
|
|
11
13
|
const HOUR = 60 * MINUTE;
|
|
12
|
-
const now = Date.
|
|
13
|
-
const isoAt = (offsetMs) => new Date(now - offsetMs).toISOString()
|
|
14
|
+
const now = new Date('2026-01-15T09:00:00Z').getTime();
|
|
15
|
+
const isoAt = (offsetMs) => `${new Date(now - offsetMs).toISOString().slice(0, 19)}Z`;
|
|
16
|
+
// Without `timeZone`, this reads the zone of the capturing machine, so a Mac
|
|
17
|
+
// and the Linux runner render the same instant as two different times.
|
|
14
18
|
const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
|
|
15
19
|
month: 'long',
|
|
16
20
|
day: 'numeric',
|
|
@@ -18,6 +22,7 @@ const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
|
|
|
18
22
|
hour: 'numeric',
|
|
19
23
|
minute: '2-digit',
|
|
20
24
|
hour12: true,
|
|
25
|
+
timeZone: 'UTC',
|
|
21
26
|
});
|
|
22
27
|
export const defaultDetailsProps = {
|
|
23
28
|
jobType: 'fetch-customer-data',
|
package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts
CHANGED
|
@@ -100,4 +100,14 @@ export interface C4JobDashboardDetailsPageProps {
|
|
|
100
100
|
onTimeRangeChange: (value: number) => void;
|
|
101
101
|
breadcrumb: C4BreadcrumbProps;
|
|
102
102
|
translations: JobDashboardDetailsTranslations;
|
|
103
|
+
/**
|
|
104
|
+
* Side/top/bottom padding around the page content. Defaults to `'default'`.
|
|
105
|
+
*
|
|
106
|
+
* `'none'` drops it — for a widget embedded inside a host page's own tab (see
|
|
107
|
+
* `C4JobWorkerDetailsPage`'s `scope: 'environment'`), where the host already
|
|
108
|
+
* provides its own spacing and this padding would double up.
|
|
109
|
+
*
|
|
110
|
+
* ds-mode only.
|
|
111
|
+
*/
|
|
112
|
+
padding?: 'default' | 'none';
|
|
103
113
|
}
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js
CHANGED
|
@@ -7,12 +7,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { Information } from '@carbon/react/icons/index.esm.js';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { Tooltip } from '../../../ui/index.js';
|
|
10
|
+
import { SECTION_HEADING_STYLE } from '../../../utils/section-heading-style.js';
|
|
10
11
|
const Wrapper = styled.div `
|
|
11
12
|
display: flex;
|
|
12
13
|
align-items: center;
|
|
13
14
|
gap: 0.5rem;
|
|
14
15
|
`;
|
|
15
16
|
const C4JobDashboardChartHeading = ({ title, tooltipLabel, }) => {
|
|
16
|
-
return (_jsxs(Wrapper, { children: [_jsx("h4", { children: title }), _jsx(Tooltip, { align: 'bottom', label: tooltipLabel, children: _jsx(Information, { size: 18 }) })] }));
|
|
17
|
+
return (_jsxs(Wrapper, { children: [_jsx("h4", { style: SECTION_HEADING_STYLE, children: title }), _jsx(Tooltip, { align: 'bottom', label: tooltipLabel, children: _jsx(Information, { size: 18 }) })] }));
|
|
17
18
|
};
|
|
18
19
|
export default C4JobDashboardChartHeading;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Stack } from '../../../ui/index.js';
|
|
3
|
+
import { SECTION_HEADING_STYLE } from '../../../utils/section-heading-style.js';
|
|
3
4
|
import { C4DataTable } from '../../c4-data-table/c4-data-table.js';
|
|
4
5
|
import { C4BackgroundFetchingIndicator } from '../../c4-job-dashboard-shared/c4-background-fetching-indicator.js';
|
|
5
6
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
@@ -13,7 +14,7 @@ function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translati
|
|
|
13
14
|
originalIndex: index,
|
|
14
15
|
}));
|
|
15
16
|
if (error || (!isLoading && errors.length === 0)) {
|
|
16
|
-
return (_jsxs(Stack, { gap: 4, children: [_jsx("h2", { children: translations.errorTable.title }), _jsx(C4JobDashboardErrorHandler, { itemsLength: errors.length, showIcons: false, error: error, translations: translations.errorHandler })] }));
|
|
17
|
+
return (_jsxs(Stack, { gap: 4, children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: translations.errorTable.title }), _jsx(C4JobDashboardErrorHandler, { itemsLength: errors.length, showIcons: false, error: error, translations: translations.errorHandler })] }));
|
|
17
18
|
}
|
|
18
19
|
const toolbar = [
|
|
19
20
|
{
|
|
@@ -42,7 +43,7 @@ function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translati
|
|
|
42
43
|
},
|
|
43
44
|
]
|
|
44
45
|
: [];
|
|
45
|
-
return (_jsxs(_Fragment, { children: [_jsx("h2", { children: translations.errorTable.title }), _jsx(C4DataTable, { id: 'errors-data-table', data: rows, headers: [
|
|
46
|
+
return (_jsxs(_Fragment, { children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: translations.errorTable.title }), _jsx(C4DataTable, { id: 'errors-data-table', data: rows, headers: [
|
|
46
47
|
{
|
|
47
48
|
key: 'errorCode',
|
|
48
49
|
label: noWrapLabel(translations.errorTable.headers.errorType),
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js
CHANGED
|
@@ -5,6 +5,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { Stack } from '../../../ui/index.js';
|
|
8
|
+
import { SECTION_HEADING_STYLE } from '../../../utils/section-heading-style.js';
|
|
8
9
|
import { C4DataTable } from '../../c4-data-table/c4-data-table.js';
|
|
9
10
|
import { C4BackgroundFetchingIndicator } from '../../c4-job-dashboard-shared/c4-background-fetching-indicator.js';
|
|
10
11
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
@@ -19,9 +20,9 @@ function C4JobDashboardWorkerTable({ workerData, error, isLoading, translations,
|
|
|
19
20
|
originalIndex: index,
|
|
20
21
|
}));
|
|
21
22
|
if (error || (!isLoading && workerData.length === 0)) {
|
|
22
|
-
return (_jsxs(_Fragment, { children: [_jsx("h2", { children: translations.workerTable.title }), _jsx(C4JobDashboardErrorHandler, { itemsLength: workerData.length, showIcons: false, error: error, translations: translations.errorHandler })] }));
|
|
23
|
+
return (_jsxs(_Fragment, { children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: translations.workerTable.title }), _jsx(C4JobDashboardErrorHandler, { itemsLength: workerData.length, showIcons: false, error: error, translations: translations.errorHandler })] }));
|
|
23
24
|
}
|
|
24
|
-
return (_jsxs(Stack, { gap: 4, children: [_jsx("h2", { children: translations.workerTable.title }), _jsx(C4DataTable, { id: 'worker-data-table', data: tableData, headers: [
|
|
25
|
+
return (_jsxs(Stack, { gap: 4, children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: translations.workerTable.title }), _jsx(C4DataTable, { id: 'worker-data-table', data: tableData, headers: [
|
|
25
26
|
{ key: 'worker', label: translations.workerTable.headers.workerName },
|
|
26
27
|
{
|
|
27
28
|
key: 'completed',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { C4JobDashboardEntryPointProps } from './c4-job-dashboard-entry-point.types.js';
|
|
3
|
-
declare function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translations, }: C4JobDashboardEntryPointProps): JSX.Element;
|
|
3
|
+
declare function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translations, variant, }: C4JobDashboardEntryPointProps): JSX.Element;
|
|
4
4
|
export default C4JobDashboardEntryPoint;
|
|
@@ -8,6 +8,7 @@ import { Layer } from '@carbon/react';
|
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { JobsCompletedIcon, JobsCreatedIcon, JobsFailedIcon, } from '../../icons/c4-icons.js';
|
|
10
10
|
import { Button, Loading, Stack, Tile, Tooltip } from '../../ui/index.js';
|
|
11
|
+
import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
|
|
11
12
|
import { C4JobDashboardErrorHandler } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
12
13
|
import C4TimestampInformation from '../c4-job-dashboard-shared/c4-timestamp-information.js';
|
|
13
14
|
const containerHeight = '30vh';
|
|
@@ -40,7 +41,7 @@ const JobTilesGrid = styled.div `
|
|
|
40
41
|
}
|
|
41
42
|
`;
|
|
42
43
|
const JobTile = ({ title, description, icon, tooltip, }) => (_jsx(Tooltip, { align: 'top', label: tooltip, children: _jsx("div", { children: _jsx(Layer, { children: _jsxs(Tile, { children: [_jsxs(TileHeader, { children: [_jsx("h6", { children: title }), icon] }), _jsx(TileDescription, { children: description })] }) }) }) }));
|
|
43
|
-
function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translations, }) {
|
|
44
|
+
function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translations, variant = 'tile', }) {
|
|
44
45
|
const hasError = !!error;
|
|
45
46
|
const shouldShowEmpty = !hasError &&
|
|
46
47
|
(!data ||
|
|
@@ -48,6 +49,10 @@ function C4JobDashboardEntryPoint({ data, error, onClick, isLoading, translation
|
|
|
48
49
|
data.failed.count === 0 &&
|
|
49
50
|
data.completed.count === 0));
|
|
50
51
|
const getTileDescription = (count) => `${count ?? 0} ${count === 1 ? translations.jobTileSingular.toLowerCase() : translations.jobTilePlural.toLowerCase()}`;
|
|
51
|
-
|
|
52
|
+
const content = (_jsxs(Stack, { gap: 4, children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: translations.title }), _jsx("p", { children: translations.description }), isLoading ? (_jsx(LoadingContainer, { children: _jsx(Loading, { withOverlay: false }) })) : hasError || shouldShowEmpty ? (_jsx(Container, { children: _jsxs(Stack, { gap: 4, children: [_jsx(C4JobDashboardErrorHandler, { itemsLength: shouldShowEmpty ? 0 : 1, error: hasError ? error : null, showIcons: true, translations: translations.errorHandler }), shouldShowEmpty && (_jsx(Button, { onClick: onClick, children: translations.viewAllJobTypes }))] }) })) : (_jsx(Container, { children: _jsxs(Stack, { gap: 4, children: [_jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: data?.lastUpdatedAt ?? '' }), _jsx(JobTilesContainer, { children: _jsxs(JobTilesGrid, { children: [_jsx(JobTile, { title: translations.jobTileCompleted, description: getTileDescription(data?.completed.count), icon: _jsx(JobsCompletedIcon, {}), tooltip: translations.jobTileCompletedTooltip }), _jsx(JobTile, { title: translations.jobTileFailed, description: getTileDescription(data?.failed.count), icon: _jsx(JobsFailedIcon, {}), tooltip: translations.jobTileFailedTooltip }), _jsx(JobTile, { title: translations.jobTileCreated, description: getTileDescription(data?.created.count), icon: _jsx(JobsCreatedIcon, {}), tooltip: translations.jobTileCreatedTooltip })] }) }), _jsx(Button, { onClick: onClick, children: translations.viewAllJobTypes })] }) }))] }));
|
|
53
|
+
// The empty/error state's own Tile (inside C4JobDashboardErrorHandler) and the populated state's
|
|
54
|
+
// job-count tiles are content under the heading, not this section's own chrome — both stay boxed
|
|
55
|
+
// in either variant. Only this outer card goes away in 'plain'.
|
|
56
|
+
return variant === 'plain' ? content : _jsx(Tile, { children: content });
|
|
52
57
|
}
|
|
53
58
|
export default C4JobDashboardEntryPoint;
|
package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts
CHANGED
|
@@ -21,4 +21,12 @@ export interface C4JobDashboardEntryPointProps {
|
|
|
21
21
|
onClick: () => void;
|
|
22
22
|
translations: JobDashboardTranslations;
|
|
23
23
|
isLoading?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* `'tile'` (default) renders this section inside its own bordered card — Console's own look.
|
|
26
|
+
* `'plain'` drops that card in favor of a bare heading, for a host that renders this section inline
|
|
27
|
+
* alongside its own similarly bare sections. The empty/error states' own `Tile` (from
|
|
28
|
+
* `C4JobDashboardErrorHandler`) is unaffected either way — it's content under the heading, not the
|
|
29
|
+
* section's own chrome.
|
|
30
|
+
*/
|
|
31
|
+
variant?: 'tile' | 'plain';
|
|
24
32
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
2
|
import type { C4JobDashboardOverviewPageProps } from './c4-job-dashboard-overview.types.js';
|
|
3
|
-
export declare const C4JobDashboardOverviewPage: ({ error, items, isIncomplete, config, onTimeRangeChange, breadcrumb, isLoadingConfig, isLoadingTable, translations, lastUpdatedAt, }: C4JobDashboardOverviewPageProps) => JSX.Element;
|
|
3
|
+
export declare const C4JobDashboardOverviewPage: ({ error, items, isIncomplete, config, onTimeRangeChange, breadcrumb, isLoadingConfig, isLoadingTable, translations, lastUpdatedAt, padding, }: C4JobDashboardOverviewPageProps) => JSX.Element;
|
|
@@ -13,7 +13,7 @@ import C4JobDashboardTimeRangeDropdown from '../c4-job-dashboard-shared/c4-job-d
|
|
|
13
13
|
import C4TimestampInformation from '../c4-job-dashboard-shared/c4-timestamp-information.js';
|
|
14
14
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
15
15
|
import { C4PageLayout } from '../c4-page-layout/c4-page-layout.js';
|
|
16
|
-
export const C4JobDashboardOverviewPage = ({ error, items, isIncomplete, config, onTimeRangeChange, breadcrumb, isLoadingConfig, isLoadingTable, translations, lastUpdatedAt, }) => {
|
|
16
|
+
export const C4JobDashboardOverviewPage = ({ error, items, isIncomplete, config, onTimeRangeChange, breadcrumb, isLoadingConfig, isLoadingTable, translations, lastUpdatedAt, padding = 'default', }) => {
|
|
17
17
|
const [rows, setRows] = useState([]);
|
|
18
18
|
useEffect(() => {
|
|
19
19
|
const originalRows = items.map((row, index) => ({
|
|
@@ -51,7 +51,7 @@ export const C4JobDashboardOverviewPage = ({ error, items, isIncomplete, config,
|
|
|
51
51
|
};
|
|
52
52
|
return (_jsx(C4JobDashboardErrorHandler, { itemsLength: 0, showIcons: true, translations: translations.errorHandler, error: error }));
|
|
53
53
|
}
|
|
54
|
-
return (_jsx(C4PageLayout, { children: _jsxs(Stack, { gap: 3, children: [_jsx(C4Breadcrumb, { loading: false, elements: breadcrumb.elements, title: translations.title }), _jsxs("p", { children: [translations.description, ' ', _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.learnMoreLabel, icon: _jsx(Launch, {}) })] }), _jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: lastUpdatedAt }), _jsx(C4JobDashboardTimeRangeDropdown, { onChange: onTimeRangeChange, exportInterval: config?.exportInterval, disabled: isLoadingConfig, translations: translations.dropdown }), shouldShowErrorHandler ? (_jsx(C4JobDashboardErrorHandler, { error: error, itemsLength: items.length, showIcons: true, translations: translations.errorHandler })) : (_jsxs(_Fragment, { children: [isIncomplete && (_jsx(C4InlineNotification, { style: { maxWidth: '100%' }, lowContrast: true, kind: 'warning', title: translations.dataLimitWarning.title, subtitle: translations.dataLimitWarning.description })), _jsx(C4DataTable, { id: 'usage-history-table', data: rows, toolbar: toolbar, headers: [
|
|
54
|
+
return (_jsx(C4PageLayout, { padding: padding, children: _jsxs(Stack, { gap: 3, children: [_jsx(C4Breadcrumb, { loading: false, elements: breadcrumb.elements, title: translations.title }), _jsxs("p", { children: [translations.description, ' ', _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.learnMoreLabel, icon: _jsx(Launch, {}) })] }), _jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: lastUpdatedAt }), _jsx(C4JobDashboardTimeRangeDropdown, { onChange: onTimeRangeChange, exportInterval: config?.exportInterval, disabled: isLoadingConfig, translations: translations.dropdown }), shouldShowErrorHandler ? (_jsx(C4JobDashboardErrorHandler, { error: error, itemsLength: items.length, showIcons: true, translations: translations.errorHandler })) : (_jsxs(_Fragment, { children: [isIncomplete && (_jsx(C4InlineNotification, { style: { maxWidth: '100%' }, lowContrast: true, kind: 'warning', title: translations.dataLimitWarning.title, subtitle: translations.dataLimitWarning.description })), _jsx(C4DataTable, { id: 'usage-history-table', data: rows, toolbar: toolbar, headers: [
|
|
55
55
|
{
|
|
56
56
|
key: 'jobType',
|
|
57
57
|
label: translations.tableHeaders.jobType,
|
package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js
CHANGED
|
@@ -4,12 +4,16 @@
|
|
|
4
4
|
* You may not use this file except in compliance with the commercial license.
|
|
5
5
|
*/
|
|
6
6
|
import { getDropdownTranslations, getErrorHandlerTranslations, } from '../c4-job-dashboard-shared/c4-stories-data-generator.js';
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
7
|
+
// A mock must not read the wall clock: a story that pictures this data is
|
|
8
|
+
// captured as a docs screenshot, and a value that moves between two runs
|
|
9
|
+
// turns an unrelated pull request red. The instant matches the pin in
|
|
10
|
+
// packages/screenshot-tooling-storybook/.storybook/preview-head.html, and
|
|
11
|
+
// `isoAt` drops the milliseconds that its aria test rejects.
|
|
10
12
|
const MINUTE = 60 * 1000;
|
|
11
|
-
const now = Date.
|
|
12
|
-
const isoAt = (offsetMs) => new Date(now - offsetMs).toISOString()
|
|
13
|
+
const now = new Date('2026-01-15T09:00:00Z').getTime();
|
|
14
|
+
const isoAt = (offsetMs) => `${new Date(now - offsetMs).toISOString().slice(0, 19)}Z`;
|
|
15
|
+
// Without `timeZone`, this reads the zone of the capturing machine, so a Mac
|
|
16
|
+
// and the Linux runner render the same instant as two different times.
|
|
13
17
|
const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
|
|
14
18
|
month: 'long',
|
|
15
19
|
day: 'numeric',
|
|
@@ -17,6 +21,7 @@ const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
|
|
|
17
21
|
hour: 'numeric',
|
|
18
22
|
minute: '2-digit',
|
|
19
23
|
hour12: true,
|
|
24
|
+
timeZone: 'UTC',
|
|
20
25
|
});
|
|
21
26
|
// [jobType, created, completed, failed, workers, minutesAgo]
|
|
22
27
|
const JOB_ROWS = [
|
package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts
CHANGED
|
@@ -43,4 +43,14 @@ export interface C4JobDashboardOverviewPageProps {
|
|
|
43
43
|
isLoadingConfig: boolean;
|
|
44
44
|
isLoadingTable: boolean;
|
|
45
45
|
translations: JobDashboardOverviewTranslations;
|
|
46
|
+
/**
|
|
47
|
+
* Side/top/bottom padding around the page content. Defaults to `'default'`.
|
|
48
|
+
*
|
|
49
|
+
* `'none'` drops it — for a widget embedded inside a host page's own tab (see
|
|
50
|
+
* `C4JobWorkerOverviewPage`'s `scope: 'environment'`), where the host already
|
|
51
|
+
* provides its own spacing and this padding would double up.
|
|
52
|
+
*
|
|
53
|
+
* ds-mode only.
|
|
54
|
+
*/
|
|
55
|
+
padding?: 'default' | 'none';
|
|
46
56
|
}
|
|
@@ -9,6 +9,7 @@ import styled from 'styled-components';
|
|
|
9
9
|
import { C4_EXTERNAL_URLS } from '../../externalUrls.const.js';
|
|
10
10
|
import { AccessRestrictedIcon, EmptyJobsIcon, ErrorIcon, } from '../../icons/c4-icons.js';
|
|
11
11
|
import { Tile } from '../../ui/index.js';
|
|
12
|
+
import { SECTION_HEADING_STYLE } from '../../utils/section-heading-style.js';
|
|
12
13
|
import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
|
|
13
14
|
const Row = styled.div `
|
|
14
15
|
display: flex;
|
|
@@ -43,10 +44,10 @@ export const C4JobDashboardErrorHandler = ({ error, showIcons, itemsLength, tran
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
return (_jsx("div", { style: { width: '100%', margin: '1rem 0' }, children: _jsx(Tile, { children: _jsxs(Row, { children: [showIcons &&
|
|
46
|
-
(isAccessRestricted ? (_jsx(AccessRestrictedIcon, { size: 70 })) : (_jsx(ErrorIcon, { size: 80 }))), _jsxs("div", { children: [_jsx("h3", { children: title }), _jsx(Description, { children: description }), isAccessRestricted && (_jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.roles, '_blank', 'noopener,noreferrer'), label: translations.forbidden.learnMoreLabel, icon: _jsx(Launch, {}) }))] })] }) }) }));
|
|
47
|
+
(isAccessRestricted ? (_jsx(AccessRestrictedIcon, { size: 70 })) : (_jsx(ErrorIcon, { size: 80 }))), _jsxs("div", { children: [_jsx("h3", { style: SECTION_HEADING_STYLE, children: title }), _jsx(Description, { children: description }), isAccessRestricted && (_jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.roles, '_blank', 'noopener,noreferrer'), label: translations.forbidden.learnMoreLabel, icon: _jsx(Launch, {}) }))] })] }) }) }));
|
|
47
48
|
}
|
|
48
49
|
if (itemsLength === 0) {
|
|
49
|
-
return (_jsx(Tile, { children: _jsxs(Row, { children: [showIcons && _jsx(EmptyJobsIcon, { size: 84 }), _jsxs("div", { children: [_jsx("h2", { children: translations.empty.title }), _jsx(Description, { children: translations.empty.description }), _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.empty.learnMoreLabel, icon: _jsx(Launch, { color: 'currentColor', size: 16 }) })] })] }) }));
|
|
50
|
+
return (_jsx(Tile, { children: _jsxs(Row, { children: [showIcons && _jsx(EmptyJobsIcon, { size: 84 }), _jsxs("div", { children: [_jsx("h2", { style: SECTION_HEADING_STYLE, children: translations.empty.title }), _jsx(Description, { children: translations.empty.description }), _jsx(C4LinkButton, { onClick: () => window.open(C4_EXTERNAL_URLS.docs.jobDashboard.jobWorker, '_blank', 'noopener,noreferrer'), label: translations.empty.learnMoreLabel, icon: _jsx(Launch, { color: 'currentColor', size: 16 }) })] })] }) }));
|
|
50
51
|
}
|
|
51
52
|
return _jsx(_Fragment, {});
|
|
52
53
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
2
|
import type { C4LinkButtonProps } from './c4-link-button.types.js';
|
|
3
|
-
export declare const C4LinkButton: ({ label, onClick, style, inline, icon, disabled, }: C4LinkButtonProps) => JSX.Element;
|
|
3
|
+
export declare const C4LinkButton: ({ label, onClick, style, inline, icon, disabled, ariaLabel, }: C4LinkButtonProps) => JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Link } from '../../ui/index.js';
|
|
3
|
-
export const C4LinkButton = ({ label, onClick, style, inline, icon, disabled, }) => {
|
|
3
|
+
export const C4LinkButton = ({ label, onClick, style, inline, icon, disabled, ariaLabel, }) => {
|
|
4
4
|
if (disabled === undefined) {
|
|
5
5
|
disabled = false;
|
|
6
6
|
}
|
|
7
7
|
const customStyle = style ? style : {};
|
|
8
|
-
const component = (_jsxs(Link, { onClick: () => !disabled && onClick(), inline: inline, style: { cursor: 'pointer', ...customStyle }, disabled: disabled, children: [label, icon && (_jsx("span", { style: {
|
|
8
|
+
const component = (_jsxs(Link, { onClick: () => !disabled && onClick(), inline: inline, style: { cursor: 'pointer', ...customStyle }, disabled: disabled, "aria-label": ariaLabel ?? (label || undefined), children: [label, icon && (_jsx("span", { style: {
|
|
9
9
|
marginLeft: '0.5rem',
|
|
10
10
|
verticalAlign: 'sub',
|
|
11
11
|
}, children: icon }))] }));
|
|
@@ -5,4 +5,10 @@ export interface C4LinkButtonProps {
|
|
|
5
5
|
inline?: boolean;
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Accessible name for icon-only buttons (empty `label`). A screen reader
|
|
10
|
+
* has nothing else to announce when `label` is `''`, so an icon-only
|
|
11
|
+
* `C4LinkButton` must pass this.
|
|
12
|
+
*/
|
|
13
|
+
ariaLabel?: string;
|
|
8
14
|
}
|
|
@@ -2,10 +2,22 @@ import type { C4BreadcrumbProps } from '../c4-breadcrumb/c4-breadcrumb.types.js'
|
|
|
2
2
|
import type { C4TabsProps } from '../c4-tabs/c4-tabs.types.js';
|
|
3
3
|
type C4PageProps = {
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Side/top/bottom padding around the page content. Defaults to `'default'`.
|
|
7
|
+
*
|
|
8
|
+
* `'none'` drops it — for a widget embedded inside a host page's own tab (see
|
|
9
|
+
* each widget's `scope: 'environment'`), where the host already provides its
|
|
10
|
+
* own spacing and the widget's padding would double up.
|
|
11
|
+
*
|
|
12
|
+
* ds-mode only: the Carbon branch is a `Grid` that already has no side
|
|
13
|
+
* padding, so this has no Carbon equivalent and is not forwarded there.
|
|
14
|
+
*/
|
|
15
|
+
padding?: 'default' | 'none';
|
|
5
16
|
header?: {
|
|
6
17
|
title?: string;
|
|
7
18
|
tag?: string;
|
|
8
19
|
indicator?: React.ReactNode;
|
|
20
|
+
subtitleBadges?: C4BreadcrumbProps['subtitleBadges'];
|
|
9
21
|
menuItems?: C4BreadcrumbProps['menu'];
|
|
10
22
|
codeSnippet?: C4BreadcrumbProps['codeSnippet'];
|
|
11
23
|
};
|
|
@@ -31,5 +43,5 @@ type C4PageProps = {
|
|
|
31
43
|
});
|
|
32
44
|
children?: React.ReactNode;
|
|
33
45
|
};
|
|
34
|
-
declare const C4PageTemplate: ({ header, tabs, banner, children, loading, breadcrumbs, }: C4PageProps) => import("react").JSX.Element;
|
|
46
|
+
declare const C4PageTemplate: ({ header, tabs, banner, children, loading, breadcrumbs, padding, }: C4PageProps) => import("react").JSX.Element;
|
|
35
47
|
export { C4PageTemplate };
|
|
@@ -14,14 +14,14 @@ import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notifi
|
|
|
14
14
|
import { C4Tabs } from '../c4-tabs/c4-tabs.js';
|
|
15
15
|
const gridStyles = { paddingRight: 0, paddingLeft: 0 };
|
|
16
16
|
const gridColumnStyles = { marginInline: 0 };
|
|
17
|
-
const C4PageTemplate = ({ header, tabs, banner, children, loading = false, breadcrumbs = { elements: [] }, }) => {
|
|
17
|
+
const C4PageTemplate = ({ header, tabs, banner, children, loading = false, breadcrumbs = { elements: [] }, padding = 'default', }) => {
|
|
18
18
|
const designSystem = useC4DesignSystem();
|
|
19
|
-
const inner = (_jsxs("div", { style: { display: 'flex', gap: '2rem', flexDirection: 'column' }, children: [(breadcrumbs.elements?.length || header) && (_jsx(C4Breadcrumb, { ...breadcrumbs, title: header?.title, menu: header?.menuItems, tag: header?.tag, indicator: header?.indicator, loading: loading, codeSnippet: header?.codeSnippet })), banner &&
|
|
19
|
+
const inner = (_jsxs("div", { style: { display: 'flex', gap: '2rem', flexDirection: 'column' }, children: [(breadcrumbs.elements?.length || header) && (_jsx(C4Breadcrumb, { ...breadcrumbs, title: header?.title, menu: header?.menuItems, tag: header?.tag, indicator: header?.indicator, subtitleBadges: header?.subtitleBadges, loading: loading, codeSnippet: header?.codeSnippet })), banner &&
|
|
20
20
|
(banner.action ? (_jsx(C4ActionableNotification, { appearance: 'banner', kind: banner.kind, title: banner.title, subtitle: banner.subtitle, actionButtonLabel: banner.action.label, onActionButtonClick: banner.action.onClick, lowContrast: true })) : (_jsx(C4InlineNotification, { kind: banner.kind, hideCloseButton: !banner.onDismiss, onCloseButtonClick: banner.onDismiss, title: banner.title, subtitle: banner.subtitle, lowContrast: true }))), tabs && (_jsx(Stack, { orientation: 'vertical', gap: 5, children: _jsx(C4Tabs, { tabs: tabs.list, desiredTabId: tabs?.desiredTabId, onTabChange: tabs?.onChange, loading: loading }) })), children] }));
|
|
21
21
|
// ds: the DS page container (padding + max width). carbon: the original
|
|
22
22
|
// Carbon grid. The inner header/tabs already switch via their own families.
|
|
23
23
|
if (designSystem === 'ds') {
|
|
24
|
-
return _jsx(PageLayout, { children: inner });
|
|
24
|
+
return _jsx(PageLayout, { padding: padding, children: inner });
|
|
25
25
|
}
|
|
26
26
|
return (_jsx(Grid, { style: gridStyles, children: _jsx(Column, { span: '100%', style: gridColumnStyles, children: inner }) }));
|
|
27
27
|
};
|
|
@@ -31,7 +31,7 @@ export const C4TileWithTitleAndAction = ({ title, tooltip, description, descript
|
|
|
31
31
|
flexWrap: 'wrap',
|
|
32
32
|
height: '48px',
|
|
33
33
|
fontSize: '12px',
|
|
34
|
-
}, children: [_jsx("h6", { style: { fontSize }, children: title }), tooltip && (_jsx(Tooltip, { label: tooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(Information, {}) }) }))] }), description && (_jsxs("p", { style: { color: 'var(--cds-text-helper)' }, children: [description, descriptionTooltip && (_jsx(C4InfoTooltip, { label: descriptionTooltip }))] }))] }), action && !isLoading && (_jsx(C4LinkButton, { label: action.label, onClick: () => action.onClick(), style: {
|
|
34
|
+
}, children: [_jsx("h6", { style: { fontSize }, children: title }), tooltip && (_jsx(Tooltip, { label: tooltip, align: 'top', children: _jsx(Button, { kind: 'ghost', children: _jsx(Information, {}) }) }))] }), description && (_jsxs("p", { style: { color: 'var(--cds-text-helper)' }, children: [description, descriptionTooltip && (_jsx(C4InfoTooltip, { label: descriptionTooltip }))] }))] }), action && !isLoading && (_jsx(C4LinkButton, { label: action.label, ariaLabel: action.ariaLabel, onClick: () => action.onClick(), style: {
|
|
35
35
|
justifySelf: 'end',
|
|
36
36
|
alignSelf: 'start',
|
|
37
37
|
}, icon: action.icon }))] }), isLoading && _jsx(SkeletonPlaceholder, { style: { width: '100%' } }), !isLoading && _jsx("div", { children: children })] }) }));
|
package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ export interface C4TileWithTitleAndActionProps {
|
|
|
6
6
|
descriptionTooltip?: string;
|
|
7
7
|
action?: {
|
|
8
8
|
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* Accessible name for an icon-only action (empty `label`). A screen
|
|
11
|
+
* reader has nothing else to announce when `label` is `''`.
|
|
12
|
+
*/
|
|
13
|
+
ariaLabel?: string;
|
|
9
14
|
icon?: any;
|
|
10
15
|
kind?: 'primary' | 'secondary' | 'tertiary' | 'danger' | 'ghost';
|
|
11
16
|
onClick: () => void;
|
|
@@ -5,13 +5,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { C3ClusterTag, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { DatePicker, DatePickerInput } from '@carbon/react';
|
|
9
8
|
import { Download } from '@carbon/react/icons/index.esm.js';
|
|
10
9
|
import { useMemo } from 'react';
|
|
11
10
|
import { Button, MultiSelect, Stack } from '../../ui/index.js';
|
|
11
|
+
import { useDatePickerFamily } from '../../ui/families.js';
|
|
12
12
|
import { C4DataTable } from '../c4-data-table/c4-data-table.js';
|
|
13
13
|
import { C4DataTableSkeleton } from '../c4-data-table/c4-data-table-skeleton.js';
|
|
14
14
|
export const C4UsageMetricsPerCluster = ({ data, range, tags, texts, loading, download, }) => {
|
|
15
|
+
const { DatePicker, DatePickerInput } = useDatePickerFamily();
|
|
15
16
|
const compTimestampSelection = (_jsxs(DatePicker, { datePickerType: 'range', dateFormat: 'Y-m-d', value: [range.start, range.end], onChange: (newValues) => {
|
|
16
17
|
range.onChange({
|
|
17
18
|
start: new Date(newValues[0]).getTime(),
|
|
@@ -8,7 +8,7 @@ export declare const C4_EXTERNAL_URLS: {
|
|
|
8
8
|
readonly docs: {
|
|
9
9
|
readonly consoleApiClients: "https://docs.camunda.io/docs/next/apis-tools/administration-api/administration-api-reference/";
|
|
10
10
|
readonly consoleAlerts: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-alerts/";
|
|
11
|
-
readonly consoleClusterClients: "https://docs.camunda.io/docs/next/components/
|
|
11
|
+
readonly consoleClusterClients: "https://docs.camunda.io/docs/next/components/hub/organization/manage-clusters/manage-api-clients";
|
|
12
12
|
readonly consoleManageConnectors: "https://docs.camunda.io/docs/components/console/manage-clusters/cluster-connectors/";
|
|
13
13
|
readonly connectorSecrets: "https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets";
|
|
14
14
|
readonly consoleIpWhitelist: "https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/";
|
|
@@ -7,7 +7,7 @@ export const C4_EXTERNAL_URLS = {
|
|
|
7
7
|
docs: {
|
|
8
8
|
consoleApiClients: 'https://docs.camunda.io/docs/next/apis-tools/administration-api/administration-api-reference/',
|
|
9
9
|
consoleAlerts: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-alerts/',
|
|
10
|
-
consoleClusterClients: 'https://docs.camunda.io/docs/next/components/
|
|
10
|
+
consoleClusterClients: 'https://docs.camunda.io/docs/next/components/hub/organization/manage-clusters/manage-api-clients',
|
|
11
11
|
consoleManageConnectors: 'https://docs.camunda.io/docs/components/console/manage-clusters/cluster-connectors/',
|
|
12
12
|
connectorSecrets: 'https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets',
|
|
13
13
|
consoleIpWhitelist: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/',
|
|
@@ -99,6 +99,12 @@ const resources = {
|
|
|
99
99
|
actionLabel: 'Learn more about managing authorizations',
|
|
100
100
|
},
|
|
101
101
|
},
|
|
102
|
+
indicator: {
|
|
103
|
+
secondaryReplicationNotReady: {
|
|
104
|
+
title: 'Secondary key not accessible',
|
|
105
|
+
subtitle: "Your secondary region's encryption key isn't accessible, so replication to that region isn't working. Go to the Encryption tab to review the key policy.",
|
|
106
|
+
},
|
|
107
|
+
},
|
|
102
108
|
},
|
|
103
109
|
orgManagement: {
|
|
104
110
|
title: 'Organization management',
|