@camunda/ccma-saas-frontend 0.4.0 → 0.6.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/README.md +24 -1
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +1 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +1 -1
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +4 -4
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +4 -3
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +6 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +1 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +1 -1
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- 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 +2 -2
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +24 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +14 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +22 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +4 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +2 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +29 -11
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +6 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +10 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +8 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +11 -11
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +1 -1
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +26 -5
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +1 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +16 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +5 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +1 -1
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +1 -1
- package/lib/esm/components/c4-external-link/c4-external-link.d.ts +1 -1
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +1 -1
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +15 -53
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +1 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +2 -2
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +1 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +1 -1
- package/lib/esm/components/c4-management-users/c4-management-users.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +2 -2
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +1 -1
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +9 -4
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -1
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.types.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search.d.ts +2 -2
- package/lib/esm/components/c4-search/c4-search.types.d.ts +1 -1
- package/lib/esm/components/c4-search/search.utils.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +2 -2
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +1 -1
- package/lib/esm/components/c4-stat/c4-stat.d.ts +1 -1
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +1 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -1
- package/lib/esm/components/c4-tabs/c4-tabs.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +2 -2
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +1 -1
- package/lib/esm/components/c4-toggle/c4-toggle.d.ts +1 -1
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.d.ts +8 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.js +18 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.types.d.ts +15 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.d.ts +5 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.js +36 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +1 -1
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +3 -3
- package/lib/esm/components/shared-charts/ds-line-chart.js +2 -2
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +29 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +54 -6
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +28 -0
- package/lib/esm/i18n/en/modals/backups.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +15 -3
- package/lib/esm/i18n/en/pages/clusters.json +4 -1
- package/lib/esm/i18n/en/pages/dashboard.json +1 -0
- package/lib/esm/i18n/en/pages/orgmanagement.json +8 -0
- package/lib/esm/icons/c4-icons.d.ts +1 -1
- package/lib/esm/index.d.ts +237 -253
- package/lib/esm/index.js +6 -11
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +1 -1
- package/lib/esm/notifications/c4-console-notifications-handle.d.ts +1 -1
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +1 -1
- package/lib/esm/runtime/c4-console-data-context.d.ts +2 -2
- package/lib/esm/runtime/c4-console-data-store.d.ts +1 -1
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/index.d.ts +40 -0
- package/lib/esm/runtime/index.js +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +39 -15
- package/lib/esm/runtime/to-api-config.d.ts +1 -1
- package/lib/esm/runtime/to-api-domain.d.ts +1 -1
- package/lib/esm/runtime/to-identity-api-base-url.d.ts +1 -1
- package/lib/esm/ui/c4-modal-dialog.js +16 -3
- package/lib/esm/ui/index.d.ts +2 -2
- package/lib/esm/ui/index.js +28 -2
- package/lib/esm/utils/role-labels.d.ts +38 -0
- package/lib/esm/utils/role-labels.js +160 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +66 -4
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +4 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +5 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +4 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +16 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +20 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +134 -63
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +21 -7
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +111 -47
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.d.ts +36 -0
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.js +58 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +20 -3
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +5 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +1 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.d.ts +2 -2
- package/lib/esm/widgets/management/c4-management-app.js +157 -55
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +18 -1
- package/lib/esm/widgets/management/c4-management-page.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +3 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +5 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +98 -93
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +2 -2
- package/lib/esm/widgets/user-details/c4-user-details-page.js +46 -85
- package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +2 -0
- package/package.json +46 -29
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +0 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +0 -43
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.d.ts +0 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +0 -67
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.js +0 -132
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.js +0 -87
- package/lib/esm/components/c4-cluster-overview/applications.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +0 -58
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +0 -38
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +0 -93
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +0 -50
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +0 -42
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +0 -120
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +0 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +0 -40
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +0 -83
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +0 -350
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +0 -122
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +0 -151
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +0 -33
- package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +0 -1
- package/lib/esm/components/c4-page-template/c4-page-template.spec.js +0 -58
- package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +0 -6
- package/lib/esm/components/c4-page-template/c4-page-template.stories.js +0 -73
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +0 -3
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +0 -25
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +0 -12
- package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +0 -1
- package/lib/esm/components/c4-tabs/c4-tabs.spec.js +0 -97
- package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +0 -6
- package/lib/esm/components/c4-tabs/c4-tabs.stories.js +0 -35
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +0 -1
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +0 -47
- package/lib/esm/externalUrls.const.spec.d.ts +0 -1
- package/lib/esm/externalUrls.const.spec.js +0 -102
- package/lib/esm/runtime/c4-console-authz.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +0 -202
- package/lib/esm/runtime/c4-console-data-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-context.spec.js +0 -354
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -122
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -409
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -82
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/camunda-apps.spec.js +0 -90
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +0 -91
- package/lib/esm/setupTests.d.ts +0 -1
- package/lib/esm/setupTests.js +0 -37
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +0 -49
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +0 -471
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +0 -95
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +0 -33
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.js +0 -72
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.js +0 -85
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.js +0 -105
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +0 -226
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +0 -179
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +0 -1255
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +0 -397
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +0 -488
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +0 -34
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +0 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +0 -502
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +0 -226
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +0 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +0 -191
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +0 -35
- package/lib/esm/widgets/management/c4-management-app.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-app.spec.js +0 -509
- package/lib/esm/widgets/management/c4-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-page.spec.js +0 -40
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/management/management-tabs.spec.js +0 -28
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.js +0 -246
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +0 -225
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +0 -1
- package/lib/esm/widgets/use-extend-trial.spec.js +0 -79
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +0 -65
- /package/lib/esm/components/{c4-stackdriver-links/c4-stackdriver-links.types.js → c4-tsuga-links/c4-tsuga-links.types.js} +0 -0
|
@@ -32,11 +32,21 @@ function convertFeWeekdayToCron(weekday) {
|
|
|
32
32
|
}
|
|
33
33
|
return weekday + 1;
|
|
34
34
|
}
|
|
35
|
-
function parseCronSchedule(schedule) {
|
|
35
|
+
export function parseCronSchedule(schedule) {
|
|
36
36
|
try {
|
|
37
37
|
const cron = CronExpressionParser.parse(schedule);
|
|
38
38
|
const isHourly = cron.fields.hour.values.length > 1;
|
|
39
39
|
if (isHourly) {
|
|
40
|
+
// Sub-hourly schedules reuse the "every hour" hour-field (all 24
|
|
41
|
+
// values) with extra minute marks layered on top — see
|
|
42
|
+
// `buildScheduleCronOverrides`.
|
|
43
|
+
const minuteCount = cron.fields.minute.values.length;
|
|
44
|
+
if (minuteCount === 4) {
|
|
45
|
+
return { frequency: 'Every 15 minutes' };
|
|
46
|
+
}
|
|
47
|
+
if (minuteCount === 2) {
|
|
48
|
+
return { frequency: 'Every 30 minutes' };
|
|
49
|
+
}
|
|
40
50
|
return { frequency: 'Hourly' };
|
|
41
51
|
}
|
|
42
52
|
const hour = Number(cron.fields.hour.values[0]);
|
|
@@ -84,12 +94,81 @@ function parseCronSchedule(schedule) {
|
|
|
84
94
|
};
|
|
85
95
|
}
|
|
86
96
|
}
|
|
97
|
+
const SUB_HOURLY_MINUTES = {
|
|
98
|
+
'15min': [0, 15, 30, 45],
|
|
99
|
+
'30min': [0, 30],
|
|
100
|
+
};
|
|
101
|
+
export function buildScheduleCronOverrides(frequency, startingHour, startingMinute, weekdays) {
|
|
102
|
+
const totalHours = 24;
|
|
103
|
+
const spansAllHours = frequency === 'hourly' || frequency === '15min' || frequency === '30min';
|
|
104
|
+
const hours = spansAllHours
|
|
105
|
+
? Array.from({ length: totalHours }, (_, index) => index)
|
|
106
|
+
: [startingHour];
|
|
107
|
+
const fieldOverrides = {
|
|
108
|
+
hour: hours,
|
|
109
|
+
minute: SUB_HOURLY_MINUTES[frequency] ?? [startingMinute],
|
|
110
|
+
};
|
|
111
|
+
if (frequency === 'weekly') {
|
|
112
|
+
// Guard against an unrecognized weekday name: `indexOf` would otherwise
|
|
113
|
+
// return -1, and `convertFeWeekdayToCron(-1)` silently yields 0 (Sunday),
|
|
114
|
+
// injecting a day the user never selected.
|
|
115
|
+
fieldOverrides.dayOfWeek = weekdays
|
|
116
|
+
.filter((day) => WEEKDAYS.includes(day))
|
|
117
|
+
.map((day) => convertFeWeekdayToCron(WEEKDAYS.indexOf(day)));
|
|
118
|
+
}
|
|
119
|
+
return fieldOverrides;
|
|
120
|
+
}
|
|
121
|
+
// Derives the "Edit schedule" modal's form state from an existing schedule's
|
|
122
|
+
// cron string. Mirrors `parseCronSchedule`'s hour/minute reading (same
|
|
123
|
+
// sub-hourly-spans-all-24-hours shape from `buildScheduleCronOverrides`), but
|
|
124
|
+
// returns the internal `ScheduleFrequency` value plus local start time /
|
|
125
|
+
// weekdays for populating the editable form, rather than a display label.
|
|
126
|
+
// Returns `undefined` for an unparseable schedule.
|
|
127
|
+
export function deriveScheduleFormState(schedule) {
|
|
128
|
+
try {
|
|
129
|
+
const cron = CronExpressionParser.parse(schedule);
|
|
130
|
+
const isHourly = cron.fields.hour.values.length > 1;
|
|
131
|
+
// Convert UTC time to local time
|
|
132
|
+
const utcHour = Number(cron.fields.hour.values[0]);
|
|
133
|
+
const utcMinute = Number(cron.fields.minute.values[0]);
|
|
134
|
+
const utcDate = new Date();
|
|
135
|
+
utcDate.setUTCHours(utcHour);
|
|
136
|
+
utcDate.setUTCMinutes(utcMinute);
|
|
137
|
+
const localTime = `${String(utcDate.getHours()).padStart(2, '0')}:${String(utcDate.getMinutes()).padStart(2, '0')}`;
|
|
138
|
+
if (isHourly) {
|
|
139
|
+
const minuteCount = cron.fields.minute.values.length;
|
|
140
|
+
const frequency = minuteCount === 4 ? '15min' : minuteCount === 2 ? '30min' : 'hourly';
|
|
141
|
+
return { frequency, startingTime: '00:00', weekdays: [] };
|
|
142
|
+
}
|
|
143
|
+
const isDaily = cron.fields.dayOfWeek.values.length === 0 ||
|
|
144
|
+
cron.fields.dayOfWeek.values.length === 8;
|
|
145
|
+
if (isDaily) {
|
|
146
|
+
return { frequency: 'daily', startingTime: localTime, weekdays: [] };
|
|
147
|
+
}
|
|
148
|
+
const weekdays = cron.fields.dayOfWeek.values.filter((day) => typeof day === 'number')
|
|
149
|
+
.map((day) => WEEKDAYS[convertCronWeekdayToFe(day)])
|
|
150
|
+
.filter((weekday) => Boolean(weekday));
|
|
151
|
+
return { frequency: 'weekly', startingTime: localTime, weekdays };
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
return undefined;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
87
157
|
function toDateOrDash(value) {
|
|
88
158
|
if (!value)
|
|
89
159
|
return '-';
|
|
90
160
|
const date = value instanceof Date ? value : new Date(String(value));
|
|
91
161
|
return Number.isNaN(date.getTime()) ? '-' : date;
|
|
92
162
|
}
|
|
163
|
+
// Manual (on-demand) backups are created with `generateName: 'on-demand-'`
|
|
164
|
+
// (k8sHotBackup.controller.ts); scheduled ones are named `scheduled-...` by
|
|
165
|
+
// the operator. There's no dedicated field on BackupDto for this — the name
|
|
166
|
+
// prefix is the only signal. Checked on `name`, not `uuid`, to match the
|
|
167
|
+
// backend's own throttle check (k8sHotBackup.controller.ts) in case the two
|
|
168
|
+
// ever diverge.
|
|
169
|
+
function isManualBackup(backup) {
|
|
170
|
+
return backup.name.includes('on-demand');
|
|
171
|
+
}
|
|
93
172
|
function safeTranslate(t, key, fallback) {
|
|
94
173
|
if (!t)
|
|
95
174
|
return fallback;
|
|
@@ -98,7 +177,13 @@ function safeTranslate(t, key, fallback) {
|
|
|
98
177
|
}
|
|
99
178
|
const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
100
179
|
const { Select, SelectItem } = useSelectFamily();
|
|
101
|
-
const { cluster, orgId, clusterId, apiConfig, canMutateCluster, isHotBackupEnabled, docsUrls, t, onNavigate, onReloadCluster, } = props;
|
|
180
|
+
const { cluster, orgId, clusterId, apiConfig, canMutateCluster, isHotBackupEnabled, manualBackupRetainedCount, scheduledBackupRetainedCount, docsUrls, t, onNavigate, onReloadCluster, } = props;
|
|
181
|
+
// The operator (BackupRetention CR / BackupSchedule history limits) falls
|
|
182
|
+
// back to 3 whenever the org has no override — see hotBackupManualRetainedCount
|
|
183
|
+
// / hotBackupScheduledRetainedCount in SalesPlan.dto.ts.
|
|
184
|
+
const manualRetainedCount = manualBackupRetainedCount ?? 3;
|
|
185
|
+
const scheduledRetainedCount = scheduledBackupRetainedCount ?? 3;
|
|
186
|
+
const minCreatePeriodMinutes = HOTBACKUP_MIN_CREATE_PERIOD / (60 * 1000);
|
|
102
187
|
const data = useC4ConsoleData();
|
|
103
188
|
const runtime = useC4ConsoleRuntime();
|
|
104
189
|
const { add: addNotification } = useC4ConsoleNotifications();
|
|
@@ -140,6 +225,13 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
140
225
|
const [selectedBackupId, setSelectedBackupId] = useState('');
|
|
141
226
|
const [backupMutationBusy, setBackupMutationBusy] = useState(false);
|
|
142
227
|
const [backupMutationError, setBackupMutationError] = useState('');
|
|
228
|
+
// Synchronous re-entrancy guard for restore: `backupMutationBusy` state lags
|
|
229
|
+
// a render behind, so a rapid double-click on the modal's Restore button
|
|
230
|
+
// could invoke `onConfirm` again before the button's disabled state
|
|
231
|
+
// repaints. The ref flips synchronously and makes a second call a no-op
|
|
232
|
+
// while a restore is in flight, preventing duplicate restore requests.
|
|
233
|
+
// Mirrors the guard in `use-restart-confirm.tsx`.
|
|
234
|
+
const restoreSubmittingRef = useRef(false);
|
|
143
235
|
// Schedule states
|
|
144
236
|
const [editScheduleOpen, setEditScheduleOpen] = useState(false);
|
|
145
237
|
const [deleteScheduleOpen, setDeleteScheduleOpen] = useState(false);
|
|
@@ -156,7 +248,13 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
156
248
|
return;
|
|
157
249
|
}
|
|
158
250
|
hotBackupsLoadingRef.current = true;
|
|
159
|
-
|
|
251
|
+
// Only show the full-section skeleton on the first load (or after a
|
|
252
|
+
// cluster switch, which resets `hotBackupsLoadedRef`). Background/SSE-driven
|
|
253
|
+
// refreshes keep existing rows mounted and update them in place, avoiding a
|
|
254
|
+
// skeleton flicker on every backup status-transition event.
|
|
255
|
+
if (!hotBackupsLoadedRef.current) {
|
|
256
|
+
setHotBackupsLoading(true);
|
|
257
|
+
}
|
|
160
258
|
setHotBackupsError(false);
|
|
161
259
|
const [backupsResult, scheduleResult] = await Promise.allSettled([
|
|
162
260
|
ConsoleHotBackupsService.getHotBackups({
|
|
@@ -225,7 +323,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
225
323
|
uuid: backup.uuid,
|
|
226
324
|
name: backup.name,
|
|
227
325
|
status: backup.status,
|
|
228
|
-
type: backup
|
|
326
|
+
type: isManualBackup(backup) ? 'Manual' : 'Scheduled',
|
|
229
327
|
started: toDateOrDash(backup.created),
|
|
230
328
|
completed: toDateOrDash(backup.completed),
|
|
231
329
|
// Resolved server-side from the backup's `generationUuid` label. Falls
|
|
@@ -243,7 +341,12 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
243
341
|
tasklistStatus: String(backup.tasklistStatus),
|
|
244
342
|
optimizeStatus: String(backup.optimizeStatus),
|
|
245
343
|
}));
|
|
344
|
+
// Only manual backups count toward the 15-minute throttle: a scheduled run
|
|
345
|
+
// (now possibly every 15/30 minutes) must never block the customer from
|
|
346
|
+
// creating a manual backup — matches the backend's own check in
|
|
347
|
+
// k8sHotBackup.controller.ts.
|
|
246
348
|
const lastCreatedTimestamp = Math.max(...hotBackups
|
|
349
|
+
.filter(isManualBackup)
|
|
247
350
|
.map((b) => toDateOrDash(b.created))
|
|
248
351
|
.filter((d) => d !== '-')
|
|
249
352
|
.map((d) => d.getTime()), 0);
|
|
@@ -368,45 +471,14 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
368
471
|
setBackupMutationError('');
|
|
369
472
|
setScheduleStartingTimeInvalid(false);
|
|
370
473
|
const schedule = backupSchedule?.schedule ?? '';
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
utcDate.setUTCHours(utcHour);
|
|
380
|
-
utcDate.setUTCMinutes(utcMinute);
|
|
381
|
-
const localHour = utcDate.getHours();
|
|
382
|
-
const localMinute = utcDate.getMinutes();
|
|
383
|
-
if (isHourly) {
|
|
384
|
-
setScheduleFrequency('hourly');
|
|
385
|
-
setScheduleStartingTime('00:00');
|
|
386
|
-
setScheduleWeekdays([]);
|
|
387
|
-
}
|
|
388
|
-
else if (cron.fields.dayOfWeek.values.length === 0 ||
|
|
389
|
-
cron.fields.dayOfWeek.values.length === 8) {
|
|
390
|
-
setScheduleFrequency('daily');
|
|
391
|
-
setScheduleStartingTime(`${String(localHour).padStart(2, '0')}:${String(localMinute).padStart(2, '0')}`);
|
|
392
|
-
setScheduleWeekdays([]);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
setScheduleFrequency('weekly');
|
|
396
|
-
setScheduleStartingTime(`${String(localHour).padStart(2, '0')}:${String(localMinute).padStart(2, '0')}`);
|
|
397
|
-
setScheduleWeekdays(cron.fields.dayOfWeek.values.filter((day) => typeof day === 'number').map((day) => {
|
|
398
|
-
const index = convertCronWeekdayToFe(day);
|
|
399
|
-
return WEEKDAYS[index] ?? '';
|
|
400
|
-
}));
|
|
401
|
-
}
|
|
402
|
-
setScheduleIsCreate(false);
|
|
403
|
-
}
|
|
404
|
-
catch {
|
|
405
|
-
setScheduleFrequency('daily');
|
|
406
|
-
setScheduleStartingTime('00:00');
|
|
407
|
-
setScheduleWeekdays([]);
|
|
408
|
-
setScheduleIsCreate(true);
|
|
409
|
-
}
|
|
474
|
+
const derived = schedule
|
|
475
|
+
? deriveScheduleFormState(schedule)
|
|
476
|
+
: undefined;
|
|
477
|
+
if (derived) {
|
|
478
|
+
setScheduleFrequency(derived.frequency);
|
|
479
|
+
setScheduleStartingTime(derived.startingTime);
|
|
480
|
+
setScheduleWeekdays(derived.weekdays);
|
|
481
|
+
setScheduleIsCreate(false);
|
|
410
482
|
}
|
|
411
483
|
else {
|
|
412
484
|
setScheduleFrequency('daily');
|
|
@@ -470,7 +542,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
470
542
|
setBackupMutationBusy(false);
|
|
471
543
|
}
|
|
472
544
|
})();
|
|
473
|
-
}, children: _jsxs(Stack, { gap: 4, children: [backupMutationError && _jsx("p", { children: backupMutationError }), _jsxs("div", { children: ["You can create a manual backup every
|
|
545
|
+
}, children: _jsxs(Stack, { gap: 4, children: [backupMutationError && _jsx("p", { children: backupMutationError }), _jsxs("div", { children: ["You can create a manual backup every ", minCreatePeriodMinutes, ' ', "minutes. Only the ", manualRetainedCount, " most recent successful manual backups are kept. If you already have ", manualRetainedCount, ' ', "manual backups, the oldest manual backup is automatically removed to make space for the new backup. You can also have", ' ', scheduledRetainedCount, " scheduled backups in addition to your", ' ', manualRetainedCount, " manual backups.", ' ', _jsx("a", { href: docsUrls.hotBackups, target: '_blank', rel: 'noreferrer', onClick: () => {
|
|
474
546
|
trackDocsOpen('cluster-backups', docsUrls.hotBackups);
|
|
475
547
|
onNavigate?.({
|
|
476
548
|
kind: 'openUrl',
|
|
@@ -521,12 +593,19 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
521
593
|
name: selectedBackup.name,
|
|
522
594
|
version: selectedBackup.generationName ?? '-',
|
|
523
595
|
completedAt: completedAt === '-' ? '' : completedAt,
|
|
524
|
-
}, currentClusterVersion: cluster?.generation?.name ?? '-', onRequestClose: () => {
|
|
596
|
+
}, currentClusterVersion: cluster?.generation?.name ?? '-', isSubmitting: backupMutationBusy, onRequestClose: () => {
|
|
525
597
|
trackEvent('listBackups:restore:cancel', 'Close Restore Backup Modal', { backupId: selectedBackupId });
|
|
526
598
|
setRestoreBackupOpen(false);
|
|
527
599
|
}, onConfirm: (backupId) => {
|
|
528
600
|
if (!isHotBackupEnabled)
|
|
529
601
|
return;
|
|
602
|
+
// Synchronous guard: `backupMutationBusy` only disables the
|
|
603
|
+
// button after a re-render, so a rapid double-click could reach
|
|
604
|
+
// here twice first. Bail out on the second call instead of
|
|
605
|
+
// firing a duplicate restore request.
|
|
606
|
+
if (restoreSubmittingRef.current)
|
|
607
|
+
return;
|
|
608
|
+
restoreSubmittingRef.current = true;
|
|
530
609
|
void (async () => {
|
|
531
610
|
trackEvent('listBackups:restore:confirm', 'Confirm Restore Backup Modal', { backupId });
|
|
532
611
|
setBackupMutationBusy(true);
|
|
@@ -557,6 +636,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
557
636
|
});
|
|
558
637
|
}
|
|
559
638
|
finally {
|
|
639
|
+
restoreSubmittingRef.current = false;
|
|
560
640
|
setBackupMutationBusy(false);
|
|
561
641
|
}
|
|
562
642
|
})();
|
|
@@ -568,9 +648,9 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
568
648
|
versionLabel: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.versionLabel', 'Version'),
|
|
569
649
|
confirmButton: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.confirmButton', 'Restore'),
|
|
570
650
|
cancelButton: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.cancelButton', 'Cancel'),
|
|
571
|
-
versionMismatchTitle: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.versionMismatchTitle', '
|
|
572
|
-
versionMismatchBody: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.versionMismatchBody', '
|
|
573
|
-
acknowledgmentLabel: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.acknowledgmentLabel', 'I understand
|
|
651
|
+
versionMismatchTitle: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.versionMismatchTitle', 'This will change your cluster version'),
|
|
652
|
+
versionMismatchBody: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.versionMismatchBody', 'Restoring changes your cluster from {currentVersion} to {backupVersion} and permanently overwrites your current data. Cancel to back up first.'),
|
|
653
|
+
acknowledgmentLabel: safeTranslate(t, 'clusterdetails:hotbackups.restoreModal.acknowledgmentLabel', 'I understand the version change.'),
|
|
574
654
|
} }));
|
|
575
655
|
})(), _jsx(Modal, { open: editScheduleOpen, modalHeading: scheduleIsCreate
|
|
576
656
|
? safeTranslate(t, 'backups:schedule.create.title', 'Create backup schedule')
|
|
@@ -607,18 +687,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
607
687
|
time.setMinutes(Number(minuteStr));
|
|
608
688
|
const startingHour = time.getUTCHours();
|
|
609
689
|
const startingMinute = time.getUTCMinutes();
|
|
610
|
-
const
|
|
611
|
-
let hours = [startingHour];
|
|
612
|
-
if (scheduleFrequency === 'hourly') {
|
|
613
|
-
hours = Array.from({ length: totalHours }, (_, index) => index);
|
|
614
|
-
}
|
|
615
|
-
const fieldOverrides = {
|
|
616
|
-
hour: hours,
|
|
617
|
-
minute: [startingMinute],
|
|
618
|
-
};
|
|
619
|
-
if (scheduleFrequency === 'weekly') {
|
|
620
|
-
fieldOverrides.dayOfWeek = scheduleWeekdays.map((day) => convertFeWeekdayToCron(WEEKDAYS.indexOf(day)));
|
|
621
|
-
}
|
|
690
|
+
const fieldOverrides = buildScheduleCronOverrides(scheduleFrequency, startingHour, startingMinute, scheduleWeekdays);
|
|
622
691
|
const exp = CronExpression.fieldsToExpression(CronFieldCollection.from(baseCron.fields, fieldOverrides));
|
|
623
692
|
await ConsoleBackupScheduleService.updateBackupSchedule({
|
|
624
693
|
config: apiConfig,
|
|
@@ -639,7 +708,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
639
708
|
setBackupMutationBusy(false);
|
|
640
709
|
}
|
|
641
710
|
})();
|
|
642
|
-
}, children: _jsxs(Stack, { gap: 6, children: [backupMutationError && _jsx("p", { children: backupMutationError }), _jsxs("p", { children: ["Only the
|
|
711
|
+
}, children: _jsxs(Stack, { gap: 6, children: [backupMutationError && _jsx("p", { children: backupMutationError }), _jsxs("p", { children: ["Only the ", scheduledRetainedCount, " most recent successful scheduled backups are kept. If you already have ", scheduledRetainedCount, ' ', "scheduled backups, the oldest scheduled backup is automatically removed to make space for the new backup. You can also have", ' ', manualRetainedCount, " manual backups in addition to your", ' ', scheduledRetainedCount, " scheduled backups.", ' ', _jsx("a", { href: docsUrls.hotBackups, target: '_blank', rel: 'noreferrer', onClick: () => {
|
|
643
712
|
trackDocsOpen('cluster-backups', docsUrls.hotBackups);
|
|
644
713
|
onNavigate?.({
|
|
645
714
|
kind: 'openUrl',
|
|
@@ -649,7 +718,7 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
649
718
|
const newFreq = event.target.value;
|
|
650
719
|
trackEvent(`listBackups:schedule:modal:confirm:${newFreq}`, `Selected backup frequency is ${newFreq} `, { create: scheduleIsCreate });
|
|
651
720
|
setScheduleFrequency(newFreq);
|
|
652
|
-
}, children: [_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: 'cds--fieldset', children: [_jsx("legend", { className: 'cds--label', children: "Select days" }), _jsx("div", { style: {
|
|
721
|
+
}, 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: 'cds--fieldset', children: [_jsx("legend", { className: 'cds--label', children: "Select days" }), _jsx("div", { style: {
|
|
653
722
|
display: 'grid',
|
|
654
723
|
gridTemplateColumns: 'repeat(auto-fill, 120px)',
|
|
655
724
|
gridGap: '0px 0px',
|
|
@@ -671,7 +740,9 @@ const C4ClusterDetailsHotBackupsTabImpl = (props) => {
|
|
|
671
740
|
}, children: _jsx(TextInput, { id: 'backup-schedule-start-time', labelText: '', style: { minWidth: '120px' }, placeholder: 'hh:mm', value: scheduleStartingTime, onChange: (event) => {
|
|
672
741
|
setScheduleStartingTime(event.target.value);
|
|
673
742
|
setScheduleStartingTimeInvalid(false);
|
|
674
|
-
}, invalid: scheduleStartingTimeInvalid, invalidText: safeTranslate(t, 'backups:schedule.create.startingInvalidText', 'Required field'), type: 'time' }) }), "UTC ", -new Date().getTimezoneOffset() / 60 > 0 ? '+' : ' ', -new Date().getTimezoneOffset() / 60, ' ', safeTranslate(t, 'backups:schedule.create.timezone', '(local time zone)')] })), scheduleFrequency === '
|
|
743
|
+
}, invalid: scheduleStartingTimeInvalid, invalidText: safeTranslate(t, 'backups:schedule.create.startingInvalidText', 'Required field'), type: 'time' }) }), "UTC ", -new Date().getTimezoneOffset() / 60 > 0 ? '+' : ' ', -new Date().getTimezoneOffset() / 60, ' ', safeTranslate(t, 'backups:schedule.create.timezone', '(local time zone)')] })), (scheduleFrequency === '15min' || scheduleFrequency === '30min') && (_jsx("span", { children: safeTranslate(t, scheduleFrequency === '15min'
|
|
744
|
+
? 'backups:schedule.create.15min'
|
|
745
|
+
: 'backups:schedule.create.30min', `Create a backup every ${scheduleFrequency === '15min' ? '15' : '30'} minutes`) })), scheduleFrequency === 'hourly' && (_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '4px' }, children: [_jsx("span", { children: safeTranslate(t, 'backups:schedule.create.hourly', 'Create a backup every hour starting at') }), _jsx("div", { style: { display: 'inline-block' }, children: `${(new Date().getUTCHours() + 1)
|
|
675
746
|
.toString()
|
|
676
747
|
.padStart(2, '0')}:${new Date()
|
|
677
748
|
.getUTCMinutes()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RequestBaseParamsConfig } from '@camunda/ccma-api';
|
|
2
2
|
import type { ClusterPlanTypesToReserved, ConsoleClusterDto, HdpPrometheusDataCapacityDataPoint } from '@camunda/ccma-shared-types';
|
|
3
3
|
import { type JSX } from 'react';
|
|
4
|
-
import type { C4ClusterDetailsNavigateEvent } from '../c4-cluster-details-app.types';
|
|
4
|
+
import type { C4ClusterDetailsNavigateEvent } from '../c4-cluster-details-app.types.js';
|
|
5
5
|
type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
|
|
6
6
|
interface ConsoleClusterCreationParametersDto {
|
|
7
7
|
regions?: Array<{
|
|
@@ -439,11 +439,15 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
439
439
|
current: currentVersions?.connectorBridge ?? currentVersions?.zeebe,
|
|
440
440
|
target: targetVersions?.connectorBridge ?? targetVersions?.zeebe,
|
|
441
441
|
}),
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
442
|
+
// Generations still ship an Optimize image when the plan allocates no
|
|
443
|
+
// Optimize replicas, so gate on the plan (see the Optimize tile below).
|
|
444
|
+
cluster?.hasOptimize === false
|
|
445
|
+
? undefined
|
|
446
|
+
: versionDelta({
|
|
447
|
+
label: 'Optimize',
|
|
448
|
+
current: currentVersions?.optimize,
|
|
449
|
+
target: targetVersions?.optimize,
|
|
450
|
+
}),
|
|
447
451
|
].filter((value) => typeof value === 'string');
|
|
448
452
|
return items;
|
|
449
453
|
})();
|
|
@@ -1198,8 +1202,15 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
1198
1202
|
description: appDescription.operate,
|
|
1199
1203
|
linkLabel: launchLabel,
|
|
1200
1204
|
}),
|
|
1201
|
-
|
|
1202
|
-
|
|
1205
|
+
// `hasOptimize === false` means the plan allocates no Optimize replicas, so
|
|
1206
|
+
// console-backend never renders an Optimize spec for this cluster. Its
|
|
1207
|
+
// status/version fields can still be populated from a plan change that
|
|
1208
|
+
// disabled Optimize while the workloads were running, so they cannot gate the
|
|
1209
|
+
// tile on their own. `undefined` (plan not readable) keeps the legacy
|
|
1210
|
+
// status-based behaviour rather than hiding a tile we can't rule out.
|
|
1211
|
+
optimize: cluster.hasOptimize !== false &&
|
|
1212
|
+
(cluster.status?.optimizeStatus !== undefined ||
|
|
1213
|
+
cluster.generation?.versions?.optimize !== undefined)
|
|
1203
1214
|
? toAppTileProps({
|
|
1204
1215
|
name: 'Optimize',
|
|
1205
1216
|
status: cluster.status?.optimizeStatus,
|
|
@@ -1476,6 +1487,9 @@ const C4ClusterDetailsOverviewTabImpl = (props) => {
|
|
|
1476
1487
|
},
|
|
1477
1488
|
wakeLabel: safeTranslate(t, 'clusterdetails:overview.clusterDetails.status.wakeLabel', 'Resume cluster'),
|
|
1478
1489
|
wakeVisibility: canWakeCluster && !isClusterPausedReconciliation && !restoreInProgress,
|
|
1490
|
+
wakeDisabledReason: cluster?.isFailoverSource === true
|
|
1491
|
+
? safeTranslate(t, 'clusterdetails:overview.clusterDetails.status.wakeDisabledFailoverSource', 'This cluster was failed over and can no longer be resumed.')
|
|
1492
|
+
: undefined,
|
|
1479
1493
|
sleepAction: canSleepCluster && !isClusterPausedReconciliation && !restoreInProgress
|
|
1480
1494
|
? async () => {
|
|
1481
1495
|
const { ConsoleClusterService } = await import('@camunda/ccma-api');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RequestBaseParamsConfig } from '@camunda/ccma-api';
|
|
2
2
|
import { type ConsoleClusterDto } from '@camunda/ccma-shared-types';
|
|
3
3
|
import { type JSX } from 'react';
|
|
4
|
-
import type { C4ClusterDetailsNavigateEvent } from '../c4-cluster-details-app.types';
|
|
4
|
+
import type { C4ClusterDetailsNavigateEvent } from '../c4-cluster-details-app.types.js';
|
|
5
5
|
type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
|
|
6
6
|
interface C4ClusterDetailsSettingsTabProps {
|
|
7
7
|
cluster: ConsoleClusterDto | undefined;
|