@camunda/ccma-saas-frontend 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -1
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +3 -3
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.js +90 -73
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +13 -13
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +1 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +1 -1
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +4 -4
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +4 -3
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +13 -2
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +1 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +1 -1
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +2 -2
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +31 -25
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +11 -8
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +21 -20
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +22 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +4 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +10 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +5 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.js +7 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +8 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +11 -11
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +7 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +1 -1
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +26 -5
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +1 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +16 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +5 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +1 -1
- package/lib/esm/components/c4-data-table/c4-data-table.js +58 -4
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +1 -1
- package/lib/esm/components/c4-external-link/c4-external-link.d.ts +1 -1
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +1 -1
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +2 -47
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +2 -2
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +2 -2
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +9 -4
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +1 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +2 -2
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -5
- package/lib/esm/components/c4-management-users/c4-management-users.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +2 -2
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +1 -1
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +9 -4
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -1
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.types.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search.d.ts +2 -2
- package/lib/esm/components/c4-search/c4-search.types.d.ts +1 -1
- package/lib/esm/components/c4-search/search.utils.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +2 -2
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +1 -1
- package/lib/esm/components/c4-stat/c4-stat.d.ts +1 -1
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +1 -1
- package/lib/esm/components/c4-tabs/c4-tabs.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +2 -2
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +1 -1
- package/lib/esm/components/c4-toggle/c4-toggle.d.ts +1 -1
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.d.ts +8 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.js +18 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.types.d.ts +15 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.d.ts +5 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.js +36 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +1 -1
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +2 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +2 -2
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +6 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +2 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +14 -8
- package/lib/esm/components/c4-user-details/c4-user-details.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +3 -3
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +14 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +22 -1
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +14 -3
- package/lib/esm/i18n/en/pages/dashboard.json +1 -0
- package/lib/esm/i18n/en/pages/orgmanagement.json +8 -0
- package/lib/esm/icons/c4-icons.d.ts +1 -1
- package/lib/esm/index.d.ts +237 -253
- package/lib/esm/index.js +6 -11
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +1 -1
- package/lib/esm/notifications/c4-console-notifications-handle.d.ts +1 -1
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +1 -1
- package/lib/esm/runtime/c4-console-data-context.d.ts +19 -7
- package/lib/esm/runtime/c4-console-data-context.js +40 -15
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +6 -0
- package/lib/esm/runtime/c4-console-data-store.d.ts +12 -1
- package/lib/esm/runtime/c4-console-data-store.js +74 -34
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/index.d.ts +40 -0
- package/lib/esm/runtime/index.js +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +11 -3
- package/lib/esm/runtime/to-api-config.d.ts +2 -2
- package/lib/esm/runtime/to-api-config.js +6 -0
- package/lib/esm/runtime/to-api-domain.d.ts +1 -1
- package/lib/esm/runtime/to-identity-api-base-url.d.ts +1 -1
- package/lib/esm/ui/c4-modal-dialog.js +16 -3
- package/lib/esm/ui/index.d.ts +2 -2
- package/lib/esm/ui/index.js +28 -2
- package/lib/esm/utils/role-labels.d.ts +20 -0
- package/lib/esm/utils/role-labels.js +79 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +55 -2
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +4 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +5 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +4 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +6 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +31 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +23 -8
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +5 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +115 -45
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.d.ts +36 -0
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.js +58 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +2 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +12 -3
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +25 -6
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.d.ts +2 -2
- package/lib/esm/widgets/management/c4-management-app.js +142 -22
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +16 -1
- package/lib/esm/widgets/management/c4-management-page.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +3 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +4 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +63 -87
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.js +29 -82
- package/package.json +50 -30
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +0 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +0 -43
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.d.ts +0 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +0 -67
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.js +0 -132
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.js +0 -87
- package/lib/esm/components/c4-cluster-overview/applications.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +0 -58
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +0 -38
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +0 -93
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +0 -50
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +0 -42
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +0 -120
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +0 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +0 -40
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +0 -83
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +0 -350
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +0 -71
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +0 -151
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +0 -33
- package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +0 -1
- package/lib/esm/components/c4-page-template/c4-page-template.spec.js +0 -58
- package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +0 -6
- package/lib/esm/components/c4-page-template/c4-page-template.stories.js +0 -73
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +0 -3
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +0 -26
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +0 -12
- package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +0 -1
- package/lib/esm/components/c4-tabs/c4-tabs.spec.js +0 -97
- package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +0 -6
- package/lib/esm/components/c4-tabs/c4-tabs.stories.js +0 -35
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +0 -1
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +0 -47
- package/lib/esm/externalUrls.const.spec.d.ts +0 -1
- package/lib/esm/externalUrls.const.spec.js +0 -102
- package/lib/esm/runtime/c4-console-authz.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +0 -202
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -121
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -263
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -80
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/camunda-apps.spec.js +0 -90
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +0 -91
- package/lib/esm/setupTests.d.ts +0 -1
- package/lib/esm/setupTests.js +0 -37
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +0 -49
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +0 -471
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +0 -95
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +0 -33
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.js +0 -72
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.js +0 -85
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.js +0 -105
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +0 -226
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +0 -179
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +0 -1255
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +0 -397
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +0 -488
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +0 -34
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +0 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +0 -502
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +0 -226
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +0 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +0 -191
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +0 -35
- package/lib/esm/widgets/management/c4-management-app.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-app.spec.js +0 -509
- package/lib/esm/widgets/management/c4-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-page.spec.js +0 -40
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/management/management-tabs.spec.js +0 -28
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.js +0 -246
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +0 -225
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +0 -1
- package/lib/esm/widgets/use-extend-trial.spec.js +0 -79
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +0 -65
- /package/lib/esm/components/{c4-stackdriver-links/c4-stackdriver-links.types.js → c4-tsuga-links/c4-tsuga-links.types.js} +0 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
4
|
* You may not use this file except in compliance with the commercial license.
|
|
5
5
|
*/
|
|
6
|
+
import { useObserver } from 'mobx-react-lite';
|
|
6
7
|
import { useEffect, useMemo } from 'react';
|
|
7
8
|
import { useC4ConsoleData } from '../c4-console-data-context.js';
|
|
8
9
|
import { useC4ConsoleRuntime } from '../c4-console-runtime-context.js';
|
|
@@ -30,7 +31,10 @@ export function useC4ClusterNavEntries(orgId, options = {}) {
|
|
|
30
31
|
void data.fetchWebappClusters(orgId);
|
|
31
32
|
}
|
|
32
33
|
}, [data, orgId]);
|
|
33
|
-
|
|
34
|
+
// Read through useObserver so this hook re-renders its caller when the
|
|
35
|
+
// webapp-cluster data changes, even when that caller is not itself an
|
|
36
|
+
// observer (the data context value is stable and no longer bumps globally).
|
|
37
|
+
const clusters = useObserver(() => data.getWebappClusters(orgId));
|
|
34
38
|
const { apps = DEFAULT_NAV_APPS, isAppVisible, appTeaserHrefs, appLabels, } = options;
|
|
35
39
|
return useMemo(() => {
|
|
36
40
|
if (!clusters) {
|
|
@@ -99,8 +103,12 @@ export function useC4WebappBreadcrumbData(options) {
|
|
|
99
103
|
void data.fetchWebappClusters(orgId);
|
|
100
104
|
}
|
|
101
105
|
}, [data, orgId]);
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
// Read through useObserver so this hook re-renders its caller when the orgs
|
|
107
|
+
// or webapp-cluster data changes, even for non-observer callers.
|
|
108
|
+
const { orgs, clusters } = useObserver(() => ({
|
|
109
|
+
orgs: data.getMyOrgs(),
|
|
110
|
+
clusters: data.getWebappClusters(orgId),
|
|
111
|
+
}));
|
|
104
112
|
return useMemo(() => {
|
|
105
113
|
const crumbs = [];
|
|
106
114
|
const modelerUrl = webappLinks?.modeler ?? runtime.publicUrls?.modelerBaseUrl;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { C4ConsoleRuntimeConfig } from './c4-console-runtime.types';
|
|
1
|
+
import { type RequestBaseParamsConfig } from '@camunda/ccma-api';
|
|
2
|
+
import type { C4ConsoleRuntimeConfig } from './c4-console-runtime.types.js';
|
|
3
3
|
export declare function toApiConfig(runtime: C4ConsoleRuntimeConfig): RequestBaseParamsConfig;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
4
|
* You may not use this file except in compliance with the commercial license.
|
|
5
5
|
*/
|
|
6
|
+
import { correlationHeaders, } from '@camunda/ccma-api';
|
|
6
7
|
function normalizeBaseUrl(url) {
|
|
7
8
|
return url.endsWith('/') ? url.slice(0, -1) : url;
|
|
8
9
|
}
|
|
@@ -30,6 +31,11 @@ export function toApiConfig(runtime) {
|
|
|
30
31
|
auth: {
|
|
31
32
|
getToken: runtime.auth.getAccessToken,
|
|
32
33
|
},
|
|
34
|
+
// Start a W3C trace per request and send the stable per-tab session id, so
|
|
35
|
+
// every c4 runtime request (and its SSE streams) is followable end to end
|
|
36
|
+
// and grouped into the browser session — matching the console/accounts
|
|
37
|
+
// frontends. No-op-safe on any host that embeds c4.
|
|
38
|
+
getDynamicHeaders: correlationHeaders,
|
|
33
39
|
envOverride: Object.keys(envOverride).length > 0 ? envOverride : undefined,
|
|
34
40
|
};
|
|
35
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConsoleBackendUrls, ConsoleStage } from './c4-console-runtime.types';
|
|
1
|
+
import type { ConsoleBackendUrls, ConsoleStage } from './c4-console-runtime.types.js';
|
|
2
2
|
export declare function toIdentityApiBaseUrl(runtime: {
|
|
3
3
|
stage: ConsoleStage;
|
|
4
4
|
backendUrls: ConsoleBackendUrls;
|
|
@@ -6,11 +6,24 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
*/
|
|
7
7
|
import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@camunda/design-system';
|
|
8
8
|
// Carbon Modal `size` → DS DialogContent max-width.
|
|
9
|
+
//
|
|
10
|
+
// These must be classes the DS package's own Tailwind build actually
|
|
11
|
+
// generated into its shipped `styles.css` — this package (packages/c4) does
|
|
12
|
+
// not run its own Tailwind pass over these adapters, so any utility class
|
|
13
|
+
// referenced here that isn't already present in that prebuilt stylesheet
|
|
14
|
+
// compiles to a className with no matching CSS rule at all, silently
|
|
15
|
+
// no-op'ing the width cap (the DialogContent's own unconditional base class,
|
|
16
|
+
// `max-w-[calc(100%-2rem)]`, is all that's left, i.e. full viewport width).
|
|
17
|
+
// Named scale classes like `sm:max-w-md`/`sm:max-w-lg`/`sm:max-w-3xl` are NOT
|
|
18
|
+
// in that stylesheet (only `sm:max-w-sm` is, plus safelisted arbitrary-value
|
|
19
|
+
// dialog widths `sm:max-w-[400px|600px|800px]`) — verified against the
|
|
20
|
+
// published `@camunda/design-system` package's `dist/styles.css`. Stick to
|
|
21
|
+
// that verified set; don't reach for other named max-w-* utilities here.
|
|
9
22
|
const SIZE_CLASS = {
|
|
10
23
|
xs: 'sm:max-w-sm',
|
|
11
|
-
sm: 'sm:max-w-
|
|
12
|
-
md: 'sm:max-w-
|
|
13
|
-
lg: 'sm:max-w-
|
|
24
|
+
sm: 'sm:max-w-[400px]',
|
|
25
|
+
md: 'sm:max-w-[600px]',
|
|
26
|
+
lg: 'sm:max-w-[800px]',
|
|
14
27
|
};
|
|
15
28
|
/**
|
|
16
29
|
* Carbon `Modal` API → DS `Dialog`.
|
package/lib/esm/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterableMultiSelect as CarbonFilterableMultiSelect, MultiSelect as CarbonMultiSelect, Tooltip as CarbonTooltip } from '@carbon/react';
|
|
1
|
+
import { FilterableMultiSelect as CarbonFilterableMultiSelect, MultiSelect as CarbonMultiSelect, TextArea as CarbonTextArea, Tooltip as CarbonTooltip } from '@carbon/react';
|
|
2
2
|
import { type ComponentType } from 'react';
|
|
3
3
|
export declare const Button: ComponentType<import("@camunda/design-system/carbon-compat").ButtonProps<"button">>;
|
|
4
4
|
export declare const Checkbox: ComponentType<import("@carbon/react").CheckboxProps & import("react").RefAttributes<unknown>>;
|
|
@@ -25,7 +25,7 @@ export declare const OverflowMenu: ComponentType<import("@carbon/react").Overflo
|
|
|
25
25
|
export declare const OverflowMenuItem: ComponentType<Omit<import("@carbon/react").OverflowMenuItemProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
26
26
|
export declare const Stack: ComponentType<import("@carbon/react").StackProps & import("react").RefAttributes<HTMLElement>>;
|
|
27
27
|
export declare const Tag: ComponentType<import("@camunda/design-system/carbon-compat").TagProps<"div">>;
|
|
28
|
-
export declare const TextArea:
|
|
28
|
+
export declare const TextArea: typeof CarbonTextArea;
|
|
29
29
|
export declare const TextInput: ComponentType<import("@carbon/react").TextInputProps & import("react").RefAttributes<unknown>>;
|
|
30
30
|
export declare const Tile: ComponentType<import("@carbon/react").TileProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
31
|
export declare const Toggle: ComponentType<import("@carbon/react").ToggleProps>;
|
package/lib/esm/ui/index.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
*/
|
|
33
33
|
import { BreadcrumbSkeleton as DsBreadcrumbSkeleton, Button as DsButton, Checkbox as DsCheckbox, CodeSnippet as DsCodeSnippet, ComposedModal as DsComposedModal, Dropdown as DsDropdown, FilterableMultiSelect as DsFilterableMultiSelect, Link as DsLink, Loading as DsLoading, ModalBody as DsModalBody, ModalFooter as DsModalFooter, ModalHeader as DsModalHeader, MultiSelect as DsMultiSelect, OverflowMenu as DsOverflowMenu, OverflowMenuItem as DsOverflowMenuItem, ProgressBar as DsProgressBar, Search as DsSearch, SkeletonPlaceholder as DsSkeletonPlaceholder, SkeletonText as DsSkeletonText, Stack as DsStack, TabsSkeleton as DsTabsSkeleton, Tag as DsTag, TextArea as DsTextArea, TextInput as DsTextInput, Tile as DsTile, Toggle as DsToggle, Tooltip as DsTooltip, } from '@camunda/design-system/carbon-compat';
|
|
34
34
|
import { BreadcrumbSkeleton as CarbonBreadcrumbSkeleton, Button as CarbonButton, Checkbox as CarbonCheckbox, CodeSnippet as CarbonCodeSnippet, ComposedModal as CarbonComposedModal, Dropdown as CarbonDropdown, FilterableMultiSelect as CarbonFilterableMultiSelect, Link as CarbonLink, Loading as CarbonLoading, Modal as CarbonModal, ModalBody as CarbonModalBody, ModalFooter as CarbonModalFooter, ModalHeader as CarbonModalHeader, MultiSelect as CarbonMultiSelect, OverflowMenu as CarbonOverflowMenu, OverflowMenuItem as CarbonOverflowMenuItem, ProgressBar as CarbonProgressBar, Search as CarbonSearch, SkeletonPlaceholder as CarbonSkeletonPlaceholder, SkeletonText as CarbonSkeletonText, Stack as CarbonStack, TabsSkeleton as CarbonTabsSkeleton, Tag as CarbonTag, TextArea as CarbonTextArea, TextInput as CarbonTextInput, Tile as CarbonTile, Toggle as CarbonToggle, Tooltip as CarbonTooltip, } from '@carbon/react';
|
|
35
|
-
import { createElement } from 'react';
|
|
35
|
+
import { createElement, Fragment, } from 'react';
|
|
36
36
|
import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
|
|
37
37
|
import { C4ModalDialog } from './c4-modal-dialog.js';
|
|
38
38
|
import { switchable } from './switchable.js';
|
|
@@ -65,7 +65,33 @@ export const OverflowMenu = switchable(CarbonOverflowMenu, DsOverflowMenu);
|
|
|
65
65
|
export const OverflowMenuItem = switchable(CarbonOverflowMenuItem, DsOverflowMenuItem);
|
|
66
66
|
export const Stack = switchable(CarbonStack, DsStack);
|
|
67
67
|
export const Tag = switchable(CarbonTag, DsTag);
|
|
68
|
-
|
|
68
|
+
// The DS TextArea adapter destructures `helperText`/`invalid`/`invalidText`
|
|
69
|
+
// into `warnDroppedProps` without rendering them, so per-field helper subtitles
|
|
70
|
+
// and validation errors vanish in ds mode (Carbon's TextArea renders them via
|
|
71
|
+
// its own FormHelperText markup, so carbon mode is unaffected). Mirror the DS
|
|
72
|
+
// TextInput adapter, which DOES render them: append a helper/error `<span>`
|
|
73
|
+
// sibling after the DS TextArea, with the same classes and error-over-helper
|
|
74
|
+
// precedence. Carbon mode stays byte-identical.
|
|
75
|
+
function C4TextArea(props) {
|
|
76
|
+
const designSystem = useC4DesignSystem();
|
|
77
|
+
if (designSystem !== 'ds') {
|
|
78
|
+
return createElement(CarbonTextArea, props);
|
|
79
|
+
}
|
|
80
|
+
// Strip helperText/invalid/invalidText before handing off to the DS adapter:
|
|
81
|
+
// in ds mode it only feeds them into `warnDroppedProps` (without rendering),
|
|
82
|
+
// which `console.warn`s once per render (no dedup). We render them via the
|
|
83
|
+
// sibling `<span>` below instead, so pass the rest through (cf. C4Tooltip).
|
|
84
|
+
const { invalid, invalidText, helperText, ...dsProps } = props;
|
|
85
|
+
let message;
|
|
86
|
+
if (invalid && invalidText !== undefined) {
|
|
87
|
+
message = createElement('span', { className: 'text-xs text-danger-action-default' }, invalidText);
|
|
88
|
+
}
|
|
89
|
+
else if (helperText !== undefined) {
|
|
90
|
+
message = createElement('span', { className: 'text-xs text-neutral-foreground-subtle' }, helperText);
|
|
91
|
+
}
|
|
92
|
+
return createElement(Fragment, null, createElement(DsTextArea, dsProps), message);
|
|
93
|
+
}
|
|
94
|
+
export const TextArea = C4TextArea;
|
|
69
95
|
export const TextInput = switchable(CarbonTextInput, DsTextInput);
|
|
70
96
|
export const Tile = switchable(CarbonTile, DsTile);
|
|
71
97
|
export const Toggle = switchable(CarbonToggle, DsToggle);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type AssignableOrganizationRoleType } from '@camunda/ccma-shared-types';
|
|
2
|
+
type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
|
|
3
|
+
export declare const LEGACY_SECTION_ROLES: AssignableOrganizationRoleType[];
|
|
4
|
+
/**
|
|
5
|
+
* Whether a role from the legacy section may be offered: freely while the org
|
|
6
|
+
* has an 8.7-or-older cluster; Developer/Visitor/Task user additionally stay
|
|
7
|
+
* offered to a holder so they can be removed.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isRoleAssignable(role: string, showLegacyClusterRoles: boolean, heldRoles: ReadonlySet<string>): boolean;
|
|
10
|
+
export declare function isLegacyLabeledRole(role: string, showLegacyClusterRoles: boolean): boolean;
|
|
11
|
+
/** Section heading: verbose 8.7 copy while such a cluster exists, else the unassign-only copy. */
|
|
12
|
+
export declare function moreRolesHeadingText(t: TranslateFn | undefined, showLegacyClusterRoles: boolean): string;
|
|
13
|
+
/** Resolve a role's label and description from the `orgroles` i18n namespace. */
|
|
14
|
+
export declare function roleLabelDescription(t: TranslateFn | undefined, role: string, options?: {
|
|
15
|
+
legacy?: boolean;
|
|
16
|
+
}): {
|
|
17
|
+
label: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { LegacyHeldOrganizationRole, OrganizationRole, } from '@camunda/ccma-shared-types';
|
|
7
|
+
function safeTranslate(t, key, defaultValue) {
|
|
8
|
+
if (!t)
|
|
9
|
+
return defaultValue;
|
|
10
|
+
try {
|
|
11
|
+
const translated = t(key);
|
|
12
|
+
return typeof translated === 'string' && translated !== key
|
|
13
|
+
? translated
|
|
14
|
+
: defaultValue;
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
return defaultValue;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
// Historical UI order of the 8.7-cluster roles section.
|
|
21
|
+
export const LEGACY_SECTION_ROLES = [
|
|
22
|
+
OrganizationRole.VISITOR,
|
|
23
|
+
OrganizationRole.OPERATIONS_ENGINEER,
|
|
24
|
+
OrganizationRole.TASK_USER,
|
|
25
|
+
OrganizationRole.DEVELOPER,
|
|
26
|
+
];
|
|
27
|
+
const LEGACY_HELD_ROLES = new Set(LegacyHeldOrganizationRole);
|
|
28
|
+
/**
|
|
29
|
+
* Whether a role from the legacy section may be offered: freely while the org
|
|
30
|
+
* has an 8.7-or-older cluster; Developer/Visitor/Task user additionally stay
|
|
31
|
+
* offered to a holder so they can be removed.
|
|
32
|
+
*/
|
|
33
|
+
export function isRoleAssignable(role, showLegacyClusterRoles, heldRoles) {
|
|
34
|
+
// MEMBER predates the cluster roles and is never newly assignable.
|
|
35
|
+
if (role === OrganizationRole.MEMBER) {
|
|
36
|
+
return heldRoles.has(role);
|
|
37
|
+
}
|
|
38
|
+
if (LEGACY_HELD_ROLES.has(role)) {
|
|
39
|
+
return showLegacyClusterRoles || heldRoles.has(role);
|
|
40
|
+
}
|
|
41
|
+
return showLegacyClusterRoles;
|
|
42
|
+
}
|
|
43
|
+
export function isLegacyLabeledRole(role, showLegacyClusterRoles) {
|
|
44
|
+
if (role === OrganizationRole.MEMBER) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
return !showLegacyClusterRoles && LEGACY_HELD_ROLES.has(role);
|
|
48
|
+
}
|
|
49
|
+
/** Section heading: verbose 8.7 copy while such a cluster exists, else the unassign-only copy. */
|
|
50
|
+
export function moreRolesHeadingText(t, showLegacyClusterRoles) {
|
|
51
|
+
return showLegacyClusterRoles
|
|
52
|
+
? safeTranslate(t, 'invitations:invite.form.moreRoles', 'Select additional role(s) to clusters on version 8.7 or older')
|
|
53
|
+
: safeTranslate(t, 'orgroles:legacyRolesHeading', 'Legacy roles (unassign only)');
|
|
54
|
+
}
|
|
55
|
+
const ROLE_LABEL_DEFAULTS = {
|
|
56
|
+
[OrganizationRole.OWNER]: 'Owner',
|
|
57
|
+
[OrganizationRole.ADMIN]: 'Admin',
|
|
58
|
+
[OrganizationRole.MEMBER]: 'Member',
|
|
59
|
+
[OrganizationRole.SUPPORTAGENT]: 'Support agent',
|
|
60
|
+
[OrganizationRole.OPERATIONS_ENGINEER]: 'Operations engineer',
|
|
61
|
+
[OrganizationRole.TASK_USER]: 'Task user',
|
|
62
|
+
[OrganizationRole.ANALYST]: 'Analyst',
|
|
63
|
+
[OrganizationRole.DEVELOPER]: 'Developer',
|
|
64
|
+
[OrganizationRole.VISITOR]: 'Visitor',
|
|
65
|
+
[OrganizationRole.MODELER]: 'Modeler',
|
|
66
|
+
};
|
|
67
|
+
/** Resolve a role's label and description from the `orgroles` i18n namespace. */
|
|
68
|
+
export function roleLabelDescription(t, role, options) {
|
|
69
|
+
const normalized = role.toLowerCase().replace(/[^a-z]/g, '');
|
|
70
|
+
const fallback = ROLE_LABEL_DEFAULTS[role] ??
|
|
71
|
+
(role ? role.charAt(0).toUpperCase() + role.slice(1) : role);
|
|
72
|
+
const label = safeTranslate(t, `orgroles:${normalized}.label`, fallback);
|
|
73
|
+
const description = safeTranslate(t, `orgroles:${normalized}.description`, '');
|
|
74
|
+
if (options?.legacy) {
|
|
75
|
+
const suffix = safeTranslate(t, 'orgroles:legacySuffix', 'Legacy');
|
|
76
|
+
return { label: `${label} (${suffix})`, description };
|
|
77
|
+
}
|
|
78
|
+
return { label, description };
|
|
79
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterClientDetailsAppProps } from './c4-cluster-client-details-app.types';
|
|
1
|
+
import type { C4ClusterClientDetailsAppProps } from './c4-cluster-client-details-app.types.js';
|
|
2
2
|
export declare const C4ClusterClientDetailsApp: ((props: C4ClusterClientDetailsAppProps) => React.JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterDetailsNavigateEvent } from '../cluster-details/c4-cluster-details-app.types';
|
|
1
|
+
import type { C4ClusterDetailsNavigateEvent } from '../cluster-details/c4-cluster-details-app.types.js';
|
|
2
2
|
export interface C4ClusterClientDetailsAppProps {
|
|
3
3
|
orgId: string;
|
|
4
4
|
clusterId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsAppProps } from './c4-cluster-details-app.types';
|
|
2
|
+
import type { C4ClusterDetailsAppProps } from './c4-cluster-details-app.types.js';
|
|
3
3
|
export declare function mergeNestedSnapshot<T>(previous: T | undefined, next: T): T;
|
|
4
4
|
export declare const C4ClusterDetailsApp: ((props: C4ClusterDetailsAppProps) => JSX.Element) & {
|
|
5
5
|
displayName: string;
|
|
@@ -132,6 +132,28 @@ export function mergeNestedSnapshot(previous, next) {
|
|
|
132
132
|
}
|
|
133
133
|
return merged;
|
|
134
134
|
}
|
|
135
|
+
// Client-side dismissal of the "restore failed" banner. The failed state is
|
|
136
|
+
// derived from the Restore CR, so there is no server-side "seen" flag — we
|
|
137
|
+
// remember dismissed restore ids (per browser) in localStorage instead. Keyed
|
|
138
|
+
// by restore uuid so a *new* failed restore re-shows the banner.
|
|
139
|
+
const DISMISSED_FAILED_RESTORES_KEY = 'c4:dismissedFailedRestores';
|
|
140
|
+
function loadDismissedFailedRestores() {
|
|
141
|
+
try {
|
|
142
|
+
const raw = window.localStorage.getItem(DISMISSED_FAILED_RESTORES_KEY);
|
|
143
|
+
return new Set(raw ? JSON.parse(raw) : []);
|
|
144
|
+
}
|
|
145
|
+
catch {
|
|
146
|
+
return new Set();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function persistDismissedFailedRestores(ids) {
|
|
150
|
+
try {
|
|
151
|
+
window.localStorage.setItem(DISMISSED_FAILED_RESTORES_KEY, JSON.stringify([...ids]));
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
// localStorage unavailable (private mode / SSR) — dismissal is best-effort.
|
|
155
|
+
}
|
|
156
|
+
}
|
|
135
157
|
function ensureClusterLoadPerDay(perDay) {
|
|
136
158
|
const DAY = 24 * 60 * 60 * 1000;
|
|
137
159
|
const now = Date.now();
|
|
@@ -453,12 +475,29 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
453
475
|
versionToCompareTo: '8.10.0',
|
|
454
476
|
});
|
|
455
477
|
}, [cluster?.generation?.versions?.zeebe]);
|
|
478
|
+
const [dismissedFailedRestores, setDismissedFailedRestores] = useState(loadDismissedFailedRestores);
|
|
479
|
+
const dismissFailedRestore = useCallback((restoreId) => {
|
|
480
|
+
setDismissedFailedRestores((prev) => {
|
|
481
|
+
const next = new Set(prev).add(restoreId);
|
|
482
|
+
persistDismissedFailedRestores(next);
|
|
483
|
+
return next;
|
|
484
|
+
});
|
|
485
|
+
}, []);
|
|
456
486
|
const banner = useMemo(() => {
|
|
457
487
|
if (!cluster)
|
|
458
488
|
return undefined;
|
|
459
489
|
if (cluster.restoreInProgress) {
|
|
460
490
|
return { kind: 'restoreInProgress' };
|
|
461
491
|
}
|
|
492
|
+
if (cluster.restoreFailed &&
|
|
493
|
+
cluster.failedRestoreId &&
|
|
494
|
+
!dismissedFailedRestores.has(cluster.failedRestoreId)) {
|
|
495
|
+
const restoreId = cluster.failedRestoreId;
|
|
496
|
+
return {
|
|
497
|
+
kind: 'restoreFailed',
|
|
498
|
+
onDismiss: () => dismissFailedRestore(restoreId),
|
|
499
|
+
};
|
|
500
|
+
}
|
|
462
501
|
if (isUnsupportedGenerationStarted(cluster.generation?.isUnsupportedStarting)) {
|
|
463
502
|
return {
|
|
464
503
|
kind: 'unsupportedGeneration',
|
|
@@ -484,7 +523,14 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
484
523
|
};
|
|
485
524
|
}
|
|
486
525
|
return undefined;
|
|
487
|
-
}, [
|
|
526
|
+
}, [
|
|
527
|
+
cluster,
|
|
528
|
+
hasIdentityIntegration,
|
|
529
|
+
props.onNavigate,
|
|
530
|
+
urls,
|
|
531
|
+
dismissedFailedRestores,
|
|
532
|
+
dismissFailedRestore,
|
|
533
|
+
]);
|
|
488
534
|
// -----------------------------
|
|
489
535
|
// Cluster menu modals
|
|
490
536
|
// -----------------------------
|
|
@@ -948,7 +994,11 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
948
994
|
// changes to the underlying permission re-trigger their recompute.
|
|
949
995
|
const canMutateClusterApiResources = Boolean(authz.visibilities.clusters?.canEdit);
|
|
950
996
|
const clientsComponent = useMemo(() => {
|
|
951
|
-
return (_jsx(C4ClusterDetailsClientsTab, { cluster: cluster, clients: clients, clientsLoading: clientsLoading, clientsError: clientsError, hasIdentityIntegration: hasIdentityIntegration, useClusterSecretsLabel: useClusterSecretsLabel, orgId: props.orgId, clusterId: props.clusterId, clientsDocsUrl: clientsDocsUrl, mcpSetupDocsUrl: urls.docs.mcpSetup, identityAuthorizationDocsUrl: urls.docs.identityAuthorization, springZeebeGettingStartedDocsUrl: urls.docs.springZeebeGettingStarted, springZeebeConfigDocsUrl: urls.docs.springZeebeConfig, apiConfig: apiConfig, canMutateCluster: canMutateClusterApiResources,
|
|
997
|
+
return (_jsx(C4ClusterDetailsClientsTab, { cluster: cluster, clients: clients, clientsLoading: clientsLoading, clientsError: clientsError, hasIdentityIntegration: hasIdentityIntegration, useClusterSecretsLabel: useClusterSecretsLabel, orgId: props.orgId, clusterId: props.clusterId, clientsDocsUrl: clientsDocsUrl, mcpSetupDocsUrl: urls.docs.mcpSetup, identityAuthorizationDocsUrl: urls.docs.identityAuthorization, springZeebeGettingStartedDocsUrl: urls.docs.springZeebeGettingStarted, springZeebeConfigDocsUrl: urls.docs.springZeebeConfig, apiConfig: apiConfig, canMutateCluster: canMutateClusterApiResources, clientsPermissions: {
|
|
998
|
+
canCreate: Boolean(orgPermissions?.cluster.clients.create),
|
|
999
|
+
canUpdate: Boolean(orgPermissions?.cluster.clients.update),
|
|
1000
|
+
canDelete: Boolean(orgPermissions?.cluster.clients.delete),
|
|
1001
|
+
}, t: t ?? ((key) => key), onNavigate: props.onNavigate, onReloadClients: reloadClients }));
|
|
952
1002
|
}, [
|
|
953
1003
|
canMutateClusterApiResources,
|
|
954
1004
|
clientsDocsUrl,
|
|
@@ -959,6 +1009,9 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
959
1009
|
hasIdentityIntegration,
|
|
960
1010
|
useClusterSecretsLabel,
|
|
961
1011
|
apiConfig,
|
|
1012
|
+
orgPermissions?.cluster.clients.create,
|
|
1013
|
+
orgPermissions?.cluster.clients.update,
|
|
1014
|
+
orgPermissions?.cluster.clients.delete,
|
|
962
1015
|
props.clusterId,
|
|
963
1016
|
props.onNavigate,
|
|
964
1017
|
props.orgId,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ClusterDetailsPageProps } from './c4-cluster-details-page.types';
|
|
2
|
+
import type { C4ClusterDetailsPageProps } from './c4-cluster-details-page.types.js';
|
|
3
3
|
export declare const C4ClusterDetailsPage: ({ loading, clusterName, isDevelopmentPlan, urls, onNavigateToClusters, menu, banner, tabs, }: C4ClusterDetailsPageProps) => JSX.Element;
|
|
@@ -58,6 +58,14 @@ function buildBanner(opts) {
|
|
|
58
58
|
subtitle: safeTranslate(t, 'clusterdetails:overview.restoreInProgress.subtitle', 'Cluster configuration changes are not available until the restore completes.'),
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
+
if (banner.kind === 'restoreFailed') {
|
|
62
|
+
return {
|
|
63
|
+
kind: 'error',
|
|
64
|
+
title: safeTranslate(t, 'clusterdetails:overview.restoreFailed.title', 'Backup restore failed'),
|
|
65
|
+
subtitle: safeTranslate(t, 'clusterdetails:overview.restoreFailed.subtitle', 'The last backup restore for this cluster failed. Contact support.'),
|
|
66
|
+
onDismiss: banner.onDismiss,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
61
69
|
if (banner.kind === 'unsupportedGeneration') {
|
|
62
70
|
const subtitle = banner.isAlphaGeneration
|
|
63
71
|
? safeTranslate(t, 'c4console:clusterDetails.banner.unsupportedGeneration.subtitleAlpha', 'Alpha-generations can’t be updated. Create a new cluster to access the latest features.')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4TabProps } from '../../components/c4-tabs/c4-tabs.types';
|
|
1
|
+
import type { C4TabProps } from '../../components/c4-tabs/c4-tabs.types.js';
|
|
2
2
|
export type C4ClusterDetailsPageBanner = {
|
|
3
3
|
kind: 'unsupportedGeneration';
|
|
4
4
|
isAlphaGeneration: boolean;
|
|
@@ -9,6 +9,9 @@ export type C4ClusterDetailsPageBanner = {
|
|
|
9
9
|
docsUrl: string;
|
|
10
10
|
} | {
|
|
11
11
|
kind: 'restoreInProgress';
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'restoreFailed';
|
|
14
|
+
onDismiss: () => void;
|
|
12
15
|
};
|
|
13
16
|
export type C4ClusterDetailsTab = C4TabProps;
|
|
14
17
|
export interface C4ClusterDetailsPageProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ClusterDetailsTabId } from './c4-cluster-details-app.types';
|
|
1
|
+
import type { C4ClusterDetailsTabId } from './c4-cluster-details-app.types.js';
|
|
2
2
|
export interface ClusterDetailsTabDescriptor {
|
|
3
3
|
id: C4ClusterDetailsTabId;
|
|
4
4
|
/** i18n key (namespaced, e.g. `clusterdetails:overview.title`). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { ActivityGroup } from '../../../components/c4-cluster-details-activity/c4-cluster-details-activity.types';
|
|
2
|
+
import type { ActivityGroup } from '../../../components/c4-cluster-details-activity/c4-cluster-details-activity.types.js';
|
|
3
3
|
type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
|
|
4
4
|
export interface C4ClusterDetailsActivityTabProps {
|
|
5
5
|
activityGroups: ActivityGroup[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { Alert as C4AlertRow } from '../../../components/c4-cluster-details-alerts/c4-cluster-details-alerts.types';
|
|
2
|
+
import type { Alert as C4AlertRow } from '../../../components/c4-cluster-details-alerts/c4-cluster-details-alerts.types.js';
|
|
3
3
|
type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
|
|
4
4
|
type ReportType = 'Email' | 'Webhook';
|
|
5
5
|
export declare function resolveUpdatedAlertHmacSecret(params: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { AuditLogCategory } from '../../../components/c4-audit-log/c4-audit-log.types';
|
|
2
|
+
import type { AuditLogCategory } from '../../../components/c4-audit-log/c4-audit-log.types.js';
|
|
3
3
|
export interface C4ClusterDetailsAuditLogTabProps {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
userCategories: AuditLogCategory[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RequestBaseParamsConfig } from '@camunda/ccma-api';
|
|
2
2
|
import type { ByomStatus, ConsoleClusterDto } from '@camunda/ccma-shared-types';
|
|
3
3
|
import type { JSX } from 'react';
|
|
4
|
-
import type { ByomClientItem } from '../../../components/c4-cluster-byom-clients/c4-cluster-byom-clients.types';
|
|
4
|
+
import type { ByomClientItem } from '../../../components/c4-cluster-byom-clients/c4-cluster-byom-clients.types.js';
|
|
5
5
|
type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
|
|
6
6
|
interface C4ClusterDetailsByomClientsTabProps {
|
|
7
7
|
cluster?: ConsoleClusterDto;
|
|
@@ -16,6 +16,11 @@ interface C4ClusterDetailsClientsTabProps {
|
|
|
16
16
|
springZeebeConfigDocsUrl: string;
|
|
17
17
|
apiConfig: RequestBaseParamsConfig;
|
|
18
18
|
canMutateCluster: boolean;
|
|
19
|
+
clientsPermissions?: {
|
|
20
|
+
canCreate: boolean;
|
|
21
|
+
canUpdate: boolean;
|
|
22
|
+
canDelete: boolean;
|
|
23
|
+
};
|
|
19
24
|
useClusterSecretsLabel?: boolean;
|
|
20
25
|
t: TranslateFn | undefined;
|
|
21
26
|
onNavigate?: (event: unknown) => void;
|
|
@@ -73,7 +73,7 @@ function renderInlineLink(value, opts) {
|
|
|
73
73
|
}
|
|
74
74
|
export const C4ClusterDetailsClientsTab = (props) => {
|
|
75
75
|
const runtime = useC4ConsoleRuntime();
|
|
76
|
-
const { cluster, clients, clientsLoading, clientsError, hasIdentityIntegration, orgId, clusterId, clientsDocsUrl, mcpSetupDocsUrl: mcpSetupDocsUrlFromProps, identityAuthorizationDocsUrl, springZeebeGettingStartedDocsUrl, springZeebeConfigDocsUrl, apiConfig, canMutateCluster, useClusterSecretsLabel, t, onNavigate, onReloadClients, } = props;
|
|
76
|
+
const { cluster, clients, clientsLoading, clientsError, hasIdentityIntegration, orgId, clusterId, clientsDocsUrl, mcpSetupDocsUrl: mcpSetupDocsUrlFromProps, identityAuthorizationDocsUrl, springZeebeGettingStartedDocsUrl, springZeebeConfigDocsUrl, apiConfig, canMutateCluster, clientsPermissions, useClusterSecretsLabel, t, onNavigate, onReloadClients, } = props;
|
|
77
77
|
const oauthTokenUrl = useMemo(() => {
|
|
78
78
|
const base = runtime.publicUrls?.loginBaseUrl || runtime.backendUrls.identityApiBaseUrl;
|
|
79
79
|
return base ? joinUrl(base, '/oauth/token') : '';
|
|
@@ -174,9 +174,9 @@ export const C4ClusterDetailsClientsTab = (props) => {
|
|
|
174
174
|
identity: cluster?.status?.identityUrl ?? '',
|
|
175
175
|
docs: clientsDocsUrl,
|
|
176
176
|
}, permissions: {
|
|
177
|
-
canCreate: canMutateCluster,
|
|
178
|
-
canUpdate: canMutateCluster,
|
|
179
|
-
canDelete: canMutateCluster,
|
|
177
|
+
canCreate: clientsPermissions?.canCreate ?? canMutateCluster,
|
|
178
|
+
canUpdate: clientsPermissions?.canUpdate ?? canMutateCluster,
|
|
179
|
+
canDelete: clientsPermissions?.canDelete ?? canMutateCluster,
|
|
180
180
|
}, onNavigateToClient: (clientId) => {
|
|
181
181
|
trackEvent('apiClients:details:open', 'Open Api Client Details Modal', {
|
|
182
182
|
clientId,
|
|
@@ -20,5 +20,7 @@ interface C4ClusterDetailsConnectorSecretsTabProps {
|
|
|
20
20
|
}) => void;
|
|
21
21
|
useClusterSecretsLabel?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export declare const C4ClusterDetailsConnectorSecretsTab: (props: C4ClusterDetailsConnectorSecretsTabProps) => JSX.Element
|
|
23
|
+
export declare const C4ClusterDetailsConnectorSecretsTab: ((props: C4ClusterDetailsConnectorSecretsTabProps) => JSX.Element) & {
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
24
26
|
export {};
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { ConsoleConnectorSecretsService } from '@camunda/ccma-api';
|
|
3
3
|
import { SECRETS_MAX_LENGTH, SseEntity } from '@camunda/ccma-shared-types';
|
|
4
4
|
import { FileUploader, Form, InlineLoading, PasswordInput } from '@carbon/react';
|
|
5
|
+
import { observer } from 'mobx-react-lite';
|
|
5
6
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
7
|
import { C4ClusterDetailsConnectorSecrets } from '../../../components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js';
|
|
7
8
|
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
@@ -40,7 +41,7 @@ function renderInlineLink0(value, linkRenderer) {
|
|
|
40
41
|
const [, before, label, after] = match;
|
|
41
42
|
return (_jsxs("span", { children: [before, linkRenderer(label), after] }));
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
const C4ClusterDetailsConnectorSecretsTabImpl = (props) => {
|
|
44
45
|
const { Select, SelectItem } = useSelectFamily();
|
|
45
46
|
const { orgId, clusterId, apiConfig, canMutateCluster, connectorSecretsPermissions, docsUrl, t, onNavigate, useClusterSecretsLabel, } = props;
|
|
46
47
|
const pickSecretsText = (connectorKey, connectorFallback, clusterKey, clusterFallback) => useClusterSecretsLabel
|
|
@@ -603,3 +604,7 @@ export const C4ClusterDetailsConnectorSecretsTab = (props) => {
|
|
|
603
604
|
!fetchingSourceSecrets &&
|
|
604
605
|
Object.keys(sourceClusterSecrets).length === 0 && (_jsx("p", { children: safeTranslate(t, 'connectorsecrets:importFromCluster.noSecretsInCluster', 'No secrets found in selected cluster') }))] }))] }) })] }));
|
|
605
606
|
};
|
|
607
|
+
// Reads console data during render, so it must be an observer to re-render when
|
|
608
|
+
// that data changes (the data context value is stable and no longer bumps
|
|
609
|
+
// globally on every store mutation).
|
|
610
|
+
export const C4ClusterDetailsConnectorSecretsTab = observer(C4ClusterDetailsConnectorSecretsTabImpl);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RequestBaseParamsConfig } from '@camunda/ccma-api';
|
|
2
2
|
import type { ConsoleClusterDto } from '@camunda/ccma-shared-types';
|
|
3
3
|
import type { JSX } from 'react';
|
|
4
|
-
import type { C4ClusterDetailsNavigateEvent } from '../c4-cluster-details-app.types';
|
|
4
|
+
import type { C4ClusterDetailsNavigateEvent } from '../c4-cluster-details-app.types.js';
|
|
5
5
|
type TranslateFn = (key: string, options?: Record<string, unknown>) => string;
|
|
6
6
|
interface C4ClusterDetailsHotBackupsTabProps {
|
|
7
7
|
cluster: ConsoleClusterDto | undefined;
|
|
@@ -25,5 +25,7 @@ interface C4ClusterDetailsHotBackupsTabProps {
|
|
|
25
25
|
*/
|
|
26
26
|
onReloadCluster?: () => void | Promise<void>;
|
|
27
27
|
}
|
|
28
|
-
export declare const C4ClusterDetailsHotBackupsTab: (props: C4ClusterDetailsHotBackupsTabProps) => JSX.Element
|
|
28
|
+
export declare const C4ClusterDetailsHotBackupsTab: ((props: C4ClusterDetailsHotBackupsTabProps) => JSX.Element) & {
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
29
31
|
export {};
|