@camunda/ccma-saas-frontend 0.6.0 → 0.7.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.
Files changed (40) hide show
  1. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
  2. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +4 -2
  3. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +1 -1
  4. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +4 -0
  5. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +15 -5
  6. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +12 -1
  7. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +9 -3
  8. package/lib/esm/components/c4-cluster-settings/elements/session-settings.d.ts +13 -0
  9. package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +69 -0
  10. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +19 -1
  11. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +2 -1
  12. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +1 -0
  13. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +12 -0
  14. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +7 -2
  15. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
  16. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -3
  17. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.types.d.ts +7 -0
  18. package/lib/esm/components/c4-navigation/c4-navigation.js +17 -9
  19. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +7 -1
  20. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +2 -2
  21. package/lib/esm/i18n/en/modals/apiclients.json +4 -1
  22. package/lib/esm/i18n/en/pages/clusterdetails.json +2 -2
  23. package/lib/esm/i18n/en/pages/orgmanagement.json +9 -1
  24. package/lib/esm/utils/http-error-message.d.ts +14 -0
  25. package/lib/esm/utils/http-error-message.js +35 -0
  26. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +3 -0
  27. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +148 -32
  28. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +3 -0
  29. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +18 -0
  30. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +5 -0
  31. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -0
  32. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +1 -1
  33. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.d.ts +1 -1
  34. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +15 -3
  35. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +107 -18
  36. package/lib/esm/widgets/management/c4-management-app.js +366 -42
  37. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +21 -0
  38. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +30 -1
  39. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +34 -14
  40. package/package.json +4 -4
@@ -1,3 +1,3 @@
1
1
  import type { JSX } from 'react';
2
2
  import type { C4ClusterSettingsProps } from './c4-cluster-settings.types.js';
3
- export declare const C4ClusterSettings: ({ settings, tasklistSettings, optimizeFilteringSettings, dangerZone, }: C4ClusterSettingsProps) => JSX.Element;
3
+ export declare const C4ClusterSettings: ({ settings, tasklistSettings, optimizeFilteringSettings, sessionSettings, dangerZone, }: C4ClusterSettingsProps) => JSX.Element;
@@ -3,13 +3,15 @@ import { Stack } from '../../ui/index.js';
3
3
  import { ClusterSettings } from './elements/cluster-settings.js';
4
4
  import { DangerZone } from './elements/danger-zone.js';
5
5
  import { OptimizeFilteringSettings } from './elements/optimize-filtering-settings.js';
6
+ import { SessionSettings } from './elements/session-settings.js';
6
7
  import { SettingsTile } from './elements/settings-tile.js';
7
8
  import { TasklistSettings } from './elements/tasklist-mode-settings.js';
