@camunda/ccma-saas-frontend 0.18.10 → 0.19.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-actionable-notification/c4-actionable-notification.d.ts +4 -17
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +5 -47
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +14 -6
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +1 -2
- package/lib/esm/components/c4-api-client-scope-picker/c4-api-client-scope-picker.js +4 -8
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +3 -2
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +3 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +16 -32
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +7 -15
- package/lib/esm/components/c4-billing-page/custom-styles.js +9 -9
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +9 -3
- package/lib/esm/components/c4-billing-page/elements/plan-details.js +3 -3
- package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +18 -46
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +4 -10
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +4 -15
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +14 -41
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -38
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +5 -5
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -22
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/ds-credential-items.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +10 -28
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +2 -2
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +4 -4
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +20 -44
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +8 -16
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +2 -2
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +35 -33
- package/lib/esm/components/c4-cluster-list/c4-cluster-expiry-tag.js +3 -7
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +38 -157
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +7 -8
- package/lib/esm/components/c4-cluster-overview/applications.js +71 -157
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +4 -18
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +11 -50
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +19 -36
- package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +2 -4
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +16 -199
- package/lib/esm/components/c4-cluster-overview/ds-section.d.ts +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-section.js +2 -2
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/ds-status-icon-text.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +2 -5
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/secrets-filter-mode-toggle.js +1 -2
- package/lib/esm/components/c4-cluster-settings/elements/session-settings.js +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +2 -2
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -3
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +12 -77
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +0 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +47 -52
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +11 -2
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +16 -4
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +3 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +2 -4
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +20 -58
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +157 -189
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.d.ts +2 -3
- package/lib/esm/components/c4-create-cluster-api-client-modal/scopes-description-text.js +3 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +9 -10
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +3 -18
- package/lib/esm/components/c4-data-table/c4-data-table.d.ts +2 -2
- package/lib/esm/components/c4-data-table/c4-data-table.js +3 -17
- package/lib/esm/components/c4-delete-account-modal/c4-delete-account-modal.js +1 -2
- package/lib/esm/components/c4-divider/c4-divider.js +5 -13
- package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +6 -12
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +1 -9
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +1 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +2 -2
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +2 -2
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.d.ts +4 -18
- package/lib/esm/components/c4-file-uploader/c4-file-uploader.js +7 -33
- package/lib/esm/components/c4-help-center/help-center-placeholders.d.ts +1 -1
- package/lib/esm/components/c4-hub-upgrade-banner/c4-hub-upgrade-banner.js +2 -2
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +2 -2
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -9
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +7 -17
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +6 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +0 -5
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +1 -6
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +0 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +4 -56
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +1 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +9 -88
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +12 -26
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +3 -4
- 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.types.d.ts +0 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +2 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +3 -3
- package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +3 -3
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +25 -25
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +5 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +6 -39
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +1 -6
- package/lib/esm/components/c4-management-api/c4-management-api.js +4 -6
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +24 -34
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +7 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +3 -3
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +6 -3
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +17 -33
- package/lib/esm/components/c4-navigation/c4-navigation.js +12 -25
- package/lib/esm/components/c4-number-input/c4-number-input.js +20 -6
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -4
- package/lib/esm/components/c4-org-cluster-defaults/c4-org-cluster-defaults.js +2 -2
- package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +2 -6
- package/lib/esm/components/c4-page-layout/c4-page-layout.js +3 -12
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +0 -3
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -11
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +14 -14
- package/lib/esm/components/c4-pricing/c4-pricing.js +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +5 -13
- package/lib/esm/components/c4-search/c4-search-results.js +44 -36
- package/lib/esm/components/c4-search/c4-search.js +5 -7
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.d.ts +5 -19
- package/lib/esm/components/c4-segmented-control/c4-segmented-control.js +6 -18
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +5 -8
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +5 -19
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +12 -2
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +4 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +33 -18
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -60
- package/lib/esm/components/c4-tabs/c4-tabs.js +4 -8
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +3 -3
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +13 -9
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +3 -12
- package/lib/esm/components/c4-toggle/c4-toggle.js +1 -3
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +2 -2
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +3 -9
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +4 -5
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +3 -40
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +4 -5
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -3
- package/lib/esm/components/shared-charts/ds-line-chart.d.ts +4 -6
- package/lib/esm/components/shared-charts/ds-line-chart.js +5 -7
- package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +3 -5
- package/lib/esm/components/shared-charts/ds-meter-chart.js +8 -10
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +6 -7
- package/lib/esm/components/shared-charts/recharts-tokens.js +6 -7
- package/lib/esm/index.css +107 -74
- package/lib/esm/index.d.ts +1 -9
- package/lib/esm/index.js +1 -5
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +3 -10
- package/lib/esm/runtime/c4-console-runtime-context.js +11 -23
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +0 -8
- package/lib/esm/runtime/c4-user-theme.d.ts +4 -4
- package/lib/esm/runtime/c4-user-theme.js +4 -4
- package/lib/esm/runtime/index.d.ts +1 -1
- package/lib/esm/runtime/index.js +1 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +2 -2
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +2 -2
- package/lib/esm/ui/c4-cluster-tag.d.ts +1 -1
- package/lib/esm/ui/c4-cluster-tag.js +1 -1
- package/lib/esm/ui/c4-modal-dialog.d.ts +7 -11
- package/lib/esm/ui/c4-modal-dialog.js +18 -9
- package/lib/esm/ui/c4-password-input.d.ts +4 -8
- package/lib/esm/ui/c4-password-input.js +4 -8
- package/lib/esm/ui/c4-text-area.d.ts +19 -0
- package/lib/esm/ui/c4-text-area.js +30 -0
- package/lib/esm/ui/ds-compact-code-block.d.ts +1 -1
- package/lib/esm/ui/ds-compact-code-block.js +1 -1
- package/lib/esm/ui/families.d.ts +13 -46
- package/lib/esm/ui/families.js +8 -51
- package/lib/esm/ui/index.d.ts +11 -53
- package/lib/esm/ui/index.js +19 -152
- package/lib/esm/ui/tabs.d.ts +1 -21
- package/lib/esm/ui/tabs.js +1 -22
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +2 -3
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +17 -99
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +2 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +16 -58
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +8 -16
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +4 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +13 -51
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +23 -22
- package/lib/esm/widgets/clusters/c4-clusters-page.js +1 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +3 -4
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +1 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.js +2 -3
- package/lib/esm/widgets/management/c4-management-app.js +6 -9
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +2 -2
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +4 -12
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +12 -12
- package/lib/esm/widgets/user-details/c4-user-details-page.js +6 -6
- package/package.json +3 -14
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +0 -21
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +0 -22
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +0 -71
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +0 -6
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +0 -4
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +0 -25
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +0 -7
- package/lib/esm/components/c4-sm-cluster-details/details.js +0 -19
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +0 -3
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +0 -44
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +0 -3
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +0 -34
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +0 -40
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +0 -6
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +0 -9
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +0 -14
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +0 -46
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +0 -20
- package/lib/esm/components/c4-sm-dashboard/explore.js +0 -24
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +0 -10
- package/lib/esm/components/c4-sm-dashboard/health-status.js +0 -60
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +0 -13
- package/lib/esm/components/c4-sm-dashboard/overview.js +0 -148
- package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +0 -22
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +0 -36
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +0 -4
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +0 -114
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +0 -45
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +0 -6
- package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +0 -26
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +0 -42
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +0 -2
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +0 -6
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +0 -50
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +0 -113
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +0 -3
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +0 -80
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +0 -40
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +0 -6
- package/lib/esm/ui/c4-definition-tooltip.d.ts +0 -15
- package/lib/esm/ui/c4-definition-tooltip.js +0 -43
- package/lib/esm/ui/switchable.d.ts +0 -14
- package/lib/esm/ui/switchable.js +0 -27
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { useC3Profile, } from '@camunda/camunda-composite-components';
|
|
8
2
|
import { SaaSJobsService, } from '@camunda/ccma-api';
|
|
9
3
|
import { ADMIN_APP_RENAME_MIN_VERSION, ClusterPlanTypeAvailabilityClass, ClusterPlanTypeCategory, CONNECTORS_MANAGEMENT_LINK_MIN_VERSION, checkVersion, deriveConnectivityMessage, deriveConnectivityStatus, IDENTITY_AUTHORIZATION_MIN_VERSION, IDENTITY_AUTHORIZATION_NOTICE_MAX_VERSION, INTERNAL_CONNECTORS_MANAGEMENT_MIN_VERSION, isGenerationResumable, JOB_DASHBOARD_MIN_VERSION, LINE_8_9_MIN_VERSION, LINE_8_10_MIN_VERSION, MAX_HARDWARE_PACKAGE_COUNT, SWAGGER_MIN_VERSION, sortGenerationBySemverOfZeebe, stripSecfixPostfix, TASKLIST_V2_UPGRADE_MIN_VERSION, TASKLIST_V2_UPGRADE_TARGET_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
10
|
-
import {
|
|
4
|
+
import { KeyRound, RefreshCw, ShieldCheck, UserLock, Webhook, } from 'lucide-react';
|
|
11
5
|
import { observer } from 'mobx-react-lite';
|
|
12
6
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
13
7
|
import { normalizeClusterStatus } from '../../../components/c4-cluster-overview/applications.js';
|
|
@@ -20,10 +14,10 @@ import { C4OptimizeActivationModal } from '../../../components/c4-optimize-activ
|
|
|
20
14
|
import { addC4ConsoleNotification } from '../../../notifications/c4-console-notifications-handle.js';
|
|
21
15
|
import { buildClusterSwaggerUrl } from '../../../runtime/build-cluster-swagger-url.js';
|
|
22
16
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
23
|
-
import { useC4ConsoleRuntime,
|
|
17
|
+
import { useC4ConsoleRuntime, useC4FeatureFlag, } from '../../../runtime/c4-console-runtime-context.js';
|
|
24
18
|
import { CLUSTER_CREATION_BLOCKED_FLAG } from '../../../runtime/cluster-creation-blocked.js';
|
|
25
|
-
import { Checkbox,
|
|
26
|
-
import {
|
|
19
|
+
import { Button, Checkbox, DsText, Link, Modal, Stack } from '../../../ui/index.js';
|
|
20
|
+
import { RadioButton, RadioButtonGroup } from '../../../ui/families.js';
|
|
27
21
|
import { safeTranslate } from '../../../utils/safe-translate.js';
|
|
28
22
|
import { clusterHealthOverride } from '../../cluster-health-override.js';
|
|
29
23
|
import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-paused.js';
|
|
@@ -49,10 +43,7 @@ function isUuidLike(value) {
|
|
|
49
43
|
return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
|
|
50
44
|
}
|
|
51
45
|
const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
52
|
-
const { RadioButton, RadioButtonGroup } = useRadioFamily();
|
|
53
|
-
const c3Profile = useC3Profile();
|
|
54
46
|
const runtime = useC4ConsoleRuntime();
|
|
55
|
-
const designSystem = useC4DesignSystem();
|
|
56
47
|
const wakeInFlight = useRef(false);
|
|
57
48
|
const { cluster, clusterError, creationParameters, clustersOfOrg, clusterPlanTypeReservations, clusterLoadLatest, clusterLoadPerDay, clusterLoad24h, clusterLoadLoading, canSeeClusterLoad, canEditCluster, canWakeCluster, canSleepCluster, canManageUsers, canViewConnectorsLink, hasIdentityIntegration, orgId, clusterId, jobDashboardEnabled, upgradeDocsUrls, statisticsConfig, apiConfig, t, onReloadCluster, onReloadClusterLoad, onNavigate, ignoreGracePeriod, upgradeGate, clusterLoadDocsUrl, restoreInProgress, overviewSection, sectionVariant, } = props;
|
|
58
49
|
const data = useC4ConsoleData();
|
|
@@ -346,27 +337,27 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
346
337
|
steps.push({
|
|
347
338
|
title: identityWizardTitle,
|
|
348
339
|
label,
|
|
349
|
-
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(
|
|
340
|
+
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(UserLock, { size: 80, color: 'orange', "aria-hidden": true }), title: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step1.title', 'New Admin component'), description: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step1.description', 'Permissions, roles, and authorizations are now managed in the Admin cluster component instead of the Console to improve flexibility and scalability for managing roles.'), content: _jsxs(_Fragment, { children: [_jsx("p", { children: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step1.content', 'These changes aim to provide more flexibility and security for managing cluster resources.') }), _jsxs("p", { children: ["Learn more about", ' ', _jsx("a", { href: upgradeDocsUrls?.whatsNewIn88, target: '_blank', rel: 'noreferrer', children: "updating to 8.8 guide" })] })] }) })),
|
|
350
341
|
buttons: baseButtons({ hasPrevious: false }),
|
|
351
342
|
}, {
|
|
352
343
|
title: identityWizardTitle,
|
|
353
344
|
label,
|
|
354
|
-
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(
|
|
345
|
+
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(ShieldCheck, { size: 80, color: 'orange', "aria-hidden": true }), title: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step2.title', 'Updated authorizations'), description: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step2.description', 'This feature provides more precise access control, ensuring users and groups only access explicitly assigned resources and permissions. Updating to 8.8 will enable authorizations.'), content: _jsxs(_Fragment, { children: [_jsx("p", { children: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step2.content', 'These changes aim to provide more flexibility and security for managing cluster resources.') }), _jsxs("p", { children: ["Learn more about", ' ', _jsx("a", { href: upgradeDocsUrls?.whatsNewIn88, target: '_blank', rel: 'noreferrer', children: "updating to 8.8 guide" })] })] }) })),
|
|
355
346
|
buttons: baseButtons({ hasPrevious: true }),
|
|
356
347
|
}, {
|
|
357
348
|
title: identityWizardTitle,
|
|
358
349
|
label,
|
|
359
|
-
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(
|
|
350
|
+
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(KeyRound, { size: 80, color: 'orange', "aria-hidden": true }), title: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step3.title', 'Client ID privileges'), description: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step3.description', 'Client IDs require additional setup in the cluster identity app for resource access to ensure secure and tailored permissions for automated workflows.'), content: _jsxs(_Fragment, { children: [_jsx("p", { children: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step3.content', 'These changes aim to provide more flexibility and security for managing cluster resources.') }), _jsxs("p", { children: ["Learn more about", ' ', _jsx("a", { href: upgradeDocsUrls?.whatsNewIn88, target: '_blank', rel: 'noreferrer', children: "updating to 8.8 guide" })] })] }) })),
|
|
360
351
|
buttons: baseButtons({ hasPrevious: true }),
|
|
361
352
|
}, {
|
|
362
353
|
title: identityWizardTitle,
|
|
363
354
|
label,
|
|
364
|
-
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(
|
|
355
|
+
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(RefreshCw, { size: 80, color: 'orange', "aria-hidden": true }), title: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step4.title', 'Automatic mapping of existing roles'), description: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step4.description', 'Existing users, groups, roles and permissions will be carried over and automatically mapped to authorizations in the Admin cluster component, minimizing setup effort during the update. It may take a few minutes after update until entities are fully visible in the Admin UI.'), content: _jsxs(_Fragment, { children: [_jsx("p", { children: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step4.content', 'These changes aim to provide more flexibility and security for managing cluster resources.') }), _jsxs("p", { children: ["Learn more about", ' ', _jsx("a", { href: upgradeDocsUrls?.whatsNewIn88, target: '_blank', rel: 'noreferrer', children: "updating to 8.8 guide" })] })] }) })),
|
|
365
356
|
buttons: baseButtons({ hasPrevious: true }),
|
|
366
357
|
}, {
|
|
367
358
|
title: identityWizardTitle,
|
|
368
359
|
label,
|
|
369
|
-
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(
|
|
360
|
+
content: (_jsx(UpdateCard, { heading: identityWizardHeading, icon: _jsx(Webhook, { size: 80, color: 'orange', "aria-hidden": true }), title: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step5.title', 'API & client changes to review before upgrading.'), description: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step5.description', 'Camunda 8.8 comes with a unified Orchestration Cluster API and new client libraries, while some deprecated APIs have been removed.'), content: _jsxs(_Fragment, { children: [_jsx("p", { children: safeTranslate(t, 'clustermodals:upgrade.identityWizard.step5.content', 'Please review how this may impact your deployed workers and clients before upgrading.') }), _jsxs("p", { children: ["Learn more about that in", ' ', _jsx("a", { href: upgradeDocsUrls?.announcementsApiTools, target: '_blank', rel: 'noreferrer', children: "API & Tools Release announcements" })] })] }) })),
|
|
370
361
|
buttons: baseButtons({ hasPrevious: true }),
|
|
371
362
|
});
|
|
372
363
|
}
|
|
@@ -1031,7 +1022,6 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
1031
1022
|
return null;
|
|
1032
1023
|
}
|
|
1033
1024
|
const CLUSTER_LOAD_DOCS_URL = clusterLoadDocsUrl;
|
|
1034
|
-
const chartTheme = c3Profile.resolvedTheme === 'dark' ? 'g100' : 'g10';
|
|
1035
1025
|
const formatDate = (date) => {
|
|
1036
1026
|
if (!date)
|
|
1037
1027
|
return '-';
|
|
@@ -1382,7 +1372,6 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
1382
1372
|
});
|
|
1383
1373
|
},
|
|
1384
1374
|
},
|
|
1385
|
-
theme: chartTheme,
|
|
1386
1375
|
reload: () => {
|
|
1387
1376
|
void onReloadClusterLoad();
|
|
1388
1377
|
},
|
|
@@ -1593,11 +1582,9 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
1593
1582
|
if (hardwareBusy)
|
|
1594
1583
|
return;
|
|
1595
1584
|
setHardwareModalOpen(false);
|
|
1596
|
-
}, onRequestSubmit: submitHardwarePackageChange, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [hardwareError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.error.title', 'Error updating cluster size'), subtitle: hardwareError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.description', 'Increase the cluster size to enhance performance and capacity. Each size increase uses an additional reservation slot.') }), _jsxs("div", { children: [_jsx(
|
|
1585
|
+
}, onRequestSubmit: submitHardwarePackageChange, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [hardwareError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.error.title', 'Error updating cluster size'), subtitle: hardwareError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.description', 'Increase the cluster size to enhance performance and capacity. Each size increase uses an additional reservation slot.') }), _jsxs("div", { children: [_jsx(DsText, { as: 'p', variant: 'label-md', style: { marginBottom: '0.75rem' }, children: safeTranslate(t, 'clusterdetails:overview.clusterDetails.hardwarePackages', 'Number of allocated Hardware Packages') }), _jsx("div", { style: { display: 'flex', gap: '0.75rem', flexWrap: 'wrap' }, children: Array.from({ length: MAX_HARDWARE_PACKAGE_COUNT }, (_unused, index) => index + 1).map((value) => (_jsxs(Button, { id: `allocatedHardwarePackages-${value}`, size: 'sm', kind: selectedHardwarePackages === value ? 'primary' : 'tertiary', onClick: () => {
|
|
1597
1586
|
setSelectedHardwarePackages(value);
|
|
1598
|
-
},
|
|
1599
|
-
? 'high-contrast'
|
|
1600
|
-
: 'outline', style: { borderWidth: '0px' }, disabled: hardwareBusy ||
|
|
1587
|
+
}, disabled: hardwareBusy ||
|
|
1601
1588
|
value > availableHardwarePackages ||
|
|
1602
1589
|
!!restoreInProgress, children: [value, "x"] }, `allocatedHardwarePackages-${value}`))) })] }), !hardwareReservationsAvailable ? (_jsx(C4InlineNotification, { kind: 'info', lowContrast: true, title: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.unavailable.title', 'Reservation data unavailable'), subtitle: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.unavailable.subtitle', 'Larger sizes will be available once reservation data has loaded. You can keep the current size or choose a smaller size for now.'), hideCloseButton: true })) : availableHardwarePackages < MAX_HARDWARE_PACKAGE_COUNT ? (_jsx(C4InlineNotification, { kind: 'info', lowContrast: true, title: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.info.title', 'Limited reservations'), subtitle: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.info.subtitle', 'Increase your reservations to unlock more sizes.'), hideCloseButton: true })) : null] }) }), _jsx(Modal, { open: tagModalOpen, modalHeading: safeTranslate(t, 'clusterdetails:tags.modal.heading', 'Assign a cluster tag'), primaryButtonText: safeTranslate(t, 'clusterdetails:tags.modal.primary', 'Confirm'), secondaryButtonText: safeTranslate(t, 'clusterdetails:tags.modal.secondary', 'Cancel'), primaryButtonDisabled: tagBusy ||
|
|
1603
1590
|
selectedTag === '' ||
|
|
@@ -1606,34 +1593,9 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
1606
1593
|
if (tagBusy)
|
|
1607
1594
|
return;
|
|
1608
1595
|
setTagModalOpen(false);
|
|
1609
|
-
}, onRequestSubmit: submitTagChange, children: _jsxs(Stack, { gap: 5, children: [tagError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:tags.modal.error', 'Error updating tag'), subtitle: tagError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate(t, 'clusterdetails:tags.modal.description', 'Assign a tag to make it easier for team members to clearly distinguish between different stages of the software development lifecycle. Tags have no impact on performance and can be changed later.') }),
|
|
1596
|
+
}, onRequestSubmit: submitTagChange, children: _jsxs(Stack, { gap: 5, children: [tagError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:tags.modal.error', 'Error updating tag'), subtitle: tagError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate(t, 'clusterdetails:tags.modal.description', 'Assign a tag to make it easier for team members to clearly distinguish between different stages of the software development lifecycle. Tags have no impact on performance and can be changed later.') }), _jsx(C4ClusterTagSelector, { boxes: tagSelectorBoxes, isDevCluster: false, currentStage: selectedTag === '' ? undefined : selectedTag, onChange: setSelectedTag, save: {
|
|
1610
1597
|
allowed: !tagBusy && canEditCluster && !restoreInProgress,
|
|
1611
|
-
} }))
|
|
1612
|
-
display: 'grid',
|
|
1613
|
-
gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',
|
|
1614
|
-
gap: '1rem',
|
|
1615
|
-
}, children: stageOptions.map((option) => {
|
|
1616
|
-
const isSelected = selectedTag === option.value;
|
|
1617
|
-
return (_jsx("button", { type: 'button', disabled: tagBusy || !canEditCluster || !!restoreInProgress, onClick: () => {
|
|
1618
|
-
setSelectedTag(option.value);
|
|
1619
|
-
}, style: {
|
|
1620
|
-
all: 'unset',
|
|
1621
|
-
cursor: tagBusy || !canEditCluster ? 'not-allowed' : 'pointer',
|
|
1622
|
-
border: `1px solid ${isSelected
|
|
1623
|
-
? 'var(--cds-border-interactive)'
|
|
1624
|
-
: 'var(--cds-border-subtle-01)'}`,
|
|
1625
|
-
padding: '1rem',
|
|
1626
|
-
position: 'relative',
|
|
1627
|
-
}, "aria-pressed": isSelected, children: _jsxs("div", { style: { display: 'grid', gap: '0.5rem' }, children: [_jsxs("div", { style: {
|
|
1628
|
-
display: 'flex',
|
|
1629
|
-
justifyContent: 'space-between',
|
|
1630
|
-
alignItems: 'flex-start',
|
|
1631
|
-
gap: '0.5rem',
|
|
1632
|
-
}, children: [_jsx(ClusterTag, { stage: option.value }), isSelected ? (_jsx("span", { style: {
|
|
1633
|
-
color: 'var(--cds-icon-primary)',
|
|
1634
|
-
display: 'flex',
|
|
1635
|
-
}, children: _jsx(CheckmarkFilled, {}) })) : null] }), _jsx("p", { children: option.description })] }) }, option.value));
|
|
1636
|
-
}) }))] }) }), _jsx(C4ClusterOverview, { applications: {
|
|
1598
|
+
} })] }) }), _jsx(C4ClusterOverview, { applications: {
|
|
1637
1599
|
title: safeTranslate(t, 'clusterdetails:overview.applications.title', 'Components'),
|
|
1638
1600
|
variant: sectionVariant,
|
|
1639
1601
|
applications: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleSecureConnectivityService } from '@camunda/ccma-api';
|
|
3
3
|
import { isValidAwsArn, isValidPrivateLinkRegion, PRIVATE_LINK_REGIONS, SECURE_CONNECTIVITY_ALLOWED_ENTRIES_LIMIT, SseEntity, } from '@camunda/ccma-shared-types';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Stepper, StepperStep } from '@camunda/design-system';
|
|
5
|
+
import { Check, X } from 'lucide-react';
|
|
6
6
|
import { observer } from 'mobx-react-lite';
|
|
7
7
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
8
|
import { C4ClusterDetailsSecureConnectivity } from '../../../components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js';
|
|
9
|
+
import { SpinningLoader } from '../../../components/c4-cluster-overview/ds-status-icon-text.js';
|
|
9
10
|
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
10
11
|
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../../../components/c4-structured-list/c4-structured-list.js';
|
|
11
12
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
@@ -87,17 +88,17 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
87
88
|
};
|
|
88
89
|
const headingCompact01Style = {
|
|
89
90
|
margin: 0,
|
|
90
|
-
fontSize: '
|
|
91
|
-
fontWeight: '
|
|
92
|
-
lineHeight: '
|
|
93
|
-
letterSpacing: '
|
|
91
|
+
fontSize: '0.875rem',
|
|
92
|
+
fontWeight: '600',
|
|
93
|
+
lineHeight: '1.28572',
|
|
94
|
+
letterSpacing: '0.16px',
|
|
94
95
|
};
|
|
95
96
|
const renderAllowedPrincipalsEditor = (telemetryContext) => {
|
|
96
97
|
const isUpdateModal = telemetryContext === 'updateModal';
|
|
97
98
|
return (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 3, children: [_jsx("h4", { style: headingCompact01Style, children: "Principals that can connect to the service" }), _jsx("p", { style: { margin: 0 }, children: "Define the principals from your AWS that you trust to connect to the service." })] }), _jsxs("div", { style: {
|
|
98
99
|
display: 'flex',
|
|
99
100
|
flexDirection: 'row',
|
|
100
|
-
gap: '
|
|
101
|
+
gap: '1rem',
|
|
101
102
|
alignItems: 'flex-start',
|
|
102
103
|
}, children: [_jsx(TextInput, { "data-modal-primary-focus": true, id: 'private-link-allowed-principal-input', placeholder: 'Enter principal id', invalidText: showAllowedPrincipalsLimitError
|
|
103
104
|
? allowedPrincipalsLimitText
|
|
@@ -111,12 +112,12 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
111
112
|
setShowNoPrincipalsError(false);
|
|
112
113
|
setSecureConnectivityMutationError('');
|
|
113
114
|
setAllowedPrincipalInput(e.target.value);
|
|
114
|
-
} }), _jsx(Button, { kind: 'tertiary', renderIcon:
|
|
115
|
+
} }), _jsx(Button, { kind: 'tertiary', renderIcon: Check, style: {
|
|
115
116
|
paddingTop: '11px',
|
|
116
117
|
height: '41px',
|
|
117
118
|
minHeight: '0px',
|
|
118
119
|
whiteSpace: 'nowrap',
|
|
119
|
-
marginTop: '
|
|
120
|
+
marginTop: '1.5rem',
|
|
120
121
|
}, disabled: hasReachedAllowedPrincipalsLimit ||
|
|
121
122
|
!allowedPrincipalInput ||
|
|
122
123
|
!validateArn(allowedPrincipalInput) ||
|
|
@@ -137,13 +138,13 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
137
138
|
margin: 0,
|
|
138
139
|
fontSize: '0.875rem',
|
|
139
140
|
fontWeight: 600,
|
|
140
|
-
color: 'var(--
|
|
141
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
141
142
|
}, children: "Principals" }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: allowedPrincipals.length > 0 ? (allowedPrincipals.map((principal) => (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsxs("div", { style: {
|
|
142
143
|
display: 'flex',
|
|
143
144
|
alignItems: 'center',
|
|
144
145
|
justifyContent: 'space-between',
|
|
145
|
-
gap: '
|
|
146
|
-
}, children: [_jsx("span", { style: { flexGrow: 1 }, children: principal }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon:
|
|
146
|
+
gap: '1rem',
|
|
147
|
+
}, children: [_jsx("span", { style: { flexGrow: 1 }, children: principal }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon: X, iconDescription: 'Remove principal', onClick: () => {
|
|
147
148
|
setSecureConnectivityMutationError('');
|
|
148
149
|
setAllowedPrincipals(allowedPrincipals.filter((item) => item !== principal));
|
|
149
150
|
} })] }) }) }, principal)))) : (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsx("div", { style: {
|
|
@@ -160,7 +161,7 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
160
161
|
label: region,
|
|
161
162
|
}));
|
|
162
163
|
const selectedRegionItems = regionItems.filter((region) => allowedRegions.includes(region.id));
|
|
163
|
-
return (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 3, children: [_jsx("h4", { style: headingCompact01Style, children: "Supported regions for the endpoint service" }), _jsx("p", { style: { margin: 0 }, children: "Define the supported regions for endpoint connections that can connect to the service. Use of cross regions may incur extra costs." })] }), _jsx(FilterableMultiSelect, { id: 'private-link-allowed-region-input', titleText: 'Region code', placeholder: 'Select region', helperText: 'Search and select one or more AWS regions.',
|
|
164
|
+
return (_jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 3, children: [_jsx("h4", { style: headingCompact01Style, children: "Supported regions for the endpoint service" }), _jsx("p", { style: { margin: 0 }, children: "Define the supported regions for endpoint connections that can connect to the service. Use of cross regions may incur extra costs." })] }), _jsx(FilterableMultiSelect, { id: 'private-link-allowed-region-input', titleText: 'Region code', placeholder: 'Select region', helperText: 'Search and select one or more AWS regions.', items: regionItems, itemToString: (item) => item?.label ?? '', selectedItems: selectedRegionItems, invalidText: showAllowedRegionsLimitError
|
|
164
165
|
? allowedRegionsLimitText
|
|
165
166
|
: showNoRegionsError
|
|
166
167
|
? 'At least one region must be added.'
|
|
@@ -177,13 +178,13 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
177
178
|
margin: 0,
|
|
178
179
|
fontSize: '0.875rem',
|
|
179
180
|
fontWeight: 600,
|
|
180
|
-
color: 'var(--
|
|
181
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
181
182
|
}, children: "Selected regions" }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: allowedRegions.length > 0 ? (allowedRegions.map((region) => (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsxs("div", { style: {
|
|
182
183
|
display: 'flex',
|
|
183
184
|
alignItems: 'center',
|
|
184
185
|
justifyContent: 'space-between',
|
|
185
|
-
gap: '
|
|
186
|
-
}, children: [_jsx("span", { style: { flexGrow: 1 }, children: region }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon:
|
|
186
|
+
gap: '1rem',
|
|
187
|
+
}, children: [_jsx("span", { style: { flexGrow: 1 }, children: region }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon: X, iconDescription: 'Remove region', onClick: () => {
|
|
187
188
|
setShowAllowedRegionsLimitReached(false);
|
|
188
189
|
setSecureConnectivityMutationError('');
|
|
189
190
|
setAllowedRegions(allowedRegions.filter((item) => item !== region));
|
|
@@ -351,11 +352,11 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
351
352
|
(secureConnectivityEditMode === 'principals' &&
|
|
352
353
|
hasTooManyAllowedPrincipals) ||
|
|
353
354
|
(secureConnectivityEditMode === 'regions' && hasTooManyAllowedRegions);
|
|
354
|
-
const emptyDescription = (_jsxs(Stack, { gap: 6, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description0', 'Private networking allows you to connect privately to the cluster using inbound AWS PrivateLink.') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description1', 'With inbound PrivateLink, traffic from your AWS VPC to Camunda cluster is routed privately and never traverses the public internet. This enables job workers and inbound connectors to run inside your own network while securely accessing Camunda.') }), showActivatingTile ? (_jsx(Tile, { light: true, children: _jsxs(Stack, { gap: 2, children: [_jsx(
|
|
355
|
+
const emptyDescription = (_jsxs(Stack, { gap: 6, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description0', 'Private networking allows you to connect privately to the cluster using inbound AWS PrivateLink.') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description1', 'With inbound PrivateLink, traffic from your AWS VPC to Camunda cluster is routed privately and never traverses the public internet. This enables job workers and inbound connectors to run inside your own network while securely accessing Camunda.') }), showActivatingTile ? (_jsx(Tile, { light: true, children: _jsxs(Stack, { gap: 2, children: [_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(SpinningLoader, { size: 16, "aria-hidden": true }), _jsx("span", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingTitle', 'Activating PrivateLink endpoint service…') })] }), _jsxs(Stack, { gap: 1, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingText0', 'This may take a few minutes.') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingText1', 'You can leave this page. We will notify you when the endpoint service is ready.') })] })] }) })) : undefined] }));
|
|
355
356
|
return (_jsxs(_Fragment, { children: [showActivePrivateLinkIpAllowlistConflict && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle, style: {
|
|
356
357
|
maxWidth: '100%',
|
|
357
358
|
width: '100%',
|
|
358
|
-
marginBottom: '
|
|
359
|
+
marginBottom: '1rem',
|
|
359
360
|
} })), _jsx(C4ClusterDetailsSecureConnectivity, { status: secureConnectivityStatus, privateEndpoints: privateEndpoints, connectInAwsUrl: 'https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html', isLoading: isSecureConnectivityLoadingVisible, isDeactivating: secureConnectivityDeactivating, text: {
|
|
360
361
|
title: safeTranslate(t, 'clusterdetails:secureConnectivity.title', 'Private networking'),
|
|
361
362
|
activatedTitle: safeTranslate(t, 'clusterdetails:secureConnectivity.title', 'Private networking'),
|
|
@@ -431,7 +432,7 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
431
432
|
}
|
|
432
433
|
closeActivateModal();
|
|
433
434
|
return true;
|
|
434
|
-
}, children: [_jsx(ModalHeader, { title: safeTranslate(t, 'clusterdetails:secureConnectivity.enableButton', 'Activate PrivateLink endpoint service') }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [hasIpAllowlist && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle })), secureConnectivityMutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: 'Activation failed', subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), _jsxs(
|
|
435
|
+
}, children: [_jsx(ModalHeader, { title: safeTranslate(t, 'clusterdetails:secureConnectivity.enableButton', 'Activate PrivateLink endpoint service') }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [hasIpAllowlist && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle })), secureConnectivityMutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: 'Activation failed', subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), _jsxs(Stepper, { "aria-label": 'Secure connectivity activation steps', currentStep: secureConnectivityModalStep, onStepChange: setSecureConnectivityModalStep, children: [_jsx(StepperStep, { id: 'private-link-step-0', children: "Allowed principals" }), _jsx(StepperStep, { id: 'private-link-step-1', children: "Supported regions" })] }), (() => {
|
|
435
436
|
switch (secureConnectivityModalStep) {
|
|
436
437
|
case 0:
|
|
437
438
|
return renderAllowedPrincipalsEditor('activateModal');
|
|
@@ -440,7 +441,7 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
440
441
|
default:
|
|
441
442
|
return _jsx(_Fragment, {});
|
|
442
443
|
}
|
|
443
|
-
})()] }) }), _jsx(ModalFooter, { children: _jsxs(
|
|
444
|
+
})()] }) }), _jsx(ModalFooter, { children: _jsxs("div", { style: { display: 'flex', width: '100%' }, children: [_jsx(Button, { kind: 'secondary', disabled: secureConnectivityMutationBusy, onClick: () => {
|
|
444
445
|
if (activateModalOpenRef.current &&
|
|
445
446
|
!activateModalCompletedRef.current) {
|
|
446
447
|
trackEvent('secureConnectivity:activateModal:close', 'Close Secure Connectivity Activate modal', {
|
|
@@ -523,7 +524,7 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
523
524
|
return true;
|
|
524
525
|
}, children: [_jsx(ModalHeader, { title: updateModalTitle }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [secureConnectivityMutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: updateModalErrorTitle, subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), secureConnectivityEditMode === 'regions'
|
|
525
526
|
? renderAllowedRegionsEditor()
|
|
526
|
-
: renderAllowedPrincipalsEditor('updateModal')] }) }), _jsx(ModalFooter, { children: _jsxs(
|
|
527
|
+
: renderAllowedPrincipalsEditor('updateModal')] }) }), _jsx(ModalFooter, { children: _jsxs("div", { style: { display: 'flex', width: '100%' }, children: [_jsx(Button, { kind: 'secondary', disabled: secureConnectivityMutationBusy, onClick: closeUpdateModal, size: 'xl', style: { flex: 1, maxInlineSize: '100%' }, children: "Cancel" }), _jsx(Button, { kind: 'primary', disabled: isUpdateModalSaveDisabled, onClick: () => {
|
|
527
528
|
if (secureConnectivityEditMode === 'principals') {
|
|
528
529
|
if (hasTooManyAllowedPrincipals) {
|
|
529
530
|
setSecureConnectivityMutationError(allowedPrincipalsLimitText);
|
|
@@ -550,7 +551,7 @@ const C4ClusterDetailsSecureConnectivityTabImpl = (props) => {
|
|
|
550
551
|
allowedRegionsCount: allowedRegions.length,
|
|
551
552
|
});
|
|
552
553
|
void submitSecureConnectivityUpdate();
|
|
553
|
-
}, size: 'xl', style: { flex: 1, maxInlineSize: '100%' }, children: updateModalSaveLabel })] }) })] }), _jsx(Modal, { open: secureConnectivityDeactivateOpen, danger: true, size: 'sm', modalHeading: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalHeading', 'Deactivate the endpoint service'), primaryButtonText: secureConnectivityDeactivating ? (_jsx(
|
|
554
|
+
}, size: 'xl', style: { flex: 1, maxInlineSize: '100%' }, children: updateModalSaveLabel })] }) })] }), _jsx(Modal, { open: secureConnectivityDeactivateOpen, danger: true, size: 'sm', modalHeading: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalHeading', 'Deactivate the endpoint service'), primaryButtonText: secureConnectivityDeactivating ? (_jsx(SpinningLoader, { size: 16, "aria-hidden": true })) : (safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalConfirm', 'Deactivate')), secondaryButtonText: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalCancel', 'Cancel'), primaryButtonDisabled: secureConnectivityDeactivating, onRequestClose: () => {
|
|
554
555
|
if (!secureConnectivityDeactivating) {
|
|
555
556
|
setSecureConnectivityDeactivateOpen(false);
|
|
556
557
|
}
|
|
@@ -16,7 +16,7 @@ import { useC4ConsoleRuntime, useC4FeatureFlag, } from '../../runtime/c4-console
|
|
|
16
16
|
import { CLUSTER_CREATION_BLOCKED_FLAG } from '../../runtime/cluster-creation-blocked.js';
|
|
17
17
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
18
18
|
import { Checkbox, Modal, Stack, TextInput } from '../../ui/index.js';
|
|
19
|
-
import {
|
|
19
|
+
import { Select, SelectItem } from '../../ui/families.js';
|
|
20
20
|
import { safeTranslate } from '../../utils/safe-translate.js';
|
|
21
21
|
import { clusterHealthOverride } from '../cluster-health-override.js';
|
|
22
22
|
import { isClusterReconciliationPaused } from '../is-cluster-reconciliation-paused.js';
|
|
@@ -267,7 +267,6 @@ function mergePermissions(base, override) {
|
|
|
267
267
|
return { ...base, ...override };
|
|
268
268
|
}
|
|
269
269
|
export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, onRequestFailoverCluster, onNeedsReload, }) => {
|
|
270
|
-
const { Select, SelectItem } = useSelectFamily();
|
|
271
270
|
const resolvedGettingStartedHref = useMemo(() => getC4ClustersGettingStartedHref(gettingStartedHref), [gettingStartedHref]);
|
|
272
271
|
const runtime = useC4ConsoleRuntime();
|
|
273
272
|
const clusterCreationBlocked = useC4FeatureFlag(CLUSTER_CREATION_BLOCKED_FLAG);
|
|
@@ -17,7 +17,7 @@ export interface C4ClustersPageTranslations {
|
|
|
17
17
|
title: string;
|
|
18
18
|
createButton: string;
|
|
19
19
|
searchLabel: string;
|
|
20
|
-
/**
|
|
20
|
+
/** See `C4ClusterListProps['translations']['filters']`. */
|
|
21
21
|
filters?: C4ClusterListProps['translations']['filters'];
|
|
22
22
|
emptyState: {
|
|
23
23
|
noClusters: string;
|
package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js
CHANGED
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { C4ExecutableDetails } from '@camunda/c4-connectors';
|
|
8
8
|
import { CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION } from '@camunda/ccma-shared-types';
|
|
9
|
-
import { ErrorBoundary } from '@carbon
|
|
9
|
+
import { ErrorBoundary } from '@camunda/design-system/carbon-compat';
|
|
10
10
|
import { observer } from 'mobx-react-lite';
|
|
11
11
|
import { useMemo } from 'react';
|
|
12
12
|
import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
|
package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js
CHANGED
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { C4ExecutablesTable } from '@camunda/c4-connectors';
|
|
8
8
|
import { CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION } from '@camunda/ccma-shared-types';
|
|
9
|
-
import { ErrorBoundary } from '@carbon
|
|
9
|
+
import { ErrorBoundary } from '@camunda/design-system/carbon-compat';
|
|
10
10
|
import { observer } from 'mobx-react-lite';
|
|
11
11
|
import { useMemo } from 'react';
|
|
12
12
|
import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
|
package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js
CHANGED
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { C4OutboundConnectorDetails } from '@camunda/c4-connectors';
|
|
8
8
|
import { CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION } from '@camunda/ccma-shared-types';
|
|
9
|
-
import { ErrorBoundary } from '@carbon
|
|
9
|
+
import { ErrorBoundary } from '@camunda/design-system/carbon-compat';
|
|
10
10
|
import { observer } from 'mobx-react-lite';
|
|
11
11
|
import { useMemo } from 'react';
|
|
12
12
|
import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { C4ConnectorsHome, C4InboundConnectorsTable, } from '@camunda/c4-connectors';
|
|
8
8
|
import { CONNECTOR_MANAGEMENT_METRICS_MIN_VERSION } from '@camunda/ccma-shared-types';
|
|
9
|
-
import { ErrorBoundary } from '@carbon
|
|
9
|
+
import { ErrorBoundary } from '@camunda/design-system/carbon-compat';
|
|
10
10
|
import { observer } from 'mobx-react-lite';
|
|
11
11
|
import { useMemo } from 'react';
|
|
12
12
|
import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
|
|
@@ -12,7 +12,7 @@ import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
|
12
12
|
import { C4EmptyState } from '../../components/c4-empty-state/c4-empty-state.js';
|
|
13
13
|
import { C4_EXTERNAL_URLS } from '../../externalUrls.const.js';
|
|
14
14
|
import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
|
|
15
|
-
import { useC4ConsoleRuntime
|
|
15
|
+
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
16
16
|
import { safeTranslate } from '../../utils/safe-translate.js';
|
|
17
17
|
function isRecord(value) {
|
|
18
18
|
return Boolean(value) && typeof value === 'object';
|
|
@@ -21,7 +21,6 @@ export function useConnectorManagementRuntime(options) {
|
|
|
21
21
|
const { orgId, clusterId } = options;
|
|
22
22
|
const runtime = useC4ConsoleRuntime();
|
|
23
23
|
const data = useC4ConsoleData();
|
|
24
|
-
const designSystem = useC4DesignSystem();
|
|
25
24
|
useEffect(() => {
|
|
26
25
|
if (!orgId) {
|
|
27
26
|
return;
|
|
@@ -76,13 +75,13 @@ export function useConnectorManagementRuntime(options) {
|
|
|
76
75
|
if (!connectorsUrl || !accessToken) {
|
|
77
76
|
return _jsx(_Fragment, { children: children });
|
|
78
77
|
}
|
|
79
|
-
return (_jsx(C4ConnectorsContextProvider, { organizationId: orgId, apiBaseUrl: connectorsUrl, docsUrl: C4_EXTERNAL_URLS.docs.consoleManageConnectors, mode:
|
|
78
|
+
return (_jsx(C4ConnectorsContextProvider, { organizationId: orgId, apiBaseUrl: connectorsUrl, docsUrl: C4_EXTERNAL_URLS.docs.consoleManageConnectors, mode: 'ds', camundaAuth: {
|
|
80
79
|
token: accessToken,
|
|
81
80
|
refreshTokenMethod: () => runtime.auth.getAccessToken(),
|
|
82
81
|
}, children: children }));
|
|
83
82
|
};
|
|
84
83
|
return ProviderComponent;
|
|
85
|
-
}, [accessToken, connectorsUrl, orgId, runtime.auth
|
|
84
|
+
}, [accessToken, connectorsUrl, orgId, runtime.auth]);
|
|
86
85
|
const isProviderReady = Boolean(connectorsUrl) && Boolean(accessToken);
|
|
87
86
|
const checkClusterVersion = useCallback((minVersion) => {
|
|
88
87
|
const connectorBridgeVersion = isRecord(cluster) &&
|
|
@@ -5,7 +5,7 @@ export interface C4DashboardAppProps {
|
|
|
5
5
|
orgId: string;
|
|
6
6
|
/**
|
|
7
7
|
* When true, the host owns the outer page chrome. The "Send feedback"
|
|
8
|
-
* button is hidden, and
|
|
8
|
+
* button is hidden, and the widget page padding is removed.
|
|
9
9
|
* Dashboard section headings stay visible. Defaults to false.
|
|
10
10
|
*/
|
|
11
11
|
embedded?: boolean;
|
|
@@ -12,7 +12,7 @@ import { C4PageTemplate } from '../../components/c4-page-template/c4-page-templa
|
|
|
12
12
|
import { getC4GroupDetailsExternalLinks } from '../../externalUrls.const.js';
|
|
13
13
|
import { useC4ConsoleAuthz } from '../../runtime/c4-console-authz.js';
|
|
14
14
|
import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
|
|
15
|
-
import { useC4ConsoleRuntime
|
|
15
|
+
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
16
16
|
import { toIdentityApiBaseUrl } from '../../runtime/to-identity-api-base-url.js';
|
|
17
17
|
import { safeTranslate } from '../../utils/safe-translate.js';
|
|
18
18
|
function isRecord(value) {
|
|
@@ -26,7 +26,6 @@ function resolveLinks(links) {
|
|
|
26
26
|
}
|
|
27
27
|
export const C4GroupDetailsPage = observer(({ orgId, groupId, externalLinks, onNavigate, environmentsEnabled = false, }) => {
|
|
28
28
|
const runtime = useC4ConsoleRuntime();
|
|
29
|
-
const designSystem = useC4DesignSystem();
|
|
30
29
|
const data = useC4ConsoleData();
|
|
31
30
|
const authz = useC4ConsoleAuthz({ orgId });
|
|
32
31
|
const t = runtime.i18n?.t;
|
|
@@ -197,5 +196,5 @@ export const C4GroupDetailsPage = observer(({ orgId, groupId, externalLinks, onN
|
|
|
197
196
|
return (_jsx(C4IdentityContextProvider, { camundaAuth: {
|
|
198
197
|
token: identityToken,
|
|
199
198
|
refreshTokenMethod: () => runtime.auth.getAccessToken(),
|
|
200
|
-
}, apiBaseUrl: identityApiBaseUrl, organizationId: orgId, docsUrl: links.docsUrl, designSystem:
|
|
199
|
+
}, apiBaseUrl: identityApiBaseUrl, organizationId: orgId, docsUrl: links.docsUrl, designSystem: 'ds', children: content }));
|
|
201
200
|
});
|
|
@@ -16,7 +16,7 @@ import { C4ExtendTrialModal } from '../../components/c4-extend-trial-modal/c4-ex
|
|
|
16
16
|
import { C4LeaveOrganizationModal } from '../../components/c4-leave-organization-modal/c4-leave-organization-modal.js';
|
|
17
17
|
import { getC4ManagementUrls } from '../../externalUrls.const.js';
|
|
18
18
|
import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
|
|
19
|
-
import { useC4ConsoleRuntime,
|
|
19
|
+
import { useC4ConsoleRuntime, useC4FeatureFlag, } from '../../runtime/c4-console-runtime-context.js';
|
|
20
20
|
import { ORG_CLUSTER_DEFAULTS_FLAG } from '../../runtime/org-cluster-defaults.js';
|
|
21
21
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
22
22
|
import { toIdentityApiBaseUrl } from '../../runtime/to-identity-api-base-url.js';
|
|
@@ -106,10 +106,9 @@ function getNestedBoolean(record, path) {
|
|
|
106
106
|
// Usage charts render one line series (and one legend entry) per cluster. Orgs
|
|
107
107
|
// with hundreds of clusters overflow the legend and break the layout, so cap the
|
|
108
108
|
// number of distinct series to the top-N clusters by total value and roll the
|
|
109
|
-
// rest into a single aggregated "Other" line. N is 12
|
|
110
|
-
//
|
|
111
|
-
//
|
|
112
|
-
// (the ds-mode palette is extended to match — see `recharts-tokens.ts`).
|
|
109
|
+
// rest into a single aggregated "Other" line. N is 12 so that the "Other" series
|
|
110
|
+
// and a safety margin still fit in the chart palette, and every series gets its
|
|
111
|
+
// own color (see `recharts-tokens.ts`).
|
|
113
112
|
const TOP_N_CHART_CLUSTERS = 12;
|
|
114
113
|
// Widest tenant-usage window accounts-backend serves (it clamps `days` to 366).
|
|
115
114
|
//
|
|
@@ -548,7 +547,6 @@ function themeNameToClassName(theme) {
|
|
|
548
547
|
}
|
|
549
548
|
export const C4ManagementApp = observer(({ orgId, embedded = false, environmentsEnabled = false, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, permissionsReworkEnabled = false, urls, onNeedsReload, }) => {
|
|
550
549
|
const runtime = useC4ConsoleRuntime();
|
|
551
|
-
const designSystem = useC4DesignSystem();
|
|
552
550
|
const hubNaming = useHubApiNaming();
|
|
553
551
|
const data = useC4ConsoleData();
|
|
554
552
|
const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
|
|
@@ -1685,8 +1683,7 @@ export const C4ManagementApp = observer(({ orgId, embedded = false, environments
|
|
|
1685
1683
|
const otherLabelFor = (otherClusterCount) => safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.charts.otherClusters', `Other (${otherClusterCount} cluster${otherClusterCount === 1 ? '' : 's'})`, { count: otherClusterCount });
|
|
1686
1684
|
// Cap each chart's series to the top-N clusters (+ an aggregated "Other"
|
|
1687
1685
|
// line) so the legend stays bounded for orgs with many clusters. Applied
|
|
1688
|
-
// at the data-mapping site so
|
|
1689
|
-
// the reduced group set.
|
|
1686
|
+
// at the data-mapping site so every chart consumes the reduced group set.
|
|
1690
1687
|
const piCapped = capChartGroupsToTopN(pi, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1691
1688
|
const diCapped = capChartGroupsToTopN(di, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1692
1689
|
const tuCapped = capChartGroupsToTopN(tu, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
@@ -3510,5 +3507,5 @@ export const C4ManagementApp = observer(({ orgId, embedded = false, environments
|
|
|
3510
3507
|
return (_jsx(C4IdentityContextProvider, { camundaAuth: {
|
|
3511
3508
|
token: identityToken,
|
|
3512
3509
|
refreshTokenMethod: runtime.auth.getAccessToken,
|
|
3513
|
-
}, apiBaseUrl: identityApiBaseUrl, organizationId: orgId, docsUrl: 'https://docs.camunda.io/docs', designSystem:
|
|
3510
|
+
}, apiBaseUrl: identityApiBaseUrl, organizationId: orgId, docsUrl: 'https://docs.camunda.io/docs', designSystem: 'ds', children: content }));
|
|
3514
3511
|
});
|
|
@@ -45,7 +45,7 @@ export interface C4ManagementAppProps {
|
|
|
45
45
|
orgId: string;
|
|
46
46
|
/**
|
|
47
47
|
* When true, the host owns the outer page chrome. This removes the widget
|
|
48
|
-
* title
|
|
48
|
+
* title and its page padding. Defaults to
|
|
49
49
|
* false.
|
|
50
50
|
*/
|
|
51
51
|
embedded?: boolean;
|
|
@@ -560,7 +560,7 @@ export const C4ManagementApiTab = (props) => {
|
|
|
560
560
|
setApiDeleteSaving(false);
|
|
561
561
|
}
|
|
562
562
|
})();
|
|
563
|
-
}, size: 'sm', id: 'c4-delete-api-client-modal', children: _jsxs(Stack, { gap: 6, children: [_jsx("p", { children: safeTranslate(t, 'apiclients:delete.description', 'This action cannot be undone.') }), apiDeleteError ? (_jsx("p", { style: { color: 'var(--
|
|
563
|
+
}, size: 'sm', id: 'c4-delete-api-client-modal', children: _jsxs(Stack, { gap: 6, children: [_jsx("p", { children: safeTranslate(t, 'apiclients:delete.description', 'This action cannot be undone.') }), apiDeleteError ? (_jsx("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: apiDeleteError })) : null] }) })) : null, apiDetailsModalOpen && apiDetailsTargetUuid ? (_jsx(Modal, { passiveModal: true, open: apiDetailsModalOpen, onRequestClose: () => setApiDetailsModalOpen(false), modalLabel: safeTranslate(t, 'apiclients:details.heading', 'API client details'), modalHeading: props.apiClientsByUuid.get(apiDetailsTargetUuid)?.name ?? '', size: 'md', id: 'c4-details-api-client-modal', children: (() => {
|
|
564
564
|
const client = props.apiClientsByUuid.get(apiDetailsTargetUuid);
|
|
565
565
|
if (!client) {
|
|
566
566
|
return null;
|
|
@@ -229,7 +229,7 @@ export const C4ManagementBillingTab = (props) => {
|
|
|
229
229
|
};
|
|
230
230
|
}),
|
|
231
231
|
},
|
|
232
|
-
}, isEnterpriseOrg: true }), props.billingError ? (_jsx("p", { style: { color: 'var(--
|
|
232
|
+
}, isEnterpriseOrg: true }), props.billingError ? (_jsx("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: props.billingError })) : null, usageAlertUpdateModalOpen && usageAlertUpdateTarget ? (_jsx(Modal, { open: usageAlertUpdateModalOpen, modalHeading: (() => {
|
|
233
233
|
switch (usageAlertUpdateTarget.metric) {
|
|
234
234
|
case UsageAlertMetric.DECISION_INSTANCES:
|
|
235
235
|
return safeTranslate(props.t, 'usagealerts:update.heading.di', 'Update Decision Instances alert');
|
|
@@ -357,5 +357,5 @@ export const C4ManagementBillingTab = (props) => {
|
|
|
357
357
|
setUsageAlertUpdateError(undefined);
|
|
358
358
|
},
|
|
359
359
|
},
|
|
360
|
-
} }), usageAlertUpdateError ? (_jsx("p", { style: { color: 'var(--
|
|
360
|
+
} }), usageAlertUpdateError ? (_jsx("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: usageAlertUpdateError })) : null] }) })) : null] }));
|
|
361
361
|
};
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
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 {
|
|
7
|
+
import { Pencil } from 'lucide-react';
|
|
8
8
|
import { useMemo, useState } from 'react';
|
|
9
9
|
import { C4ManagementOverview } from '../../../components/c4-management-overview/c4-management-overview.js';
|
|
10
10
|
import { Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
@@ -22,7 +22,7 @@ export const C4ManagementOverviewTab = ({ orgId, orgName, salesPlan, ownerName,
|
|
|
22
22
|
value: orgName,
|
|
23
23
|
action: mayRename
|
|
24
24
|
? {
|
|
25
|
-
renderIcon:
|
|
25
|
+
renderIcon: Pencil,
|
|
26
26
|
iconDescription: safeTranslate(t, 'orgmanagement:tabs.overview.actions.rename', 'Rename'),
|
|
27
27
|
kind: 'primary',
|
|
28
28
|
action: () => {
|
|
@@ -114,7 +114,7 @@ export const C4ManagementPricingTab = (props) => {
|
|
|
114
114
|
label: safeTranslate(t, 'billing:requestPaid.features.noProcessExecution', 'Process execution'),
|
|
115
115
|
id: 'process-execution',
|
|
116
116
|
nope: true,
|
|
117
|
-
labelWithTooltips: (_jsx("span", { children: _jsx(DefinitionTooltip, { definition: safeTranslate(t, 'billing:requestPaid.features.noProcessExecutionWhy', 'Process execution is only available in the Starter and Enterprise plans'), align: 'bottom-
|
|
117
|
+
labelWithTooltips: (_jsx("span", { children: _jsx(DefinitionTooltip, { definition: safeTranslate(t, 'billing:requestPaid.features.noProcessExecutionWhy', 'Process execution is only available in the Starter and Enterprise plans'), align: 'bottom-start', children: safeTranslate(t, 'billing:requestPaid.features.noProcessExecution', 'Process execution') }) })),
|
|
118
118
|
},
|
|
119
119
|
],
|
|
120
120
|
},
|