@camunda/ccma-saas-frontend 0.3.1 → 0.5.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 +3 -3
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.js +90 -73
- 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/c4-advanced-search-filters.js +13 -13
- 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 +13 -2
- 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 +2 -2
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +31 -25
- 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/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-identity/c4-cluster-client-credentials-identity.d.ts +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-activity/c4-cluster-details-activity.js +11 -8
- 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 +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +21 -20
- 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 +1 -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-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +10 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +5 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.js +7 -1
- 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-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-cluster-tag-selector/c4-cluster-tag-selector.js +7 -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-data-table/c4-data-table.js +58 -4
- 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 +2 -47
- 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 +2 -2
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +9 -4
- 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 +2 -2
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -5
- 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-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 +2 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +2 -2
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +6 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +2 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +14 -8
- 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/recharts-tokens.d.ts +14 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +22 -1
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +14 -3
- 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 +19 -7
- package/lib/esm/runtime/c4-console-data-context.js +40 -15
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +6 -0
- package/lib/esm/runtime/c4-console-data-store.d.ts +12 -1
- package/lib/esm/runtime/c4-console-data-store.js +74 -34
- 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.js +11 -3
- package/lib/esm/runtime/to-api-config.d.ts +2 -2
- package/lib/esm/runtime/to-api-config.js +6 -0
- 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 +20 -0
- package/lib/esm/utils/role-labels.js +79 -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 +55 -2
- 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-connector-secrets-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +6 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +31 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +23 -8
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +5 -1
- 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 +115 -45
- 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 +2 -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.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/connector-management/c4-connector-management.shared.js +12 -3
- 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 +25 -6
- 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 +142 -22
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +16 -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 +4 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +63 -87
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.js +29 -82
- package/package.json +50 -30
- 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 -71
- 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 -26
- 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-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -121
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -263
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -80
- 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
|
@@ -1,502 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { ConsoleClusterService, GenerationService, HdpService, OrgsService, } from '@camunda/ccma-api';
|
|
8
|
-
import { ClusterEncryptionKey } from '@camunda/ccma-shared-types';
|
|
9
|
-
import { render, waitFor } from '@testing-library/react';
|
|
10
|
-
import { C4ConsoleDataProvider } from '../../runtime/c4-console-data-context.js';
|
|
11
|
-
import { C4ConsoleRuntimeProvider } from '../../runtime/c4-console-runtime-context.js';
|
|
12
|
-
import { C4ClustersPage } from './c4-clusters-page.js';
|
|
13
|
-
vi.mock('../../notifications/c4-console-notifications-handle', () => ({
|
|
14
|
-
addC4ConsoleNotification: vi.fn(),
|
|
15
|
-
}));
|
|
16
|
-
let lastClusterListProps;
|
|
17
|
-
let lastClustersEmptyStateProps;
|
|
18
|
-
const getDefaultAuthorization = () => ({
|
|
19
|
-
isLoading: false,
|
|
20
|
-
orgRoles: [],
|
|
21
|
-
features: {},
|
|
22
|
-
visibilities: {
|
|
23
|
-
clusters: {
|
|
24
|
-
canCreate: true,
|
|
25
|
-
canEdit: true,
|
|
26
|
-
canDelete: true,
|
|
27
|
-
canUpdateTag: true,
|
|
28
|
-
canSeeClusterLoad: true,
|
|
29
|
-
canWake: true,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
let authzMock = getDefaultAuthorization();
|
|
34
|
-
vi.mock('@camunda/ccma-api', async () => {
|
|
35
|
-
const actual = await vi.importActual('@camunda/ccma-api');
|
|
36
|
-
return {
|
|
37
|
-
...actual,
|
|
38
|
-
ConsoleClusterService: {
|
|
39
|
-
getClusters: vi.fn(),
|
|
40
|
-
deleteCluster: vi.fn(),
|
|
41
|
-
updateCluster: vi.fn(),
|
|
42
|
-
wakeCluster: vi.fn(),
|
|
43
|
-
},
|
|
44
|
-
OrgsService: {
|
|
45
|
-
getOrgInfo: vi.fn(),
|
|
46
|
-
getMyOrgs: vi.fn(),
|
|
47
|
-
},
|
|
48
|
-
GenerationService: {
|
|
49
|
-
getUpgradableMulti: vi.fn(),
|
|
50
|
-
getGeneration: vi.fn(),
|
|
51
|
-
upgradeCluster: vi.fn(),
|
|
52
|
-
},
|
|
53
|
-
HdpService: {
|
|
54
|
-
getClusterCapacity: vi.fn(),
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
vi.mock('../../runtime/c4-console-authz', async (importActual) => {
|
|
59
|
-
const actual = await importActual();
|
|
60
|
-
return {
|
|
61
|
-
...actual,
|
|
62
|
-
useC4ConsoleAuthz: () => {
|
|
63
|
-
return authzMock;
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
});
|
|
67
|
-
vi.mock('../../components/c4-cluster-list/c4-cluster-list', () => {
|
|
68
|
-
return {
|
|
69
|
-
C4ClusterList: (props) => {
|
|
70
|
-
lastClusterListProps = props;
|
|
71
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { "data-testid": 'C4ClusterList' }), props.emptyStateContent] }));
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
vi.mock('../../components/c4-clusters-empty-state/c4-clusters-empty-state', () => {
|
|
76
|
-
return {
|
|
77
|
-
C4ClustersEmptyState: (props) => {
|
|
78
|
-
lastClustersEmptyStateProps = props;
|
|
79
|
-
return _jsx("div", { "data-testid": 'C4ClustersEmptyState' });
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
});
|
|
83
|
-
describe('C4ClustersPage', () => {
|
|
84
|
-
beforeEach(() => {
|
|
85
|
-
authzMock = getDefaultAuthorization();
|
|
86
|
-
lastClusterListProps = undefined;
|
|
87
|
-
lastClustersEmptyStateProps = undefined;
|
|
88
|
-
vi.mocked(ConsoleClusterService.getClusters).mockReset();
|
|
89
|
-
vi.mocked(HdpService.getClusterCapacity).mockReset();
|
|
90
|
-
vi.mocked(OrgsService.getOrgInfo).mockReset();
|
|
91
|
-
vi.mocked(OrgsService.getMyOrgs).mockReset();
|
|
92
|
-
vi.mocked(GenerationService.getUpgradableMulti).mockReset();
|
|
93
|
-
vi.mocked(GenerationService.getGeneration).mockReset();
|
|
94
|
-
vi.mocked(GenerationService.upgradeCluster).mockReset();
|
|
95
|
-
});
|
|
96
|
-
it('fetches clusters and maps them for C4ClusterList', async () => {
|
|
97
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
|
|
98
|
-
{
|
|
99
|
-
uuid: 'c1',
|
|
100
|
-
name: 'Cluster 1',
|
|
101
|
-
generation: 'G1',
|
|
102
|
-
type: 'prod',
|
|
103
|
-
region: 'eu',
|
|
104
|
-
status: { ready: 'healthy' },
|
|
105
|
-
labels: { camunda: ['dev'], custom: [] },
|
|
106
|
-
primaryEncryptionKeyId: null,
|
|
107
|
-
encryption: ClusterEncryptionKey.EXTERNAL,
|
|
108
|
-
},
|
|
109
|
-
]);
|
|
110
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([
|
|
111
|
-
{ current: { value: 0.42 } },
|
|
112
|
-
]);
|
|
113
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
114
|
-
uuid: 'org-1',
|
|
115
|
-
organizationToSalesPlan: {
|
|
116
|
-
trialStateExpired: false,
|
|
117
|
-
salesPlan: {
|
|
118
|
-
salesPlanType: 'trial',
|
|
119
|
-
},
|
|
120
|
-
trialExpirationDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000).toISOString(),
|
|
121
|
-
},
|
|
122
|
-
});
|
|
123
|
-
const onNavigate = vi.fn();
|
|
124
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
125
|
-
stage: 'dev',
|
|
126
|
-
auth: {
|
|
127
|
-
getAccessToken: async () => 'token',
|
|
128
|
-
},
|
|
129
|
-
backendUrls: {},
|
|
130
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1', onNavigate: onNavigate, gettingStartedHref: 'https://docs.example/getting-started' }) }) }));
|
|
131
|
-
await waitFor(() => {
|
|
132
|
-
expect(ConsoleClusterService.getClusters).toHaveBeenCalled();
|
|
133
|
-
});
|
|
134
|
-
await waitFor(() => {
|
|
135
|
-
expect(lastClusterListProps?.clusters).toHaveLength(1);
|
|
136
|
-
});
|
|
137
|
-
expect(lastClusterListProps?.orgId).toBe('org-1');
|
|
138
|
-
expect(lastClusterListProps?.clusters).toHaveLength(1);
|
|
139
|
-
expect(lastClusterListProps?.clusters[0]).toMatchObject({
|
|
140
|
-
id: 'c1',
|
|
141
|
-
name: 'Cluster 1',
|
|
142
|
-
generation: 'G1',
|
|
143
|
-
type: 'prod',
|
|
144
|
-
region: 'eu',
|
|
145
|
-
status: 'healthy',
|
|
146
|
-
tags: ['dev'],
|
|
147
|
-
currentClusterLoad: 0.42,
|
|
148
|
-
originalIndex: 0,
|
|
149
|
-
});
|
|
150
|
-
expect(lastClusterListProps?.encryptionNotification?.kind).toBe('warning');
|
|
151
|
-
lastClusterListProps?.onNavigate('/org/org-1/cluster/c1');
|
|
152
|
-
expect(onNavigate).toHaveBeenCalledWith({
|
|
153
|
-
kind: 'clusterDetails',
|
|
154
|
-
orgId: 'org-1',
|
|
155
|
-
clusterId: 'c1',
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
it('only treats dual-region clusters on a supported region pair as failover-eligible', async () => {
|
|
159
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
|
|
160
|
-
{
|
|
161
|
-
uuid: 'no-backup',
|
|
162
|
-
name: 'No backup region',
|
|
163
|
-
generation: 'G1',
|
|
164
|
-
type: 'prod',
|
|
165
|
-
region: 'eu',
|
|
166
|
-
status: { ready: 'healthy' },
|
|
167
|
-
labels: { camunda: [], custom: [] },
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
uuid: 'single-region',
|
|
171
|
-
name: 'Single region backup',
|
|
172
|
-
generation: 'G1',
|
|
173
|
-
type: 'prod',
|
|
174
|
-
region: 'eu',
|
|
175
|
-
status: { ready: 'healthy' },
|
|
176
|
-
labels: { camunda: [], custom: [] },
|
|
177
|
-
// A backup config is selected, but it only covers the primary region —
|
|
178
|
-
// there is nothing to fail over to.
|
|
179
|
-
backupRegionId: 'backup-cfg-single',
|
|
180
|
-
backupRegionCodes: ['eu-west-1'],
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
uuid: 'dual-region-unsupported-pair',
|
|
184
|
-
name: 'Dual region backup, unsupported pair',
|
|
185
|
-
generation: 'G1',
|
|
186
|
-
type: 'prod',
|
|
187
|
-
region: 'eu',
|
|
188
|
-
status: { ready: 'healthy' },
|
|
189
|
-
labels: { camunda: [], custom: [] },
|
|
190
|
-
// Dual-region, but the eu pair is not in SUPPORTED_FAILOVER_REGION_PAIRS.
|
|
191
|
-
backupRegionId: 'backup-cfg-dual',
|
|
192
|
-
backupRegionCodes: ['eu-west-1', 'eu-west-2'],
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
uuid: 'dual-region-sync-pending',
|
|
196
|
-
name: 'Dual region backup, initial sync not completed',
|
|
197
|
-
generation: 'G1',
|
|
198
|
-
type: 'prod',
|
|
199
|
-
region: 'us',
|
|
200
|
-
status: { ready: 'healthy' },
|
|
201
|
-
labels: { camunda: [], custom: [] },
|
|
202
|
-
backupRegionId: 'backup-cfg-dual-us',
|
|
203
|
-
backupRegionCodes: ['us-east-2', 'us-west-2'],
|
|
204
|
-
// secondaryBucketSyncCompleted absent — secondary bucket not synced yet.
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
uuid: 'dual-region-supported-pair',
|
|
208
|
-
name: 'Dual region backup, supported pair',
|
|
209
|
-
generation: 'G1',
|
|
210
|
-
type: 'prod',
|
|
211
|
-
region: 'us',
|
|
212
|
-
status: { ready: 'healthy' },
|
|
213
|
-
labels: { camunda: [], custom: [] },
|
|
214
|
-
backupRegionId: 'backup-cfg-dual-us',
|
|
215
|
-
backupRegionCodes: ['us-east-2', 'us-west-2'],
|
|
216
|
-
secondaryBucketSyncCompleted: true,
|
|
217
|
-
},
|
|
218
|
-
]);
|
|
219
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
220
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
221
|
-
uuid: 'org-1',
|
|
222
|
-
});
|
|
223
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
224
|
-
stage: 'dev',
|
|
225
|
-
auth: {
|
|
226
|
-
getAccessToken: async () => 'token',
|
|
227
|
-
},
|
|
228
|
-
backendUrls: {},
|
|
229
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1', onNavigate: vi.fn() }) }) }));
|
|
230
|
-
await waitFor(() => {
|
|
231
|
-
expect(lastClusterListProps?.clusters).toHaveLength(5);
|
|
232
|
-
});
|
|
233
|
-
const isMultiRegionCluster = lastClusterListProps?.isMultiRegionCluster;
|
|
234
|
-
// Failover is only offered for dual-region clusters whose region pair is
|
|
235
|
-
// in SUPPORTED_FAILOVER_REGION_PAIRS (#9120).
|
|
236
|
-
expect(isMultiRegionCluster?.('no-backup')).toBe(false);
|
|
237
|
-
expect(isMultiRegionCluster?.('single-region')).toBe(false);
|
|
238
|
-
expect(isMultiRegionCluster?.('dual-region-unsupported-pair')).toBe(false);
|
|
239
|
-
expect(isMultiRegionCluster?.('dual-region-sync-pending')).toBe(true);
|
|
240
|
-
expect(isMultiRegionCluster?.('dual-region-supported-pair')).toBe(true);
|
|
241
|
-
// Until the initial primary→secondary bucket sync completes, the action is
|
|
242
|
-
// rendered disabled with a user-visible reason (#9141), not hidden.
|
|
243
|
-
const isFailoverSyncPending = lastClusterListProps?.isFailoverSyncPending;
|
|
244
|
-
expect(isFailoverSyncPending?.('dual-region-sync-pending')).toBe(true);
|
|
245
|
-
expect(isFailoverSyncPending?.('dual-region-supported-pair')).toBe(false);
|
|
246
|
-
});
|
|
247
|
-
it('marks spec or legacy-label paused clusters as maintenance and suppresses update suffix', async () => {
|
|
248
|
-
authzMock.features = {
|
|
249
|
-
console: {
|
|
250
|
-
clusters: {
|
|
251
|
-
canUpgradeGeneration: true,
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
};
|
|
255
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
|
|
256
|
-
{
|
|
257
|
-
uuid: 'cluster-normal',
|
|
258
|
-
name: 'Cluster normal',
|
|
259
|
-
generation: '8.8',
|
|
260
|
-
generationUuid: 'gen-normal',
|
|
261
|
-
type: 'prod',
|
|
262
|
-
region: 'eu',
|
|
263
|
-
status: { ready: 'healthy' },
|
|
264
|
-
labels: { camunda: ['dev'], custom: [] },
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
uuid: 'cluster-spec-paused',
|
|
268
|
-
name: 'Cluster spec paused',
|
|
269
|
-
generation: '8.8',
|
|
270
|
-
generationUuid: 'gen-spec-paused',
|
|
271
|
-
type: 'prod',
|
|
272
|
-
region: 'eu',
|
|
273
|
-
status: { ready: 'healthy' },
|
|
274
|
-
labels: { camunda: ['dev'], custom: [] },
|
|
275
|
-
spec: { reconciliation: { paused: true } },
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
uuid: 'cluster-label-paused',
|
|
279
|
-
name: 'Cluster label paused',
|
|
280
|
-
generation: '8.8',
|
|
281
|
-
generationUuid: 'gen-label-paused',
|
|
282
|
-
type: 'prod',
|
|
283
|
-
region: 'eu',
|
|
284
|
-
status: { ready: 'healthy' },
|
|
285
|
-
labels: { camunda: ['dev'], custom: [] },
|
|
286
|
-
metadata: {
|
|
287
|
-
labels: { 'cloud.camunda.io/pauseReconciliation': 'true' },
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
]);
|
|
291
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
292
|
-
vi.mocked(GenerationService.getUpgradableMulti).mockResolvedValue({
|
|
293
|
-
preferred: { uuid: 'target-gen' },
|
|
294
|
-
options: [{ uuid: 'target-gen' }],
|
|
295
|
-
});
|
|
296
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
297
|
-
uuid: 'org-1',
|
|
298
|
-
organizationToSalesPlan: {
|
|
299
|
-
trialStateExpired: false,
|
|
300
|
-
salesPlan: {
|
|
301
|
-
salesPlanType: 'trial',
|
|
302
|
-
},
|
|
303
|
-
trialExpirationDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000).toISOString(),
|
|
304
|
-
},
|
|
305
|
-
});
|
|
306
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
307
|
-
stage: 'dev',
|
|
308
|
-
auth: {
|
|
309
|
-
getAccessToken: async () => 'token',
|
|
310
|
-
},
|
|
311
|
-
backendUrls: {},
|
|
312
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1' }) }) }));
|
|
313
|
-
await waitFor(() => {
|
|
314
|
-
expect(lastClusterListProps?.clusters).toHaveLength(3);
|
|
315
|
-
const normalCluster = lastClusterListProps?.clusters.find((cluster) => cluster.id === 'cluster-normal');
|
|
316
|
-
expect(normalCluster?.generation).toContain('update available');
|
|
317
|
-
const specPausedCluster = lastClusterListProps?.clusters.find((cluster) => cluster.id === 'cluster-spec-paused');
|
|
318
|
-
expect(specPausedCluster?.status).toBe('maintenance');
|
|
319
|
-
expect(specPausedCluster?.generation).toBe('8.8');
|
|
320
|
-
expect(specPausedCluster?.generation).not.toContain('update available');
|
|
321
|
-
const labelPausedCluster = lastClusterListProps?.clusters.find((cluster) => cluster.id === 'cluster-label-paused');
|
|
322
|
-
expect(labelPausedCluster?.status).toBe('maintenance');
|
|
323
|
-
expect(labelPausedCluster?.generation).toBe('8.8');
|
|
324
|
-
expect(labelPausedCluster?.generation).not.toContain('update available');
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
it('marks restoring clusters with the restoring status, taking precedence over paused', async () => {
|
|
328
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
|
|
329
|
-
{
|
|
330
|
-
uuid: 'cluster-restoring',
|
|
331
|
-
name: 'Cluster restoring',
|
|
332
|
-
generation: '8.8',
|
|
333
|
-
type: 'prod',
|
|
334
|
-
region: 'eu',
|
|
335
|
-
status: { ready: 'healthy' },
|
|
336
|
-
labels: { camunda: [], custom: [] },
|
|
337
|
-
// Restore pauses reconciliation, so this would otherwise resolve to
|
|
338
|
-
// 'maintenance'; restoreInProgress must win.
|
|
339
|
-
restoreInProgress: true,
|
|
340
|
-
spec: { reconciliation: { paused: true } },
|
|
341
|
-
},
|
|
342
|
-
]);
|
|
343
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
344
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
345
|
-
uuid: 'org-1',
|
|
346
|
-
});
|
|
347
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
348
|
-
stage: 'dev',
|
|
349
|
-
auth: { getAccessToken: async () => 'token' },
|
|
350
|
-
backendUrls: {},
|
|
351
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1' }) }) }));
|
|
352
|
-
await waitFor(() => {
|
|
353
|
-
const restoringCluster = lastClusterListProps?.clusters.find((cluster) => cluster.id === 'cluster-restoring');
|
|
354
|
-
expect(restoringCluster?.status).toBe('restoring');
|
|
355
|
-
});
|
|
356
|
-
});
|
|
357
|
-
it('merges permissionsOverride into derived permissions', async () => {
|
|
358
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([]);
|
|
359
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
360
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
361
|
-
uuid: 'org-1',
|
|
362
|
-
organizationToSalesPlan: {
|
|
363
|
-
trialStateExpired: false,
|
|
364
|
-
salesPlan: {
|
|
365
|
-
salesPlanType: 'trial',
|
|
366
|
-
},
|
|
367
|
-
trialExpirationDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000).toISOString(),
|
|
368
|
-
},
|
|
369
|
-
});
|
|
370
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
371
|
-
stage: 'dev',
|
|
372
|
-
auth: {
|
|
373
|
-
getAccessToken: async () => 'token',
|
|
374
|
-
},
|
|
375
|
-
backendUrls: {},
|
|
376
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1', gettingStartedHref: 'https://docs.example/getting-started', permissionsOverride: { canCreateCluster: false } }) }) }));
|
|
377
|
-
await waitFor(() => {
|
|
378
|
-
expect(lastClusterListProps).toBeDefined();
|
|
379
|
-
});
|
|
380
|
-
expect(lastClusterListProps?.permissions.canCreateCluster).toBe(false);
|
|
381
|
-
});
|
|
382
|
-
it('falls back to the default getting started href for blank values', async () => {
|
|
383
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([]);
|
|
384
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
385
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
386
|
-
uuid: 'org-1',
|
|
387
|
-
organizationToSalesPlan: {
|
|
388
|
-
trialStateExpired: false,
|
|
389
|
-
salesPlan: {
|
|
390
|
-
salesPlanType: 'trial',
|
|
391
|
-
},
|
|
392
|
-
trialExpirationDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000).toISOString(),
|
|
393
|
-
},
|
|
394
|
-
});
|
|
395
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
396
|
-
stage: 'dev',
|
|
397
|
-
auth: {
|
|
398
|
-
getAccessToken: async () => 'token',
|
|
399
|
-
},
|
|
400
|
-
backendUrls: {},
|
|
401
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1', gettingStartedHref: ' ' }) }) }));
|
|
402
|
-
await waitFor(() => {
|
|
403
|
-
expect(lastClustersEmptyStateProps?.variant).toBe('noClusters');
|
|
404
|
-
});
|
|
405
|
-
expect(lastClustersEmptyStateProps?.docsHref).toBe('https://docs.camunda.io/docs/guides/');
|
|
406
|
-
});
|
|
407
|
-
it('calls wakeCluster and re-fetches clusters when Resume is triggered', async () => {
|
|
408
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
|
|
409
|
-
{
|
|
410
|
-
uuid: 'c1',
|
|
411
|
-
name: 'Paused Cluster',
|
|
412
|
-
generation: 'G1',
|
|
413
|
-
type: 'prod',
|
|
414
|
-
region: 'eu',
|
|
415
|
-
status: { ready: 'suspended' },
|
|
416
|
-
labels: { camunda: [], custom: [] },
|
|
417
|
-
},
|
|
418
|
-
]);
|
|
419
|
-
vi.mocked(ConsoleClusterService.wakeCluster).mockResolvedValue(undefined);
|
|
420
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
421
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
422
|
-
uuid: 'org-1',
|
|
423
|
-
});
|
|
424
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
425
|
-
stage: 'dev',
|
|
426
|
-
auth: { getAccessToken: async () => 'token' },
|
|
427
|
-
backendUrls: {},
|
|
428
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1', onNavigate: vi.fn() }) }) }));
|
|
429
|
-
await waitFor(() => expect(lastClusterListProps?.clusters).toHaveLength(1));
|
|
430
|
-
lastClusterListProps.onWakeCluster('c1');
|
|
431
|
-
await waitFor(() => expect(ConsoleClusterService.wakeCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
432
|
-
params: { orgId: 'org-1', clusterId: 'c1' },
|
|
433
|
-
})));
|
|
434
|
-
await waitFor(() => expect(ConsoleClusterService.getClusters).toHaveBeenCalledTimes(2));
|
|
435
|
-
});
|
|
436
|
-
it('shows an error notification when wakeCluster fails', async () => {
|
|
437
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
|
|
438
|
-
{
|
|
439
|
-
uuid: 'c1',
|
|
440
|
-
name: 'Paused Cluster',
|
|
441
|
-
generation: 'G1',
|
|
442
|
-
type: 'prod',
|
|
443
|
-
region: 'eu',
|
|
444
|
-
status: { ready: 'suspended' },
|
|
445
|
-
labels: { camunda: [], custom: [] },
|
|
446
|
-
},
|
|
447
|
-
]);
|
|
448
|
-
vi.mocked(ConsoleClusterService.wakeCluster).mockRejectedValue(new Error('network error'));
|
|
449
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
450
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
451
|
-
uuid: 'org-1',
|
|
452
|
-
});
|
|
453
|
-
const { addC4ConsoleNotification } = await import('../../notifications/c4-console-notifications-handle');
|
|
454
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
455
|
-
stage: 'dev',
|
|
456
|
-
auth: { getAccessToken: async () => 'token' },
|
|
457
|
-
backendUrls: {},
|
|
458
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1', onNavigate: vi.fn() }) }) }));
|
|
459
|
-
await waitFor(() => expect(lastClusterListProps?.clusters).toHaveLength(1));
|
|
460
|
-
lastClusterListProps.onWakeCluster('c1');
|
|
461
|
-
await waitFor(() => expect(ConsoleClusterService.wakeCluster).toHaveBeenCalled());
|
|
462
|
-
await waitFor(() => expect(addC4ConsoleNotification).toHaveBeenCalledWith(expect.objectContaining({
|
|
463
|
-
kind: 'error',
|
|
464
|
-
title: 'Failed to resume cluster',
|
|
465
|
-
})));
|
|
466
|
-
});
|
|
467
|
-
it('passes onExtendTrial to empty state when org is eligible to self-extend', async () => {
|
|
468
|
-
authzMock = {
|
|
469
|
-
...getDefaultAuthorization(),
|
|
470
|
-
orgRoles: ['admin'],
|
|
471
|
-
};
|
|
472
|
-
vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([]);
|
|
473
|
-
vi.mocked(HdpService.getClusterCapacity).mockResolvedValue([]);
|
|
474
|
-
vi.mocked(OrgsService.getOrgInfo).mockResolvedValue({
|
|
475
|
-
uuid: 'org-1',
|
|
476
|
-
organizationToSalesPlan: {
|
|
477
|
-
trialStateExpired: true,
|
|
478
|
-
trialExtensionsUsed: 0,
|
|
479
|
-
salesPlan: {
|
|
480
|
-
salesPlanType: 'trial',
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
permissions: {
|
|
484
|
-
org: {
|
|
485
|
-
billing: {
|
|
486
|
-
update: true,
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
},
|
|
490
|
-
});
|
|
491
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
492
|
-
stage: 'dev',
|
|
493
|
-
auth: { getAccessToken: async () => 'token' },
|
|
494
|
-
backendUrls: {},
|
|
495
|
-
featureFlags: { isEnabled: () => true },
|
|
496
|
-
}, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ClustersPage, { orgId: 'org-1' }) }) }));
|
|
497
|
-
await waitFor(() => {
|
|
498
|
-
expect(lastClustersEmptyStateProps?.variant).toBe('trialExpiredAdmin');
|
|
499
|
-
});
|
|
500
|
-
expect(lastClustersEmptyStateProps?.onExtendTrial).toBeDefined();
|
|
501
|
-
});
|
|
502
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|