8
- export const C4ClusterSettings = ({ settings, tasklistSettings, optimizeFilteringSettings, dangerZone, }) => {
9
+ export const C4ClusterSettings = ({ settings, tasklistSettings, optimizeFilteringSettings, sessionSettings, dangerZone, }) => {
9
10
  const settingsComponent = _jsx(ClusterSettings, { ...settings });
10
11
  const tasklistComponent = tasklistSettings?.enabled && (_jsx(TasklistSettings, { ...tasklistSettings }));
11
12
  const optimizeFilteringComponent = optimizeFilteringSettings ? (_jsx(SettingsTile, { title: optimizeFilteringSettings.title, children: _jsx(OptimizeFilteringSettings, { filtering: optimizeFilteringSettings.filtering, permissions: optimizeFilteringSettings.permissions, onToggle: optimizeFilteringSettings.onToggle, onSave: optimizeFilteringSettings.onSave }) })) : undefined;
13
+ const sessionSettingsComponent = sessionSettings ? (_jsx(SettingsTile, { title: sessionSettings.title, children: _jsx(SessionSettings, { maxInactiveIntervalMinutes: sessionSettings.maxInactiveIntervalMinutes, heartbeatEnabled: sessionSettings.heartbeatEnabled, permissions: sessionSettings.permissions, onSaveMaxInactiveInterval: sessionSettings.onSaveMaxInactiveInterval, onToggleHeartbeat: sessionSettings.onToggleHeartbeat }) })) : undefined;
12
14
  const dangerZoneComponent = dangerZone ? (_jsx(DangerZone, { ...dangerZone })) : undefined;
13
- const component = (_jsxs(Stack, { gap: 6, children: [settingsComponent, tasklistComponent, optimizeFilteringComponent, dangerZoneComponent] }));
15
+ const component = (_jsxs(Stack, { gap: 6, children: [settingsComponent, tasklistComponent, optimizeFilteringComponent, sessionSettingsComponent, dangerZoneComponent] }));
14
16
  return component;
15
17
  };
@@ -34,7 +34,7 @@ export const autoUpdate = {
34
34
  };
35
35
  export const lowLatencyToggle = {
36
36
  enabled: true,
37
- description: (_jsxs(_Fragment, { children: ["When enabled, updates and changes in Modeler Play, Operate and Tasklist are applied quicker, which is ideal for testing purposes.", _jsx("br", {}), _jsx("br", {}), "This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput."] })),
37
+ description: (_jsxs(_Fragment, { children: ["When enabled, updates and changes in Modeler Test mode, Operate and Tasklist are applied quicker, which is ideal for testing purposes.", _jsx("br", {}), _jsx("br", {}), "This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput."] })),
38
38
  permissions: {
39
39
  mayChange: true,
40
40
  },
@@ -1,6 +1,7 @@
1
1
  import type { ClusterSettingsProps } from './elements/cluster-settings.js';
2
2
  import type { DangerZoneProps } from './elements/danger-zone.js';
3
3
  import type { OptimizeFilteringSettingsProps } from './elements/optimize-filtering-settings.js';
4
+ import type { SessionSettingsProps } from './elements/session-settings.js';
4
5
  import type { SwaggerToggleProps } from './elements/swagger-toggle.js';
5
6
  import type { TasklistModeToggleProps } from './elements/tasklist-mode-toggle.js';
6
7
  export interface C4ClusterSettingsProps {
@@ -12,5 +13,8 @@ export interface C4ClusterSettingsProps {
12
13
  optimizeFilteringSettings?: OptimizeFilteringSettingsProps & {
13
14
  title: string;
14
15
  };
16
+ sessionSettings?: SessionSettingsProps & {
17
+ title: string;
18
+ };
15
19
  dangerZone?: DangerZoneProps;
16
20
  }
@@ -5,7 +5,15 @@ import { Checkbox, Modal, Stack, TextInput } from '../../../ui/index.js';
5
5
  import { C4InlineNotification } from '../../c4-inline-notification/c4-inline-notification.js';
6
6
  // ponytail: English placeholder copy — final UX copy + lockout wording are a Product
7
7
  // Design action item (design §1). Kept inline until it lands.
8
- const NAME_PATTERN = /^[A-Z][A-Z0-9]*$/;
8
+ //
9
+ // Matches ZeebeCluster's oidcProviders[].name validation exactly
10
+ // (camunda-operator's api/cloud/v1alpha1/zeebecluster_types.go): Spring
11
+ // lowercases every registration id it reads from an env var name, so the
12
+ // operator's CRD requires the value already in that form (lowercase; uppercase,
13
+ // which this used to enforce, always failed CR admission). 'oidc' is reserved for
14
+ // the default registration slot.
15
+ const NAME_PATTERN = /^[a-z][a-z0-9]*$/;
16
+ const RESERVED_NAME = 'oidc';
9
17
  function isValidUrl(value) {
10
18
  try {
11
19
  return Boolean(new URL(value));
@@ -43,7 +51,7 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
43
51
  setLockoutAck(false);
44
52
  setShowErrors(false);
45
53
  }, [open, initialConfig]);
46
- const nameInvalid = !NAME_PATTERN.test(name);
54
+ const nameInvalid = !NAME_PATTERN.test(name) || name === RESERVED_NAME;
47
55
  const clientNameInvalid = clientName.trim().length === 0;
48
56
  const issuerInvalid = !isValidUrl(issuerUri);
49
57
  const clientIdInvalid = clientId.trim().length === 0;
@@ -79,7 +87,9 @@ export const ExternalIdentityProviderModal = ({ open, initialConfig, saving, err
79
87
  };
80
88
  return (_jsx(Modal, { open: open, modalHeading: isEdit
81
89
  ? 'Edit external identity provider'
82
- : 'Configure external identity provider', primaryButtonText: 'Save', secondaryButtonText: 'Cancel', primaryButtonDisabled: saving, onRequestClose: onClose, onRequestSubmit: handleSubmit, id: 'c4-external-identity-provider-modal', size: 'sm', children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error, hideCloseButton: true, lowContrast: true })), _jsx(Form, { noValidate: true, children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-idp-name', labelText: 'Name (identifier)', helperText: 'Uppercase letters and digits, starting with a letter (e.g. ACMESSO).', value: name, disabled: saving || isEdit, invalid: showErrors && nameInvalid, invalidText: 'Must match ^[A-Z][A-Z0-9]*$', onChange: (e) => setName(e.target.value.toUpperCase()) }), _jsx(TextInput, { id: 'c4-idp-client-name', labelText: 'Display name', helperText: 'Shown on the login screen.', value: clientName, disabled: saving, invalid: showErrors && clientNameInvalid, invalidText: 'Display name is required', onChange: (e) => setClientName(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-issuer', labelText: 'Issuer URL', value: issuerUri, disabled: saving, invalid: showErrors && issuerInvalid, invalidText: 'Enter a valid URL', onChange: (e) => setIssuerUri(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id', labelText: 'Client ID', value: clientId, disabled: saving, invalid: showErrors && clientIdInvalid, invalidText: 'Client ID is required', onChange: (e) => setClientId(e.target.value) }), _jsx(PasswordInput, { id: 'c4-idp-client-secret', labelText: 'Client secret', helperText: isEdit
83
- ? 'Leave blank to keep the current secret.'
84
- : 'Stored securely; never displayed after saving.', value: clientSecret, disabled: saving, invalid: showErrors && secretInvalid, invalidText: 'Client secret is required', onChange: (e) => setClientSecret(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-scopes', labelText: 'Scopes', helperText: 'Space-separated. Defaults to "openid profile".', value: scopes, disabled: saving, onChange: (e) => setScopes(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-username-claim', labelText: 'Username claim', helperText: 'Defaults to "sub".', value: usernameClaim, disabled: saving, onChange: (e) => setUsernameClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-groups-claim', labelText: 'Groups claim (optional)', value: groupsClaim, disabled: saving, onChange: (e) => setGroupsClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id-claim', labelText: 'Client ID claim (optional)', value: clientIdClaim, disabled: saving, onChange: (e) => setClientIdClaim(e.target.value) }), _jsx(Checkbox, { id: 'c4-idp-lockout-ack', labelText: 'I understand that a misconfigured identity provider can lock users out of this cluster.', checked: lockoutAck, disabled: saving, invalid: showErrors && !lockoutAck, invalidText: 'Please confirm you understand the lockout risk', onChange: (_e, { checked }) => setLockoutAck(checked) })] }) })] }) }));
90
+ : 'Configure external identity provider', primaryButtonText: 'Save', secondaryButtonText: 'Cancel', primaryButtonDisabled: saving, onRequestClose: onClose, onRequestSubmit: handleSubmit, id: 'c4-external-identity-provider-modal', size: 'sm', children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: error, hideCloseButton: true, lowContrast: true })), _jsx(Form, { noValidate: true, children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-idp-name', labelText: 'Name (identifier)', helperText: 'Lowercase letters and digits, starting with a letter (e.g. acmesso).', value: name, disabled: saving || isEdit, invalid: showErrors && nameInvalid, invalidText: name === RESERVED_NAME
91
+ ? "'oidc' is reserved for the default identity provider"
92
+ : 'Must match ^[a-z][a-z0-9]*$', onChange: (e) => setName(e.target.value.toLowerCase()) }), _jsx(TextInput, { id: 'c4-idp-client-name', labelText: 'Display name', helperText: 'Shown on the login screen.', value: clientName, disabled: saving, invalid: showErrors && clientNameInvalid, invalidText: 'Display name is required', onChange: (e) => setClientName(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-issuer', labelText: 'Issuer URL', value: issuerUri, disabled: saving, invalid: showErrors && issuerInvalid, invalidText: 'Enter a valid URL', onChange: (e) => setIssuerUri(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id', labelText: 'Client ID', value: clientId, disabled: saving, invalid: showErrors && clientIdInvalid, invalidText: 'Client ID is required', onChange: (e) => setClientId(e.target.value) }), _jsx(PasswordInput, { id: 'c4-idp-client-secret', labelText: 'Client secret', helperText: isEdit
93
+ ? 'Leave blank to keep the current secret. Changes can take up to a minute to sync to the cluster.'
94
+ : 'Stored securely; never displayed after saving. Can take up to a minute to sync to the cluster.', value: clientSecret, disabled: saving, invalid: showErrors && secretInvalid, invalidText: 'Client secret is required', onChange: (e) => setClientSecret(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-scopes', labelText: 'Scopes', helperText: 'Space-separated. Defaults to "openid profile".', value: scopes, disabled: saving, onChange: (e) => setScopes(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-username-claim', labelText: 'Username claim', helperText: 'Defaults to "sub".', value: usernameClaim, disabled: saving, onChange: (e) => setUsernameClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-groups-claim', labelText: 'Groups claim (optional)', value: groupsClaim, disabled: saving, onChange: (e) => setGroupsClaim(e.target.value) }), _jsx(TextInput, { id: 'c4-idp-client-id-claim', labelText: 'Client ID claim (optional)', value: clientIdClaim, disabled: saving, onChange: (e) => setClientIdClaim(e.target.value) }), _jsx(Checkbox, { id: 'c4-idp-lockout-ack', labelText: 'I understand that a misconfigured identity provider can lock users out of this cluster.', checked: lockoutAck, disabled: saving, invalid: showErrors && !lockoutAck, invalidText: 'Please confirm you understand the lockout risk', onChange: (_e, { checked }) => setLockoutAck(checked) })] }) })] }) }));
85
95
  };
@@ -16,5 +16,16 @@ export interface ExternalIdentityProviderProps {
16
16
  description: ReactNode;
17
17
  /** Status line, e.g. "Configured: Acme SSO" / "Not configured". */
18
18
  statusText: string;
19
+ /**
20
+ * False when the cluster's SecretSource isn't provisioned yet — saving would
21
+ * create a SecretSync that can never reconcile. Defaults to `true` (fail
22
+ * open) so older callers/DTOs without this concept keep working. Mirrors
23
+ * ResourceBasedAuthorizationsProps' supported/unsupportedNotification shape.
24
+ */
25
+ supported?: boolean;
26
+ unsupportedNotification?: {
27
+ title: string;
28
+ subtitle: string;
29
+ };
19
30
  }
20
- export declare const ExternalIdentityProvider: ({ enabled, action, onToggle, permissions, description, statusText, }: ExternalIdentityProviderProps) => JSX.Element;
31
+ export declare const ExternalIdentityProvider: ({ enabled, action, onToggle, permissions, description, statusText, supported, unsupportedNotification, }: ExternalIdentityProviderProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
3
- export const ExternalIdentityProvider = ({ enabled, action, onToggle, permissions, description, statusText, }) => {
4
- return (_jsx(C4Toggle, { id: 'external-identity-provider-toggle', enabled: enabled, supported: true, title: 'External identity provider', notices: [
3
+ export const ExternalIdentityProvider = ({ enabled, action, onToggle, permissions, description, statusText, supported = true, unsupportedNotification, }) => {
4
+ return (_jsx(C4Toggle, { id: 'external-identity-provider-toggle', enabled: enabled, supported: supported, title: 'External identity provider', notices: [
5
5
  { notice: description },
6
6
  {
7
7
  notice: statusText,
@@ -11,5 +11,11 @@ export const ExternalIdentityProvider = ({ enabled, action, onToggle, permission
11
11
  },
12
12
  ], onClick: onToggle, permissions: {
13
13
  mayToggle: permissions.mayToggle,
14
- } }));
14
+ }, unsupportedNotification: unsupportedNotification
15
+ ? {
16
+ kind: 'info',
17
+ title: unsupportedNotification.title,
18
+ subtitle: unsupportedNotification.subtitle,
19
+ }
20
+ : undefined }));
15
21
  };
@@ -0,0 +1,13 @@
1
+ import { type JSX } from 'react';
2
+ export declare const SESSION_MAX_INACTIVE_INTERVAL_MIN_MINUTES = 1;
3
+ export declare const SESSION_MAX_INACTIVE_INTERVAL_MAX_MINUTES = 1440;
4
+ export interface SessionSettingsProps {
5
+ maxInactiveIntervalMinutes: number;
6
+ heartbeatEnabled: boolean;
7
+ permissions: {
8
+ mayChange: boolean;
9
+ };
10
+ onSaveMaxInactiveInterval: (minutes: number) => Promise<void>;
11
+ onToggleHeartbeat: (enabled: boolean) => Promise<void>;
12
+ }
13
+ export declare const SessionSettings: ({ maxInactiveIntervalMinutes, heartbeatEnabled, permissions, onSaveMaxInactiveInterval, onToggleHeartbeat, }: SessionSettingsProps) => JSX.Element;
@@ -0,0 +1,69 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } 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 { useEffect, useState } from 'react';
8
+ import { Button, Stack } from '../../../ui/index.js';
9
+ import { C4Divider } from '../../c4-divider/c4-divider.js';
10
+ import { C4NumberInput } from '../../c4-number-input/c4-number-input.js';
11
+ import { C4Toggle } from '../../c4-toggle/c4-toggle.js';
12
+ // Mirrors the operator CRD's kubebuilder validation on
13
+ // Spec.Identity.SessionMaxInactiveIntervalMinutes (camunda-operator#5863).
14
+ export const SESSION_MAX_INACTIVE_INTERVAL_MIN_MINUTES = 1;
15
+ export const SESSION_MAX_INACTIVE_INTERVAL_MAX_MINUTES = 1440;
16
+ const helperTextStyle = {
17
+ color: 'var(--cds-text-secondary)',
18
+ fontSize: 'var(--cds-body-compact-01-font-size)',
19
+ maxWidth: '650px',
20
+ };
21
+ export const SessionSettings = ({ maxInactiveIntervalMinutes, heartbeatEnabled, permissions, onSaveMaxInactiveInterval, onToggleHeartbeat, }) => {
22
+ const [minutes, setMinutes] = useState(maxInactiveIntervalMinutes);
23
+ const [error, setError] = useState(undefined);
24
+ const [isSaving, setIsSaving] = useState(false);
25
+ const [isTogglingHeartbeat, setIsTogglingHeartbeat] = useState(false);
26
+ // Resync local edit state whenever the server value changes (a successful
27
+ // save, or a background reload) so the Save button only appears while there
28
+ // is a genuine unsaved edit.
29
+ useEffect(() => {
30
+ setMinutes(maxInactiveIntervalMinutes);
31
+ setError(undefined);
32
+ }, [maxInactiveIntervalMinutes]);
33
+ const isPending = isSaving || isTogglingHeartbeat;
34
+ const isDirty = minutes !== maxInactiveIntervalMinutes;
35
+ const handleSave = async () => {
36
+ if (minutes < SESSION_MAX_INACTIVE_INTERVAL_MIN_MINUTES ||
37
+ minutes > SESSION_MAX_INACTIVE_INTERVAL_MAX_MINUTES) {
38
+ setError(`Enter a value between ${SESSION_MAX_INACTIVE_INTERVAL_MIN_MINUTES} and ${SESSION_MAX_INACTIVE_INTERVAL_MAX_MINUTES}.`);
39
+ return;
40
+ }
41
+ setError(undefined);
42
+ setIsSaving(true);
43
+ try {
44
+ await onSaveMaxInactiveInterval(minutes);
45
+ }
46
+ finally {
47
+ setIsSaving(false);
48
+ }
49
+ };
50
+ const handleHeartbeatToggle = async () => {
51
+ setIsTogglingHeartbeat(true);
52
+ try {
53
+ await onToggleHeartbeat(!heartbeatEnabled);
54
+ }
55
+ finally {
56
+ setIsTogglingHeartbeat(false);
57
+ }
58
+ };
59
+ return (_jsxs(Stack, { gap: 6, children: [_jsx(C4Toggle, { id: 'session-heartbeat-toggle', enabled: heartbeatEnabled, supported: true, title: 'Measure session activity by heartbeat', notices: [
60
+ {
61
+ notice: 'When enabled, activity for the idle timeout below is measured by genuine user interaction — mouse movement, clicks, and keystrokes — instead of ordinary application requests, which no longer reset the clock.',
62
+ },
63
+ ], onClick: handleHeartbeatToggle, permissions: {
64
+ mayToggle: permissions.mayChange && !isPending,
65
+ } }), _jsx(C4Divider, {}), _jsxs(Stack, { gap: 4, style: { maxWidth: '350px' }, children: [_jsx(C4NumberInput, { label: 'Idle session timeout (minutes)', min: SESSION_MAX_INACTIVE_INTERVAL_MIN_MINUTES, max: SESSION_MAX_INACTIVE_INTERVAL_MAX_MINUTES, step: 1, value: minutes, invalid: !!error, invalidText: error, disabled: !heartbeatEnabled || !permissions.mayChange || isPending, onChange: (value) => {
66
+ setMinutes(Number(value));
67
+ setError(undefined);
68
+ } }), _jsxs("p", { style: helperTextStyle, children: ["How long a web session may sit idle, from", ' ', SESSION_MAX_INACTIVE_INTERVAL_MIN_MINUTES, " to", ' ', SESSION_MAX_INACTIVE_INTERVAL_MAX_MINUTES, " minutes, before Camunda signs the user out. Applies to Operate, Tasklist, and the unified Camunda application. Available once heartbeat measurement is enabled."] }), heartbeatEnabled && permissions.mayChange && isDirty && (_jsx("div", { children: _jsx(Button, { size: 'md', kind: 'primary', onClick: handleSave, disabled: isPending, children: isSaving ? 'Saving…' : 'Save' }) }))] })] }));
69
+ };
@@ -33,6 +33,12 @@ export const C4CreateAlertModal = forwardRef(({ t, userEmail, docsAlertsUrl, onN
33
33
  const [webhookUrl, setWebhookUrl] = useState('');
34
34
  const [wantsHmac, setWantsHmac] = useState(false);
35
35
  const [hmacSecret, setHmacSecret] = useState('');
36
+ // Whether the customer opted to skip the server-side webhook URL
37
+ // verification (the backend `ignoreHead` bypass). Only surfaced after a
38
+ // webhook create attempt has failed (mirrors the original "show after the
39
+ // HEAD check failed" behaviour), so it is never encouraged by default.
40
+ const [skipVerification, setSkipVerification] = useState(false);
41
+ const [showSkipVerification, setShowSkipVerification] = useState(false);
36
42
  const [urlInvalid, setUrlInvalid] = useState(false);
37
43
  const [urlInvalidText, setUrlInvalidText] = useState('');
38
44
  const [hmacInvalid, setHmacInvalid] = useState(false);
@@ -50,6 +56,8 @@ export const C4CreateAlertModal = forwardRef(({ t, userEmail, docsAlertsUrl, onN
50
56
  setWebhookUrl('');
51
57
  setWantsHmac(false);
52
58
  setHmacSecret('');
59
+ setSkipVerification(false);
60
+ setShowSkipVerification(false);
53
61
  setUrlInvalid(false);
54
62
  setUrlInvalidText('');
55
63
  setHmacInvalid(false);
@@ -95,11 +103,21 @@ export const C4CreateAlertModal = forwardRef(({ t, userEmail, docsAlertsUrl, onN
95
103
  hmacSecret: reportType === 'Webhook' && wantsHmac
96
104
  ? hmacSecret
97
105
  : undefined,
106
+ ignoreHead: reportType === 'Webhook' && skipVerification
107
+ ? true
108
+ : undefined,
98
109
  });
99
110
  close();
100
111
  }
101
112
  catch (submitError) {
102
113
  setError(submitError instanceof Error ? submitError.message : 'Failed');
114
+ // A webhook create failure is most often the server-side URL
115
+ // verification (HEAD check). Surface the opt-in to skip it so the
116
+ // customer can retry without leaving the modal, mirroring the
117
+ // original "show after the HEAD check failed" behaviour.
118
+ if (reportType === 'Webhook') {
119
+ setShowSkipVerification(true);
120
+ }
103
121
  onSubmitError?.(submitError);
104
122
  }
105
123
  finally {
@@ -127,6 +145,6 @@ export const C4CreateAlertModal = forwardRef(({ t, userEmail, docsAlertsUrl, onN
127
145
  kind: 'openUrl',
128
146
  url: docsAlertsUrl,
129
147
  });
130
- } })] }))] }))] }) }) }));
148
+ } })] })), showSkipVerification && (_jsxs("div", { children: [_jsx("fieldset", { className: 'cds--fieldset', children: _jsx("legend", { className: 'cds--label', children: safeTranslate(t, 'alerts:create.fields.ignoreHead.intro', 'Payload URL verification') }) }), _jsx(Checkbox, { id: 'alert-create-ignore-head-checkbox', labelText: safeTranslate(t, 'alerts:create.fields.ignoreHead.label', 'Skip payload URL verification. Please make sure that the URL is correct and can be accessed by Camunda.'), checked: skipVerification, onChange: (event) => setSkipVerification(event.target.checked) })] }))] }))] }) }) }));
131
149
  });
