@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
|
@@ -19,6 +19,10 @@ export type C4ClusterDetailsNavigateEvent = {
|
|
|
19
19
|
kind: 'jobDashboardOverview';
|
|
20
20
|
orgId: string;
|
|
21
21
|
clusterId: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'connectorManagement';
|
|
24
|
+
orgId: string;
|
|
25
|
+
clusterId: string;
|
|
22
26
|
} | {
|
|
23
27
|
kind: 'openHelpCenter';
|
|
24
28
|
tabId: string;
|
|
@@ -53,8 +57,10 @@ export interface C4ClusterDetailsDocsUrls {
|
|
|
53
57
|
identityAuthorization: string;
|
|
54
58
|
resourceAuthorizations: string;
|
|
55
59
|
multiTenancy: string;
|
|
60
|
+
byoidp: string;
|
|
56
61
|
swagger: string;
|
|
57
62
|
mcpOverview: string;
|
|
63
|
+
msTeamsIntegration: string;
|
|
58
64
|
tasklistApiVersions: string;
|
|
59
65
|
springZeebeGettingStarted: string;
|
|
60
66
|
springZeebeConfig: string;
|
|
@@ -83,8 +89,10 @@ export interface C4ClusterDetailsUrls {
|
|
|
83
89
|
identityAuthorization?: string;
|
|
84
90
|
resourceAuthorizations?: string;
|
|
85
91
|
multiTenancy?: string;
|
|
92
|
+
byoidp?: string;
|
|
86
93
|
swagger?: string;
|
|
87
94
|
mcpOverview?: string;
|
|
95
|
+
msTeamsIntegration?: string;
|
|
88
96
|
tasklistApiVersions?: string;
|
|
89
97
|
springZeebeGettingStarted?: string;
|
|
90
98
|
springZeebeConfig?: string;
|
|
@@ -4,10 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import { BreadcrumbSkeleton, Link, SkeletonText, Stack, TabsSkeleton, Tooltip, } from '@carbon/react';
|
|
8
7
|
import { WarningAltFilled } from '@carbon/react/icons/index.esm.js';
|
|
9
8
|
import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
|
|
10
9
|
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
10
|
+
import { BreadcrumbSkeleton, Link, SkeletonText, Stack, TabsSkeleton, Tooltip, } from '../../ui/index.js';
|
|
11
11
|
const breadCrumbWrapperStyles = {
|
|
12
12
|
minHeight: '40px',
|
|
13
13
|
display: 'grid',
|
|
@@ -42,6 +42,8 @@ describe('C4ClusterDetailsPage', () => {
|
|
|
42
42
|
onLearnMore,
|
|
43
43
|
};
|
|
44
44
|
renderPage({ banner });
|
|
45
|
+
// The Callout banner renders its content twice (visible copy + a
|
|
46
|
+
// visibility:hidden height-spacer), matching the deployed render.
|
|
45
47
|
expect(screen.getAllByText('Unmaintained cluster generation').length).toBe(2);
|
|
46
48
|
expect(screen.getAllByText('Alpha-generations can’t be updated. Create a new cluster to access the latest features.').length).toBe(2);
|
|
47
49
|
const learnMoreLinks = screen.getAllByText('Learn more');
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { C4ClusterDetailsTabId } from './c4-cluster-details-app.types';
|
|
2
|
+
export interface ClusterDetailsTabDescriptor {
|
|
3
|
+
id: C4ClusterDetailsTabId;
|
|
4
|
+
/** i18n key (namespaced, e.g. `clusterdetails:overview.title`). */
|
|
5
|
+
titleKey: string;
|
|
6
|
+
/** English fallback used when the key can't be resolved. */
|
|
7
|
+
titleFallback: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Canonical id + label-key + display order for the cluster-details tabs.
|
|
11
|
+
*
|
|
12
|
+
* Single source of truth: `c4-cluster-details-app.tsx` builds its tab bar from
|
|
13
|
+
* this list (attaching each tab's live component / visibility / init by id), and
|
|
14
|
+
* the docs screenshot shell (screenshot-tooling-storybook) imports it so its tab
|
|
15
|
+
* bar can't drift from the real page. Runtime visibility is NOT encoded here -
|
|
16
|
+
* the app decides which tabs are actually shown for a given cluster.
|
|
17
|
+
*
|
|
18
|
+
* The `secrets` tab's label is context-dependent in the app (cluster vs.
|
|
19
|
+
* connector secrets); the connector-secrets key here is the default.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CLUSTER_DETAILS_TABS: readonly ClusterDetailsTabDescriptor[];
|
|
22
|
+
/** Look up a tab descriptor by id. */
|
|
23
|
+
export declare function clusterDetailsTab(id: C4ClusterDetailsTabId): ClusterDetailsTabDescriptor;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Canonical id + label-key + display order for the cluster-details tabs.
|
|
8
|
+
*
|
|
9
|
+
* Single source of truth: `c4-cluster-details-app.tsx` builds its tab bar from
|
|
10
|
+
* this list (attaching each tab's live component / visibility / init by id), and
|
|
11
|
+
* the docs screenshot shell (screenshot-tooling-storybook) imports it so its tab
|
|
12
|
+
* bar can't drift from the real page. Runtime visibility is NOT encoded here -
|
|
13
|
+
* the app decides which tabs are actually shown for a given cluster.
|
|
14
|
+
*
|
|
15
|
+
* The `secrets` tab's label is context-dependent in the app (cluster vs.
|
|
16
|
+
* connector secrets); the connector-secrets key here is the default.
|
|
17
|
+
*/
|
|
18
|
+
export const CLUSTER_DETAILS_TABS = [
|
|
19
|
+
{
|
|
20
|
+
id: 'overview',
|
|
21
|
+
titleKey: 'clusterdetails:overview.title',
|
|
22
|
+
titleFallback: 'Overview',
|
|
23
|
+
},
|
|
24
|
+
{ id: 'api', titleKey: 'clusterdetails:clients.title', titleFallback: 'API' },
|
|
25
|
+
{
|
|
26
|
+
id: 'secrets',
|
|
27
|
+
titleKey: 'clusterdetails:connectorSecrets.title',
|
|
28
|
+
titleFallback: 'Connector secrets',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'alerts',
|
|
32
|
+
titleKey: 'clusterdetails:alerts.title',
|
|
33
|
+
titleFallback: 'Alerts',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'activity',
|
|
37
|
+
titleKey: 'clusterdetails:activity.title',
|
|
38
|
+
titleFallback: 'Activity',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 'monitoring',
|
|
42
|
+
titleKey: 'clusterdetails:monitoring.title',
|
|
43
|
+
titleFallback: 'Monitoring',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'ipWhitelist',
|
|
47
|
+
titleKey: 'clusterdetails:ipWhitelist.title',
|
|
48
|
+
titleFallback: 'IP allowlist',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'privateNetworking',
|
|
52
|
+
titleKey: 'clusterdetails:secureConnectivity.title',
|
|
53
|
+
titleFallback: 'Private networking',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'backups',
|
|
57
|
+
titleKey: 'clusterdetails:hotbackups.title',
|
|
58
|
+
titleFallback: 'Hot backups',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: 'auditLog',
|
|
62
|
+
titleKey: 'clusterdetails:auditLog.title',
|
|
63
|
+
titleFallback: 'Audit log',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'settings',
|
|
67
|
+
titleKey: 'clusterdetails:settings.title',
|
|
68
|
+
titleFallback: 'Settings',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 'encryption',
|
|
72
|
+
titleKey: 'clusterdetails:encryption.tab',
|
|
73
|
+
titleFallback: 'Encryption',
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
/** Look up a tab descriptor by id. */
|
|
77
|
+
export function clusterDetailsTab(id) {
|
|
78
|
+
const descriptor = CLUSTER_DETAILS_TABS.find((tab) => tab.id === id);
|
|
79
|
+
if (!descriptor) {
|
|
80
|
+
throw new Error(`Unknown cluster-details tab id: ${id}`);
|
|
81
|
+
}
|
|
82
|
+
return descriptor;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
import { describe, expect, it } from 'vitest';
|
|
7
|
+
import clusterdetails from '../../i18n/en/pages/clusterdetails.json';
|
|
8
|
+
import { CLUSTER_DETAILS_TABS } from './cluster-details-tabs.js';
|
|
9
|
+
// `monitoring` has no `title` in the bundle; the app intentionally falls back.
|
|
10
|
+
const KNOWN_MISSING_KEYS = new Set(['clusterdetails:monitoring.title']);
|
|
11
|
+
function resolve(json, path) {
|
|
12
|
+
return path
|
|
13
|
+
.split('.')
|
|
14
|
+
.reduce((node, key) => node && typeof node === 'object'
|
|
15
|
+
? node[key]
|
|
16
|
+
: undefined, json);
|
|
17
|
+
}
|
|
18
|
+
describe('CLUSTER_DETAILS_TABS', () => {
|
|
19
|
+
it('has unique ids', () => {
|
|
20
|
+
const ids = CLUSTER_DETAILS_TABS.map((tab) => tab.id);
|
|
21
|
+
expect(new Set(ids).size).toBe(ids.length);
|
|
22
|
+
});
|
|
23
|
+
it('every titleKey targets the clusterdetails bundle and resolves to a string', () => {
|
|
24
|
+
for (const { titleKey } of CLUSTER_DETAILS_TABS) {
|
|
25
|
+
const [namespace, path] = titleKey.split(':');
|
|
26
|
+
expect(namespace).toBe('clusterdetails');
|
|
27
|
+
if (KNOWN_MISSING_KEYS.has(titleKey)) {
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
expect(typeof resolve(clusterdetails, path)).toBe('string');
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -4,11 +4,15 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { Fragment, useCallback, useState } from 'react';
|
|
7
|
+
import { Form, PasswordInput } from '@carbon/react';
|
|
8
|
+
import { Fragment, useCallback, useRef, useState } from 'react';
|
|
9
9
|
import { C4ActionableNotification } from '../../../components/c4-actionable-notification/c4-actionable-notification.js';
|
|
10
10
|
import { C4ClusterDetailsAlerts } from '../../../components/c4-cluster-details-alerts/c4-cluster-details-alerts.js';
|
|
11
|
+
import { C4CreateAlertModal } from '../../../components/c4-create-alert-modal/c4-create-alert-modal.js';
|
|
12
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
11
13
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
14
|
+
import { Checkbox, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
15
|
+
import { useRadioFamily } from '../../../ui/families.js';
|
|
12
16
|
// Helper to translate with fallback
|
|
13
17
|
function safeTranslate(translateFn, key, fallback, options) {
|
|
14
18
|
try {
|
|
@@ -41,8 +45,9 @@ function renderInlineStrongWithBreaks(value, renderStrong) {
|
|
|
41
45
|
return parts.map((part, index) => (_jsxs(Fragment, { children: [renderStrong(part.trim()), index < parts.length - 1 ? _jsx("br", {}) : null] }, `alert-empty-state-${part.trim()}-${index < parts.length - 1 ? 'break' : 'end'}`)));
|
|
42
46
|
}
|
|
43
47
|
export const C4ClusterDetailsAlertsTab = (props) => {
|
|
48
|
+
const { RadioButton, RadioButtonGroup } = useRadioFamily();
|
|
44
49
|
const runtime = useC4ConsoleRuntime();
|
|
45
|
-
const
|
|
50
|
+
const createAlertModalRef = useRef(null);
|
|
46
51
|
const [updateAlertOpen, setUpdateAlertOpen] = useState(false);
|
|
47
52
|
const [deleteAlertOpen, setDeleteAlertOpen] = useState(false);
|
|
48
53
|
const [alertMutationBusy, setAlertMutationBusy] = useState(false);
|
|
@@ -112,17 +117,7 @@ export const C4ClusterDetailsAlertsTab = (props) => {
|
|
|
112
117
|
canDelete: props.canMutateCluster,
|
|
113
118
|
}, onCreateAlert: () => {
|
|
114
119
|
trackEvent('clusterOverviewAlerts:createModal:open', 'Open Create Alerts Modal');
|
|
115
|
-
|
|
116
|
-
setAlertReportType('Email');
|
|
117
|
-
setAlertWebhookUrl('');
|
|
118
|
-
setAlertWantsHmac(false);
|
|
119
|
-
setAlertHadHmacOnOpen(false);
|
|
120
|
-
setAlertHmacSecret('');
|
|
121
|
-
setAlertUrlInvalid(false);
|
|
122
|
-
setAlertUrlInvalidText('');
|
|
123
|
-
setAlertHmacInvalid(false);
|
|
124
|
-
setAlertHmacInvalidText('');
|
|
125
|
-
setCreateAlertOpen(true);
|
|
120
|
+
createAlertModalRef.current?.open();
|
|
126
121
|
}, onUpdateAlert: (alertId) => {
|
|
127
122
|
trackEvent('clusterOverviewAlerts:updateModal:open', 'Open Update Alerts Modal', { alertId });
|
|
128
123
|
const found = props.alerts.find((a) => a.id === alertId);
|
|
@@ -153,78 +148,20 @@ export const C4ClusterDetailsAlertsTab = (props) => {
|
|
|
153
148
|
kind: 'openUrl',
|
|
154
149
|
url: props.docsAlertsUrl,
|
|
155
150
|
});
|
|
156
|
-
} }), _jsx(
|
|
151
|
+
} }), _jsx(C4CreateAlertModal, { ref: createAlertModalRef, t: props.t, userEmail: props.userEmail, docsAlertsUrl: props.docsAlertsUrl, onNavigate: (action) => {
|
|
152
|
+
trackEvent('docs:open', 'documentation clicked', {
|
|
153
|
+
from: 'console',
|
|
154
|
+
type: 'clusterdetails-alerts-no-alerts',
|
|
155
|
+
to: props.docsAlertsUrl,
|
|
156
|
+
});
|
|
157
|
+
props.onNavigate?.(action);
|
|
158
|
+
}, onCreateAlert: props.onCreateAlert, onCancel: () => {
|
|
157
159
|
trackEvent('clusterOverviewAlerts:createModal:cancel', 'Close Create Alerts Modal');
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
setAlertMutationError('');
|
|
164
|
-
setAlertUrlInvalid(false);
|
|
165
|
-
setAlertUrlInvalidText('');
|
|
166
|
-
setAlertHmacInvalid(false);
|
|
167
|
-
setAlertHmacInvalidText('');
|
|
168
|
-
// Validate webhook inputs
|
|
169
|
-
if (alertReportType === 'Webhook') {
|
|
170
|
-
if (!alertWebhookUrl) {
|
|
171
|
-
setAlertUrlInvalid(true);
|
|
172
|
-
setAlertUrlInvalidText(safeTranslate(props.t, 'alerts:formValidation.urlEmpty', 'You must provide a URL'));
|
|
173
|
-
setAlertMutationBusy(false);
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
if (alertWantsHmac && !alertHadHmacOnOpen && !alertHmacSecret) {
|
|
177
|
-
setAlertHmacInvalid(true);
|
|
178
|
-
setAlertHmacInvalidText(safeTranslate(props.t, 'alerts:formValidation.hmacSecretEmpty', 'You must provide the HMAC secret'));
|
|
179
|
-
setAlertMutationBusy(false);
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
try {
|
|
184
|
-
await props.onCreateAlert({
|
|
185
|
-
reportType: alertReportType,
|
|
186
|
-
webhookUrl: alertReportType === 'Webhook' ? alertWebhookUrl : undefined,
|
|
187
|
-
hmacSecret: alertReportType === 'Webhook' && alertWantsHmac
|
|
188
|
-
? alertHmacSecret
|
|
189
|
-
: undefined,
|
|
190
|
-
});
|
|
191
|
-
setCreateAlertOpen(false);
|
|
192
|
-
}
|
|
193
|
-
catch (error) {
|
|
194
|
-
setAlertMutationError(error instanceof Error ? error.message : 'Failed');
|
|
195
|
-
captureTelemetryError(error, 'clusterOverviewAlerts:createModal:confirm:error', 'Error while creating alert');
|
|
196
|
-
}
|
|
197
|
-
finally {
|
|
198
|
-
setAlertMutationBusy(false);
|
|
199
|
-
}
|
|
200
|
-
})();
|
|
201
|
-
}, children: _jsx(Form, { onSubmit: (e) => {
|
|
202
|
-
e.preventDefault();
|
|
203
|
-
}, children: _jsxs(Stack, { gap: 4, children: [alertMutationError && (_jsx(InlineNotification, { kind: 'error', title: safeTranslate(props.t, 'alerts:create.error.generic', "We're having trouble creating the alert"), subtitle: alertMutationError, lowContrast: true, hideCloseButton: true })), _jsxs(RadioButtonGroup, { name: 'alert-create-report-type', legendText: safeTranslate(props.t, 'alerts:create.fields.reportType.label', 'Delivery method'), valueSelected: alertReportType, orientation: 'vertical', onChange: (value) => {
|
|
204
|
-
setAlertReportType(value);
|
|
205
|
-
setAlertUrlInvalid(false);
|
|
206
|
-
setAlertUrlInvalidText('');
|
|
207
|
-
setAlertHmacInvalid(false);
|
|
208
|
-
setAlertHmacInvalidText('');
|
|
209
|
-
}, children: [_jsx(RadioButton, { labelText: `${safeTranslate(props.t, 'alerts:create.fields.reportType.options.email', 'Email')}${alertEmailDestination}`, value: 'Email', id: 'alert-create-email-radio' }), _jsx(RadioButton, { labelText: safeTranslate(props.t, 'alerts:create.fields.reportType.options.webhook', 'Webhook'), value: 'Webhook', id: 'alert-create-webhook-radio' })] }), alertReportType === 'Webhook' && (_jsxs(_Fragment, { children: [_jsx(TextInput, { id: 'alert-create-webhook-url', labelText: safeTranslate(props.t, 'alerts:create.fields.webhookUrl.label', 'Payload URL'), value: alertWebhookUrl, maxLength: 300, invalid: alertUrlInvalid, invalidText: alertUrlInvalidText, onChange: (event) => {
|
|
210
|
-
setAlertWebhookUrl(event.target.value);
|
|
211
|
-
setAlertUrlInvalid(false);
|
|
212
|
-
setAlertUrlInvalidText('');
|
|
213
|
-
} }), _jsxs("div", { children: [_jsx("fieldset", { className: 'cds--fieldset', children: _jsx("legend", { className: 'cds--label', children: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.intro', 'Webhook security options') }) }), _jsx(Checkbox, { id: 'alert-create-hmac-checkbox', labelText: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.label', 'Enable HMAC'), checked: alertWantsHmac, onChange: (event) => setAlertWantsHmac(event.target.checked) })] }), alertWantsHmac && (_jsxs(_Fragment, { children: [_jsx(PasswordInput, { id: 'alert-create-hmac-secret', labelText: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.secret.label', 'Secret'), value: alertHmacSecret, invalid: alertHmacInvalid, invalidText: alertHmacInvalidText, onChange: (event) => {
|
|
214
|
-
setAlertHmacSecret(event.target.value);
|
|
215
|
-
setAlertHmacInvalid(false);
|
|
216
|
-
setAlertHmacInvalidText('');
|
|
217
|
-
} }), _jsx(C4ActionableNotification, { lowContrast: true, kind: 'info', title: '', subtitle: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.infoBannerForHmac.text', 'We will generate the SHA-256 hash of the request body using your HMAC secret and include it in the HTTP header X-Camunda-Signature-256.'), actionButtonLabel: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.infoBannerForHmac.actionButtonLabel', 'Learn more'), onActionButtonClick: () => {
|
|
218
|
-
trackEvent('docs:open', 'documentation clicked', {
|
|
219
|
-
from: 'console',
|
|
220
|
-
type: 'clusterdetails-alerts-no-alerts',
|
|
221
|
-
to: props.docsAlertsUrl,
|
|
222
|
-
});
|
|
223
|
-
props.onNavigate?.({
|
|
224
|
-
kind: 'openUrl',
|
|
225
|
-
url: props.docsAlertsUrl,
|
|
226
|
-
});
|
|
227
|
-
} })] }))] }))] }) }) }), _jsx(Modal, { open: updateAlertOpen, modalHeading: safeTranslate(props.t, 'alerts:update.heading', 'Update process incident alert'), primaryButtonText: safeTranslate(props.t, 'alerts:update.buttons.primary', 'Update alert'), secondaryButtonText: safeTranslate(props.t, 'alerts:update.buttons.secondary', 'Cancel'), primaryButtonDisabled: alertMutationBusy, onRequestClose: () => {
|
|
160
|
+
}, onSubmitStart: () => {
|
|
161
|
+
trackEvent('clusterOverviewAlerts:createModal:confirm', 'Confirm Create Alerts Modal');
|
|
162
|
+
}, onSubmitError: (error) => {
|
|
163
|
+
captureTelemetryError(error, 'clusterOverviewAlerts:createModal:confirm:error', 'Error while creating alert');
|
|
164
|
+
} }), _jsx(Modal, { open: updateAlertOpen, modalHeading: safeTranslate(props.t, 'alerts:update.heading', 'Update process incident alert'), primaryButtonText: safeTranslate(props.t, 'alerts:update.buttons.primary', 'Update alert'), secondaryButtonText: safeTranslate(props.t, 'alerts:update.buttons.secondary', 'Cancel'), primaryButtonDisabled: alertMutationBusy, onRequestClose: () => {
|
|
228
165
|
trackEvent('clusterOverviewAlerts:updateModal:cancel', 'Close Update Alerts Modal', { alertId: selectedAlertId });
|
|
229
166
|
setUpdateAlertOpen(false);
|
|
230
167
|
}, onRequestSubmit: () => {
|
|
@@ -276,7 +213,7 @@ export const C4ClusterDetailsAlertsTab = (props) => {
|
|
|
276
213
|
})();
|
|
277
214
|
}, children: _jsx(Form, { onSubmit: (e) => {
|
|
278
215
|
e.preventDefault();
|
|
279
|
-
}, children: _jsxs(Stack, { gap: 6, children: [alertMutationError && (_jsx(
|
|
216
|
+
}, children: _jsxs(Stack, { gap: 6, children: [alertMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(props.t, 'alerts:update.error.generic', "We're having trouble updating the alert"), subtitle: alertMutationError, lowContrast: true, hideCloseButton: true })), _jsxs(RadioButtonGroup, { name: 'alert-update-report-type', legendText: safeTranslate(props.t, 'alerts:update.fields.reportType.label', 'Delivery method'), valueSelected: alertReportType, orientation: 'vertical', onChange: (value) => {
|
|
280
217
|
setAlertReportType(value);
|
|
281
218
|
setAlertUrlInvalid(false);
|
|
282
219
|
setAlertUrlInvalidText('');
|
|
@@ -290,7 +227,7 @@ export const C4ClusterDetailsAlertsTab = (props) => {
|
|
|
290
227
|
setAlertHmacSecret(event.target.value);
|
|
291
228
|
setAlertHmacInvalid(false);
|
|
292
229
|
setAlertHmacInvalidText('');
|
|
293
|
-
} })), _jsx("br", {}), _jsx(C4ActionableNotification, { lowContrast: true, kind: 'info', title: '', subtitle: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.infoBannerForHmac.text', 'We will generate the SHA-256 hash of the request body using your HMAC secret and include it in the HTTP header X-Camunda-Signature-256.'), actionButtonLabel: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.infoBannerForHmac.actionButtonLabel', 'Learn more'), onActionButtonClick: () => {
|
|
230
|
+
} })), _jsx("br", {}), _jsx(C4ActionableNotification, { appearance: 'banner', lowContrast: true, kind: 'info', title: '', subtitle: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.infoBannerForHmac.text', 'We will generate the SHA-256 hash of the request body using your HMAC secret and include it in the HTTP header X-Camunda-Signature-256.'), actionButtonLabel: safeTranslate(props.t, 'alerts:create.fields.webhookAuth.infoBannerForHmac.actionButtonLabel', 'Learn more'), onActionButtonClick: () => {
|
|
294
231
|
trackEvent('docs:open', 'documentation clicked', {
|
|
295
232
|
from: 'console',
|
|
296
233
|
type: 'clusterdetails-alerts-no-alerts',
|
|
@@ -320,5 +257,5 @@ export const C4ClusterDetailsAlertsTab = (props) => {
|
|
|
320
257
|
setAlertMutationBusy(false);
|
|
321
258
|
}
|
|
322
259
|
})();
|
|
323
|
-
}, children: _jsxs(Stack, { gap: 6, children: [alertMutationError && (_jsx(
|
|
260
|
+
}, children: _jsxs(Stack, { gap: 6, children: [alertMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(props.t, 'alerts:delete.error.generic', "We're having trouble deleting the alert"), subtitle: alertMutationError, lowContrast: true, hideCloseButton: true })), _jsx("p", { children: safeTranslate(props.t, 'alerts:delete.description', 'Are you sure you want to delete the alert') })] }) })] }));
|
|
324
261
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleByomMonitoringService, HttpError } from '@camunda/ccma-api';
|
|
3
|
-
import {
|
|
3
|
+
import { FormLabel, InlineLoading, Layer } from '@carbon/react';
|
|
4
4
|
import { CheckmarkFilled, Information, WarningFilled, } from '@carbon/react/icons/index.esm.js';
|
|
5
5
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { C4ClusterByomClients } from '../../../components/c4-cluster-byom-clients/c4-cluster-byom-clients.js';
|
|
7
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
7
8
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
9
|
+
import { Button, CodeSnippet, Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
8
10
|
// Helper function to ensure translations work
|
|
9
11
|
function safeTranslate(t, key, fallback) {
|
|
10
12
|
if (!t)
|
|
@@ -333,7 +335,7 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
333
335
|
})();
|
|
334
336
|
}, children: _jsxs(Stack, { gap: 4, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:create.createDescription', 'Create credentials for authentication in an external monitoring system.') }), byomMutationBusy && (_jsx(InlineLoading, { description: safeTranslate(t, 'byomClients:create.loading', 'Creating credentials…') })), _jsx(TextInput, { id: 'byom-username', name: 'username', labelText: safeTranslate(t, 'byomClients:create.fields.username', 'Username'), placeholder: safeTranslate(t, 'byomClients:create.fields.usernamePlaceholder', 'Enter username'), helperText: safeTranslate(t, 'byomClients:create.fields.usernameHelperText', 'Maximum 24 characters. Only alphanumeric characters, dashes, and underscores allowed.'), value: byomUsername, maxLength: 24, onChange: (event) => setByomUsername(event.target.value) }), _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(Information, { size: 16 }), _jsx("span", { children: safeTranslate(t, 'byomClients:create.passwordGeneratedAfter', 'The password will be generated after creation.') })] }), byomMutationError && (_jsx("p", { style: { color: 'var(--cds-text-error)' }, children: byomMutationError }))] }) }), _jsx(Modal, { open: byomPasswordOpen, modalHeading: byomActivateOnSubmit
|
|
335
337
|
? safeTranslate(t, 'byomClients:create.successTitle', 'Monitoring endpoint activated')
|
|
336
|
-
: safeTranslate(t, 'byomClients:create.successTitle', 'New credentials created'), primaryButtonText: safeTranslate(t, 'byomClients:create.done', 'Got it'), secondaryButtonText: undefined, onRequestClose: () => setByomPasswordOpen(false), onRequestSubmit: () => setByomPasswordOpen(false), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:create.successDescription', 'Use the credentials below for authentication in an external monitoring system.') }), _jsxs("div", { children: [_jsx(FormLabel, { children: safeTranslate(t, 'byomClients:create.fields.username', 'Username') }), _jsx(CodeSnippet, { type: 'single', children: byomUsername })] }), _jsxs("div", { children: [_jsx(FormLabel, { children: safeTranslate(t, 'byomClients:create.fields.password', 'Password') }), _jsx(CodeSnippet, { type: 'single', children: byomPassword })] }), _jsx(
|
|
338
|
+
: safeTranslate(t, 'byomClients:create.successTitle', 'New credentials created'), primaryButtonText: safeTranslate(t, 'byomClients:create.done', 'Got it'), secondaryButtonText: undefined, onRequestClose: () => setByomPasswordOpen(false), onRequestSubmit: () => setByomPasswordOpen(false), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:create.successDescription', 'Use the credentials below for authentication in an external monitoring system.') }), _jsxs("div", { children: [_jsx(FormLabel, { children: safeTranslate(t, 'byomClients:create.fields.username', 'Username') }), _jsx(CodeSnippet, { type: 'single', children: byomUsername })] }), _jsxs("div", { children: [_jsx(FormLabel, { children: safeTranslate(t, 'byomClients:create.fields.password', 'Password') }), _jsx(CodeSnippet, { type: 'single', children: byomPassword })] }), _jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, title: safeTranslate(t, 'byomClients:create.successNotificationTitle', 'The credentials will not be shown again.'), subtitle: safeTranslate(t, 'byomClients:create.successNotificationDescription', 'New password can be generated later.') })] }) }), _jsx(Modal, { open: byomRotateOpen, primaryButtonText: byomRotateBusy ? (_jsx(InlineLoading, {})) : (safeTranslate(t, 'byomClients:rotate.submit', 'Generate new password')), secondaryButtonText: safeTranslate(t, 'byomClients:rotate.cancel', 'Cancel'), primaryButtonDisabled: byomRotateBusy, onRequestClose: () => {
|
|
337
339
|
trackEvent('byomClients:rotate:cancel', 'Cancel Rotate BYOM Client Password Modal', { clientId: byomRotateClientId });
|
|
338
340
|
setByomRotateBusy(false);
|
|
339
341
|
setByomRotateOpen(false);
|
|
@@ -370,7 +372,7 @@ export const C4ClusterDetailsByomClientsTab = (props) => {
|
|
|
370
372
|
}, size: 'sm', modalHeading: safeTranslate(t, 'byomClients:rotate.title', 'Generate new password'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:rotate.description', `Are you sure you want to rotate the password for the username "${byomClients.find((c) => c.id === byomRotateClientId)?.username ?? ''}"? The current password will be invalidated immediately.`) }), byomRotateError.title && (_jsxs("p", { style: { color: 'var(--cds-text-error)' }, children: [byomRotateError.title, byomRotateError.description
|
|
371
373
|
? `: ${byomRotateError.description}`
|
|
372
374
|
: ''] }))] }) }), _jsx(Modal, { open: byomRotateResponseOpen, primaryButtonText: safeTranslate(t, 'byomClients:rotate.done', 'Got it'), onRequestClose: () => setByomRotateResponseOpen(false), onRequestSubmit: () => setByomRotateResponseOpen(false), size: 'sm', modalHeading: safeTranslate(t, 'byomClients:rotate.successTitle', 'New password generated'), children: _jsxs(Stack, { gap: 5, children: [_jsx("p", { children: safeTranslate(t, 'byomClients:rotate.successDescription', 'Use the credentials below for authentication in an external monitoring system.') }), _jsxs("div", { children: [_jsx(FormLabel, { children: safeTranslate(t, 'byomClients:rotate.fields.username', 'Username') }), _jsx(CodeSnippet, { type: 'single', children: byomClients.find((c) => c.id === byomRotateClientId)?.username ??
|
|
373
|
-
'' })] }), _jsxs("div", { children: [_jsx(FormLabel, { children: safeTranslate(t, 'byomClients:rotate.fields.password', 'New Password') }), _jsx(CodeSnippet, { type: 'single', children: byomRotatePassword })] }), _jsx(
|
|
375
|
+
'' })] }), _jsxs("div", { children: [_jsx(FormLabel, { children: safeTranslate(t, 'byomClients:rotate.fields.password', 'New Password') }), _jsx(CodeSnippet, { type: 'single', children: byomRotatePassword })] }), _jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, title: safeTranslate(t, 'byomClients:create.successNotificationTitle', 'The credentials will not be shown again.'), subtitle: safeTranslate(t, 'byomClients:create.successNotificationDescription', 'New password can be generated later.') })] }) }), _jsx(Modal, { open: byomDeleteOpen, danger: true, primaryButtonText: byomDeleteBusy ? (_jsx(InlineLoading, {})) : (safeTranslate(t, 'byomClients:delete.submit', 'Delete')), secondaryButtonText: safeTranslate(t, 'byomClients:delete.cancel', 'Cancel'), primaryButtonDisabled: byomDeleteBusy, onRequestClose: () => {
|
|
374
376
|
trackEvent('byomClients:delete:cancel', 'Cancel Delete BYOM Client Modal', { clientId: byomSelectedClientId });
|
|
375
377
|
setByomDeleteBusy(false);
|
|
376
378
|
setByomDeleteOpen(false);
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleClusterClientsService, ConsoleConnectorSecretsService, } from '@camunda/ccma-api';
|
|
3
3
|
import { checkVersion, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
4
|
-
import {
|
|
4
|
+
import { Form } from '@carbon/react';
|
|
5
5
|
import { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { C4ClusterClientCredentialsModal } from '../../../components/c4-cluster-client-credentials/c4-cluster-client-credentials.js';
|
|
7
7
|
import { C4ClusterClientCredentialsIdentityModal } from '../../../components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js';
|
|
8
8
|
import { C4ClusterDetailsClients } from '../../../components/c4-cluster-details-clients/c4-cluster-details-clients.js';
|
|
9
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
9
10
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
11
|
+
import { Checkbox, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
10
12
|
import { toHostWithoutProtocol } from './url-utils.js';
|
|
11
13
|
// Helper function to ensure translations work
|
|
12
14
|
function safeTranslate(t, key, fallback) {
|
|
@@ -278,7 +280,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
|
|
|
278
280
|
}
|
|
279
281
|
})();
|
|
280
282
|
}, children: _jsx(Form, { noValidate: true, children: _jsxs(Stack, { gap: 6, children: [hasIdentityIntegration &&
|
|
281
|
-
Boolean(cluster?.identityBackendChecksEnabled) && (_jsxs(Stack, { gap: 3, children: [_jsx(
|
|
283
|
+
Boolean(cluster?.identityBackendChecksEnabled) && (_jsxs(Stack, { gap: 3, children: [_jsx(C4InlineNotification, { lowContrast: true, kind: 'info', hideCloseButton: true, title: 'Client credential updates for 8.8 clusters', subtitle: "Authorizations for client credentials should be configured directly within the cluster's Admin component, using the client ID as a reference.", style: { maxInlineSize: '100%' } }), _jsx("div", { children: _jsx(Link, { href: identityAuthorizationDocsUrl, onClick: (event) => {
|
|
282
284
|
if (!onNavigate) {
|
|
283
285
|
return;
|
|
284
286
|
}
|
|
@@ -287,7 +289,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
|
|
|
287
289
|
kind: 'openUrl',
|
|
288
290
|
url: identityAuthorizationDocsUrl,
|
|
289
291
|
});
|
|
290
|
-
}, children: "Learn more about authorizations" }) })] })), clientMutationError && (_jsx(
|
|
292
|
+
}, children: "Learn more about authorizations" }) })] })), clientMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'clusterclients:create.error.title', 'Error'), subtitle: clientMutationError, hideCloseButton: true, lowContrast: true })), _jsx(TextInput, { id: 'clusterClientName-create', name: 'name', "data-modal-primary-focus": true, labelText: safeTranslate(t, 'clusterclients:create.fields.name.label', 'Client Name'), maxLength: 50, value: clientName, placeholder: safeTranslate(t, 'clusterclients:create.fields.name.label', 'Client Name'), helperText: safeTranslate(t, 'clusterclients:create.fields.name.helperText', 'can contain letters, dashes, underscores, and digits'), invalid: Boolean(clientNameTouched && validateClientName(clientName)), invalidText: (clientNameTouched && validateClientName(clientName)) ?? '', onChange: (event) => {
|
|
291
293
|
setClientName(event.target.value);
|
|
292
294
|
}, onBlur: () => setClientNameTouched(true) }), _jsxs(Stack, { gap: 2, children: [_jsx("h3", { children: safeTranslate(t, 'clusterclients:create.fields.scopes.label', 'Scopes') }), _jsx("p", { children: safeTranslate(t, 'clusterclients:create.fields.scopes.helperText', 'Scopes define the access for client credentials.') }), hasIdentityIntegration && (_jsx("p", { children: safeTranslate(t, 'clusterclients:create.fields.scopes.helperText8_8', 'Granular authorizations for the Orchestration Cluster API can be managed via Orchestration Cluster Identity.') })), _jsx("div", { style: { marginBottom: '8px' }, children: renderInlineLink(safeTranslate(t, 'clusterclients:create.fields.scopes.learnMoreHelperText', 'Read more about <0>Scopes for Client Credentials</0>.'), {
|
|
293
295
|
href: clientsDocsUrl,
|
|
@@ -861,7 +863,7 @@ export const C4ClusterDetailsClientsTab = (props) => {
|
|
|
861
863
|
setClientMutationBusy(false);
|
|
862
864
|
}
|
|
863
865
|
})();
|
|
864
|
-
}, children: _jsxs(Stack, { gap: 4, children: [clientMutationError && (_jsx(
|
|
866
|
+
}, children: _jsxs(Stack, { gap: 4, children: [clientMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'clusterclients:update.error.title', 'Error'), subtitle: clientMutationError, hideCloseButton: true, lowContrast: true })), _jsx(TextInput, { id: 'client-update-name', labelText: 'Name', value: clientName, onChange: (event) => setClientName(event.target.value) })] }) }), _jsx(Modal, { open: deleteClientOpen, danger: true, modalHeading: 'Delete API client', primaryButtonText: 'Delete', secondaryButtonText: 'Cancel', primaryButtonDisabled: clientMutationBusy, onRequestClose: () => {
|
|
865
867
|
trackEvent('apiClients:delete:cancel', 'Cancel Delete Api Client Modal');
|
|
866
868
|
setDeleteClientOpen(false);
|
|
867
869
|
}, onRequestSubmit: () => {
|
|
@@ -895,5 +897,5 @@ export const C4ClusterDetailsClientsTab = (props) => {
|
|
|
895
897
|
setClientMutationBusy(false);
|
|
896
898
|
}
|
|
897
899
|
})();
|
|
898
|
-
}, children: _jsxs(Stack, { gap: 4, children: [clientMutationError && (_jsx(
|
|
900
|
+
}, children: _jsxs(Stack, { gap: 4, children: [clientMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: safeTranslate(t, 'clusterclients:delete.error.title', 'Error'), subtitle: clientMutationError, hideCloseButton: true, lowContrast: true })), _jsx("p", { children: "Delete this client?" })] }) })] }));
|
|
899
901
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleConnectorSecretsService } from '@camunda/ccma-api';
|
|
3
3
|
import { SECRETS_MAX_LENGTH, SseEntity } from '@camunda/ccma-shared-types';
|
|
4
|
-
import {
|
|
4
|
+
import { FileUploader, Form, InlineLoading, PasswordInput } from '@carbon/react';
|
|
5
5
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { C4ClusterDetailsConnectorSecrets } from '../../../components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js';
|
|
7
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
7
8
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
8
9
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
10
|
+
import { CodeSnippet, Link, Modal, Stack, TextArea, TextInput, } from '../../../ui/index.js';
|
|
11
|
+
import { useSelectFamily } from '../../../ui/families.js';
|
|
9
12
|
function safeTranslate(t, key, fallback) {
|
|
10
13
|
if (!t)
|
|
11
14
|
return fallback;
|
|
@@ -38,6 +41,7 @@ function renderInlineLink0(value, linkRenderer) {
|
|
|
38
41
|
return (_jsxs("span", { children: [before, linkRenderer(label), after] }));
|
|
39
42
|
}
|
|
40
43
|
export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
44
|
+
const { Select, SelectItem } = useSelectFamily();
|
|
41
45
|
const { orgId, clusterId, apiConfig, canMutateCluster, connectorSecretsPermissions, docsUrl, t, onNavigate, useClusterSecretsLabel, } = props;
|
|
42
46
|
const pickSecretsText = (connectorKey, connectorFallback, clusterKey, clusterFallback) => useClusterSecretsLabel
|
|
43
47
|
? safeTranslate(t, clusterKey, clusterFallback)
|
|
@@ -297,7 +301,7 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
297
301
|
setSecretMutationBusy(false);
|
|
298
302
|
}
|
|
299
303
|
})();
|
|
300
|
-
}, children: _jsxs(Stack, { gap: 6, children: [secretMutationError && (_jsx(
|
|
304
|
+
}, children: _jsxs(Stack, { gap: 6, children: [secretMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: secretMutationError, hideCloseButton: true, lowContrast: true })), _jsxs(Form, { children: [_jsx(TextInput, { id: 'secret-create-key', labelText: safeTranslate(t, 'connectorsecrets:create.fields.key', 'Key'), helperText: safeTranslate(t, 'connectorsecrets:create.fields.keyHelperText', 'Unique identifier for the secret'), maxLength: 50, value: secretKey, invalid: secretKeyInvalid, invalidText: 'Key is required', onChange: (event) => {
|
|
301
305
|
setSecretKey(event.target.value);
|
|
302
306
|
if (secretKeyInvalid && event.target.value.length > 0) {
|
|
303
307
|
setSecretKeyInvalid(false);
|
|
@@ -344,7 +348,7 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
344
348
|
setSecretMutationBusy(false);
|
|
345
349
|
}
|
|
346
350
|
})();
|
|
347
|
-
}, children: _jsxs(Stack, { gap: 6, children: [secretMutationError && (_jsx(
|
|
351
|
+
}, children: _jsxs(Stack, { gap: 6, children: [secretMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: secretMutationError, hideCloseButton: true, lowContrast: true })), _jsx(Form, { children: _jsx(PasswordInput, { id: 'secret-update-value', labelText: safeTranslate(t, 'connectorsecrets:update.fields.value', 'Value'), maxLength: SECRETS_MAX_LENGTH, value: secretValue, onChange: (event) => setSecretValue(event.target.value) }) })] }) }), _jsx(Modal, { open: secretDeleteOpen, danger: true, modalHeading: `${safeTranslate(t, 'connectorsecrets:delete.heading', 'Delete connector secret')}: ${secretKey}`, primaryButtonText: safeTranslate(t, 'connectorsecrets:delete.buttons.primary', 'Delete'), secondaryButtonText: safeTranslate(t, 'connectorsecrets:delete.buttons.secondary', 'Cancel'), primaryButtonDisabled: secretMutationBusy, onRequestClose: () => {
|
|
348
352
|
trackEvent('listConnectors:delete:cancel', 'Close Delete Connector Secret Modal', {
|
|
349
353
|
key: secretKey,
|
|
350
354
|
});
|
|
@@ -382,7 +386,7 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
382
386
|
setSecretMutationBusy(false);
|
|
383
387
|
}
|
|
384
388
|
})();
|
|
385
|
-
}, children: _jsxs(Stack, { gap: 6, children: [secretMutationError && (_jsx(
|
|
389
|
+
}, children: _jsxs(Stack, { gap: 6, children: [secretMutationError && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: secretMutationError, hideCloseButton: true, lowContrast: true })), _jsx("p", { children: safeTranslate(t, 'connectorsecrets:delete.description', 'Are you sure you want to delete this secret?') })] }) }), _jsx(Modal, { open: secretRevealOpen, modalLabel: safeTranslate(t, 'connectorsecrets:reveal.heading', 'Secret value'), modalHeading: secretKey, primaryButtonText: safeTranslate(t, 'close', 'Close'), secondaryButtonText: '', onRequestClose: () => {
|
|
386
390
|
trackEvent('listConnectors:reveal:close', 'Close Reveal Connector Secret Modal', {
|
|
387
391
|
key: secretKey,
|
|
388
392
|
});
|
|
@@ -477,7 +481,7 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
477
481
|
setBulkImportBusy(false);
|
|
478
482
|
}
|
|
479
483
|
})();
|
|
480
|
-
}, size: 'md', children: _jsxs(Stack, { gap: 6, children: [bulkImportError && (_jsx(
|
|
484
|
+
}, size: 'md', children: _jsxs(Stack, { gap: 6, children: [bulkImportError && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: bulkImportError, hideCloseButton: true, lowContrast: true })), _jsx(FileUploader, { labelTitle: safeTranslate(t, 'connectorsecrets:bulkImport.fields.fileUploadLabel', 'Upload file'), labelDescription: safeTranslate(t, 'connectorsecrets:bulkImport.fields.fileUploadDescription', 'Select a .env or .txt file'), buttonLabel: safeTranslate(t, 'connectorsecrets:bulkImport.fields.fileUploadButton', 'Select file'), buttonKind: 'tertiary', size: 'md', filenameStatus: 'edit', accept: ['.env', '.txt'], multiple: false, iconDescription: 'Remove file', onChange: async (event) => {
|
|
481
485
|
const files = event.target.files;
|
|
482
486
|
if (files && files.length > 0) {
|
|
483
487
|
try {
|
|
@@ -557,7 +561,7 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
557
561
|
setImportFromClusterBusy(false);
|
|
558
562
|
}
|
|
559
563
|
})();
|
|
560
|
-
}, size: 'md', children: _jsxs(Stack, { gap: 6, children: [importFromClusterError && (_jsx(
|
|
564
|
+
}, size: 'md', children: _jsxs(Stack, { gap: 6, children: [importFromClusterError && (_jsx(C4InlineNotification, { kind: 'error', title: 'Error', subtitle: importFromClusterError, hideCloseButton: true, lowContrast: true })), availableClusters.length === 0 ? (_jsx("p", { children: safeTranslate(t, 'connectorsecrets:importFromCluster.noClusters', 'No other clusters available to import from') })) : (_jsxs(Form, { children: [_jsxs(Select, { id: 'source-cluster-select', labelText: safeTranslate(t, 'connectorsecrets:importFromCluster.fields.sourceCluster', 'Source cluster'), helperText: safeTranslate(t, 'connectorsecrets:importFromCluster.fields.sourceClusterHelperText', 'Select a cluster to import secrets from'), value: selectedSourceClusterId, invalid: sourceClusterInvalid, invalidText: 'Please select a cluster', onChange: async (event) => {
|
|
561
565
|
const clusterId = event.target.value;
|
|
562
566
|
setSelectedSourceClusterId(clusterId);
|
|
563
567
|
setSourceClusterInvalid(false);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleBackupScheduleService, ConsoleHotBackupsService, } from '@camunda/ccma-api';
|
|
3
3
|
import { BackupStatus, checkVersion, HOTBACKUP_MIN_CREATE_PERIOD, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
4
|
-
import { Checkbox, Modal, Select, SelectItem, Stack, TextInput, } from '@carbon/react';
|
|
5
4
|
import { CronExpression, CronExpressionParser, CronFieldCollection, } from 'cron-parser';
|
|
6
5
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
6
|
import { C4ClusterDetailsHotBackups } from '../../../components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js';
|
|
@@ -9,6 +8,8 @@ import { C4ClusterDetailsHotBackupsRestore } from '../../../components/c4-cluste
|
|
|
9
8
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
10
9
|
import { useC4ConsoleNotifications } from '../../../runtime/c4-console-notifications-context.js';
|
|
11
10
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
11
|
+
import { Checkbox, Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
12
|
+
import { useSelectFamily } from '../../../ui/families.js';
|
|
12
13
|
const WEEKDAYS = [
|
|
13
14
|
'Monday',
|
|
14
15
|
'Tuesday',
|
|
@@ -95,6 +96,7 @@ function safeTranslate(t, key, fallback) {
|
|
|
95
96
|
return result === key ? fallback : result;
|
|
96
97
|
}
|
|
97
98
|
export const C4ClusterDetailsHotBackupsTab = (props) => {
|
|
99
|
+
const { Select, SelectItem } = useSelectFamily();
|
|
98
100
|
const { cluster, orgId, clusterId, apiConfig, canMutateCluster, isHotBackupEnabled, docsUrls, t, onNavigate, onReloadCluster, } = props;
|
|
99
101
|
const data = useC4ConsoleData();
|
|
100
102
|
const runtime = useC4ConsoleRuntime();
|