@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
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleIpWhitelistService, ConsoleSecureConnectivityService, } from '@camunda/ccma-api';
|
|
3
|
-
import { Form
|
|
4
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
3
|
+
import { Form } from '@carbon/react';
|
|
4
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import { C4ClusterDetailsIpWhitelist } from '../../../components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js';
|
|
6
|
+
import { C4CreateIpWhitelistModal } from '../../../components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js';
|
|
7
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
6
8
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
9
|
+
import { Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
7
10
|
// Helper function to ensure translations work
|
|
8
11
|
function safeTranslate(t, key, fallback) {
|
|
9
12
|
if (!t)
|
|
@@ -79,9 +82,9 @@ function stripI18nComponentPlaceholders(value) {
|
|
|
79
82
|
export const C4ClusterDetailsIpWhitelistTab = (props) => {
|
|
80
83
|
const { cluster, isClusterLoading, orgId, clusterId, docsUrl, apiConfig, canMutateCluster, t, onNavigate, onReloadCluster, } = props;
|
|
81
84
|
const runtime = useC4ConsoleRuntime();
|
|
85
|
+
const createIpWhitelistModalRef = useRef(null);
|
|
82
86
|
const [ipWhitelistItems, setIpWhitelistItems] = useState([]);
|
|
83
87
|
const [hasPrivateLink, setHasPrivateLink] = useState(false);
|
|
84
|
-
const [createIpOpen, setCreateIpOpen] = useState(false);
|
|
85
88
|
const [updateIpOpen, setUpdateIpOpen] = useState(false);
|
|
86
89
|
const [deleteIpOpen, setDeleteIpOpen] = useState(false);
|
|
87
90
|
const [ipMutationBusy, setIpMutationBusy] = useState(false);
|
|
@@ -152,7 +155,7 @@ export const C4ClusterDetailsIpWhitelistTab = (props) => {
|
|
|
152
155
|
...meta,
|
|
153
156
|
});
|
|
154
157
|
}, [clusterId, orgId, runtime.telemetry]);
|
|
155
|
-
return (_jsxs(_Fragment, { children: [showPrivateLinkConflictWarning && (_jsx(
|
|
158
|
+
return (_jsxs(_Fragment, { children: [showPrivateLinkConflictWarning && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: privateLinkConflictTitle, subtitle: privateLinkConflictSubtitle, style: {
|
|
156
159
|
maxWidth: '100%',
|
|
157
160
|
width: '100%',
|
|
158
161
|
marginBottom: 'var(--cds-spacing-05)',
|
|
@@ -177,10 +180,7 @@ export const C4ClusterDetailsIpWhitelistTab = (props) => {
|
|
|
177
180
|
canDelete: canMutateCluster,
|
|
178
181
|
}, onCreateIpWhitelist: () => {
|
|
179
182
|
trackEvent('clusterOverviewIpWhitelists:createModal:open', 'Open Create IP Whitelist Modal');
|
|
180
|
-
|
|
181
|
-
setIpDescription('');
|
|
182
|
-
setIpMutationError('');
|
|
183
|
-
setCreateIpOpen(true);
|
|
183
|
+
createIpWhitelistModalRef.current?.open();
|
|
184
184
|
}, onUpdateIpWhitelist: (ipIndex) => {
|
|
185
185
|
trackEvent('clusterOverviewIpWhitelists:updateModal:open', 'Open Update IP Whitelist Modal', { ipIndex });
|
|
186
186
|
const index = ipWhitelistItems.findIndex((ip) => ip.id === String(ipIndex));
|
|
@@ -205,36 +205,22 @@ export const C4ClusterDetailsIpWhitelistTab = (props) => {
|
|
|
205
205
|
kind: 'openUrl',
|
|
206
206
|
url: docsUrl,
|
|
207
207
|
});
|
|
208
|
-
} }), _jsx(
|
|
208
|
+
} }), _jsx(C4CreateIpWhitelistModal, { ref: createIpWhitelistModalRef, t: t, onCreateIpWhitelist: async ({ ip, description }) => {
|
|
209
|
+
await persistIpWhitelist([
|
|
210
|
+
...ipWhitelistItems,
|
|
211
|
+
{
|
|
212
|
+
id: String(ipWhitelistItems.length),
|
|
213
|
+
ip,
|
|
214
|
+
description,
|
|
215
|
+
},
|
|
216
|
+
]);
|
|
217
|
+
}, onCancel: () => {
|
|
209
218
|
trackEvent('clusterOverviewIpWhitelists:createModal:cancel', 'Close Create IP Whitelist Modal');
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
setIpMutationError('');
|
|
216
|
-
try {
|
|
217
|
-
await persistIpWhitelist([
|
|
218
|
-
...ipWhitelistItems,
|
|
219
|
-
{
|
|
220
|
-
id: String(ipWhitelistItems.length),
|
|
221
|
-
ip: ipValue,
|
|
222
|
-
description: ipDescription,
|
|
223
|
-
},
|
|
224
|
-
]);
|
|
225
|
-
setCreateIpOpen(false);
|
|
226
|
-
}
|
|
227
|
-
catch (error) {
|
|
228
|
-
setIpMutationError(error instanceof Error ? error.message : 'Failed');
|
|
229
|
-
captureTelemetryError(error, 'clusterOverviewIpWhitelists:createModal:confirm', 'Error while creating IP Whitelist');
|
|
230
|
-
}
|
|
231
|
-
finally {
|
|
232
|
-
setIpMutationBusy(false);
|
|
233
|
-
}
|
|
234
|
-
})();
|
|
235
|
-
}, children: _jsx(Form, { onSubmit: (e) => {
|
|
236
|
-
e.preventDefault();
|
|
237
|
-
}, children: _jsxs(Stack, { gap: 6, children: [ipMutationError && (_jsx(InlineNotification, { kind: 'error', title: safeTranslate(t, 'ipwhitelist:create.error.generic', "We're having trouble adding the IP(s)"), subtitle: ipMutationError, lowContrast: true, hideCloseButton: true })), _jsx(TextInput, { id: 'ip-input-whitelist-create', labelText: safeTranslate(t, 'ipwhitelist:create.fields.ips', 'IP(s)'), helperText: safeTranslate(t, 'ipwhitelist:create.fields.ipsHelper', 'Comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1'), value: ipValue, maxLength: 50, onChange: (event) => setIpValue(event.target.value) }), _jsx(TextInput, { id: 'name-input-whitelist-create', labelText: safeTranslate(t, 'ipwhitelist:create.fields.description', 'Description (optional)'), value: ipDescription, maxLength: 1024, onChange: (event) => setIpDescription(event.target.value) })] }) }) }), _jsx(Modal, { open: updateIpOpen, modalHeading: `${safeTranslate(t, 'ipwhitelist:update.heading', 'Update IP(s)')}: ${ipWhitelistItems[selectedIpIndex]?.ip ?? ''}`, primaryButtonText: safeTranslate(t, 'ipwhitelist:update.buttons.primary', 'Update'), secondaryButtonText: safeTranslate(t, 'ipwhitelist:update.buttons.secondary', 'Cancel'), primaryButtonDisabled: ipMutationBusy || ipValue.length === 0, onRequestClose: () => {
|
|
219
|
+
}, onSubmitStart: () => {
|
|
220
|
+
trackEvent('clusterOverviewIpWhitelists:createModal:confirm', 'Confirm Create IP Whitelist Modal');
|
|
221
|
+
}, onSubmitError: (error) => {
|
|
222
|
+
captureTelemetryError(error, 'clusterOverviewIpWhitelists:createModal:confirm', 'Error while creating IP Whitelist');
|
|
223
|
+
} }), _jsx(Modal, { open: updateIpOpen, modalHeading: `${safeTranslate(t, 'ipwhitelist:update.heading', 'Update IP(s)')}: ${ipWhitelistItems[selectedIpIndex]?.ip ?? ''}`, primaryButtonText: safeTranslate(t, 'ipwhitelist:update.buttons.primary', 'Update'), secondaryButtonText: safeTranslate(t, 'ipwhitelist:update.buttons.secondary', 'Cancel'), primaryButtonDisabled: ipMutationBusy || ipValue.length === 0, onRequestClose: () => {
|
|
238
224
|
trackEvent('clusterOverviewIpWhitelists:updateModal:cancel', 'Close Update IP Whitelist Modal', { ipIndex: selectedIpIndex });
|
|
239
225
|
setUpdateIpOpen(false);
|
|
240
226
|
}, onRequestSubmit: () => {
|
|
@@ -259,7 +245,7 @@ export const C4ClusterDetailsIpWhitelistTab = (props) => {
|
|
|
259
245
|
})();
|
|
260
246
|
}, children: _jsx(Form, { onSubmit: (e) => {
|
|
261
247
|
e.preventDefault();
|
|
262
|
-
}, children: _jsxs(Stack, { gap: 6, children: [ipMutationError && (_jsx(
|
|
248
|
+
}, children: _jsxs(Stack, { gap: 6, children: [ipMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'ipwhitelist:update.error.generic', "We're having trouble updating the IP(s)"), subtitle: ipMutationError, lowContrast: true, hideCloseButton: true })), _jsx(TextInput, { id: 'ip-input-whitelist-update', labelText: safeTranslate(t, 'ipwhitelist:create.fields.ips', 'IP(s)'), helperText: safeTranslate(t, 'ipwhitelist:create.fields.ipsHelper', 'Comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1'), value: ipValue, maxLength: 50, onChange: (event) => setIpValue(event.target.value) }), _jsx(TextInput, { id: 'name-input-whitelist-update', labelText: safeTranslate(t, 'ipwhitelist:create.fields.description', 'Description (optional)'), value: ipDescription, maxLength: 1024, onChange: (event) => setIpDescription(event.target.value) })] }) }) }), _jsx(Modal, { open: deleteIpOpen, danger: true, modalHeading: `${safeTranslate(t, 'ipwhitelist:delete.heading', 'Delete IP(s)')}: ${ipWhitelistItems[selectedIpIndex]?.ip ?? ''}`, primaryButtonText: safeTranslate(t, 'ipwhitelist:delete.buttons.primary', 'Delete'), secondaryButtonText: safeTranslate(t, 'ipwhitelist:delete.buttons.secondary', 'Cancel'), primaryButtonDisabled: ipMutationBusy, onRequestClose: () => {
|
|
263
249
|
trackEvent('clusterOverviewIpWhitelists:deleteModal:cancel', 'Close Delete IP Whitelist Modal', { ipIndex: selectedIpIndex });
|
|
264
250
|
setDeleteIpOpen(false);
|
|
265
251
|
}, onRequestSubmit: () => {
|
|
@@ -280,5 +266,5 @@ export const C4ClusterDetailsIpWhitelistTab = (props) => {
|
|
|
280
266
|
setIpMutationBusy(false);
|
|
281
267
|
}
|
|
282
268
|
})();
|
|
283
|
-
}, children: _jsxs(Stack, { gap: 6, children: [ipMutationError && (_jsx(
|
|
269
|
+
}, children: _jsxs(Stack, { gap: 6, children: [ipMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'ipwhitelist:delete.error.generic', "We're having trouble deleting the IP(s)"), subtitle: ipMutationError, lowContrast: true, hideCloseButton: true })), _jsx("p", { children: safeTranslate(t, 'ipwhitelist:delete.description', 'Are you sure you want to the delete these allowlisted IP(s)?') })] }) })] }));
|
|
284
270
|
};
|
|
@@ -7,17 +7,20 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
7
7
|
import { C3ClusterTag, useC3Profile, } from '@camunda/camunda-composite-components';
|
|
8
8
|
import { SaaSJobsService, } from '@camunda/ccma-api';
|
|
9
9
|
import { ClusterPlanTypeAvailabilityClass, ClusterPlanTypeCategory, checkVersion, MAX_HARDWARE_PACKAGE_COUNT, sortGenerationBySemverOfZeebe, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
10
|
-
import { Checkbox, InlineNotification, Link, Modal, RadioButton, RadioButtonGroup, Stack, Tag, } from '@carbon/react';
|
|
11
10
|
import { Api_1, ApiKey, CheckmarkFilled, Renew, Security, UserAccessLocked, } from '@carbon/react/icons/index.esm.js';
|
|
12
|
-
import { Fragment, useCallback, useEffect, useMemo, useState, } from 'react';
|
|
11
|
+
import { Fragment, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
13
12
|
import { normalizeClusterStatus } from '../../../components/c4-cluster-overview/applications.js';
|
|
14
13
|
import { C4ClusterOverview } from '../../../components/c4-cluster-overview/c4-cluster-overview.js';
|
|
15
14
|
import { C4Divider } from '../../../components/c4-divider/c4-divider.js';
|
|
15
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
16
16
|
import { C4MultiStepUglyModal } from '../../../components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js';
|
|
17
17
|
import { C4OptimizeActivationModal } from '../../../components/c4-optimize-activation-modal/c4-optimize-activation-modal.js';
|
|
18
|
+
import { addC4ConsoleNotification } from '../../../notifications/c4-console-notifications-handle.js';
|
|
18
19
|
import { buildClusterSwaggerUrl } from '../../../runtime/build-cluster-swagger-url.js';
|
|
19
20
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
20
21
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
22
|
+
import { Checkbox, Link, Modal, Stack, Tag } from '../../../ui/index.js';
|
|
23
|
+
import { useRadioFamily } from '../../../ui/families.js';
|
|
21
24
|
import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-paused.js';
|
|
22
25
|
// Helper function to ensure translations work
|
|
23
26
|
function safeTranslate(t, key, fallback, options) {
|
|
@@ -46,8 +49,10 @@ function isUuidLike(value) {
|
|
|
46
49
|
return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
|
|
47
50
|
}
|
|
48
51
|
export const C4ClusterDetailsOverviewTab = (props) => {
|
|
52
|
+
const { RadioButton, RadioButtonGroup } = useRadioFamily();
|
|
49
53
|
const c3Profile = useC3Profile();
|
|
50
54
|
const runtime = useC4ConsoleRuntime();
|
|
55
|
+
const wakeInFlight = useRef(false);
|
|
51
56
|
const { cluster, clusterError, creationParameters, clustersOfOrg, clusterPlanTypeReservations, clusterLoadLatest, clusterLoadPerDay, clusterLoad24h, clusterLoadLoading, canSeeClusterLoad, canEditCluster, canWakeCluster, canSleepCluster, canManageUsers, canViewConnectorsLink, hasIdentityIntegration, orgId, clusterId, jobDashboardEnabled, upgradeDocsUrls, statisticsConfig, apiConfig, t, onReloadCluster, onReloadClusterLoad, onNavigate, ignoreGracePeriod, clusterLoadDocsUrl, restoreInProgress, } = props;
|
|
52
57
|
const data = useC4ConsoleData();
|
|
53
58
|
const [tagModalOpen, setTagModalOpen] = useState(false);
|
|
@@ -242,9 +247,7 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
242
247
|
cluster?.externalMetadata,
|
|
243
248
|
cluster?.generation?.versions?.zeebe,
|
|
244
249
|
]);
|
|
245
|
-
const showVersionPicker =
|
|
246
|
-
(runtime.featureFlags?.isEnabled('console.upgradeVersionSelection') ??
|
|
247
|
-
false), [upgradableGenerations.length, runtime.featureFlags]);
|
|
250
|
+
const showVersionPicker = upgradableGenerations.length > 1;
|
|
248
251
|
const upgradeSteps = useMemo(() => {
|
|
249
252
|
const totalSteps = (showVersionPicker ? 1 : 0) +
|
|
250
253
|
(updateToIdentityAuthorization ? 5 : 0) +
|
|
@@ -367,7 +370,7 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
367
370
|
steps.push({
|
|
368
371
|
title: `Update available for Cluster ${cluster?.name ?? ''}.`,
|
|
369
372
|
label,
|
|
370
|
-
content: (_jsxs(Stack, { gap: 6, children: [_jsx(
|
|
373
|
+
content: (_jsxs(Stack, { gap: 6, children: [_jsx(C4InlineNotification, { lowContrast: true, kind: 'info', title: safeTranslate(t, 'clustermodals:upgrade.banner.tasklistV2Title', 'Tasklist v2 Upgrade'), hideCloseButton: true, children: _jsxs(Stack, { gap: 5, children: [_jsx("div", { style: { paddingTop: '4px' }, children: renderStrongTextTranslation(t, 'clustermodals:upgrade.banner.tasklistV2Line0', 'The Tasklist component currently uses the <0>deprecated</0> v1 API. We recommend upgrading to Tasklist v2, which integrates with the Orchestration Cluster API, uses the recommended Camunda user task implementation type, and offers improved performance.', { state: 'deprecated' }) }), _jsx("div", { children: renderStrongTextTranslation(t, 'clustermodals:upgrade.banner.tasklistV2Line1', "Before migrating to Tasklist v2, ensure that you're <0>not relying on</0> job worker-based user tasks, draft variables, or public start forms, as these features are only available in v1.", { support: 'not relying on' }) }), _jsx("div", { children: safeTranslate(t, 'clustermodals:upgrade.banner.tasklistV2Line2', 'After upgrading to v2, downgrading back to v1 will not be possible.') }), _jsx("div", { children: _jsx(Link, { rel: 'ignore', style: { cursor: 'pointer' }, onClick: () => {
|
|
371
374
|
window.open(upgradeDocsUrls?.tasklistApiVersions, '_blank', 'noopener,noreferrer');
|
|
372
375
|
}, children: safeTranslate(t, 'clustermodals:upgrade.banner.tasklistV2LearnMore', 'Learn more about upgrading from Tasklist v1 to v2') }) })] }) }), _jsxs(RadioButtonGroup, { name: 'upgrade-tasklist-mode', legendText: safeTranslate(t, 'clustermodals:upgrade.tasklistV2.legend', 'Select Tasklist version'), valueSelected: tasklistMode, orientation: 'vertical', onChange: (value) => {
|
|
373
376
|
setTasklistMode(value === 'v1' ? 'v1' : 'v2');
|
|
@@ -467,9 +470,9 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
467
470
|
? identityWizardTitle
|
|
468
471
|
: safeTranslate(t, 'clustermodals:upgrade.title', 'Update available'),
|
|
469
472
|
label,
|
|
470
|
-
content: (_jsxs(Stack, { gap: 6, children: [_jsxs("p", { style: { margin: 0 }, children: ["Update cluster generation from", ' ', _jsx("strong", { children: cluster?.generation?.name ?? '-' }), " to", ' ', _jsx("strong", { children: selectedUpgradeGeneration?.name ?? '-' })] }), showTasklistV1RemovalWarning ? (_jsxs(
|
|
473
|
+
content: (_jsxs(Stack, { gap: 6, children: [_jsxs("p", { style: { margin: 0 }, children: ["Update cluster generation from", ' ', _jsx("strong", { children: cluster?.generation?.name ?? '-' }), " to", ' ', _jsx("strong", { children: selectedUpgradeGeneration?.name ?? '-' })] }), showTasklistV1RemovalWarning ? (_jsxs(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: safeTranslate(t, 'clustermodals:upgrade.banner.tasklistV1RemovalTitle', 'Update removes Tasklist V1'), children: [_jsx("p", { style: { margin: '0.5rem 0 0 0' }, children: safeTranslate(t, 'clustermodals:upgrade.banner.tasklistV1RemovalBody', 'The 8.10 update removes the Tasklist V1 API. Applications on this cluster still using Tasklist V1 will break. Migrate to Tasklist V2 / Orchestration Cluster API before continuing.') }), upgradeDocsUrls?.tasklistApiVersions ? (_jsx("div", { style: { marginTop: '0.5rem' }, children: _jsx(Link, { rel: 'ignore', style: { cursor: 'pointer' }, onClick: () => {
|
|
471
474
|
window.open(upgradeDocsUrls.tasklistApiVersions, '_blank', 'noopener,noreferrer');
|
|
472
|
-
}, children: safeTranslate(t, 'clustermodals:upgrade.banner.tasklistV1RemovalLearnMore', 'Migration guide') }) })) : null] })) : null, _jsx(
|
|
475
|
+
}, children: safeTranslate(t, 'clustermodals:upgrade.banner.tasklistV1RemovalLearnMore', 'Migration guide') }) })) : null] })) : null, _jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, title: safeTranslate(t, 'clustermodals:upgrade.banner.title', 'Camunda components will be temporarily unavailable'), hideCloseButton: true, subtitle: safeTranslate(t, 'clustermodals:upgrade.banner.line0', 'We recommend to backup the cluster before every update to ensure safe recovery if needed.'), children: _jsx("p", { style: { margin: '0.5rem 0 0 0' }, children: safeTranslate(t, 'clustermodals:upgrade.banner.line1', 'During the update, Camunda components will restart. The update duration depends mainly on the amount of processes and data stored in the cluster.') }) }), deltas.length > 0 ? (_jsxs("div", { children: [_jsx("p", { style: { margin: 0 }, children: safeTranslate(t, 'clustermodals:upgrade.details', 'This update includes:') }), _jsx("ul", { children: deltas.map((item) => (_jsx("li", { children: item }, item))) })] })) : null, canEditCluster ? (_jsx(Checkbox, { id: 'upgrade-cluster-enable-auto-update', labelText: safeTranslate(t, 'clustermodals:upgrade.autoUpdate', 'Automatically keep my cluster up to date'), checked: autoUpdateState, onChange: () => {
|
|
473
476
|
setAutoUpdateState((prev) => !prev);
|
|
474
477
|
} })) : null] })),
|
|
475
478
|
buttons: baseButtons({
|
|
@@ -947,10 +950,8 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
947
950
|
currentHardwarePackages,
|
|
948
951
|
]);
|
|
949
952
|
const isOptimizeDisabledForTrial = useMemo(() => {
|
|
950
|
-
return
|
|
951
|
-
|
|
952
|
-
cluster?.externalMetadata?.optimizeEnabled === false);
|
|
953
|
-
}, [cluster?.externalMetadata, runtime.featureFlags]);
|
|
953
|
+
return cluster?.externalMetadata?.optimizeEnabled === false;
|
|
954
|
+
}, [cluster?.externalMetadata]);
|
|
954
955
|
const activateOptimize = useCallback(async () => {
|
|
955
956
|
const { ConsoleClusterService } = await import('@camunda/ccma-api');
|
|
956
957
|
await ConsoleClusterService.updateCluster({
|
|
@@ -1128,6 +1129,14 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
1128
1129
|
const launchLabel = safeTranslate(t, 'clusterdetails:overview.applications.launchLink', 'Launch');
|
|
1129
1130
|
const manageLabel = safeTranslate(t, 'clusterdetails:overview.applications.manageLink', 'Manage');
|
|
1130
1131
|
const connectorsManagementUrl = `/org/${orgId}/cluster/${clusterId}/connectors/management`;
|
|
1132
|
+
// Internal connectors-management page is only available for Zeebe 8.7+.
|
|
1133
|
+
const supportsConnectorsManagementLink = checkVersion({
|
|
1134
|
+
possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
|
|
1135
|
+
trueForSnapshot: true,
|
|
1136
|
+
trueOnInvalidVersion: false,
|
|
1137
|
+
versionToCompareTo: '8.7.0-alpha1',
|
|
1138
|
+
operator: VersionCheckOperator.GreaterThanOrEqual,
|
|
1139
|
+
});
|
|
1131
1140
|
const supportsInternalConnectorsManagement = checkVersion({
|
|
1132
1141
|
// Legacy (console-frontend) shows "Manage" for Connectors on Zeebe 8.8+.
|
|
1133
1142
|
possiblyVersionOrDockerPath: cluster.generation?.versions?.zeebe,
|
|
@@ -1201,20 +1210,39 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
1201
1210
|
: undefined,
|
|
1202
1211
|
connectors: cluster.status?.connectorsStatus !== undefined ||
|
|
1203
1212
|
cluster.generation?.versions?.connectorBridge !== undefined
|
|
1204
|
-
?
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
: cluster.
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1213
|
+
? (() => {
|
|
1214
|
+
const connectorsTile = toAppTileProps({
|
|
1215
|
+
name: 'Connectors',
|
|
1216
|
+
status: cluster.status?.connectorsStatus,
|
|
1217
|
+
url: connectorsManagementUrl,
|
|
1218
|
+
version: toDisplayVersion(cluster.generation?.versions?.connectorBridge ??
|
|
1219
|
+
cluster.generation?.versions?.zeebe),
|
|
1220
|
+
description: appDescription.connectors,
|
|
1221
|
+
linkLabel: manageLabel,
|
|
1222
|
+
linkVisible: supportsConnectorsManagementLink &&
|
|
1223
|
+
(supportsInternalConnectorsManagement || canViewConnectorsLink),
|
|
1224
|
+
});
|
|
1225
|
+
// Unlike the other tiles, which link out to separate apps, the
|
|
1226
|
+
// connectors-management page lives inside the console app. Route it
|
|
1227
|
+
// through onNavigate so it uses in-app routing instead of a full
|
|
1228
|
+
// page reload. The href is kept for accessibility and open-in-new-tab;
|
|
1229
|
+
// when onNavigate isn't wired we fall back to plain href navigation.
|
|
1230
|
+
return {
|
|
1231
|
+
...connectorsTile,
|
|
1232
|
+
link: onNavigate
|
|
1233
|
+
? {
|
|
1234
|
+
url: connectorsTile.url,
|
|
1235
|
+
label: connectorsTile.linkLabel,
|
|
1236
|
+
visible: connectorsTile.linkVisible,
|
|
1237
|
+
onClick: () => onNavigate({
|
|
1238
|
+
kind: 'connectorManagement',
|
|
1239
|
+
orgId,
|
|
1240
|
+
clusterId,
|
|
1241
|
+
}),
|
|
1242
|
+
}
|
|
1243
|
+
: undefined,
|
|
1244
|
+
};
|
|
1245
|
+
})()
|
|
1218
1246
|
: undefined,
|
|
1219
1247
|
identity: toAppTileProps({
|
|
1220
1248
|
name: identityName,
|
|
@@ -1312,6 +1340,8 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
1312
1340
|
: undefined;
|
|
1313
1341
|
const details = {
|
|
1314
1342
|
title: safeTranslate(t, 'clusterdetails:overview.clusterDetails.title', 'Cluster Details'),
|
|
1343
|
+
copyValueLabel: safeTranslate(t, 'clusterdetails:overview.clusterDetails.copyValue', 'Copy'),
|
|
1344
|
+
copyValueCopiedLabel: safeTranslate(t, 'clusterdetails:overview.clusterDetails.copyValueCopied', 'Copied!'),
|
|
1315
1345
|
name: {
|
|
1316
1346
|
label: safeTranslate(t, 'clusterdetails:overview.clusterDetails.name', 'Name'),
|
|
1317
1347
|
value: cluster.name,
|
|
@@ -1413,12 +1443,35 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
1413
1443
|
}
|
|
1414
1444
|
: undefined,
|
|
1415
1445
|
wakeAction: async () => {
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1446
|
+
if (wakeInFlight.current)
|
|
1447
|
+
return;
|
|
1448
|
+
wakeInFlight.current = true;
|
|
1449
|
+
try {
|
|
1450
|
+
const { ConsoleClusterService } = await import('@camunda/ccma-api');
|
|
1451
|
+
await ConsoleClusterService.wakeCluster({
|
|
1452
|
+
config: apiConfig,
|
|
1453
|
+
params: { orgId, clusterId },
|
|
1454
|
+
});
|
|
1455
|
+
await onReloadCluster();
|
|
1456
|
+
}
|
|
1457
|
+
catch (error) {
|
|
1458
|
+
runtime.telemetry?.captureException?.(error, {
|
|
1459
|
+
widget: 'C4ClusterDetailsOverviewTab',
|
|
1460
|
+
action: 'wake',
|
|
1461
|
+
orgId,
|
|
1462
|
+
clusterId,
|
|
1463
|
+
});
|
|
1464
|
+
addC4ConsoleNotification({
|
|
1465
|
+
kind: 'error',
|
|
1466
|
+
title: safeTranslate(t, 'clusterdetails:overview.clusterDetails.status.wakeError.title', 'Failed to resume cluster'),
|
|
1467
|
+
subtitle: error instanceof Error
|
|
1468
|
+
? error.message
|
|
1469
|
+
: safeTranslate(t, 'clusterdetails:overview.clusterDetails.status.wakeError.unknownError', 'Unknown error'),
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
finally {
|
|
1473
|
+
wakeInFlight.current = false;
|
|
1474
|
+
}
|
|
1422
1475
|
},
|
|
1423
1476
|
wakeLabel: safeTranslate(t, 'clusterdetails:overview.clusterDetails.status.wakeLabel', 'Resume cluster'),
|
|
1424
1477
|
wakeVisibility: canWakeCluster && !isClusterPausedReconciliation && !restoreInProgress,
|
|
@@ -1475,20 +1528,20 @@ export const C4ClusterDetailsOverviewTab = (props) => {
|
|
|
1475
1528
|
if (hardwareBusy)
|
|
1476
1529
|
return;
|
|
1477
1530
|
setHardwareModalOpen(false);
|
|
1478
|
-
}, onRequestSubmit: submitHardwarePackageChange, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [hardwareError ? (_jsx(
|
|
1531
|
+
}, onRequestSubmit: submitHardwarePackageChange, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [hardwareError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.error.title', 'Error updating cluster size'), subtitle: hardwareError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.description', 'Increase the cluster size to enhance performance and capacity. Each size increase uses an additional reservation slot.') }), _jsxs("div", { children: [_jsx("p", { className: 'cds--label', style: { marginBottom: '0.75rem' }, children: safeTranslate(t, 'clusterdetails:overview.clusterDetails.hardwarePackages', 'Number of allocated Hardware Packages') }), _jsx("div", { style: { display: 'flex', gap: '0.75rem', flexWrap: 'wrap' }, children: Array.from({ length: MAX_HARDWARE_PACKAGE_COUNT }, (_unused, index) => index + 1).map((value) => (_jsxs(Tag, { id: `allocatedHardwarePackages-${value}`, onClick: () => {
|
|
1479
1532
|
setSelectedHardwarePackages(value);
|
|
1480
1533
|
}, type: selectedHardwarePackages === value
|
|
1481
1534
|
? 'high-contrast'
|
|
1482
1535
|
: 'outline', style: { borderWidth: '0px' }, disabled: hardwareBusy ||
|
|
1483
1536
|
value > availableHardwarePackages ||
|
|
1484
|
-
!!restoreInProgress, children: [value, "x"] }, `allocatedHardwarePackages-${value}`))) })] }), !hardwareReservationsAvailable ? (_jsx(
|
|
1537
|
+
!!restoreInProgress, children: [value, "x"] }, `allocatedHardwarePackages-${value}`))) })] }), !hardwareReservationsAvailable ? (_jsx(C4InlineNotification, { kind: 'info', lowContrast: true, title: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.unavailable.title', 'Reservation data unavailable'), subtitle: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.unavailable.subtitle', 'Larger sizes will be available once reservation data has loaded. You can keep the current size or choose a smaller size for now.'), hideCloseButton: true })) : availableHardwarePackages < MAX_HARDWARE_PACKAGE_COUNT ? (_jsx(C4InlineNotification, { kind: 'info', lowContrast: true, title: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.info.title', 'Limited reservations'), subtitle: safeTranslate(t, 'clusterdetails:overview.hardwarePackageModal.info.subtitle', 'Increase your reservations to unlock more sizes.'), hideCloseButton: true })) : null] }) }), _jsx(Modal, { open: tagModalOpen, modalHeading: safeTranslate(t, 'clusterdetails:tags.modal.heading', 'Assign a cluster tag'), primaryButtonText: safeTranslate(t, 'clusterdetails:tags.modal.primary', 'Confirm'), secondaryButtonText: safeTranslate(t, 'clusterdetails:tags.modal.secondary', 'Cancel'), primaryButtonDisabled: tagBusy ||
|
|
1485
1538
|
selectedTag === '' ||
|
|
1486
1539
|
!canEditCluster ||
|
|
1487
1540
|
!!restoreInProgress, onRequestClose: () => {
|
|
1488
1541
|
if (tagBusy)
|
|
1489
1542
|
return;
|
|
1490
1543
|
setTagModalOpen(false);
|
|
1491
|
-
}, onRequestSubmit: submitTagChange, children: _jsxs(Stack, { gap: 5, children: [tagError ? (_jsx(
|
|
1544
|
+
}, onRequestSubmit: submitTagChange, children: _jsxs(Stack, { gap: 5, children: [tagError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:tags.modal.error', 'Error updating tag'), subtitle: tagError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate(t, 'clusterdetails:tags.modal.description', 'Assign a tag to make it easier for team members to clearly distinguish between different stages of the software development lifecycle. Tags have no impact on performance and can be changed later.') }), _jsx("div", { style: {
|
|
1492
1545
|
display: 'grid',
|
|
1493
1546
|
gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',
|
|
1494
1547
|
gap: '1rem',
|