@camunda/ccma-saas-frontend 0.0.46 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
- package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
- package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
- package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
- package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
- package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
- 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 +69 -6
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
- package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
- package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
- package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
- package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
- package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
- package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
- package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
- package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
- package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +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.js +109 -9
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
- package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
- package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
- package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
- package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
- package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
- package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
- package/lib/esm/components/c4-search/c4-search-results.js +2 -1
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
- package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
- package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
- package/lib/esm/components/c4-stat/c4-stat.js +1 -6
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
- package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
- package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
- package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
- package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
- package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
- package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
- package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
- package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
- package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
- package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
- package/lib/esm/externalUrls.const.d.ts +2 -0
- package/lib/esm/externalUrls.const.js +7 -0
- package/lib/esm/externalUrls.const.spec.js +2 -0
- package/lib/esm/i18n/c4-console-i18n.js +8 -0
- package/lib/esm/i18n/en/entities/orgroles.json +0 -16
- package/lib/esm/i18n/en/modals/clusters.json +0 -8
- package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
- package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
- package/lib/esm/index.d.ts +33 -1
- package/lib/esm/index.js +23 -1
- package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
- package/lib/esm/runtime/c4-console-authz.js +59 -29
- package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
- package/lib/esm/runtime/c4-console-data-context.js +40 -0
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
- package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
- package/lib/esm/runtime/c4-console-data-store.js +145 -31
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
- package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
- package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
- package/lib/esm/runtime/c4-console-events-context.js +62 -0
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
- package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
- package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
- package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
- package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
- package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
- package/lib/esm/runtime/c4-user-theme.js +106 -0
- package/lib/esm/runtime/decode-access-token.d.ts +12 -0
- package/lib/esm/runtime/decode-access-token.js +39 -0
- package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
- package/lib/esm/runtime/nav/camunda-apps.js +100 -0
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
- package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
- package/lib/esm/runtime/to-api-config.js +4 -0
- package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
- package/lib/esm/ui/c4-modal-dialog.js +35 -0
- package/lib/esm/ui/families.d.ts +42 -0
- package/lib/esm/ui/families.js +46 -0
- package/lib/esm/ui/index.d.ts +32 -0
- package/lib/esm/ui/index.js +95 -0
- package/lib/esm/ui/switchable.d.ts +14 -0
- package/lib/esm/ui/switchable.js +27 -0
- package/lib/esm/ui/tabs.d.ts +21 -0
- package/lib/esm/ui/tabs.js +27 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
- package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
- package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +132 -23
- package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
- package/lib/esm/widgets/management/c4-management-page.js +1 -6
- package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
- package/lib/esm/widgets/management/management-tabs.js +76 -0
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
- package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
- package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
- package/lib/esm/widgets/use-extend-trial.js +36 -0
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
- package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
- package/package.json +16 -7
|
@@ -41,12 +41,16 @@ vi.mock('@camunda/ccma-api', async () => {
|
|
|
41
41
|
...actual,
|
|
42
42
|
ConsoleClusterService: {
|
|
43
43
|
updateCluster: vi.fn(),
|
|
44
|
+
wakeCluster: vi.fn(),
|
|
44
45
|
},
|
|
45
46
|
SaaSJobsService: {
|
|
46
47
|
getJobStatisticsGlobal: vi.fn(),
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
});
|
|
51
|
+
vi.mock('../../../notifications/c4-console-notifications-handle', () => ({
|
|
52
|
+
addC4ConsoleNotification: vi.fn(),
|
|
53
|
+
}));
|
|
50
54
|
vi.mock('@camunda/camunda-composite-components', async () => {
|
|
51
55
|
const actual = await vi.importActual('@camunda/camunda-composite-components');
|
|
52
56
|
return {
|
|
@@ -257,21 +261,63 @@ describe('C4ClusterDetailsOverviewTab job statistics fetching', () => {
|
|
|
257
261
|
linkVisible: true,
|
|
258
262
|
}));
|
|
259
263
|
});
|
|
260
|
-
it('
|
|
264
|
+
it('routes the connectors Manage link in-app via onNavigate instead of a full page load', async () => {
|
|
265
|
+
const onNavigate = vi.fn();
|
|
261
266
|
renderTab({
|
|
262
|
-
|
|
267
|
+
onNavigate,
|
|
263
268
|
cluster: buildCluster('Healthy', {
|
|
264
269
|
zeebeVersion: 'zeebe:8.8.8',
|
|
265
270
|
connectorBridgeVersion: 'connector-bridge:8.8.8',
|
|
266
271
|
}),
|
|
267
272
|
});
|
|
268
273
|
await screen.findByTestId('cluster-overview');
|
|
274
|
+
const connectors = lastOverviewProps?.applications?.applications?.connectors;
|
|
275
|
+
// The href is preserved for accessibility / open-in-new-tab, but the click
|
|
276
|
+
// is intercepted for in-app routing.
|
|
277
|
+
expect(connectors?.link).toEqual(expect.objectContaining({
|
|
278
|
+
url: '/org/org-1/cluster/cluster-1/connectors/management',
|
|
279
|
+
label: 'Manage',
|
|
280
|
+
visible: true,
|
|
281
|
+
}));
|
|
282
|
+
act(() => {
|
|
283
|
+
connectors?.link?.onClick?.();
|
|
284
|
+
});
|
|
285
|
+
expect(onNavigate).toHaveBeenCalledWith({
|
|
286
|
+
kind: 'connectorManagement',
|
|
287
|
+
orgId: 'org-1',
|
|
288
|
+
clusterId: 'cluster-1',
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
it('hides the connectors link for pre-8.8 clusters when canViewConnectorsLink is false', async () => {
|
|
292
|
+
renderTab({
|
|
293
|
+
canViewConnectorsLink: false,
|
|
294
|
+
cluster: buildCluster('Healthy', {
|
|
295
|
+
zeebeVersion: 'zeebe:8.6.12',
|
|
296
|
+
connectorBridgeVersion: 'connector-bridge:8.6.12',
|
|
297
|
+
}),
|
|
298
|
+
});
|
|
299
|
+
await screen.findByTestId('cluster-overview');
|
|
269
300
|
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
270
301
|
linkLabel: 'Manage',
|
|
271
302
|
linkVisible: false,
|
|
272
303
|
}));
|
|
273
304
|
});
|
|
274
|
-
it('
|
|
305
|
+
it('shows the connectors link for 8.8+ clusters even when canViewConnectorsLink is false', async () => {
|
|
306
|
+
renderTab({
|
|
307
|
+
canViewConnectorsLink: false,
|
|
308
|
+
cluster: buildCluster('Healthy', {
|
|
309
|
+
zeebeVersion: 'zeebe:8.8.8',
|
|
310
|
+
connectorBridgeVersion: 'connector-bridge:8.8.8',
|
|
311
|
+
}),
|
|
312
|
+
});
|
|
313
|
+
await screen.findByTestId('cluster-overview');
|
|
314
|
+
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
315
|
+
url: '/org/org-1/cluster/cluster-1/connectors/management',
|
|
316
|
+
linkLabel: 'Manage',
|
|
317
|
+
linkVisible: true,
|
|
318
|
+
}));
|
|
319
|
+
});
|
|
320
|
+
it('hides the connectors link for pre-8.7 clusters even when canViewConnectorsLink is true', async () => {
|
|
275
321
|
renderTab({
|
|
276
322
|
cluster: buildCluster('Healthy', {
|
|
277
323
|
zeebeVersion: 'zeebe:8.6.12',
|
|
@@ -280,8 +326,40 @@ describe('C4ClusterDetailsOverviewTab job statistics fetching', () => {
|
|
|
280
326
|
});
|
|
281
327
|
await screen.findByTestId('cluster-overview');
|
|
282
328
|
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
283
|
-
|
|
284
|
-
|
|
329
|
+
linkLabel: 'Manage',
|
|
330
|
+
linkVisible: false,
|
|
331
|
+
}));
|
|
332
|
+
});
|
|
333
|
+
it('hides the connectors link for pre-8.7 clusters without a connectors url even when canViewConnectorsLink is true', async () => {
|
|
334
|
+
const cluster = buildCluster('Healthy', {
|
|
335
|
+
zeebeVersion: 'zeebe:8.6.12',
|
|
336
|
+
connectorBridgeVersion: 'connector-bridge:8.6.12',
|
|
337
|
+
});
|
|
338
|
+
const clusterWithoutConnectorsUrl = {
|
|
339
|
+
...cluster,
|
|
340
|
+
status: {
|
|
341
|
+
...cluster.status,
|
|
342
|
+
connectorsUrl: undefined,
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
renderTab({ cluster: clusterWithoutConnectorsUrl });
|
|
346
|
+
await screen.findByTestId('cluster-overview');
|
|
347
|
+
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
348
|
+
linkLabel: 'Manage',
|
|
349
|
+
linkVisible: false,
|
|
350
|
+
}));
|
|
351
|
+
});
|
|
352
|
+
it('shows the internal connectors link for 8.7 clusters when canViewConnectorsLink is true', async () => {
|
|
353
|
+
renderTab({
|
|
354
|
+
cluster: buildCluster('Healthy', {
|
|
355
|
+
zeebeVersion: 'zeebe:8.7.3',
|
|
356
|
+
connectorBridgeVersion: 'connector-bridge:8.7.3',
|
|
357
|
+
}),
|
|
358
|
+
});
|
|
359
|
+
await screen.findByTestId('cluster-overview');
|
|
360
|
+
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
361
|
+
url: '/org/org-1/cluster/cluster-1/connectors/management',
|
|
362
|
+
linkLabel: 'Manage',
|
|
285
363
|
linkVisible: true,
|
|
286
364
|
}));
|
|
287
365
|
});
|
|
@@ -603,13 +681,13 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
|
|
|
603
681
|
afterEach(() => {
|
|
604
682
|
cleanup();
|
|
605
683
|
});
|
|
606
|
-
function
|
|
684
|
+
function renderVersionPicker(props) {
|
|
607
685
|
return render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
608
686
|
stage: 'dev',
|
|
609
687
|
auth: { getAccessToken: async () => 'token' },
|
|
610
688
|
backendUrls: {},
|
|
611
689
|
featureFlags: {
|
|
612
|
-
isEnabled: (
|
|
690
|
+
isEnabled: () => false,
|
|
613
691
|
},
|
|
614
692
|
}, children: _jsx(C4ClusterDetailsOverviewTab, { ...defaultProps, ...props }) }));
|
|
615
693
|
}
|
|
@@ -628,7 +706,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
|
|
|
628
706
|
},
|
|
629
707
|
},
|
|
630
708
|
];
|
|
631
|
-
|
|
709
|
+
renderVersionPicker({ cluster, canEditCluster: true });
|
|
632
710
|
await screen.findByTestId('cluster-overview');
|
|
633
711
|
act(() => {
|
|
634
712
|
lastOverviewProps?.details.generation.update.updateStates.updateAvailable.action?.();
|
|
@@ -636,7 +714,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
|
|
|
636
714
|
await screen.findByText(/Update cluster generation from/i);
|
|
637
715
|
expect(screen.queryByText('Select target version')).toBeNull();
|
|
638
716
|
});
|
|
639
|
-
it('shows the version picker when
|
|
717
|
+
it('shows the version picker when multiple options exist', async () => {
|
|
640
718
|
const user = userEvent.setup();
|
|
641
719
|
const cluster = buildCluster('Healthy', { zeebeVersion: 'zeebe:8.9.0' });
|
|
642
720
|
hoisted.upgradableGenerations = [
|
|
@@ -663,7 +741,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
|
|
|
663
741
|
},
|
|
664
742
|
},
|
|
665
743
|
];
|
|
666
|
-
|
|
744
|
+
renderVersionPicker({ cluster, canEditCluster: true });
|
|
667
745
|
await screen.findByTestId('cluster-overview');
|
|
668
746
|
act(() => {
|
|
669
747
|
lastOverviewProps?.details.generation.update.updateStates.updateAvailable.action?.();
|
|
@@ -708,7 +786,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
|
|
|
708
786
|
},
|
|
709
787
|
},
|
|
710
788
|
];
|
|
711
|
-
|
|
789
|
+
renderVersionPicker({ cluster, canEditCluster: true });
|
|
712
790
|
await screen.findByTestId('cluster-overview');
|
|
713
791
|
act(() => {
|
|
714
792
|
lastOverviewProps?.details.generation.update.updateStates.updateAvailable.action?.();
|
|
@@ -1078,18 +1156,15 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
|
|
|
1078
1156
|
...buildCluster('Healthy'),
|
|
1079
1157
|
externalMetadata: { optimizeEnabled: false },
|
|
1080
1158
|
};
|
|
1081
|
-
function
|
|
1159
|
+
function renderWithDisabledOptimize(canEditCluster) {
|
|
1082
1160
|
return render(_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
1083
1161
|
stage: 'dev',
|
|
1084
1162
|
auth: { getAccessToken: async () => 'token' },
|
|
1085
1163
|
backendUrls: {},
|
|
1086
|
-
featureFlags: {
|
|
1087
|
-
isEnabled: (key) => key === 'console.optimizeScalingForTrials',
|
|
1088
|
-
},
|
|
1089
1164
|
}, children: _jsx(C4ClusterDetailsOverviewTab, { ...defaultProps, cluster: disabledOptimizeCluster, canEditCluster: canEditCluster }) }));
|
|
1090
1165
|
}
|
|
1091
1166
|
it('shows "Enable Optimize" CTA with onClick when canEditCluster=true', async () => {
|
|
1092
|
-
|
|
1167
|
+
renderWithDisabledOptimize(true);
|
|
1093
1168
|
await screen.findByTestId('cluster-overview');
|
|
1094
1169
|
const optimize = lastOverviewProps?.applications?.applications?.optimize;
|
|
1095
1170
|
expect(optimize?.description).toContain('Optimize is not active for this cluster');
|
|
@@ -1100,7 +1175,7 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
|
|
|
1100
1175
|
expect(optimize?.status).toBeUndefined();
|
|
1101
1176
|
});
|
|
1102
1177
|
it('shows "Ask an admin" message with no link when canEditCluster=false', async () => {
|
|
1103
|
-
|
|
1178
|
+
renderWithDisabledOptimize(false);
|
|
1104
1179
|
await screen.findByTestId('cluster-overview');
|
|
1105
1180
|
const optimize = lastOverviewProps?.applications?.applications?.optimize;
|
|
1106
1181
|
expect(optimize?.description).toContain('Ask an admin to enable it');
|
|
@@ -1108,7 +1183,7 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
|
|
|
1108
1183
|
expect(optimize?.status).toBeUndefined();
|
|
1109
1184
|
});
|
|
1110
1185
|
it('clicking Enable Optimize link opens the activation modal', async () => {
|
|
1111
|
-
|
|
1186
|
+
renderWithDisabledOptimize(true);
|
|
1112
1187
|
await screen.findByTestId('cluster-overview');
|
|
1113
1188
|
expect(screen.queryByRole('dialog', { name: /Enable Optimize/i })).toBeNull();
|
|
1114
1189
|
const optimize = lastOverviewProps?.applications?.applications?.optimize;
|
|
@@ -1120,7 +1195,7 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
|
|
|
1120
1195
|
});
|
|
1121
1196
|
it('confirming in the activation modal calls updateCluster with optimizeEnabled: true', async () => {
|
|
1122
1197
|
vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
|
|
1123
|
-
|
|
1198
|
+
renderWithDisabledOptimize(true);
|
|
1124
1199
|
await screen.findByTestId('cluster-overview');
|
|
1125
1200
|
const optimize = lastOverviewProps?.applications?.applications?.optimize;
|
|
1126
1201
|
act(() => {
|
|
@@ -1138,3 +1213,43 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
|
|
|
1138
1213
|
});
|
|
1139
1214
|
});
|
|
1140
1215
|
});
|
|
1216
|
+
describe('C4ClusterDetailsOverviewTab Resume cluster', () => {
|
|
1217
|
+
beforeEach(() => {
|
|
1218
|
+
lastOverviewProps = undefined;
|
|
1219
|
+
vi.mocked(ConsoleClusterService.wakeCluster).mockReset();
|
|
1220
|
+
vi.mocked(SaaSJobsService.getJobStatisticsGlobal).mockResolvedValue(undefined);
|
|
1221
|
+
});
|
|
1222
|
+
afterEach(() => {
|
|
1223
|
+
cleanup();
|
|
1224
|
+
});
|
|
1225
|
+
it('calls wakeCluster API when wakeAction is invoked', async () => {
|
|
1226
|
+
vi.mocked(ConsoleClusterService.wakeCluster).mockResolvedValue(undefined);
|
|
1227
|
+
const onReloadCluster = vi.fn().mockResolvedValue(undefined);
|
|
1228
|
+
renderTab({
|
|
1229
|
+
cluster: buildCluster('Suspended'),
|
|
1230
|
+
canWakeCluster: true,
|
|
1231
|
+
onReloadCluster,
|
|
1232
|
+
});
|
|
1233
|
+
await screen.findByTestId('cluster-overview');
|
|
1234
|
+
await act(async () => {
|
|
1235
|
+
await lastOverviewProps?.details?.status?.wakeAction?.();
|
|
1236
|
+
});
|
|
1237
|
+
expect(ConsoleClusterService.wakeCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
1238
|
+
params: { orgId: 'org-1', clusterId: 'cluster-1' },
|
|
1239
|
+
}));
|
|
1240
|
+
expect(onReloadCluster).toHaveBeenCalled();
|
|
1241
|
+
});
|
|
1242
|
+
it('shows error notification when wakeCluster fails', async () => {
|
|
1243
|
+
vi.mocked(ConsoleClusterService.wakeCluster).mockRejectedValue(new Error('wake failed'));
|
|
1244
|
+
const { addC4ConsoleNotification } = await import('../../../notifications/c4-console-notifications-handle');
|
|
1245
|
+
renderTab({ cluster: buildCluster('Suspended'), canWakeCluster: true });
|
|
1246
|
+
await screen.findByTestId('cluster-overview');
|
|
1247
|
+
await act(async () => {
|
|
1248
|
+
await lastOverviewProps?.details?.status?.wakeAction?.();
|
|
1249
|
+
});
|
|
1250
|
+
expect(addC4ConsoleNotification).toHaveBeenCalledWith(expect.objectContaining({
|
|
1251
|
+
kind: 'error',
|
|
1252
|
+
title: 'Failed to resume cluster',
|
|
1253
|
+
}));
|
|
1254
|
+
});
|
|
1255
|
+
});
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleSecureConnectivityService } from '@camunda/ccma-api';
|
|
3
3
|
import { isValidAwsArn, isValidPrivateLinkRegion, PRIVATE_LINK_REGIONS, SECURE_CONNECTIVITY_ALLOWED_ENTRIES_LIMIT, SseEntity, } from '@camunda/ccma-shared-types';
|
|
4
|
-
import {
|
|
4
|
+
import { ButtonSet, InlineLoading, ProgressIndicator, ProgressStep, } from '@carbon/react';
|
|
5
5
|
import { Checkmark, Close } from '@carbon/react/icons/index.esm.js';
|
|
6
6
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
import { C4ClusterDetailsSecureConnectivity } from '../../../components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js';
|
|
8
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
9
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../../../components/c4-structured-list/c4-structured-list.js';
|
|
8
10
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
9
11
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
12
|
+
import { Button, ComposedModal, FilterableMultiSelect, Modal, ModalBody, ModalFooter, ModalHeader, Stack, TextInput, Tile, } from '../../../ui/index.js';
|
|
10
13
|
function safeTranslate(t, key, fallback) {
|
|
11
14
|
if (!t)
|
|
12
15
|
return fallback;
|
|
@@ -139,7 +142,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
139
142
|
fontSize: '0.875rem',
|
|
140
143
|
fontWeight: 600,
|
|
141
144
|
color: 'var(--cds-text-secondary)',
|
|
142
|
-
}, children: "Principals" }), _jsx(
|
|
145
|
+
}, children: "Principals" }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: allowedPrincipals.length > 0 ? (allowedPrincipals.map((principal) => (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsxs("div", { style: {
|
|
143
146
|
display: 'flex',
|
|
144
147
|
alignItems: 'center',
|
|
145
148
|
justifyContent: 'space-between',
|
|
@@ -147,7 +150,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
147
150
|
}, children: [_jsx("span", { style: { flexGrow: 1 }, children: principal }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon: Close, iconDescription: 'Remove principal', onClick: () => {
|
|
148
151
|
setSecureConnectivityMutationError('');
|
|
149
152
|
setAllowedPrincipals(allowedPrincipals.filter((item) => item !== principal));
|
|
150
|
-
} })] }) }) }, principal)))) : (_jsx(
|
|
153
|
+
} })] }) }) }, principal)))) : (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsx("div", { style: {
|
|
151
154
|
display: 'flex',
|
|
152
155
|
alignItems: 'center',
|
|
153
156
|
justifyContent: 'space-between',
|
|
@@ -179,7 +182,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
179
182
|
fontSize: '0.875rem',
|
|
180
183
|
fontWeight: 600,
|
|
181
184
|
color: 'var(--cds-text-secondary)',
|
|
182
|
-
}, children: "Selected regions" }), _jsx(
|
|
185
|
+
}, children: "Selected regions" }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: allowedRegions.length > 0 ? (allowedRegions.map((region) => (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsxs("div", { style: {
|
|
183
186
|
display: 'flex',
|
|
184
187
|
alignItems: 'center',
|
|
185
188
|
justifyContent: 'space-between',
|
|
@@ -188,7 +191,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
188
191
|
setShowAllowedRegionsLimitReached(false);
|
|
189
192
|
setSecureConnectivityMutationError('');
|
|
190
193
|
setAllowedRegions(allowedRegions.filter((item) => item !== region));
|
|
191
|
-
} })] }) }) }, region)))) : (_jsx(
|
|
194
|
+
} })] }) }) }, region)))) : (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsx("div", { style: {
|
|
192
195
|
display: 'flex',
|
|
193
196
|
alignItems: 'center',
|
|
194
197
|
justifyContent: 'space-between',
|
|
@@ -353,7 +356,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
353
356
|
hasTooManyAllowedPrincipals) ||
|
|
354
357
|
(secureConnectivityEditMode === 'regions' && hasTooManyAllowedRegions);
|
|
355
358
|
const emptyDescription = (_jsxs(Stack, { gap: 6, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description0', 'Private networking allows you to connect privately to the cluster using inbound AWS PrivateLink.') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description1', 'With inbound PrivateLink, traffic from your AWS VPC to Camunda cluster is routed privately and never traverses the public internet. This enables job workers and inbound connectors to run inside your own network while securely accessing Camunda.') }), showActivatingTile ? (_jsx(Tile, { light: true, children: _jsxs(Stack, { gap: 2, children: [_jsx(InlineLoading, { description: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingTitle', 'Activating PrivateLink endpoint service…') }), _jsxs(Stack, { gap: 1, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingText0', 'This may take a few minutes.') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingText1', 'You can leave this page. We will notify you when the endpoint service is ready.') })] })] }) })) : undefined] }));
|
|
356
|
-
return (_jsxs(_Fragment, { children: [showActivePrivateLinkIpAllowlistConflict && (_jsx(
|
|
359
|
+
return (_jsxs(_Fragment, { children: [showActivePrivateLinkIpAllowlistConflict && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle, style: {
|
|
357
360
|
maxWidth: '100%',
|
|
358
361
|
width: '100%',
|
|
359
362
|
marginBottom: 'var(--cds-spacing-05)',
|
|
@@ -432,7 +435,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
432
435
|
}
|
|
433
436
|
closeActivateModal();
|
|
434
437
|
return true;
|
|
435
|
-
}, children: [_jsx(ModalHeader, { title: safeTranslate(t, 'clusterdetails:secureConnectivity.enableButton', 'Activate PrivateLink endpoint service') }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [hasIpAllowlist && (_jsx(
|
|
438
|
+
}, children: [_jsx(ModalHeader, { title: safeTranslate(t, 'clusterdetails:secureConnectivity.enableButton', 'Activate PrivateLink endpoint service') }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [hasIpAllowlist && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle })), secureConnectivityMutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: 'Activation failed', subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), _jsxs(ProgressIndicator, { currentIndex: secureConnectivityModalStep, spaceEqually: true, onChange: setSecureConnectivityModalStep, children: [_jsx(ProgressStep, { label: 'Allowed principals' }, 'private-link-step-0'), _jsx(ProgressStep, { label: 'Supported regions' }, 'private-link-step-1')] }), (() => {
|
|
436
439
|
switch (secureConnectivityModalStep) {
|
|
437
440
|
case 0:
|
|
438
441
|
return renderAllowedPrincipalsEditor('activateModal');
|
|
@@ -522,7 +525,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
522
525
|
}
|
|
523
526
|
closeUpdateModal();
|
|
524
527
|
return true;
|
|
525
|
-
}, children: [_jsx(ModalHeader, { title: updateModalTitle }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [secureConnectivityMutationError && (_jsx(
|
|
528
|
+
}, children: [_jsx(ModalHeader, { title: updateModalTitle }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [secureConnectivityMutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: updateModalErrorTitle, subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), secureConnectivityEditMode === 'regions'
|
|
526
529
|
? renderAllowedRegionsEditor()
|
|
527
530
|
: renderAllowedPrincipalsEditor('updateModal')] }) }), _jsx(ModalFooter, { children: _jsxs(ButtonSet, { style: { width: '100%' }, children: [_jsx(Button, { kind: 'secondary', disabled: secureConnectivityMutationBusy, onClick: closeUpdateModal, size: 'xl', style: { flex: 1, maxInlineSize: '100%' }, children: "Cancel" }), _jsx(Button, { kind: 'primary', disabled: isUpdateModalSaveDisabled, onClick: () => {
|
|
528
531
|
if (secureConnectivityEditMode === 'principals') {
|
|
@@ -574,5 +577,5 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
574
577
|
setSecureConnectivityDeactivating(false);
|
|
575
578
|
}
|
|
576
579
|
})();
|
|
577
|
-
}, children: _jsxs(Stack, { gap: 4, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody0', 'Are you sure you want to deactivate the PrivateLink endpoint service?') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody1', 'The private connectivity will be disabled for the Camunda cluster and all endpoint connections will be removed.') }), secureConnectivityMutationError ? (_jsx(
|
|
580
|
+
}, children: _jsxs(Stack, { gap: 4, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody0', 'Are you sure you want to deactivate the PrivateLink endpoint service?') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody1', 'The private connectivity will be disabled for the Camunda cluster and all endpoint connections will be removed.') }), secureConnectivityMutationError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalErrorTitle', 'Deactivation failed'), subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })) : undefined] }) })] }));
|
|
578
581
|
};
|
|
@@ -21,8 +21,10 @@ interface C4ClusterDetailsSettingsTabProps {
|
|
|
21
21
|
identityAuthorization: string;
|
|
22
22
|
swagger: string;
|
|
23
23
|
mcpOverview: string;
|
|
24
|
+
msTeamsIntegration: string;
|
|
24
25
|
tasklistApiVersions: string;
|
|
25
26
|
multiTenancy: string;
|
|
27
|
+
byoidp: string;
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
export declare const C4ClusterDetailsSettingsTab: (props: C4ClusterDetailsSettingsTabProps) => JSX.Element;
|