132
150
  C4CreateAlertModal.displayName = 'C4CreateAlertModal';
@@ -10,11 +10,12 @@ export const basicCreateAlertModalProps = {
10
10
  onNavigate: ({ url }) => {
11
11
  console.log('Navigate requested', { url });
12
12
  },
13
- onCreateAlert: async ({ reportType, webhookUrl, hmacSecret }) => {
13
+ onCreateAlert: async ({ reportType, webhookUrl, hmacSecret, ignoreHead }) => {
14
14
  console.log('Create alert requested', {
15
15
  reportType,
16
16
  webhookUrl,
17
17
  hmacSecret,
18
+ ignoreHead,
18
19
  });
19
20
  },
20
21
  };
@@ -15,6 +15,7 @@ export interface C4CreateAlertModalProps {
15
15
  reportType: C4CreateAlertReportType;
16
16
  webhookUrl?: string;
17
17
  hmacSecret?: string;
18
+ ignoreHead?: boolean;
18
19
  }) => Promise<void>;
19
20
  onCancel?: () => void;
20
21
  onSubmitStart?: () => void;
@@ -225,6 +225,18 @@ function getAvailableScopes(t) {
225
225
  label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.getRestore', 'Get restore status'),
226
226
  value: 'GetHotBackupRestore',
227
227
  },
