@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
|
@@ -1,488 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { ConsoleClusterService } from '@camunda/ccma-api';
|
|
8
|
-
import '@testing-library/jest-dom/vitest';
|
|
9
|
-
import { cleanup, render, screen, waitFor } from '@testing-library/react';
|
|
10
|
-
import userEvent from '@testing-library/user-event';
|
|
11
|
-
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi, } from 'vitest';
|
|
12
|
-
import { C4ConsoleRuntimeProvider } from '../../../runtime/c4-console-runtime-context.js';
|
|
13
|
-
import { C4ClusterDetailsSettingsTab } from './c4-cluster-details-settings-tab.js';
|
|
14
|
-
const stubDocsUrls = {
|
|
15
|
-
resourceAuthorizations: 'https://docs.example/rba',
|
|
16
|
-
identityAuthorization: 'https://docs.example/identity-auth',
|
|
17
|
-
swagger: 'https://docs.example/swagger',
|
|
18
|
-
mcpOverview: 'https://docs.example/mcp-overview',
|
|
19
|
-
msTeamsIntegration: 'https://docs.example/ms-teams',
|
|
20
|
-
tasklistApiVersions: 'https://docs.example/tasklist-api-versions',
|
|
21
|
-
multiTenancy: 'https://docs.example/multi-tenancy',
|
|
22
|
-
byoidp: 'https://docs.example/byoidp',
|
|
23
|
-
};
|
|
24
|
-
const resizeObserverStub = class ResizeObserver {
|
|
25
|
-
observe() { }
|
|
26
|
-
unobserve() { }
|
|
27
|
-
disconnect() { }
|
|
28
|
-
};
|
|
29
|
-
const originalResizeObserver = globalThis.ResizeObserver;
|
|
30
|
-
vi.mock('@camunda/ccma-api', async () => {
|
|
31
|
-
const actual = await vi.importActual('@camunda/ccma-api');
|
|
32
|
-
return {
|
|
33
|
-
...actual,
|
|
34
|
-
ConsoleClusterService: {
|
|
35
|
-
...actual.ConsoleClusterService,
|
|
36
|
-
updateCluster: vi.fn(),
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
});
|
|
40
|
-
let lastClusterSettingsProps;
|
|
41
|
-
vi.mock('../../../components/c4-cluster-settings/c4-cluster-settings', () => {
|
|
42
|
-
return {
|
|
43
|
-
C4ClusterSettings: (props) => {
|
|
44
|
-
lastClusterSettingsProps = props;
|
|
45
|
-
return (_jsxs("div", { "data-testid": 'C4ClusterSettings', children: [props.tasklistSettings?.action ? (_jsx("button", { type: 'button', onClick: props.tasklistSettings.action.onClick, disabled: props.tasklistSettings.action.disabled, children: props.tasklistSettings.action.label })) : null, props.settings?.resourceBasedAuthorizations?.action ? (_jsx("button", { type: 'button', onClick: props.settings.resourceBasedAuthorizations.action.onClick, children: props.settings.resourceBasedAuthorizations.action.label })) : null, props.settings?.identityBasedAuthorizations?.action ? (_jsx("button", { type: 'button', onClick: props.settings.identityBasedAuthorizations.action.onClick, children: props.settings.identityBasedAuthorizations.action.label })) : null, props.settings?.multiTenancy?.action ? (_jsx("button", { type: 'button', onClick: () => {
|
|
46
|
-
Promise.resolve(props.settings.multiTenancy?.action.onClick()).catch(() => undefined);
|
|
47
|
-
}, disabled: !props.settings.multiTenancy.permissions?.mayToggle, children: props.settings.multiTenancy.action.label })) : null, props.settings?.swaggerToggle?.description] }));
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
function createCluster(options) {
|
|
52
|
-
return {
|
|
53
|
-
uuid: 'cluster-1',
|
|
54
|
-
ownerId: 'owner-1',
|
|
55
|
-
name: 'Cluster 1',
|
|
56
|
-
status: {
|
|
57
|
-
ready: 'Ready',
|
|
58
|
-
},
|
|
59
|
-
created: new Date('2026-01-01T00:00:00.000Z'),
|
|
60
|
-
planType: {
|
|
61
|
-
uuid: 'plan-type-1',
|
|
62
|
-
name: 'plan-type-1',
|
|
63
|
-
activePlan: {
|
|
64
|
-
uuid: 'plan-1',
|
|
65
|
-
name: 'plan-1',
|
|
66
|
-
},
|
|
67
|
-
description: 'plan',
|
|
68
|
-
category: 'developer',
|
|
69
|
-
},
|
|
70
|
-
generation: {
|
|
71
|
-
uuid: 'generation-1',
|
|
72
|
-
name: '8.8',
|
|
73
|
-
versions: {
|
|
74
|
-
zeebe: options.zeebeVersion,
|
|
75
|
-
},
|
|
76
|
-
upgradeableFrom: [],
|
|
77
|
-
createdBy: 'tester',
|
|
78
|
-
created: new Date('2026-01-01T00:00:00.000Z'),
|
|
79
|
-
updatedBy: 'tester',
|
|
80
|
-
updated: new Date('2026-01-01T00:00:00.000Z'),
|
|
81
|
-
},
|
|
82
|
-
rba: false,
|
|
83
|
-
identityBackendChecksEnabled: false,
|
|
84
|
-
autoUpdate: false,
|
|
85
|
-
enforceGroups: false,
|
|
86
|
-
externalMetadata: {
|
|
87
|
-
tasklistV2Enabled: options.tasklistV2Enabled,
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function renderTab(options) {
|
|
92
|
-
lastClusterSettingsProps = undefined;
|
|
93
|
-
const cluster = createCluster({ zeebeVersion: options.zeebeVersion });
|
|
94
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
95
|
-
stage: 'dev',
|
|
96
|
-
auth: {
|
|
97
|
-
getAccessToken: async () => 'token',
|
|
98
|
-
},
|
|
99
|
-
backendUrls: {},
|
|
100
|
-
featureFlags: options.featureFlags ?? {
|
|
101
|
-
isEnabled: () => true,
|
|
102
|
-
},
|
|
103
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
|
|
104
|
-
if (!lastClusterSettingsProps) {
|
|
105
|
-
throw new Error('Expected C4ClusterSettings to be rendered');
|
|
106
|
-
}
|
|
107
|
-
return lastClusterSettingsProps.settings;
|
|
108
|
-
}
|
|
109
|
-
function renderTasklistTab(options) {
|
|
110
|
-
lastClusterSettingsProps = undefined;
|
|
111
|
-
const cluster = createCluster({
|
|
112
|
-
zeebeVersion: options.zeebeVersion,
|
|
113
|
-
tasklistV2Enabled: options.tasklistV2Enabled,
|
|
114
|
-
});
|
|
115
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
116
|
-
stage: 'dev',
|
|
117
|
-
auth: {
|
|
118
|
-
getAccessToken: async () => 'token',
|
|
119
|
-
},
|
|
120
|
-
backendUrls: {},
|
|
121
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: options.canEditCluster, canDeleteCluster: false, canManageUsers: false, t: (k) => k, onReloadCluster: async () => undefined, onRequestDelete: () => undefined, docsUrls: {
|
|
122
|
-
resourceAuthorizations: '',
|
|
123
|
-
identityAuthorization: '',
|
|
124
|
-
swagger: '',
|
|
125
|
-
mcpOverview: '',
|
|
126
|
-
msTeamsIntegration: '',
|
|
127
|
-
tasklistApiVersions: '',
|
|
128
|
-
multiTenancy: '',
|
|
129
|
-
byoidp: '',
|
|
130
|
-
} }) }));
|
|
131
|
-
}
|
|
132
|
-
describe('C4ClusterDetailsSettingsTab version gating', () => {
|
|
133
|
-
beforeAll(() => {
|
|
134
|
-
globalThis.ResizeObserver = resizeObserverStub;
|
|
135
|
-
});
|
|
136
|
-
beforeEach(() => {
|
|
137
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockReset();
|
|
138
|
-
});
|
|
139
|
-
afterEach(() => {
|
|
140
|
-
cleanup();
|
|
141
|
-
});
|
|
142
|
-
afterAll(() => {
|
|
143
|
-
globalThis.ResizeObserver = originalResizeObserver;
|
|
144
|
-
});
|
|
145
|
-
it('shows the Tasklist v2 upgrade section for eligible v1 clusters', () => {
|
|
146
|
-
renderTab({ zeebeVersion: 'zeebe:8.8.0-alpha2' });
|
|
147
|
-
expect(lastClusterSettingsProps?.tasklistSettings).toEqual(expect.objectContaining({
|
|
148
|
-
enabled: true,
|
|
149
|
-
action: expect.objectContaining({
|
|
150
|
-
label: 'Upgrade to Tasklist v2',
|
|
151
|
-
}),
|
|
152
|
-
}));
|
|
153
|
-
});
|
|
154
|
-
it('hides the Tasklist v2 upgrade section for 8.10.0-alpha1 clusters', () => {
|
|
155
|
-
renderTab({ zeebeVersion: 'zeebe:8.10.0-alpha1' });
|
|
156
|
-
expect(lastClusterSettingsProps?.tasklistSettings).toBeUndefined();
|
|
157
|
-
});
|
|
158
|
-
it('upgrades an eligible v1 cluster to Tasklist v2 from settings', async () => {
|
|
159
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
|
|
160
|
-
const onReloadCluster = vi.fn(async () => undefined);
|
|
161
|
-
lastClusterSettingsProps = undefined;
|
|
162
|
-
const cluster = createCluster({
|
|
163
|
-
zeebeVersion: 'zeebe:8.8.0-alpha2',
|
|
164
|
-
tasklistV2Enabled: false,
|
|
165
|
-
});
|
|
166
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
167
|
-
stage: 'dev',
|
|
168
|
-
auth: {
|
|
169
|
-
getAccessToken: async () => 'token',
|
|
170
|
-
},
|
|
171
|
-
backendUrls: {},
|
|
172
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', docsUrls: stubDocsUrls, apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, onReloadCluster: onReloadCluster, onRequestDelete: () => undefined }) }));
|
|
173
|
-
await userEvent.click(screen.getByRole('button', { name: 'Upgrade to Tasklist v2' }));
|
|
174
|
-
expect(ConsoleClusterService.updateCluster).not.toHaveBeenCalled();
|
|
175
|
-
expect(await screen.findByRole('heading', { name: 'Upgrade to Tasklist v2' })).toBeInTheDocument();
|
|
176
|
-
const upgradeButtons = screen.getAllByRole('button', {
|
|
177
|
-
name: 'Upgrade to Tasklist v2',
|
|
178
|
-
});
|
|
179
|
-
await userEvent.click(upgradeButtons[upgradeButtons.length - 1]);
|
|
180
|
-
await waitFor(() => {
|
|
181
|
-
expect(ConsoleClusterService.updateCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
182
|
-
body: { tasklistV2Enabled: true },
|
|
183
|
-
}));
|
|
184
|
-
});
|
|
185
|
-
expect(onReloadCluster).toHaveBeenCalled();
|
|
186
|
-
});
|
|
187
|
-
it('disables the Tasklist v2 upgrade action when the user cannot update the cluster', () => {
|
|
188
|
-
renderTasklistTab({
|
|
189
|
-
zeebeVersion: 'zeebe:8.8.0-alpha2',
|
|
190
|
-
canEditCluster: false,
|
|
191
|
-
tasklistV2Enabled: false,
|
|
192
|
-
});
|
|
193
|
-
expect(screen.getByRole('button', { name: 'Upgrade to Tasklist v2' })).toBeDisabled();
|
|
194
|
-
});
|
|
195
|
-
it('does not show "Enable authorizations" for 8.7-SNAPSHOT', () => {
|
|
196
|
-
const settings = renderTab({ zeebeVersion: 'zeebe:8.7-SNAPSHOT' });
|
|
197
|
-
expect(settings.identityBasedAuthorizations).toBeUndefined();
|
|
198
|
-
expect(settings.resourceBasedAuthorizations).toBeDefined();
|
|
199
|
-
});
|
|
200
|
-
it('shows "Enable authorizations" for 8.8-SNAPSHOT', () => {
|
|
201
|
-
const settings = renderTab({ zeebeVersion: 'zeebe:8.8-SNAPSHOT' });
|
|
202
|
-
expect(settings.identityBasedAuthorizations).toBeDefined();
|
|
203
|
-
expect(settings.resourceBasedAuthorizations).toBeUndefined();
|
|
204
|
-
});
|
|
205
|
-
it('shows "Enable authorizations" for >= 8.8.0-alpha5', () => {
|
|
206
|
-
const settings = renderTab({ zeebeVersion: 'zeebe:8.8.0-alpha5' });
|
|
207
|
-
expect(settings.identityBasedAuthorizations).toBeDefined();
|
|
208
|
-
expect(settings.resourceBasedAuthorizations).toBeUndefined();
|
|
209
|
-
});
|
|
210
|
-
it('opens a confirmation dialog before enabling resource-based authorizations', async () => {
|
|
211
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
|
|
212
|
-
const onReloadCluster = vi.fn(async () => undefined);
|
|
213
|
-
lastClusterSettingsProps = undefined;
|
|
214
|
-
const cluster = createCluster({ zeebeVersion: 'zeebe:8.7-SNAPSHOT' });
|
|
215
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
216
|
-
stage: 'dev',
|
|
217
|
-
auth: {
|
|
218
|
-
getAccessToken: async () => 'token',
|
|
219
|
-
},
|
|
220
|
-
backendUrls: {},
|
|
221
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: onReloadCluster, onRequestDelete: () => undefined }) }));
|
|
222
|
-
await userEvent.click(screen.getByRole('button', {
|
|
223
|
-
name: 'Resource-based authorizations',
|
|
224
|
-
}));
|
|
225
|
-
expect(ConsoleClusterService.updateCluster).not.toHaveBeenCalled();
|
|
226
|
-
expect(await screen.findByText('Enable resource-based authorizations')).toBeInTheDocument();
|
|
227
|
-
await userEvent.click(screen.getByRole('button', { name: 'Enable' }));
|
|
228
|
-
await waitFor(() => {
|
|
229
|
-
expect(ConsoleClusterService.updateCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
230
|
-
body: { rba: true },
|
|
231
|
-
}));
|
|
232
|
-
});
|
|
233
|
-
expect(onReloadCluster).toHaveBeenCalled();
|
|
234
|
-
});
|
|
235
|
-
it('opens a confirmation dialog before enabling authorizations for 8.8+', async () => {
|
|
236
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
|
|
237
|
-
const onReloadCluster = vi.fn(async () => undefined);
|
|
238
|
-
lastClusterSettingsProps = undefined;
|
|
239
|
-
const cluster = createCluster({ zeebeVersion: 'zeebe:8.8-SNAPSHOT' });
|
|
240
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
241
|
-
stage: 'dev',
|
|
242
|
-
auth: {
|
|
243
|
-
getAccessToken: async () => 'token',
|
|
244
|
-
},
|
|
245
|
-
backendUrls: {},
|
|
246
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: onReloadCluster, onRequestDelete: () => undefined }) }));
|
|
247
|
-
await userEvent.click(screen.getByRole('button', { name: 'Enable authorizations' }));
|
|
248
|
-
expect(ConsoleClusterService.updateCluster).not.toHaveBeenCalled();
|
|
249
|
-
expect(await screen.findByRole('heading', { name: 'Enable authorizations' })).toBeInTheDocument();
|
|
250
|
-
await userEvent.click(screen.getByRole('button', { name: 'Enable' }));
|
|
251
|
-
await waitFor(() => {
|
|
252
|
-
expect(ConsoleClusterService.updateCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
253
|
-
body: { identityBackendChecksEnabled: true },
|
|
254
|
-
}));
|
|
255
|
-
});
|
|
256
|
-
expect(onReloadCluster).toHaveBeenCalled();
|
|
257
|
-
});
|
|
258
|
-
it('does not show Multi-tenancy toggle below 8.8.0-alpha7', () => {
|
|
259
|
-
const settings = renderTab({ zeebeVersion: 'zeebe:8.8.0-alpha6' });
|
|
260
|
-
expect(settings.multiTenancy).toBeUndefined();
|
|
261
|
-
});
|
|
262
|
-
it('shows Multi-tenancy toggle at 8.8.0-alpha7+', () => {
|
|
263
|
-
const settings = renderTab({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
|
|
264
|
-
expect(settings.multiTenancy).toBeDefined();
|
|
265
|
-
expect(settings.multiTenancy?.action.label).toBe('Multi-tenancy');
|
|
266
|
-
});
|
|
267
|
-
it('flips Multi-tenancy via PATCH and reloads the cluster', async () => {
|
|
268
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
|
|
269
|
-
const onReloadCluster = vi.fn(async () => undefined);
|
|
270
|
-
lastClusterSettingsProps = undefined;
|
|
271
|
-
const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
|
|
272
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
273
|
-
stage: 'dev',
|
|
274
|
-
auth: { getAccessToken: async () => 'token' },
|
|
275
|
-
backendUrls: {},
|
|
276
|
-
featureFlags: { isEnabled: () => true },
|
|
277
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: onReloadCluster, onRequestDelete: () => undefined }) }));
|
|
278
|
-
await userEvent.click(screen.getByRole('button', { name: 'Multi-tenancy' }));
|
|
279
|
-
await waitFor(() => {
|
|
280
|
-
expect(ConsoleClusterService.updateCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
281
|
-
body: { multiTenancyEnabled: true },
|
|
282
|
-
}));
|
|
283
|
-
});
|
|
284
|
-
expect(onReloadCluster).toHaveBeenCalled();
|
|
285
|
-
});
|
|
286
|
-
it('disables the Multi-tenancy toggle when canEditCluster=false', () => {
|
|
287
|
-
lastClusterSettingsProps = undefined;
|
|
288
|
-
const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
|
|
289
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
290
|
-
stage: 'dev',
|
|
291
|
-
auth: { getAccessToken: async () => 'token' },
|
|
292
|
-
backendUrls: {},
|
|
293
|
-
featureFlags: { isEnabled: () => true },
|
|
294
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: false, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
|
|
295
|
-
expect(screen.getByRole('button', { name: 'Multi-tenancy' })).toBeDisabled();
|
|
296
|
-
});
|
|
297
|
-
it('captures exception when the Multi-tenancy PATCH throws', async () => {
|
|
298
|
-
const apiError = new Error('boom');
|
|
299
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockRejectedValue(apiError);
|
|
300
|
-
const captureException = vi.fn();
|
|
301
|
-
const onReloadCluster = vi.fn(async () => undefined);
|
|
302
|
-
const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
|
|
303
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
304
|
-
stage: 'dev',
|
|
305
|
-
auth: { getAccessToken: async () => 'token' },
|
|
306
|
-
backendUrls: {},
|
|
307
|
-
featureFlags: { isEnabled: () => true },
|
|
308
|
-
telemetry: {
|
|
309
|
-
track: () => undefined,
|
|
310
|
-
captureException,
|
|
311
|
-
},
|
|
312
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: onReloadCluster, onRequestDelete: () => undefined }) }));
|
|
313
|
-
await userEvent.click(screen.getByRole('button', { name: 'Multi-tenancy' }));
|
|
314
|
-
await waitFor(() => {
|
|
315
|
-
expect(captureException).toHaveBeenCalledWith(apiError, expect.objectContaining({
|
|
316
|
-
eventName: 'multiTenancy:true:confirm',
|
|
317
|
-
}));
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
it('hides the Multi-tenancy toggle when the feature flag is off, even at 8.8.0-alpha7', () => {
|
|
321
|
-
lastClusterSettingsProps = undefined;
|
|
322
|
-
const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
|
|
323
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
324
|
-
stage: 'dev',
|
|
325
|
-
auth: { getAccessToken: async () => 'token' },
|
|
326
|
-
backendUrls: {},
|
|
327
|
-
featureFlags: {
|
|
328
|
-
isEnabled: (key) => key !== 'console.multiTenancy',
|
|
329
|
-
},
|
|
330
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
|
|
331
|
-
const captured = lastClusterSettingsProps;
|
|
332
|
-
if (!captured) {
|
|
333
|
-
throw new Error('Expected C4ClusterSettings to be rendered');
|
|
334
|
-
}
|
|
335
|
-
expect(captured.settings.multiTenancy).toBeUndefined();
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
describe('C4ClusterDetailsSettingsTab safeTranslate fallback', () => {
|
|
339
|
-
beforeAll(() => {
|
|
340
|
-
globalThis.ResizeObserver = resizeObserverStub;
|
|
341
|
-
});
|
|
342
|
-
afterEach(() => {
|
|
343
|
-
cleanup();
|
|
344
|
-
});
|
|
345
|
-
afterAll(() => {
|
|
346
|
-
globalThis.ResizeObserver = originalResizeObserver;
|
|
347
|
-
});
|
|
348
|
-
it('uses fallback text when i18next returns a namespace-stripped key on a miss', () => {
|
|
349
|
-
// i18next strips the namespace prefix on a cache miss, returning e.g.
|
|
350
|
-
// "settings.multiTenancy.title" instead of "clusterdetails:settings.multiTenancy.title".
|
|
351
|
-
const t = (key) => key.includes(':') ? key.split(':').slice(1).join(':') : key;
|
|
352
|
-
lastClusterSettingsProps = undefined;
|
|
353
|
-
const cluster = createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha7' });
|
|
354
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
355
|
-
stage: 'dev',
|
|
356
|
-
auth: { getAccessToken: async () => 'token' },
|
|
357
|
-
backendUrls: {},
|
|
358
|
-
featureFlags: { isEnabled: () => true },
|
|
359
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: t, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
|
|
360
|
-
const captured = lastClusterSettingsProps;
|
|
361
|
-
if (!captured) {
|
|
362
|
-
throw new Error('Expected C4ClusterSettings to be rendered');
|
|
363
|
-
}
|
|
364
|
-
expect(captured.settings.multiTenancy?.action.label).toBe('Multi-tenancy');
|
|
365
|
-
});
|
|
366
|
-
});
|
|
367
|
-
describe('C4ClusterDetailsSettingsTab swagger URL', () => {
|
|
368
|
-
beforeAll(() => {
|
|
369
|
-
globalThis.ResizeObserver = resizeObserverStub;
|
|
370
|
-
});
|
|
371
|
-
beforeEach(() => {
|
|
372
|
-
lastClusterSettingsProps = undefined;
|
|
373
|
-
});
|
|
374
|
-
afterEach(() => {
|
|
375
|
-
cleanup();
|
|
376
|
-
});
|
|
377
|
-
afterAll(() => {
|
|
378
|
-
globalThis.ResizeObserver = originalResizeObserver;
|
|
379
|
-
});
|
|
380
|
-
function renderSwaggerTab(options) {
|
|
381
|
-
const cluster = {
|
|
382
|
-
...createCluster({ zeebeVersion: 'zeebe:8.8.0-alpha8' }),
|
|
383
|
-
status: {
|
|
384
|
-
ready: 'Ready',
|
|
385
|
-
...(options.operateUrl && { operateUrl: options.operateUrl }),
|
|
386
|
-
},
|
|
387
|
-
externalMetadata: {
|
|
388
|
-
swagger: options.swagger ?? true,
|
|
389
|
-
},
|
|
390
|
-
};
|
|
391
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
392
|
-
stage: 'dev',
|
|
393
|
-
auth: { getAccessToken: async () => 'token' },
|
|
394
|
-
backendUrls: {},
|
|
395
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
|
|
396
|
-
}
|
|
397
|
-
it('shows swagger URL in operate.* format for 8.8.x clusters', () => {
|
|
398
|
-
renderSwaggerTab({
|
|
399
|
-
swagger: true,
|
|
400
|
-
operateUrl: 'https://lpp-1.operate.dev.ultrawombat.com/cluster-1',
|
|
401
|
-
});
|
|
402
|
-
// 8.8.0-alpha8 < 8.9.0 → use operate.{domain} with /swagger-ui/index.html path
|
|
403
|
-
const expectedUrl = 'https://lpp-1.operate.dev.ultrawombat.com/cluster-1/swagger-ui/index.html';
|
|
404
|
-
expect(screen.getByRole('link', { name: expectedUrl })).toBeInTheDocument();
|
|
405
|
-
});
|
|
406
|
-
it('shows swagger URL in api.* format for 8.9+ clusters', () => {
|
|
407
|
-
const cluster = {
|
|
408
|
-
...createCluster({ zeebeVersion: 'zeebe:8.9.0' }),
|
|
409
|
-
status: {
|
|
410
|
-
ready: 'Ready',
|
|
411
|
-
operateUrl: 'https://lpp-1.operate.dev.ultrawombat.com/cluster-1',
|
|
412
|
-
},
|
|
413
|
-
externalMetadata: { swagger: true },
|
|
414
|
-
};
|
|
415
|
-
render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
416
|
-
stage: 'dev',
|
|
417
|
-
auth: { getAccessToken: async () => 'token' },
|
|
418
|
-
backendUrls: {},
|
|
419
|
-
}, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
|
|
420
|
-
// 8.9.0 >= 8.9.0 → use api.{domain} with /swagger path
|
|
421
|
-
const expectedUrl = 'https://lpp-1.api.dev.ultrawombat.com/cluster-1/swagger';
|
|
422
|
-
expect(screen.getByRole('link', { name: expectedUrl })).toBeInTheDocument();
|
|
423
|
-
});
|
|
424
|
-
it('hides swagger URL link when swagger is disabled', () => {
|
|
425
|
-
renderSwaggerTab({
|
|
426
|
-
swagger: false,
|
|
427
|
-
operateUrl: 'https://lpp-1.operate.dev.ultrawombat.com/cluster-1',
|
|
428
|
-
});
|
|
429
|
-
expect(screen.queryByRole('link', {
|
|
430
|
-
name: /ultrawombat\.com.*swagger/,
|
|
431
|
-
})).not.toBeInTheDocument();
|
|
432
|
-
});
|
|
433
|
-
});
|
|
434
|
-
describe('app integrations toggle', () => {
|
|
435
|
-
beforeAll(() => {
|
|
436
|
-
globalThis.ResizeObserver = resizeObserverStub;
|
|
437
|
-
});
|
|
438
|
-
beforeEach(() => {
|
|
439
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockReset();
|
|
440
|
-
});
|
|
441
|
-
afterEach(() => {
|
|
442
|
-
cleanup();
|
|
443
|
-
});
|
|
444
|
-
afterAll(() => {
|
|
445
|
-
globalThis.ResizeObserver = originalResizeObserver;
|
|
446
|
-
});
|
|
447
|
-
it('is visible for an 8.9 stream cluster at 8.9.12', () => {
|
|
448
|
-
const settings = renderTab({ zeebeVersion: '8.9.12' });
|
|
449
|
-
expect(settings.appIntegrationsToggle).toBeDefined();
|
|
450
|
-
});
|
|
451
|
-
it('is hidden for an 8.9 stream cluster below 8.9.12', () => {
|
|
452
|
-
const settings = renderTab({ zeebeVersion: '8.9.11' });
|
|
453
|
-
expect(settings.appIntegrationsToggle).toBeUndefined();
|
|
454
|
-
});
|
|
455
|
-
it('is hidden for 8.10.0-alpha2', () => {
|
|
456
|
-
const settings = renderTab({ zeebeVersion: '8.10.0-alpha2' });
|
|
457
|
-
expect(settings.appIntegrationsToggle).toBeUndefined();
|
|
458
|
-
});
|
|
459
|
-
it('is visible for 8.10.0-alpha3', () => {
|
|
460
|
-
const settings = renderTab({ zeebeVersion: '8.10.0-alpha3' });
|
|
461
|
-
expect(settings.appIntegrationsToggle).toBeDefined();
|
|
462
|
-
});
|
|
463
|
-
it('is visible for an 8.10 snapshot version', () => {
|
|
464
|
-
const settings = renderTab({ zeebeVersion: '8.10-SNAPSHOT' });
|
|
465
|
-
expect(settings.appIntegrationsToggle).toBeDefined();
|
|
466
|
-
});
|
|
467
|
-
it('is visible for an 8.10.0 snapshot version', () => {
|
|
468
|
-
const settings = renderTab({ zeebeVersion: '8.10.0-SNAPSHOT' });
|
|
469
|
-
expect(settings.appIntegrationsToggle).toBeDefined();
|
|
470
|
-
});
|
|
471
|
-
it('is hidden when the feature flag is off', () => {
|
|
472
|
-
const settings = renderTab({
|
|
473
|
-
zeebeVersion: '8.10.0-alpha3',
|
|
474
|
-
featureFlags: { isEnabled: () => false },
|
|
475
|
-
});
|
|
476
|
-
expect(settings.appIntegrationsToggle).toBeUndefined();
|
|
477
|
-
});
|
|
478
|
-
it('calls updateCluster with the flipped flag', async () => {
|
|
479
|
-
const settings = renderTab({ zeebeVersion: '8.9.12' });
|
|
480
|
-
vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue({});
|
|
481
|
-
settings.appIntegrationsToggle?.action.onClick();
|
|
482
|
-
await waitFor(() => {
|
|
483
|
-
expect(ConsoleClusterService.updateCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
484
|
-
body: { appIntegrationsEnabled: true },
|
|
485
|
-
}));
|
|
486
|
-
});
|
|
487
|
-
});
|
|
488
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
-
* You may not use this file except in compliance with the commercial license.
|
|
5
|
-
*/
|
|
6
|
-
import { describe, expect, it } from 'vitest';
|
|
7
|
-
import { toHostWithoutProtocol } from './url-utils.js';
|
|
8
|
-
describe('toHostWithoutProtocol', () => {
|
|
9
|
-
it('handles https URLs with path', () => {
|
|
10
|
-
expect(toHostWithoutProtocol('https://example.com:1234/zeebe')).toBe('example.com:1234');
|
|
11
|
-
});
|
|
12
|
-
it('handles http URLs', () => {
|
|
13
|
-
expect(toHostWithoutProtocol('http://example.com/')).toBe('example.com');
|
|
14
|
-
});
|
|
15
|
-
it('handles grpcs URLs', () => {
|
|
16
|
-
expect(toHostWithoutProtocol('grpcs://zeebe.example.com:443')).toBe('zeebe.example.com:443');
|
|
17
|
-
});
|
|
18
|
-
it('handles grpc URLs', () => {
|
|
19
|
-
expect(toHostWithoutProtocol('grpc://zeebe.example.com:26500')).toBe('zeebe.example.com:26500');
|
|
20
|
-
});
|
|
21
|
-
it('handles host:port without protocol', () => {
|
|
22
|
-
expect(toHostWithoutProtocol('zeebe.example.com:443')).toBe('zeebe.example.com:443');
|
|
23
|
-
});
|
|
24
|
-
it('returns empty string for scheme-only inputs', () => {
|
|
25
|
-
expect(toHostWithoutProtocol('grpcs:')).toBe('');
|
|
26
|
-
expect(toHostWithoutProtocol('grpc:')).toBe('');
|
|
27
|
-
expect(toHostWithoutProtocol('https:')).toBe('');
|
|
28
|
-
});
|
|
29
|
-
it('returns empty string for empty/undefined', () => {
|
|
30
|
-
expect(toHostWithoutProtocol(undefined)).toBe('');
|
|
31
|
-
expect(toHostWithoutProtocol('')).toBe('');
|
|
32
|
-
expect(toHostWithoutProtocol(' ')).toBe('');
|
|
33
|
-
});
|
|
34
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|