@camunda/ccma-saas-frontend 0.18.11 → 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
|
@@ -4,11 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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 { WarningAltFilled } from '@carbon/react/icons/index.esm.js';
|
|
8
7
|
import { TriangleAlert } from 'lucide-react';
|
|
9
|
-
import {
|
|
8
|
+
import { getDsClusterStatusBadge } from '../../components/c4-cluster-overview/applications.js';
|
|
10
9
|
import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
|
|
11
|
-
import { useC4ConsoleRuntime
|
|
10
|
+
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
12
11
|
import { BreadcrumbSkeleton, ClusterTag, DsBadge, DsPopover, DsPopoverContent, DsPopoverDescription, DsPopoverHeader, DsPopoverTitle, DsPopoverTrigger, Link, SkeletonText, Stack, TabsSkeleton, Tooltip, } from '../../ui/index.js';
|
|
13
12
|
import { safeTranslate } from '../../utils/safe-translate.js';
|
|
14
13
|
const breadCrumbWrapperStyles = {
|
|
@@ -18,28 +17,6 @@ const breadCrumbWrapperStyles = {
|
|
|
18
17
|
gridAutoColumns: 'max-content',
|
|
19
18
|
alignItems: 'center',
|
|
20
19
|
};
|
|
21
|
-
// `ClusterStatusElement` and a plain version string carry no chrome of their own — unlike
|
|
22
|
-
// `ClusterTag`'s phase badge, which is already a filled pill. Wrapping them in an explicit
|
|
23
|
-
// bordered/filled pill (rather than the design system's own "subtle" badge tokens, too close to the
|
|
24
|
-
// page background to read as a pill here) keeps all three header facts visually consistent.
|
|
25
|
-
//
|
|
26
|
-
// `var(--border)` rather than `var(--cds-border-subtle)`: the latter is Carbon's own token, only
|
|
27
|
-
// remapped to the DS-equivalent (lighter) neutral gray under `html.c4-ds .c4-ui` — a class this page
|
|
28
|
-
// doesn't control and isn't guaranteed when hosted (e.g. inside Camunda Hub, where it isn't set). Its
|
|
29
|
-
// unremapped Carbon fallback is visibly darker/stronger than every other bordered surface on this same
|
|
30
|
-
// page (the Cluster Details table, the Components tiles). `--border` is the DS token those other
|
|
31
|
-
// surfaces already resolve to, so referencing it directly matches them regardless of hosting context.
|
|
32
|
-
const headerBadgeStyle = {
|
|
33
|
-
display: 'inline-flex',
|
|
34
|
-
alignItems: 'center',
|
|
35
|
-
gap: '0.25rem',
|
|
36
|
-
padding: '0.125rem 0.625rem',
|
|
37
|
-
borderRadius: '9999px',
|
|
38
|
-
border: '1px solid var(--border)',
|
|
39
|
-
backgroundColor: 'var(--cds-layer)',
|
|
40
|
-
fontSize: 'var(--cds-label-01-font-size, 0.75rem)',
|
|
41
|
-
whiteSpace: 'nowrap',
|
|
42
|
-
};
|
|
43
20
|
function buildMenuItems(opts) {
|
|
44
21
|
const { menu, t } = opts;
|
|
45
22
|
if (!menu) {
|
|
@@ -126,22 +103,12 @@ function buildBanner(opts) {
|
|
|
126
103
|
/**
|
|
127
104
|
* Cluster-header indicator for "authorizations disabled".
|
|
128
105
|
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* in the tooltip description.
|
|
133
|
-
*
|
|
134
|
-
* The ds branch does not carry that hack over: the `--cds-*-inverse` overrides
|
|
135
|
-
* are no-ops outside Carbon, and Carbon's tooltip type scale doesn't match the
|
|
136
|
-
* `Link` nested inside it (feedback: "odd padding around text, learn more has
|
|
137
|
-
* different font-size"). It renders the DS `Popover` instead, which owns its
|
|
138
|
-
* padding and type scale. A tooltip is also the wrong component for actionable
|
|
139
|
-
* content — its description isn't hoverable or focusable, so the "Learn more"
|
|
140
|
-
* link can't actually be reached.
|
|
106
|
+
* It renders the DS `Popover` and not a tooltip. A tooltip is the wrong component for
|
|
107
|
+
* actionable content: its description is not hoverable or focusable, so the "Learn more"
|
|
108
|
+
* link can not be reached.
|
|
141
109
|
*/
|
|
142
110
|
function AuthorizationsDisabledIndicator(props) {
|
|
143
111
|
const { banner, t } = props;
|
|
144
|
-
const designSystem = useC4DesignSystem();
|
|
145
112
|
const title = safeTranslate(t, 'c4console:clusterDetails.banner.authorizationsDisabled.title', 'Authorizations disabled');
|
|
146
113
|
const subtitle = safeTranslate(t, 'c4console:clusterDetails.banner.authorizationsDisabled.subtitle', 'All authenticated users & clients have full access to this cluster’s resources. To restrict access, enable authorizations in the settings.');
|
|
147
114
|
const actionLabel = safeTranslate(t, 'c4console:clusterDetails.banner.authorizationsDisabled.actionLabel', 'Learn more about managing authorizations');
|
|
@@ -151,28 +118,7 @@ function AuthorizationsDisabledIndicator(props) {
|
|
|
151
118
|
banner.onLearnMore();
|
|
152
119
|
}
|
|
153
120
|
};
|
|
154
|
-
|
|
155
|
-
return (_jsxs(DsPopover, { children: [_jsx(DsPopoverTrigger, { asChild: true, children: _jsxs("button", { type: 'button', "aria-label": title, className: 'inline-flex items-center gap-1 text-sm text-neutral-foreground-subtle', children: [_jsx(TriangleAlert, { size: 16, className: 'text-warning-action-default', "aria-hidden": true }), title] }) }), _jsxs(DsPopoverContent, { align: 'end', className: 'w-80', children: [_jsxs(DsPopoverHeader, { children: [_jsx(DsPopoverTitle, { children: title }), _jsx(DsPopoverDescription, { children: subtitle })] }), _jsx(Link, { href: banner.docsUrl, target: '_blank', rel: 'noopener noreferrer', onClick: onLearnMoreClick, children: actionLabel })] })] }));
|
|
156
|
-
}
|
|
157
|
-
return (_jsx("div", { style: {
|
|
158
|
-
'--cds-background-inverse': 'var(--cds-layer)',
|
|
159
|
-
'--cds-text-inverse': 'var(--cds-text-primary)',
|
|
160
|
-
'--cds-link-inverse': 'var(--cds-link-primary)',
|
|
161
|
-
}, children: _jsx(Tooltip, { align: 'bottom-end', autoAlign: true, dropShadow: true, description: _jsxs("span", { style: {
|
|
162
|
-
display: 'block',
|
|
163
|
-
whiteSpace: 'normal',
|
|
164
|
-
maxWidth: '20rem',
|
|
165
|
-
}, children: [subtitle, ' ', _jsx(Link, { href: banner.docsUrl, target: '_blank', rel: 'noopener noreferrer', inline: true, onClick: onLearnMoreClick, children: actionLabel })] }), children: _jsxs("button", { type: 'button', "aria-label": title, style: {
|
|
166
|
-
display: 'inline-flex',
|
|
167
|
-
alignItems: 'center',
|
|
168
|
-
gap: '0.25rem',
|
|
169
|
-
padding: 0,
|
|
170
|
-
border: 0,
|
|
171
|
-
background: 'transparent',
|
|
172
|
-
cursor: 'default',
|
|
173
|
-
color: 'var(--cds-text-secondary)',
|
|
174
|
-
fontSize: 'var(--cds-body-compact-01-font-size)',
|
|
175
|
-
}, children: [_jsx(WarningAltFilled, { size: 16, style: { fill: 'var(--cds-support-caution-major)' } }), title] }) }) }));
|
|
121
|
+
return (_jsxs(DsPopover, { children: [_jsx(DsPopoverTrigger, { asChild: true, children: _jsxs("button", { type: 'button', "aria-label": title, className: 'inline-flex items-center gap-1 text-sm text-neutral-foreground-subtle', children: [_jsx(TriangleAlert, { size: 16, className: 'text-warning-foreground-subtle', "aria-hidden": true }), title] }) }), _jsxs(DsPopoverContent, { align: 'end', className: 'w-80', children: [_jsxs(DsPopoverHeader, { children: [_jsx(DsPopoverTitle, { children: title }), _jsx(DsPopoverDescription, { children: subtitle })] }), _jsx(Link, { href: banner.docsUrl, target: '_blank', rel: 'noopener noreferrer', onClick: onLearnMoreClick, children: actionLabel })] })] }));
|
|
176
122
|
}
|
|
177
123
|
/**
|
|
178
124
|
* Cluster-header indicator for "secondary key not accessible" (BYOK,
|
|
@@ -181,36 +127,18 @@ function AuthorizationsDisabledIndicator(props) {
|
|
|
181
127
|
* visible, since the customer may not come back to this page for a long
|
|
182
128
|
* time while replication stays broken.
|
|
183
129
|
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* action lives on the trigger itself instead.
|
|
130
|
+
* Unlike `AuthorizationsDisabledIndicator`, the tooltip description here is
|
|
131
|
+
* plain text, not a nested interactive link. The action lives on the trigger
|
|
132
|
+
* itself instead.
|
|
188
133
|
*/
|
|
189
134
|
function SecondaryReplicationNotReadyIndicator(props) {
|
|
190
135
|
const { onGoToEncryptionTab, t } = props;
|
|
191
136
|
const title = safeTranslate(t, 'c4console:clusterDetails.indicator.secondaryReplicationNotReady.title', 'Secondary key not accessible');
|
|
192
137
|
const subtitle = safeTranslate(t, 'c4console:clusterDetails.indicator.secondaryReplicationNotReady.subtitle', "Your secondary region's encryption key isn't accessible, so replication to that region isn't working. Go to the Encryption tab to review the key policy.");
|
|
193
|
-
return (_jsx(Tooltip, {
|
|
194
|
-
display: 'inline-flex',
|
|
195
|
-
alignItems: 'center',
|
|
196
|
-
gap: '0.25rem',
|
|
197
|
-
padding: 0,
|
|
198
|
-
border: 0,
|
|
199
|
-
background: 'transparent',
|
|
200
|
-
cursor: onGoToEncryptionTab ? 'pointer' : 'default',
|
|
201
|
-
color: 'var(--cds-text-secondary)',
|
|
202
|
-
fontSize: 'var(--cds-body-compact-01-font-size)',
|
|
203
|
-
}, children: [_jsx(WarningAltFilled, { size: 16, style: { fill: 'var(--cds-support-caution-major)' } }), title] }) }));
|
|
138
|
+
return (_jsx(Tooltip, { description: _jsx("span", { style: { display: 'block', whiteSpace: 'normal', maxWidth: '20rem' }, children: subtitle }), children: _jsxs("button", { type: 'button', "aria-label": title, onClick: onGoToEncryptionTab, className: 'inline-flex items-center gap-1 text-sm text-neutral-foreground-subtle', style: { cursor: onGoToEncryptionTab ? 'pointer' : 'default' }, children: [_jsx(TriangleAlert, { size: 16, className: 'text-warning-foreground-subtle', "aria-hidden": true }), title] }) }));
|
|
204
139
|
}
|
|
205
|
-
/** The three facts beside the cluster name: phase, health, generation. */
|
|
206
|
-
const clusterHeaderBadges = ({ phaseTag, healthStatus, versionLabel, }) => {
|
|
207
|
-
if (!phaseTag && !healthStatus && !versionLabel) {
|
|
208
|
-
return undefined;
|
|
209
|
-
}
|
|
210
|
-
return (_jsxs(Stack, { orientation: 'horizontal', gap: 3, children: [phaseTag && _jsx(ClusterTag, { stage: phaseTag }), healthStatus && (_jsx("span", { style: headerBadgeStyle, children: _jsx(ClusterStatusElement, { status: healthStatus }) })), versionLabel && _jsx("span", { style: headerBadgeStyle, children: versionLabel })] }));
|
|
211
|
-
};
|
|
212
140
|
/**
|
|
213
|
-
* The badges under the cluster name
|
|
141
|
+
* The badges under the cluster name. Every badge is a DS `Badge`
|
|
214
142
|
* with a normal font weight, as in the cluster and environment headers of Hub:
|
|
215
143
|
* development plan (primary, first), stage tag, health, version and region.
|
|
216
144
|
*/
|
|
@@ -220,19 +148,15 @@ const DsClusterHeaderBadges = ({ phaseTag, developmentPlanLabel, healthStatus, v
|
|
|
220
148
|
};
|
|
221
149
|
export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan, phaseTag, healthStatus, versionLabel, regionCode, urls, onNavigateToClusters, menu, banner, secondaryReplicationNotReady, onGoToEncryptionTab, tabs, padding = 'default', }) => {
|
|
222
150
|
const runtime = useC4ConsoleRuntime();
|
|
223
|
-
const designSystem = useC4DesignSystem();
|
|
224
151
|
const t = runtime.i18n?.t;
|
|
225
152
|
if (loading) {
|
|
226
153
|
return (_jsxs(Stack, { gap: 4, children: [_jsx("div", { style: breadCrumbWrapperStyles, children: _jsx(BreadcrumbSkeleton, {}) }), _jsx("div", { style: { width: 300, height: 36, marginBottom: 0 }, children: _jsx(SkeletonText, {}) }), _jsx(TabsSkeleton, {}, 'tabs-skeleton')] }));
|
|
227
154
|
}
|
|
228
|
-
//
|
|
229
|
-
//
|
|
230
|
-
const developmentPlanLabel =
|
|
155
|
+
// The development plan is a badge in the row under the name. It spells out
|
|
156
|
+
// "plan" so it does not read as the `dev` stage tag.
|
|
157
|
+
const developmentPlanLabel = isDevelopmentPlan
|
|
231
158
|
? safeTranslate(t, 'c4console:clusterDetails.tag.developmentPlan', 'Development plan')
|
|
232
159
|
: undefined;
|
|
233
|
-
const tag = isDevelopmentPlan && designSystem !== 'ds'
|
|
234
|
-
? safeTranslate(t, 'c4console:clusterDetails.tag.development', 'Development')
|
|
235
|
-
: '';
|
|
236
160
|
const bannerProps = buildBanner({ banner, t });
|
|
237
161
|
const authorizationsIndicator = banner?.kind === 'authorizationsDisabled' ? (_jsx(AuthorizationsDisabledIndicator, { banner: banner, t: t }, 'authorizationsDisabled')) : undefined;
|
|
238
162
|
// secondaryReplicationNotReady is intentionally independent of `banner` —
|
|
@@ -242,9 +166,8 @@ export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan,
|
|
|
242
166
|
authorizationsIndicator,
|
|
243
167
|
secondaryReplicationIndicator,
|
|
244
168
|
].filter((el) => Boolean(el));
|
|
245
|
-
// Only one of these fires in practice today, so
|
|
246
|
-
//
|
|
247
|
-
// around it, so carbon mode's existing render is untouched.
|
|
169
|
+
// Only one of these fires in practice today, so no wrapper element goes
|
|
170
|
+
// around it.
|
|
248
171
|
const indicator = activeIndicators.length > 1 ? (_jsx(Stack, { orientation: 'horizontal', gap: 3, children: activeIndicators })) : (activeIndicators[0]);
|
|
249
172
|
// No badge row at all when the cluster has none of the facts.
|
|
250
173
|
const hasDsHeaderBadges = Boolean(developmentPlanLabel ||
|
|
@@ -252,14 +175,9 @@ export const C4ClusterDetailsPage = ({ loading, clusterName, isDevelopmentPlan,
|
|
|
252
175
|
getDsClusterStatusBadge(healthStatus) ||
|
|
253
176
|
versionLabel ||
|
|
254
177
|
regionCode);
|
|
255
|
-
const subtitleBadges =
|
|
256
|
-
phaseTag,
|
|
257
|
-
healthStatus,
|
|
258
|
-
versionLabel,
|
|
259
|
-
}));
|
|
178
|
+
const subtitleBadges = hasDsHeaderBadges ? (_jsx(DsClusterHeaderBadges, { phaseTag: phaseTag, developmentPlanLabel: developmentPlanLabel, healthStatus: healthStatus, versionLabel: versionLabel, regionCode: regionCode })) : undefined;
|
|
260
179
|
return (_jsx(C4PageTemplate, { loading: loading, banner: bannerProps, header: {
|
|
261
180
|
title: clusterName ?? '',
|
|
262
|
-
tag,
|
|
263
181
|
indicator,
|
|
264
182
|
subtitleBadges,
|
|
265
183
|
menuItems: buildMenuItems({ menu, t }),
|
|
@@ -38,7 +38,7 @@ export interface C4ClusterDetailsPageProps {
|
|
|
38
38
|
healthStatus?: ClusterStatus;
|
|
39
39
|
versionLabel?: string;
|
|
40
40
|
/**
|
|
41
|
-
* The region code of the cluster, for example `europe-north1`.
|
|
41
|
+
* The region code of the cluster, for example `europe-north1`. The page
|
|
42
42
|
* shows it as a badge after the version.
|
|
43
43
|
*/
|
|
44
44
|
regionCode?: string;
|
|
@@ -11,7 +11,7 @@ import { C4CreateAlertModal } from '../../../components/c4-create-alert-modal/c4
|
|
|
11
11
|
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
12
12
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
13
13
|
import { Checkbox, Form, Link, Modal, PasswordInput, Stack, TextInput, } from '../../../ui/index.js';
|
|
14
|
-
import {
|
|
14
|
+
import { RadioButton, RadioButtonGroup } from '../../../ui/families.js';
|
|
15
15
|
import { safeTranslate } from '../../../utils/safe-translate.js';
|
|
16
16
|
export function resolveUpdatedAlertHmacSecret(params) {
|
|
17
17
|
const { reportType, wantsHmac, hadHmacOnOpen, hmacSecret } = params;
|
|
@@ -31,7 +31,6 @@ function renderInlineStrongWithBreaks(value, renderStrong) {
|
|
|
31
31
|
return parts.map((part, index) => (_jsxs(Fragment, { children: [renderStrong(part.trim()), index < parts.length - 1 ? _jsx("br", {}) : null] }, `alert-empty-state-${part.trim()}-${index < parts.length - 1 ? 'break' : 'end'}`)));
|
|
32
32
|
}
|
|
33
33
|
export const C4ClusterDetailsAlertsTab = (props) => {
|
|
34
|
-
const { RadioButton, RadioButtonGroup } = useRadioFamily();
|
|
35
34
|
const runtime = useC4ConsoleRuntime();
|
|
36
35
|
const createAlertModalRef = useRef(null);
|
|
37
36
|
const [updateAlertOpen, setUpdateAlertOpen] = useState(false);
|
|
@@ -209,7 +208,7 @@ export const C4ClusterDetailsAlertsTab = (props) => {
|
|
|
209
208
|
setAlertWebhookUrl(event.target.value);
|
|
210
209
|
setAlertUrlInvalid(false);
|
|
211
210
|
setAlertUrlInvalidText('');
|
|
212
|
-
} }), _jsxs("div", { children: [_jsx("fieldset", { className: '
|
|
211
|
+
} }), _jsxs("div", { children: [_jsx("fieldset", { className: 'c4-fieldset', children: _jsx("legend", { className: 'c4-label', children: safeTranslate(props.t, 'alerts:update.fields.webhookAuth.intro', 'Webhook security options') }) }), _jsx(Checkbox, { id: 'alert-update-hmac-checkbox', labelText: safeTranslate(props.t, 'alerts:update.fields.webhookAuth.label', 'Enable HMAC'), checked: alertWantsHmac, onChange: (event) => setAlertWantsHmac(event.target.checked) }), alertWantsHmac && (_jsx(PasswordInput, { id: 'alert-update-hmac-secret', labelText: safeTranslate(props.t, 'alerts:update.fields.webhookAuth.secret.label', 'Secret'), value: alertHmacSecret, invalid: alertHmacInvalid, invalidText: alertHmacInvalidText, onChange: (event) => {
|
|
213
212
|
setAlertHmacSecret(event.target.value);
|
|
214
213
|
setAlertHmacInvalid(false);
|
|
215
214
|
setAlertHmacInvalidText('');
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleByomMonitoringService, HttpError } from '@camunda/ccma-api';
|
|
3
|
-
import {
|
|
4
|
-
import { CheckmarkFilled, Information, WarningFilled, } from '@carbon/react/icons/index.esm.js';
|
|
5
|
-
import { CircleCheck, CircleX } from 'lucide-react';
|
|
3
|
+
import { CircleCheck, CircleX, Info } from 'lucide-react';
|
|
6
4
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
7
5
|
import { byomClientsShowsOwnCard, C4ClusterByomClients, } from '../../../components/c4-cluster-byom-clients/c4-cluster-byom-clients.js';
|
|
8
6
|
import { SpinningLoader } from '../../../components/c4-cluster-overview/ds-status-icon-text.js';
|
|
9
7
|
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
10
|
-
import { useC4ConsoleRuntime
|
|
11
|
-
import { Button, CodeSnippet, DsBadge, DsCard, DsCodeBlock, Modal, Stack, TextInput, } from '../../../ui/index.js';
|
|
8
|
+
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
9
|
+
import { Button, CodeSnippet, DsBadge, DsCard, DsCodeBlock, DsText, Modal, Stack, TextInput, } from '../../../ui/index.js';
|
|
12
10
|
import { safeTranslate } from '../../../utils/safe-translate.js';
|
|
13
|
-
import { SECTION_HEADING_STYLE } from '../../../utils/section-heading-style.js';
|
|
14
11
|
function asByomStatusLike(value) {
|
|
15
12
|
if (!value || typeof value !== 'object')
|
|
16
13
|
return undefined;
|
|
@@ -36,8 +33,7 @@ function formatMetricsEndpoint(metricsEndpoint) {
|
|
|
36
33
|
}
|
|
37
34
|
export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
38
35
|
const runtime = useC4ConsoleRuntime();
|
|
39
|
-
|
|
40
|
-
// ds mode: the table view sits in a card, like the other sections of the
|
|
36
|
+
// The table view sits in a card, like the other sections of the
|
|
41
37
|
// cluster details page. The error and empty states of
|
|
42
38
|
// `C4ClusterByomClients` are an empty-state card of their own, so they get
|
|
43
39
|
// no second card. The component exports the condition it uses.
|
|
@@ -47,7 +43,7 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
47
43
|
isLoading: byomLoading,
|
|
48
44
|
clients: byomClients,
|
|
49
45
|
});
|
|
50
|
-
return
|
|
46
|
+
return !showsOwnCard ? (_jsx(DsCard, { className: 'gap-4 p-5', children: children })) : (children);
|
|
51
47
|
};
|
|
52
48
|
const { cluster, byomClients, byomStatus, byomLoading, byomError, orgId, clusterId, apiConfig, canMutateCluster, t, onNavigate, onReloadByom, } = props;
|
|
53
49
|
const trackEvent = useCallback((eventName, message, meta) => {
|
|
@@ -175,40 +171,6 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
175
171
|
const conditions = statusLike?.conditions;
|
|
176
172
|
const readyReason = conditions?.find((condition) => condition.type === 'Ready')?.reason ??
|
|
177
173
|
'Unknown';
|
|
178
|
-
const statusComponent = (() => {
|
|
179
|
-
let statusIcon = null;
|
|
180
|
-
let statusText = '';
|
|
181
|
-
let statusColor;
|
|
182
|
-
switch (readyReason) {
|
|
183
|
-
case 'Ready':
|
|
184
|
-
case 'Degraded':
|
|
185
|
-
statusIcon = _jsx(CheckmarkFilled, {});
|
|
186
|
-
statusText = 'Ready';
|
|
187
|
-
statusColor = 'var(--cds-support-success)';
|
|
188
|
-
break;
|
|
189
|
-
case 'Error':
|
|
190
|
-
case 'Down':
|
|
191
|
-
statusIcon = _jsx(WarningFilled, {});
|
|
192
|
-
statusText = 'Unhealthy';
|
|
193
|
-
statusColor = 'var(--cds-support-error)';
|
|
194
|
-
break;
|
|
195
|
-
default:
|
|
196
|
-
statusIcon = _jsx(InlineLoading, {});
|
|
197
|
-
statusText = 'Creating';
|
|
198
|
-
statusColor = 'var(--cds-support-info)';
|
|
199
|
-
break;
|
|
200
|
-
}
|
|
201
|
-
return (_jsxs("div", { style: { position: 'relative' }, children: [statusIcon && (_jsx("div", { style: {
|
|
202
|
-
position: 'absolute',
|
|
203
|
-
top: '50%',
|
|
204
|
-
transform: 'translateY(-50%)',
|
|
205
|
-
display: 'flex',
|
|
206
|
-
color: statusColor,
|
|
207
|
-
}, children: statusIcon })), _jsx("span", { style: {
|
|
208
|
-
verticalAlign: '-3px',
|
|
209
|
-
paddingInlineStart: statusIcon ? '1.2rem' : '0rem',
|
|
210
|
-
}, children: statusText })] }));
|
|
211
|
-
})();
|
|
212
174
|
const monitoringDescription = safeTranslate(t, 'clusterdetails:byomClients.monitoringDescription', 'Activate a secure metrics endpoint for the cluster and integrate it with an external monitoring system that supports Prometheus scraping.');
|
|
213
175
|
const monitoringEndpointLabel = safeTranslate(t, 'clusterdetails:byomClients.monitoringEndpoint', 'Monitoring endpoint');
|
|
214
176
|
const deactivateLabel = safeTranslate(t, 'clusterdetails:byomClients.deactivate', 'Deactivate');
|
|
@@ -217,8 +179,8 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
217
179
|
setByomDeactivateError({ title: '', description: '' });
|
|
218
180
|
setByomDeactivateOpen(true);
|
|
219
181
|
};
|
|
220
|
-
//
|
|
221
|
-
//
|
|
182
|
+
// The endpoint status is a DS badge with a lucide icon, the same as the
|
|
183
|
+
// status badge in the page header.
|
|
222
184
|
const dsStatusBadge = (() => {
|
|
223
185
|
switch (readyReason) {
|
|
224
186
|
case 'Ready':
|
|
@@ -236,11 +198,7 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
236
198
|
const dsSubtitle = (_jsxs("div", { className: 'flex flex-col gap-4', children: [_jsx("p", { className: 'm-0', children: monitoringDescription }), endpointForDisplay ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: 'flex flex-col gap-2', children: [_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx("h2", { className: 'm-0 text-sm font-semibold text-neutral-foreground-strong', children: monitoringEndpointLabel }), dsStatusBadge] }), _jsxs("div", { className: 'flex flex-wrap items-center gap-2', children: [_jsx("div", { className: 'min-w-0 flex-1', style: { maxWidth: '44rem' }, children: _jsx(DsCodeBlock, { variant: 'single', children: endpointForDisplay }) }), _jsx(Button, { kind: 'secondary', size: 'sm', disabled: !canMutateCluster, onClick: openDeactivate, children: deactivateLabel })] })] }), _jsx("h2", { className: 'm-0 text-base font-semibold text-neutral-foreground-strong', children: "Credentials for authentication" })] })) : null] }));
|
|
237
199
|
return (_jsxs(_Fragment, { children: [wrapInDsCard(_jsx(C4ClusterByomClients, { clients: byomClients, isLoading: byomLoading, hasError: byomError, text: {
|
|
238
200
|
title: safeTranslate(t, 'clusterdetails:byomClients.dataTableTitle', 'Cluster Monitoring endpoint activated'),
|
|
239
|
-
subtitle:
|
|
240
|
-
trackEvent('byomClients:deactivate:open', 'Open Deactivate BYOM Modal');
|
|
241
|
-
setByomDeactivateError({ title: '', description: '' });
|
|
242
|
-
setByomDeactivateOpen(true);
|
|
243
|
-
}, children: safeTranslate(t, 'clusterdetails:byomClients.deactivate', 'Deactivate') })] }), _jsx("h3", { style: SECTION_HEADING_STYLE, children: "Credentials for authentication" })] })) : null] })),
|
|
201
|
+
subtitle: dsSubtitle,
|
|
244
202
|
createButton: safeTranslate(t, 'clusterdetails:byomClients.createButton', 'Create new credentials'),
|
|
245
203
|
createFirstClient: safeTranslate(t, 'clusterdetails:byomClients.createFirstClient', 'Activate monitoring endpoint'),
|
|
246
204
|
searchLabel: 'Search',
|
|
@@ -355,9 +313,9 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
355
313
|
setByomMutationBusy(false);
|
|
356
314
|
}
|
|
357
315
|
})();
|
|
358
|
-
}, children: _jsxs(Stack, { gap: 4, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:create.createDescription', 'Create credentials for authentication in an external monitoring system.') }), byomMutationBusy && (_jsx(
|
|
316
|
+
}, children: _jsxs(Stack, { gap: 4, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:create.createDescription', 'Create credentials for authentication in an external monitoring system.') }), byomMutationBusy && (_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(SpinningLoader, { size: 16, "aria-hidden": true }), _jsx("span", { children: safeTranslate(t, 'byomClients:create.loading', 'Creating credentials…') })] })), _jsx(TextInput, { id: 'byom-username', name: 'username', labelText: safeTranslate(t, 'byomClients:create.fields.username', 'Username'), placeholder: safeTranslate(t, 'byomClients:create.fields.usernamePlaceholder', 'Enter username'), helperText: safeTranslate(t, 'byomClients:create.fields.usernameHelperText', 'Maximum 24 characters. Only alphanumeric characters, dashes, and underscores allowed.'), value: byomUsername, maxLength: 24, onChange: (event) => setByomUsername(event.target.value) }), _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(Info, { size: 16, "aria-hidden": true }), _jsx("span", { children: safeTranslate(t, 'byomClients:create.passwordGeneratedAfter', 'The password will be generated after creation.') })] }), byomMutationError && (_jsx("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: byomMutationError }))] }) }), _jsx(Modal, { open: byomPasswordOpen, modalHeading: byomActivateOnSubmit
|
|
359
317
|
? safeTranslate(t, 'byomClients:create.successTitle', 'Monitoring endpoint activated')
|
|
360
|
-
: safeTranslate(t, 'byomClients:create.successTitle', 'New credentials created'), primaryButtonText: safeTranslate(t, 'byomClients:create.done', 'Got it'), secondaryButtonText: undefined, onRequestClose: () => setByomPasswordOpen(false), onRequestSubmit: () => setByomPasswordOpen(false), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:create.successDescription', 'Use the credentials below for authentication in an external monitoring system.') }), _jsxs("div", { children: [_jsx(
|
|
318
|
+
: safeTranslate(t, 'byomClients:create.successTitle', 'New credentials created'), primaryButtonText: safeTranslate(t, 'byomClients:create.done', 'Got it'), secondaryButtonText: undefined, onRequestClose: () => setByomPasswordOpen(false), onRequestSubmit: () => setByomPasswordOpen(false), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:create.successDescription', 'Use the credentials below for authentication in an external monitoring system.') }), _jsxs("div", { children: [_jsx(DsText, { as: 'p', variant: 'label-md', className: 'm-0', children: safeTranslate(t, 'byomClients:create.fields.username', 'Username') }), _jsx(CodeSnippet, { type: 'single', children: byomUsername })] }), _jsxs("div", { children: [_jsx(DsText, { as: 'p', variant: 'label-md', className: 'm-0', children: safeTranslate(t, 'byomClients:create.fields.password', 'Password') }), _jsx(CodeSnippet, { type: 'single', children: byomPassword })] }), _jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, title: safeTranslate(t, 'byomClients:create.successNotificationTitle', 'The credentials will not be shown again.'), subtitle: safeTranslate(t, 'byomClients:create.successNotificationDescription', 'New password can be generated later.') })] }) }), _jsx(Modal, { open: byomRotateOpen, primaryButtonText: byomRotateBusy ? (_jsx(SpinningLoader, { size: 16, "aria-hidden": true })) : (safeTranslate(t, 'byomClients:rotate.submit', 'Generate new password')), secondaryButtonText: safeTranslate(t, 'byomClients:rotate.cancel', 'Cancel'), primaryButtonDisabled: byomRotateBusy, onRequestClose: () => {
|
|
361
319
|
trackEvent('byomClients:rotate:cancel', 'Cancel Rotate BYOM Client Password Modal', { clientId: byomRotateClientId });
|
|
362
320
|
setByomRotateBusy(false);
|
|
363
321
|
setByomRotateOpen(false);
|
|
@@ -391,10 +349,10 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
391
349
|
setByomRotateBusy(false);
|
|
392
350
|
}
|
|
393
351
|
})();
|
|
394
|
-
}, size: 'sm', modalHeading: safeTranslate(t, 'byomClients:rotate.title', 'Generate new password'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:rotate.description', `Are you sure you want to rotate the password for the username "${byomClients.find((c) => c.id === byomRotateClientId)?.username ?? ''}"? The current password will be invalidated immediately.`) }), byomRotateError.title && (_jsxs("p", { style: { color: 'var(--
|
|
352
|
+
}, size: 'sm', modalHeading: safeTranslate(t, 'byomClients:rotate.title', 'Generate new password'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:rotate.description', `Are you sure you want to rotate the password for the username "${byomClients.find((c) => c.id === byomRotateClientId)?.username ?? ''}"? The current password will be invalidated immediately.`) }), byomRotateError.title && (_jsxs("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: [byomRotateError.title, byomRotateError.description
|
|
395
353
|
? `: ${byomRotateError.description}`
|
|
396
|
-
: ''] }))] }) }), _jsx(Modal, { open: byomRotateResponseOpen, primaryButtonText: safeTranslate(t, 'byomClients:rotate.done', 'Got it'), onRequestClose: () => setByomRotateResponseOpen(false), onRequestSubmit: () => setByomRotateResponseOpen(false), size: 'sm', modalHeading: safeTranslate(t, 'byomClients:rotate.successTitle', 'New password generated'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:rotate.successDescription', 'Use the credentials below for authentication in an external monitoring system.') }), _jsxs("div", { children: [_jsx(
|
|
397
|
-
'' })] }), _jsxs("div", { children: [_jsx(
|
|
354
|
+
: ''] }))] }) }), _jsx(Modal, { open: byomRotateResponseOpen, primaryButtonText: safeTranslate(t, 'byomClients:rotate.done', 'Got it'), onRequestClose: () => setByomRotateResponseOpen(false), onRequestSubmit: () => setByomRotateResponseOpen(false), size: 'sm', modalHeading: safeTranslate(t, 'byomClients:rotate.successTitle', 'New password generated'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:rotate.successDescription', 'Use the credentials below for authentication in an external monitoring system.') }), _jsxs("div", { children: [_jsx(DsText, { as: 'p', variant: 'label-md', className: 'm-0', children: safeTranslate(t, 'byomClients:rotate.fields.username', 'Username') }), _jsx(CodeSnippet, { type: 'single', children: byomClients.find((c) => c.id === byomRotateClientId)?.username ??
|
|
355
|
+
'' })] }), _jsxs("div", { children: [_jsx(DsText, { as: 'p', variant: 'label-md', className: 'm-0', children: safeTranslate(t, 'byomClients:rotate.fields.password', 'New Password') }), _jsx(CodeSnippet, { type: 'single', children: byomRotatePassword })] }), _jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, title: safeTranslate(t, 'byomClients:create.successNotificationTitle', 'The credentials will not be shown again.'), subtitle: safeTranslate(t, 'byomClients:create.successNotificationDescription', 'New password can be generated later.') })] }) }), _jsx(Modal, { open: byomDeleteOpen, danger: true, primaryButtonText: byomDeleteBusy ? (_jsx(SpinningLoader, { size: 16, "aria-hidden": true })) : (safeTranslate(t, 'byomClients:delete.submit', 'Delete')), secondaryButtonText: safeTranslate(t, 'byomClients:delete.cancel', 'Cancel'), primaryButtonDisabled: byomDeleteBusy, onRequestClose: () => {
|
|
398
356
|
trackEvent('byomClients:delete:cancel', 'Cancel Delete BYOM Client Modal', { clientId: byomSelectedClientId });
|
|
399
357
|
setByomDeleteBusy(false);
|
|
400
358
|
setByomDeleteOpen(false);
|
|
@@ -426,9 +384,9 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
426
384
|
setByomDeleteBusy(false);
|
|
427
385
|
}
|
|
428
386
|
})();
|
|
429
|
-
}, size: 'sm', modalHeading: safeTranslate(t, 'byomClients:delete.title', 'Delete client'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:delete.description', 'Are you sure you want to delete this client? This action cannot be undone.') }), byomDeleteError.title && (_jsxs("p", { style: { color: 'var(--
|
|
387
|
+
}, size: 'sm', modalHeading: safeTranslate(t, 'byomClients:delete.title', 'Delete client'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:delete.description', 'Are you sure you want to delete this client? This action cannot be undone.') }), byomDeleteError.title && (_jsxs("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: [byomDeleteError.title, byomDeleteError.description
|
|
430
388
|
? `: ${byomDeleteError.description}`
|
|
431
|
-
: ''] }))] }) }), _jsx(Modal, { open: byomDeactivateOpen, danger: true, primaryButtonText: byomDeactivateBusy ? (_jsx(
|
|
389
|
+
: ''] }))] }) }), _jsx(Modal, { open: byomDeactivateOpen, danger: true, primaryButtonText: byomDeactivateBusy ? (_jsx(SpinningLoader, { size: 16, "aria-hidden": true })) : (safeTranslate(t, 'byomClients:delete.submit', 'Deactivate')), secondaryButtonText: safeTranslate(t, 'byomClients:delete.cancel', 'Cancel'), primaryButtonDisabled: byomDeactivateBusy, onRequestClose: () => {
|
|
432
390
|
trackEvent('byomClients:deactivate:cancel', 'Cancel Deactivate BYOM Modal');
|
|
433
391
|
setByomDeactivateBusy(false);
|
|
434
392
|
setByomDeactivateOpen(false);
|
|
@@ -456,7 +414,7 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
456
414
|
setByomDeactivateBusy(false);
|
|
457
415
|
}
|
|
458
416
|
})();
|
|
459
|
-
}, size: 'sm', modalHeading: safeTranslate(t, 'byomClients:delete.title', 'Deactivate Monitoring'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:delete.description', 'Are you sure you want to Deactivate Monitoring? All Monitoring Clients will be deleted. This action cannot be undone.') }), byomDeactivateError.title && (_jsxs("p", { style: { color: 'var(--
|
|
417
|
+
}, size: 'sm', modalHeading: safeTranslate(t, 'byomClients:delete.title', 'Deactivate Monitoring'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:delete.description', 'Are you sure you want to Deactivate Monitoring? All Monitoring Clients will be deleted. This action cannot be undone.') }), byomDeactivateError.title && (_jsxs("p", { style: { color: 'var(--danger-foreground-subtle)' }, children: [byomDeactivateError.title, byomDeactivateError.description
|
|
460
418
|
? `: ${byomDeactivateError.description}`
|
|
461
419
|
: ''] }))] }) })] }));
|
|
462
420
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleConnectorSecretsService } from '@camunda/ccma-api';
|
|
3
3
|
import { SECRETS_MAX_LENGTH, SseEntity } from '@camunda/ccma-shared-types';
|
|
4
|
-
import { InlineLoading } from '@carbon/react';
|
|
5
4
|
import { observer } from 'mobx-react-lite';
|
|
6
5
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
6
|
import { C4ClusterDetailsConnectorSecrets } from '../../../components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js';
|
|
7
|
+
import { SpinningLoader } from '../../../components/c4-cluster-overview/ds-status-icon-text.js';
|
|
8
8
|
import { C4FileUploader } from '../../../components/c4-file-uploader/c4-file-uploader.js';
|
|
9
9
|
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
10
10
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
11
|
-
import { useC4ConsoleRuntime
|
|
11
|
+
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
12
12
|
import { CodeSnippet, Form, Link, Modal, PasswordInput, Stack, TextArea, TextInput, } from '../../../ui/index.js';
|
|
13
|
-
import {
|
|
13
|
+
import { Select, SelectItem } from '../../../ui/families.js';
|
|
14
14
|
import { clientErrorMessage } from '../../../utils/http-error-message.js';
|
|
15
15
|
import { safeTranslate, scopedTranslate } from '../../../utils/safe-translate.js';
|
|
16
16
|
function renderInlineStrong(value) {
|
|
@@ -28,23 +28,15 @@ function renderInlineLink0(value, linkRenderer) {
|
|
|
28
28
|
return (_jsxs("span", { children: [before, linkRenderer(label), after] }));
|
|
29
29
|
}
|
|
30
30
|
const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
|
|
31
|
-
const { Select, SelectItem } = useSelectFamily();
|
|
32
31
|
const { orgId, clusterId, apiConfig, canMutateCluster, connectorSecretsPermissions, docsUrl, clusterSecretsDocsUrl, t, onNavigate, useClusterSecretsLabel, permissionsLoading = false, scope = 'cluster', onPanelState, } = props;
|
|
33
|
-
const designSystem = useC4DesignSystem();
|
|
34
|
-
const useDsClusterSecretsContent = designSystem === 'ds' && useClusterSecretsLabel;
|
|
35
32
|
const pickValue = (condition, defaultValue, alternateValue) => (condition ? alternateValue : defaultValue);
|
|
36
|
-
const resolvedDocsUrl = pickValue(
|
|
37
|
-
const clusterEmptyState =
|
|
38
|
-
titleKey: 'clusterdetails:clusterSecrets.noSecrets.title',
|
|
39
|
-
titleFallback: 'No secrets',
|
|
40
|
-
descriptionKey: 'clusterdetails:clusterSecrets.noSecrets.description',
|
|
41
|
-
descriptionFallback: 'Create a cluster secret to reference encrypted credentials in your cluster.',
|
|
42
|
-
}, {
|
|
33
|
+
const resolvedDocsUrl = pickValue(useClusterSecretsLabel, docsUrl, clusterSecretsDocsUrl);
|
|
34
|
+
const clusterEmptyState = {
|
|
43
35
|
titleKey: 'clusterdetails:clusterSecrets.noSecretsDs.title',
|
|
44
36
|
titleFallback: 'Store sensitive values as cluster secrets',
|
|
45
37
|
descriptionKey: 'clusterdetails:clusterSecrets.noSecretsDs.description',
|
|
46
38
|
descriptionFallback: 'Cluster secrets store API keys, passwords, and other sensitive values. Reference them from credentials and supported fields.',
|
|
47
|
-
}
|
|
39
|
+
};
|
|
48
40
|
const pickSecretsText = (connectorKey, connectorFallback, clusterKey, clusterFallback) => {
|
|
49
41
|
const [key, fallback] = pickValue(useClusterSecretsLabel, [connectorKey, connectorFallback], [clusterKey, clusterFallback]);
|
|
50
42
|
return safeTranslate(t, key, fallback);
|
|
@@ -210,7 +202,7 @@ const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
|
|
|
210
202
|
emptyTitle: pickSecretsText('clusterdetails:connectorSecrets.noSecrets.title', 'No secrets', clusterEmptyState.titleKey, clusterEmptyState.titleFallback),
|
|
211
203
|
emptyDescription,
|
|
212
204
|
emptyCreateButton: safeTranslate(t, 'clusterdetails:connectorSecrets.noSecrets.button', 'Create secret'),
|
|
213
|
-
emptyLearnMoreLabel: pickValue(
|
|
205
|
+
emptyLearnMoreLabel: pickValue(useClusterSecretsLabel, safeTranslate(t, 'clusterdetails:connectorSecrets.noSecrets.link', 'Learn more'), safeTranslate(t, 'clusterdetails:clusterSecrets.noSecretsDs.link', 'Learn more about cluster secrets')),
|
|
214
206
|
emptyIconAltText: pickSecretsText('clusterdetails:connectorSecrets.emptyIconAltText', 'Connector secrets icon', 'clusterdetails:clusterSecrets.emptyIconAltText', 'Cluster secrets icon'),
|
|
215
207
|
infoText,
|
|
216
208
|
// Label for the badge shown on CAMUNDA_PROVIDED_ secrets
|
|
@@ -657,7 +649,7 @@ const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
|
|
|
657
649
|
setFetchingSourceSecrets(false);
|
|
658
650
|
}
|
|
659
651
|
}
|
|
660
|
-
}, children: [_jsx(SelectItem, { value: '', text: 'Select a cluster' }), availableClusters.map((cluster) => (_jsx(SelectItem, { value: cluster.uuid, text: cluster.name }, cluster.uuid)))] }), fetchingSourceSecrets && (_jsx(
|
|
652
|
+
}, children: [_jsx(SelectItem, { value: '', text: 'Select a cluster' }), availableClusters.map((cluster) => (_jsx(SelectItem, { value: cluster.uuid, text: cluster.name }, cluster.uuid)))] }), fetchingSourceSecrets && (_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(SpinningLoader, { size: 16, "aria-hidden": true }), _jsx("span", { children: safeTranslate(t, 'connectorsecrets:importFromCluster.fetchingSecrets', 'Loading secrets...') })] })), selectedSourceClusterId &&
|
|
661
653
|
!fetchingSourceSecrets &&
|
|
662
654
|
Object.keys(sourceClusterSecrets).length > 0 && (_jsx("p", { children: t
|
|
663
655
|
? t('connectorsecrets:importFromCluster.secretsFound', {
|
|
@@ -10,7 +10,7 @@ import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
|
10
10
|
import { useC4ConsoleNotifications } from '../../../runtime/c4-console-notifications-context.js';
|
|
11
11
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
12
12
|
import { Checkbox, Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
13
|
-
import {
|
|
13
|
+
import { Select, SelectItem } from '../../../ui/families.js';
|
|
14
14
|
import { safeTranslate } from '../../../utils/safe-translate.js';
|
|
15
15
|
const WEEKDAYS = [
|
|
16
16
|
'Monday',
|
|
@@ -171,7 +171,6 @@ function isManualBackup(backup) {
|
|
|
171
171
|
return backup.name.includes('on-demand');
|
|
172
172
|
}
|
|
173
173
|
const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
174
|
-
const { Select, SelectItem } = useSelectFamily();
|
|
175
174
|
const { cluster, orgId, clusterId, apiConfig, canMutateCluster, isHotBackupEnabled, manualBackupRetainedCount, scheduledBackupRetainedCount, docsUrls, t, onNavigate, onReloadCluster, } = props;
|
|
176
175
|
// The operator (BackupRetention CR / BackupSchedule history limits) falls
|
|
177
176
|
// back to 3 whenever the org has no override — see hotBackupManualRetainedCount
|
|
@@ -609,8 +608,8 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
609
608
|
captureTelemetryError(error, 'listBackups:restore:confirm', 'Error while restoring backup', { backupId });
|
|
610
609
|
// Global persistent error toast per the spec — admin sees
|
|
611
610
|
// it regardless of which page they navigate to next.
|
|
612
|
-
//
|
|
613
|
-
//
|
|
611
|
+
// Error notification with no timeout (disableAutoRemove), so
|
|
612
|
+
// it stays until dismissed.
|
|
614
613
|
addNotification({
|
|
615
614
|
title: safeTranslate(t, 'clusterdetails:hotbackups.restoreErrorTitle', 'Restore failed'),
|
|
616
615
|
subtitle: safeTranslate(t, 'clusterdetails:hotbackups.restoreErrorMessage', 'Restore of "{backupName}" did not complete. Your cluster is unchanged. Contact support if the issue persists.').replace('{backupName}', selectedBackup.name),
|
|
@@ -701,7 +700,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
701
700
|
const newFreq = event.target.value;
|
|
702
701
|
trackEvent(`listBackups:schedule:modal:confirm:${newFreq}`, `Selected backup frequency is ${newFreq} `, { create: scheduleIsCreate });
|
|
703
702
|
setScheduleFrequency(newFreq);
|
|
704
|
-
}, children: [_jsx(SelectItem, { value: '15min', text: 'Every 15 minutes' }, 'schedule-frequency-15min'), _jsx(SelectItem, { value: '30min', text: 'Every 30 minutes' }, 'schedule-frequency-30min'), _jsx(SelectItem, { value: 'hourly', text: 'Hourly' }, 'schedule-frequency-hourly'), _jsx(SelectItem, { value: 'daily', text: 'Daily' }, 'schedule-frequency-daily'), _jsx(SelectItem, { value: 'weekly', text: 'Weekly' }, 'schedule-frequency-weekly')] }), scheduleFrequency === 'weekly' && (_jsxs("fieldset", { className: '
|
|
703
|
+
}, children: [_jsx(SelectItem, { value: '15min', text: 'Every 15 minutes' }, 'schedule-frequency-15min'), _jsx(SelectItem, { value: '30min', text: 'Every 30 minutes' }, 'schedule-frequency-30min'), _jsx(SelectItem, { value: 'hourly', text: 'Hourly' }, 'schedule-frequency-hourly'), _jsx(SelectItem, { value: 'daily', text: 'Daily' }, 'schedule-frequency-daily'), _jsx(SelectItem, { value: 'weekly', text: 'Weekly' }, 'schedule-frequency-weekly')] }), scheduleFrequency === 'weekly' && (_jsxs("fieldset", { className: 'c4-fieldset', children: [_jsx("legend", { className: 'c4-label', children: "Select days" }), _jsx("div", { style: {
|
|
705
704
|
display: 'grid',
|
|
706
705
|
gridTemplateColumns: 'repeat(auto-fill, 120px)',
|
|
707
706
|
gridGap: '0px 0px',
|
|
@@ -141,7 +141,7 @@ export const C4ClusterDetailsIpWhitelistTab = (props) => {
|
|
|
141
141
|
return (_jsxs(_Fragment, { children: [showPrivateLinkConflictWarning && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: privateLinkConflictTitle, subtitle: privateLinkConflictSubtitle, style: {
|
|
142
142
|
maxWidth: '100%',
|
|
143
143
|
width: '100%',
|
|
144
|
-
marginBottom: '
|
|
144
|
+
marginBottom: '1rem',
|
|
145
145
|
} })), _jsx(C4ClusterDetailsIpWhitelist, { ipWhitelist: ipWhitelistItems, isLoading: isClusterLoading, text: {
|
|
146
146
|
title: safeTranslate(t, 'clusterdetails:ipWhitelist.title', 'IP Allowlist'),
|
|
147
147
|
createButton: safeTranslate(t, 'clusterdetails:ipWhitelist.createButton', 'Create new entry'),
|