228
+ {
229
+ label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.getSchedule', 'Get schedule'),
230
+ value: 'GetHotBackupSchedule',
231
+ },
232
+ {
233
+ label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.updateSchedule', 'Create + update schedule'),
234
+ value: 'UpdateHotBackupSchedule',
235
+ },
236
+ {
237
+ label: safeTranslate(t, 'apiclients:create.fields.scopes.hotBackups.deleteSchedule', 'Delete schedule'),
238
+ value: 'DeleteHotBackupSchedule',
239
+ },
228
240
  ],
229
241
  },
230
242
  ];
@@ -4,6 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
+ import { normalizeCIDRList } from '@camunda/ccma-shared-types';
7
8
  import { Form } from '@carbon/react';
8
9
  import { forwardRef, useCallback, useImperativeHandle, useState, } from 'react';
9
10
  import { Modal, Stack, TextInput } from '../../ui/index.js';
@@ -57,7 +58,7 @@ export const C4CreateIpWhitelistModal = forwardRef(({ t, onCreateIpWhitelist, on
57
58
  setError('');
58
59
  try {
59
60
  await onCreateIpWhitelist({
60
- ip: ipValue,
61
+ ip: normalizeCIDRList(ipValue),
61
62
  description: ipDescription,
62
63
  });
63
64
  close();
@@ -72,6 +73,10 @@ export const C4CreateIpWhitelistModal = forwardRef(({ t, onCreateIpWhitelist, on
72
73
  })();
73
74
  }, children: _jsx(Form, { onSubmit: (e) => {
74
75
  e.preventDefault();
75
- }, children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'ipwhitelist:create.error.generic', "We're having trouble adding the IP(s)"), subtitle: error, lowContrast: true, hideCloseButton: true })), _jsx(TextInput, { id: 'ip-input-whitelist-create', labelText: safeTranslate(t, 'ipwhitelist:create.fields.ips', 'IP(s)'), helperText: safeTranslate(t, 'ipwhitelist:create.fields.ipsHelper', 'Comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1'), value: ipValue, maxLength: 50, onChange: (event) => setIpValue(event.target.value) }), _jsx(TextInput, { id: 'name-input-whitelist-create', labelText: safeTranslate(t, 'ipwhitelist:create.fields.description', 'Description (optional)'), value: ipDescription, maxLength: 1024, onChange: (event) => setIpDescription(event.target.value) })] }) }) }));
76
+ }, children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'ipwhitelist:create.error.generic', "We're having trouble adding the IP(s)"), subtitle: error, lowContrast: true, hideCloseButton: true })), _jsx(TextInput, { id: 'ip-input-whitelist-create', labelText: safeTranslate(t, 'ipwhitelist:create.fields.ips', 'IP(s)'), helperText: safeTranslate(t, 'ipwhitelist:create.fields.ipsHelper', 'Comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1'), value: ipValue, maxLength: 50,
77
+ // Whitespace is never valid in a CIDR list, and a stray space
78
+ // (typed or pasted) is stored verbatim and breaks the cluster
79
+ // controller — so strip it as the user types.
80
+ onChange: (event) => setIpValue(normalizeCIDRList(event.target.value)) }), _jsx(TextInput, { id: 'name-input-whitelist-create', labelText: safeTranslate(t, 'ipwhitelist:create.fields.description', 'Description (optional)'), value: ipDescription, maxLength: 1024, onChange: (event) => setIpDescription(event.target.value) })] }) }) }));
76
81
  });
77
82
  C4CreateIpWhitelistModal.displayName = 'C4CreateIpWhitelistModal';
@@ -1,3 +1,3 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { C4DeleteOrganizationModalProps } from './c4-delete-organization-modal.types.js';
3
- export declare const C4DeleteOrganizationModal: ({ t, open, loading, error, organizationName, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }: C4DeleteOrganizationModalProps) => JSX.Element;
3
+ export declare const C4DeleteOrganizationModal: ({ t, open, loading, error, errorMessage, organizationName, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }: C4DeleteOrganizationModalProps) => JSX.Element;
@@ -25,7 +25,7 @@ function safeTranslate(t, key, fallback, options) {
25
25
  return fallback;
26
26
  }
27
27
  }
28
- export const C4DeleteOrganizationModal = ({ t, open, loading, error, organizationName, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }) => {
28
+ export const C4DeleteOrganizationModal = ({ t, open, loading, error, errorMessage, organizationName, onRequestClose, onRequestSubmit, preventCloseOnClickOutside, }) => {
29
29
  const [confirmText, setConfirmText] = useState('');
30
30
  useEffect(() => {
31
31
  if (!open) {
@@ -37,6 +37,6 @@ export const C4DeleteOrganizationModal = ({ t, open, loading, error, organizatio
37
37
  const secondaryButtonText = safeTranslate(t, 'common:cancel', 'Cancel');
38
38
  const message = safeTranslate(t, 'orgmanagement:tabs.settings.orgmanagement.deleteConfirmation', `Are you sure you want to delete "${organizationName}"? The organization and its clusters, Web Modeler files, and other assets will be deleted. This action cannot be undone.`, { organizationName });
39
39
  const confirmLabel = safeTranslate(t, 'orgmanagement:tabs.settings.orgmanagement.deleteConfirmLabel', 'Type the word DELETE to confirm');
40
- const errorMessage = safeTranslate(t, 'orgmanagement:tabs.settings.orgmanagement.deleteError', 'Failed to delete organization. Please try again.');
41
- return (_jsx(Modal, { modalHeading: modalHeading, open: open, onRequestClose: onRequestClose, onRequestSubmit: onRequestSubmit, primaryButtonText: primaryButtonText, primaryButtonDisabled: loading || confirmText.trim() !== 'DELETE', secondaryButtonText: secondaryButtonText, size: 'sm', danger: true, id: 'delete-organization-modal', preventCloseOnClickOutside: preventCloseOnClickOutside ?? true, children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: errorMessage, hideCloseButton: true })), _jsx("p", { children: message }), _jsx(TextInput, { id: 'c4-delete-organization-confirmation', labelText: confirmLabel, value: confirmText, onChange: (e) => setConfirmText(e.target.value), disabled: loading })] }) }));
40
+ const genericErrorMessage = safeTranslate(t, 'orgmanagement:tabs.settings.orgmanagement.deleteError', 'Failed to delete organization. Please try again.');
41
+ return (_jsx(Modal, { modalHeading: modalHeading, open: open, onRequestClose: onRequestClose, onRequestSubmit: onRequestSubmit, primaryButtonText: primaryButtonText, primaryButtonDisabled: loading || confirmText.trim() !== 'DELETE', secondaryButtonText: secondaryButtonText, size: 'sm', danger: true, id: 'delete-organization-modal', preventCloseOnClickOutside: preventCloseOnClickOutside ?? true, children: _jsxs(Stack, { gap: 6, children: [error && (_jsx(C4InlineNotification, { kind: 'error', title: errorMessage ?? genericErrorMessage, hideCloseButton: true })), _jsx("p", { children: message }), _jsx(TextInput, { id: 'c4-delete-organization-confirmation', labelText: confirmLabel, value: confirmText, onChange: (e) => setConfirmText(e.target.value), disabled: loading })] }) }));
42
42
  };
@@ -3,6 +3,13 @@ export interface C4DeleteOrganizationModalProps {
3
3
  open: boolean;
4
4
  loading: boolean;
5
5
  error?: boolean;
6
+ /**
7
+ * Reason the deletion failed, shown instead of the generic retry copy.
8
+ * The backend rejects a delete for preconditions the user can act on (org
9
+ * is the user's only org, an SSO connection still names it as its default
10
+ * org), and "please try again" is wrong advice for all of them.
11
+ */
12
+ errorMessage?: string;
6
13
  organizationName: string;
7
14
  onRequestClose: () => void;
8
15
  onRequestSubmit: () => void | Promise<void>;
@@ -5,7 +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 { C3Navigation, useC3HelpCenter, useC3Profile, } from '@camunda/camunda-composite-components';
8
- import { AppHeader, AppSidebar, Badge, Button, DropdownMenuItem, NavBreadcrumb, NavBreadcrumbItem, SidebarProvider, TooltipProvider, UserMenu, } from '@camunda/design-system';
8
+ import { AppHeader, AppSidebar, Badge, Button, CamundaLogo, DropdownMenuItem, NavBreadcrumb, NavBreadcrumbItem, SidebarProvider, TooltipProvider, UserMenu, } from '@camunda/design-system';
9
9
  import { Activity, BarChart3, HelpCircle, LayoutDashboard, ListChecks, Moon, Sun, Workflow, } from 'lucide-react';
10
10
  import { useEffect, useRef, useState } from 'react';
11
11
  import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
@@ -19,9 +19,10 @@ import { C4HelpCenter, FEEDBACK_TAB_ID, } from '../c4-help-center/c4-help-center
19
19
  *
20
20
  * ds shell: AppSidebar (Camunda apps; cluster-scoped apps grouped with one
21
21
  * child per cluster linking to that cluster's app endpoint) + AppHeader (a
22
- * clickable "Console" → dashboard, a NavBreadcrumb Organization/Cluster context
23
- * switcher, and a UserMenu). Notifications and Help are deferred (their data /
24
- * widgets are produced inside c3, not exposed in these props).
22
+ * clickable Camunda logomark → dashboard next to the app name, a NavBreadcrumb
23
+ * Organization/Cluster context switcher, and a UserMenu). Notifications and Help
24
+ * are deferred (their data / widgets are produced inside c3, not exposed in
25
+ * these props).
25
26
  */
26
27
  // C3 routeProps is opaque (`any`); navigate via the embedded mobx-router.
27
28
  const navigate = (routeProps) => {
@@ -133,15 +134,22 @@ export const C4Navigation = (props) => {
133
134
  const manageOrg = props.orgSideBar?.manageOrg;
134
135
  const clustersElement = props.navbar?.elements?.find((e) => e.key === 'clusters');
135
136
  const onConsoleClick = () => navigate(props.app?.routeProps);
136
- const consoleButton = (_jsx("button", { type: 'button', onClick: onConsoleClick, style: {
137
+ // DS >= 0.46 centers `logo` in a `sidebarCollapsedWidth`-wide box (3.5rem) so
138
+ // the mark lines up with the collapsed rail's icons, and the header no longer
139
+ // pads its left edge. Only the logomark fits there — the app name used to be
140
+ // the `logo` itself and overflowed the box, clipping off the left of the
141
+ // viewport. It now rides beside the box as `appName`, and the mark keeps the
142
+ // click-to-dashboard affordance.
143
+ const appName = props.app?.name ?? 'Console';
144
+ const logoButton = (_jsx("button", { type: 'button', onClick: onConsoleClick, "aria-label": props.app?.ariaLabel ?? appName, style: {
137
145
  background: 'none',
138
146
  border: 0,
139
147
  padding: 0,
140
148
  cursor: 'pointer',
141
- font: 'inherit',
142
- fontWeight: 600,
149
+ display: 'flex',
150
+ alignItems: 'center',
143
151
  color: 'inherit',
144
- }, children: props.app?.name ?? 'Console' }));
152
+ }, children: _jsx(CamundaLogo, { className: 'size-6' }) }));
145
153
  const breadcrumb = (_jsxs(NavBreadcrumb, { "aria-label": 'Navigation', children: [_jsx(NavBreadcrumbItem, { label: activeOrg?.name ?? 'Organization', switchLabel: 'Switch organization', onClick: activeOrg && manageOrg ? () => manageOrg(activeOrg.uuid) : undefined, children: orgs && orgs.length > 0 && switchToOrg
146
154
  ? orgs.map((org) => (_jsx(DropdownMenuItem, { onClick: () => switchToOrg(org.uuid), children: org.name }, org.uuid)))
147
155
  : undefined }), _jsx(NavBreadcrumbItem, { label: 'Clusters', switchLabel: 'Switch cluster', onClick: clustersElement
@@ -168,7 +176,7 @@ export const C4Navigation = (props) => {
168
176
  const isDark = resolvedTheme === 'dark';
169
177
  const themeToggle = (_jsx(Button, { variant: 'ghost', size: 'icon', type: 'button', "aria-label": isDark ? 'Switch to light theme' : 'Switch to dark theme', onClick: () => onThemeChange(isDark ? 'light' : 'dark'), children: isDark ? (_jsx(Sun, { "aria-hidden": true, className: 'size-4' })) : (_jsx(Moon, { "aria-hidden": true, className: 'size-4' })) }));
170
178
  const trailing = (_jsxs(_Fragment, { children: [themeToggle, helpControl, renderUserMenu(props)] }));
171
- return (_jsx(TooltipProvider, { delayDuration: 0, children: _jsx(SidebarProvider, { children: _jsxs("div", { className: 'min-h-screen bg-background text-neutral-foreground-strong', children: [_jsx(AppHeader, { skipToContentTargetId: 'main-content', logo: consoleButton, breadcrumb: breadcrumb, trailing: trailing, children: tagBadges }), _jsx(AppSidebar, { ariaLabel: 'Camunda apps', items: appItems }), _jsx("main", { id: 'main-content', tabIndex: -1, style: { marginLeft: 'var(--app-sidebar-width, 16rem)' }, children: children }), _jsx(C4HelpCenter, { open: isHelpCenterOpen, onOpenChange: (open) => {
179
+ return (_jsx(TooltipProvider, { delayDuration: 0, children: _jsx(SidebarProvider, { children: _jsxs("div", { className: 'min-h-screen bg-background text-neutral-foreground-strong', children: [_jsx(AppHeader, { skipToContentTargetId: 'main-content', logo: logoButton, appName: appName, breadcrumb: breadcrumb, trailing: trailing, children: tagBadges }), _jsx(AppSidebar, { ariaLabel: 'Camunda apps', items: appItems }), _jsx("main", { id: 'main-content', tabIndex: -1, style: { marginLeft: 'var(--app-sidebar-width, 16rem)' }, children: children }), _jsx(C4HelpCenter, { open: isHelpCenterOpen, onOpenChange: (open) => {
172
180
  if (!open)
173
181
  setIsHelpCenterOpen(false);
174
182
  }, data: helpCenterData, isLoading: helpCenterLoading, helpLinks: helpLinks, onSubmitFeedback: props.onSubmitFeedback, feedbackEnterprise: props.feedbackEnterprise, initialTabId: showTabId === 'feedback' ? FEEDBACK_TAB_ID : undefined })] }) }) }));
@@ -30,6 +30,12 @@ export interface UsageHistoryChartsProps {
30
30
  pi: LineChartConfig;
31
31
  di?: LineChartConfig;
32
32
  tu?: LineChartConfig;
33
+ /**
34
+ * Daily active tenants for the org. Set only when the host has enabled the
35
+ * tenants value metric (a staged feature flag) *and* the org is on the 2025
36
+ * licensing model — so treat it as optional even for a 2025 org.
37
+ */
38
+ tenants?: LineChartConfig;
33
39
  }
34
- export declare const UsageHistoryCharts: ({ pi, di, tu, }: UsageHistoryChartsProps) => JSX.Element;
40
+ export declare const UsageHistoryCharts: ({ pi, di, tu, tenants, }: UsageHistoryChartsProps) => JSX.Element;
35
41
  export declare const ValueMetricsLineChart: import("react").MemoExoticComponent<({ axes, dataPoints, title, theme, thresholds, toolbar, zoomBar, height, }: LineChartConfig) => JSX.Element>;
@@ -9,8 +9,8 @@ import { memo } from 'react';
9
9
  import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
10
10
  import { Stack } from '../../../ui/index.js';
11
11
  import { DsLineChart } from '../../shared-charts/ds-line-chart.js';
12
- export const UsageHistoryCharts = ({ pi, di, tu, }) => {
13
- const component = (_jsxs(Stack, { gap: 4, children: [_jsx(ValueMetricsLineChart, { ...pi }), di && _jsx(ValueMetricsLineChart, { ...di }), tu && _jsx(ValueMetricsLineChart, { ...tu })] }));
12
+ export const UsageHistoryCharts = ({ pi, di, tu, tenants, }) => {
13
+ const component = (_jsxs(Stack, { gap: 4, children: [_jsx(ValueMetricsLineChart, { ...pi }), tenants && _jsx(ValueMetricsLineChart, { ...tenants }), di && _jsx(ValueMetricsLineChart, { ...di }), tu && _jsx(ValueMetricsLineChart, { ...tu })] }));
14
14
  return component;
15
15
  };
16
16
  // Memoized: the Carbon LineChart re-initializes its underlying D3 chart whenever
@@ -73,7 +73,10 @@
73
73
  "create": "Create",
74
74
  "delete": "Delete",
75
75
  "get": "Get",
76
- "update": "Update"
76
+ "update": "Update",
77
+ "getSchedule": "Get schedule",
78
+ "updateSchedule": "Create + update schedule",
79
+ "deleteSchedule": "Delete schedule"
77
80
  },
78
81
  "activity": {
79
82
  "label": "Activity Logs",
@@ -585,7 +585,7 @@
585
585
  "lowLatency": {
586
586
  "title": "Low latency updates",
587
587
  "warning": "This setting is not recommended for production environments, as it might reduce individual process instance latency but can slow down general throughput.",
588
- "description": "When enabled, updates and changes in Modeler Play, Operate and Tasklist are applied quicker, which is ideal for testing purposes.",
588
+ "description": "When enabled, updates and changes in Modeler Test mode, Operate and Tasklist are applied quicker, which is ideal for testing purposes.",
589
589
  "action": {
590
590
  "enabled": "Disable low latency for this cluster",
591
591
  "disabled": "Enable low latency for this cluster"
@@ -650,7 +650,7 @@
650
650
  }
651
651
  },
652
652
  "appIntegrations": {
653
- "title": "Enable App Integrations",
653
+ "title": "Enable app integrations extensions",
654
654
  "description": "When enabled, this cluster exchanges events with App Integrations such as",
655
655
  "msTeamsLinkText": "Microsoft Teams",
656
656
  "descriptionDisabled": "When disabled, you can still use App Integrations, but they work with reduced functionality."
@@ -312,12 +312,17 @@
312
312
  "processInstances": "Process instances",
313
313
  "decisionInstances": "Decision instances",
314
314
  "taskUsers": "Task users",
315
+ "tenants": "Tenants",
315
316
  "generalUsers": "General users",
316
317
  "deployedModels": "Deployed models",
317
318
  "actions": {
318
319
  "editReservations": "Edit",
319
320
  "editGeneralUsers": "Edit"
320
321
  },
322
+ "errors": {
323
+ "forbidden": "You do not have permission to view usage data for this organization. An organization owner or admin can see it.",
324
+ "default": "Usage data could not be loaded. Try again in a moment."
325
+ },
321
326
  "table": {
322
327
  "type": "Type",
323
328
  "currentUsage": "Current usage",
@@ -432,7 +437,10 @@
432
437
  "updateEncryption": "Update encryption",
433
438
  "rotate": "Rotate Password",
434
439
  "activate": "Activate",
435
- "deactivate": "Deactivate"
440
+ "deactivate": "Deactivate",
441
+ "getSchedule": "Get schedule",
442
+ "updateSchedule": "Create + update schedule",
443
+ "deleteSchedule": "Delete schedule"
436
444
  },
437
445
  "description": "Client credentials can be used to request an OAuth access token. See the <0>Administration API Reference (REST)</0> documentation for details on how to retrieve an access token.",
438
446
  "noClients": {
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The user-facing reason a request was rejected, or `undefined` when there
3
+ * isn't one worth showing.
4
+ *
5
+ * Backends send their reason as the plain-text response body (see
6
+ * `errorMiddleware`), and `packages/api` puts that body on `HttpError.message`
7
+ * (its constructor forwards its `statusText` argument to `super()`, so
8
+ * `.message` — not `.statusText` — is the body).
9
+ *
10
+ * Only 4xx reasons are surfaced: they indicate a client-side rejection (for
11
+ * example unmet preconditions like "you are not in more than one org"). 5xx
12
+ * bodies are our own failure text and tell the user nothing they can use.
13
+ */
14
+ export declare function clientErrorMessage(error: unknown): string | undefined;
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ import { HttpError } from '@camunda/ccma-api';
7
+ /**
8
+ * The user-facing reason a request was rejected, or `undefined` when there
9
+ * isn't one worth showing.
10
+ *
11
+ * Backends send their reason as the plain-text response body (see
12
+ * `errorMiddleware`), and `packages/api` puts that body on `HttpError.message`
13
+ * (its constructor forwards its `statusText` argument to `super()`, so
14
+ * `.message` — not `.statusText` — is the body).
15
+ *
16
+ * Only 4xx reasons are surfaced: they indicate a client-side rejection (for
17
+ * example unmet preconditions like "you are not in more than one org"). 5xx
18
+ * bodies are our own failure text and tell the user nothing they can use.
19
+ */
20
+ export function clientErrorMessage(error) {
21
+ if (!(error instanceof HttpError)) {
22
+ return undefined;
23
+ }
24
+ if (error.status < 400 || error.status > 499) {
25
+ return undefined;
26
+ }
27
+ const message = error.message.trim();
28
+ // A proxy/gateway 4xx can answer with an HTML page instead of our own plain
29
+ // text; rendering its markup as a notification title is worse than the
30
+ // caller's generic copy.
31
+ if (message === '' || message.startsWith('<')) {
32
+ return undefined;
33
+ }
34
+ return message;
35
+ }