@camunda/ccma-saas-frontend 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -1
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +1 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +1 -1
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +4 -4
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +4 -3
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +6 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +1 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +1 -1
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +2 -2
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +24 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +14 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +22 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +4 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +2 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +29 -11
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +6 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +10 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +8 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +11 -11
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +1 -1
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +26 -5
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +1 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +16 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +5 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +1 -1
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +1 -1
- package/lib/esm/components/c4-external-link/c4-external-link.d.ts +1 -1
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +1 -1
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +15 -53
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +1 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +2 -2
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +1 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +1 -1
- package/lib/esm/components/c4-management-users/c4-management-users.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +2 -2
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +1 -1
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +9 -4
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -1
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.types.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search.d.ts +2 -2
- package/lib/esm/components/c4-search/c4-search.types.d.ts +1 -1
- package/lib/esm/components/c4-search/search.utils.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +2 -2
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +1 -1
- package/lib/esm/components/c4-stat/c4-stat.d.ts +1 -1
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +1 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +15 -1
- package/lib/esm/components/c4-tabs/c4-tabs.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +2 -2
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +1 -1
- package/lib/esm/components/c4-toggle/c4-toggle.d.ts +1 -1
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.d.ts +8 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.js +18 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.types.d.ts +15 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.d.ts +5 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.js +36 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +1 -1
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +3 -3
- package/lib/esm/components/shared-charts/ds-line-chart.js +2 -2
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +29 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +54 -6
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +28 -0
- package/lib/esm/i18n/en/modals/backups.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +15 -3
- package/lib/esm/i18n/en/pages/clusters.json +4 -1
- package/lib/esm/i18n/en/pages/dashboard.json +1 -0
- package/lib/esm/i18n/en/pages/orgmanagement.json +8 -0
- package/lib/esm/icons/c4-icons.d.ts +1 -1
- package/lib/esm/index.d.ts +237 -253
- package/lib/esm/index.js +6 -11
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +1 -1
- package/lib/esm/notifications/c4-console-notifications-handle.d.ts +1 -1
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +1 -1
- package/lib/esm/runtime/c4-console-data-context.d.ts +2 -2
- package/lib/esm/runtime/c4-console-data-store.d.ts +1 -1
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/index.d.ts +40 -0
- package/lib/esm/runtime/index.js +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +39 -15
- package/lib/esm/runtime/to-api-config.d.ts +1 -1
- package/lib/esm/runtime/to-api-domain.d.ts +1 -1
- package/lib/esm/runtime/to-identity-api-base-url.d.ts +1 -1
- package/lib/esm/ui/c4-modal-dialog.js +16 -3
- package/lib/esm/ui/index.d.ts +2 -2
- package/lib/esm/ui/index.js +28 -2
- package/lib/esm/utils/role-labels.d.ts +38 -0
- package/lib/esm/utils/role-labels.js +160 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +66 -4
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +4 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +5 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +4 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +16 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +20 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +134 -63
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +21 -7
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +111 -47
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.d.ts +36 -0
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.js +58 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +20 -3
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +5 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +1 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.d.ts +2 -2
- package/lib/esm/widgets/management/c4-management-app.js +157 -55
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +18 -1
- package/lib/esm/widgets/management/c4-management-page.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +3 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +5 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +98 -93
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +2 -2
- package/lib/esm/widgets/user-details/c4-user-details-page.js +46 -85
- package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +2 -0
- package/package.json +46 -29
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +0 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +0 -43
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.d.ts +0 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +0 -67
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.js +0 -132
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.js +0 -87
- package/lib/esm/components/c4-cluster-overview/applications.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +0 -58
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +0 -38
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +0 -93
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +0 -50
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +0 -42
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +0 -120
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +0 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +0 -40
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +0 -83
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +0 -350
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +0 -122
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +0 -151
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +0 -33
- package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +0 -1
- package/lib/esm/components/c4-page-template/c4-page-template.spec.js +0 -58
- package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +0 -6
- package/lib/esm/components/c4-page-template/c4-page-template.stories.js +0 -73
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +0 -3
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +0 -25
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +0 -12
- package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +0 -1
- package/lib/esm/components/c4-tabs/c4-tabs.spec.js +0 -97
- package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +0 -6
- package/lib/esm/components/c4-tabs/c4-tabs.stories.js +0 -35
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +0 -1
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +0 -47
- package/lib/esm/externalUrls.const.spec.d.ts +0 -1
- package/lib/esm/externalUrls.const.spec.js +0 -102
- package/lib/esm/runtime/c4-console-authz.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +0 -202
- package/lib/esm/runtime/c4-console-data-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-context.spec.js +0 -354
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -122
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -409
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -82
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/camunda-apps.spec.js +0 -90
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +0 -91
- package/lib/esm/setupTests.d.ts +0 -1
- package/lib/esm/setupTests.js +0 -37
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +0 -49
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +0 -471
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +0 -95
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +0 -33
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.js +0 -72
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.js +0 -85
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.js +0 -105
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +0 -226
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +0 -179
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +0 -1255
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +0 -397
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +0 -488
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +0 -34
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +0 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +0 -502
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +0 -226
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +0 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +0 -191
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +0 -35
- package/lib/esm/widgets/management/c4-management-app.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-app.spec.js +0 -509
- package/lib/esm/widgets/management/c4-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-page.spec.js +0 -40
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/management/management-tabs.spec.js +0 -28
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.js +0 -246
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +0 -225
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +0 -1
- package/lib/esm/widgets/use-extend-trial.spec.js +0 -79
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +0 -65
- /package/lib/esm/components/{c4-stackdriver-links/c4-stackdriver-links.types.js → c4-tsuga-links/c4-tsuga-links.types.js} +0 -0
|
@@ -6,8 +6,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { C4GroupsList, C4IdentityContextProvider } from '@camunda/c4-identity';
|
|
8
8
|
import { useC3Profile } from '@camunda/camunda-composite-components';
|
|
9
|
-
import { AuditLoggerService, ConsoleApiClientsService, ConsoleValueMetricsService, EarlyAccessFeaturesService, HttpError, OrganizationMembersService, OrgsService, UsageAlertsService, } from '@camunda/ccma-api';
|
|
10
|
-
import { checkVersion, getDisplayedSalesPlan, getRevisitedSalesPlanName, OrganizationRole, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
9
|
+
import { AuditLoggerService, ConsoleApiClientsService, ConsoleValueMetricsService, EarlyAccessFeaturesService, HdpService, HttpError, OrganizationMembersService, OrgsService, UsageAlertsService, } from '@camunda/ccma-api';
|
|
10
|
+
import { addMonthsClamped, checkVersion, diffInWholeMonths, getCurrentEnterpriseTerm, getDisplayedSalesPlan, getRevisitedSalesPlanName, OrganizationRole, peakWithinTerm, SseEntity, toUtcDayStartMs, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
11
11
|
import { observer } from 'mobx-react-lite';
|
|
12
12
|
import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
13
13
|
import { C4AiUsage } from '../../components/c4-ai-usage/c4-ai-usage.js';
|
|
@@ -20,6 +20,7 @@ import { useC4ConsoleRuntime, useC4DesignSystem, } from '../../runtime/c4-consol
|
|
|
20
20
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
21
21
|
import { toIdentityApiBaseUrl } from '../../runtime/to-identity-api-base-url.js';
|
|
22
22
|
import { Link, Stack } from '../../ui/index.js';
|
|
23
|
+
import { legacySectionRoles } from '../../utils/role-labels.js';
|
|
23
24
|
import { useExtendTrial } from '../use-extend-trial.js';
|
|
24
25
|
import { C4ManagementPage } from './c4-management-page.js';
|
|
25
26
|
import { managementTab } from './management-tabs.js';
|
|
@@ -117,6 +118,51 @@ function safeTranslate(t, key, fallback, options) {
|
|
|
117
118
|
return fallback;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
121
|
+
// Usage charts render one line series (and one legend entry) per cluster. Orgs
|
|
122
|
+
// with hundreds of clusters overflow the legend and break the layout, so cap the
|
|
123
|
+
// number of distinct series to the top-N clusters by total value and roll the
|
|
124
|
+
// rest into a single aggregated "Other" line. N is 12 because Carbon Charts'
|
|
125
|
+
// largest categorical palette is 14 distinct colours; capping at 12 leaves room
|
|
126
|
+
// for the "Other" series and a safety margin so every series gets its own colour
|
|
127
|
+
// (the ds-mode palette is extended to match — see `recharts-tokens.ts`).
|
|
128
|
+
const TOP_N_CHART_CLUSTERS = 12;
|
|
129
|
+
/**
|
|
130
|
+
* Reduces flat `{ group, date, value }` chart points to the top-N groups by
|
|
131
|
+
* total value, summing the remaining groups per date into a single "Other"
|
|
132
|
+
* series. Group counts already within the cap are returned untouched (no
|
|
133
|
+
* "Other" bucket), mirroring the alluvial-chart top-10 precedent.
|
|
134
|
+
*/
|
|
135
|
+
function capChartGroupsToTopN(points, topN, otherLabelFor) {
|
|
136
|
+
const totalsByGroup = new Map();
|
|
137
|
+
for (const point of points) {
|
|
138
|
+
totalsByGroup.set(point.group, (totalsByGroup.get(point.group) ?? 0) + point.value);
|
|
139
|
+
}
|
|
140
|
+
// Few enough clusters to keep the legend bounded: show them all.
|
|
141
|
+
if (totalsByGroup.size <= topN) {
|
|
142
|
+
return points;
|
|
143
|
+
}
|
|
144
|
+
const topGroups = new Set(Array.from(totalsByGroup.entries())
|
|
145
|
+
.sort((a, b) => b[1] - a[1])
|
|
146
|
+
.slice(0, topN)
|
|
147
|
+
.map(([group]) => group));
|
|
148
|
+
const otherLabel = otherLabelFor(totalsByGroup.size - topGroups.size);
|
|
149
|
+
const otherValueByDate = new Map();
|
|
150
|
+
const result = [];
|
|
151
|
+
for (const point of points) {
|
|
152
|
+
if (topGroups.has(point.group)) {
|
|
153
|
+
result.push(point);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
// Aggregate by date so the "Other" line is a single summed series rather
|
|
157
|
+
// than many overlapping points on the same day.
|
|
158
|
+
otherValueByDate.set(point.date, (otherValueByDate.get(point.date) ?? 0) + point.value);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
for (const [date, value] of otherValueByDate) {
|
|
162
|
+
result.push({ group: otherLabel, date, value });
|
|
163
|
+
}
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
120
166
|
function getSalesPlanType(org) {
|
|
121
167
|
const orgToSalesPlan = org
|
|
122
168
|
? getRecord(org, 'organizationToSalesPlan')
|
|
@@ -447,20 +493,11 @@ function toDate(value) {
|
|
|
447
493
|
}
|
|
448
494
|
return undefined;
|
|
449
495
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
if (next.getDate() !== originalDay) {
|
|
456
|
-
next.setDate(0);
|
|
457
|
-
}
|
|
458
|
-
return next;
|
|
459
|
-
}
|
|
460
|
-
function diffInMonthsSimple(start, end) {
|
|
461
|
-
return ((end.getFullYear() - start.getFullYear()) * 12 +
|
|
462
|
-
(end.getMonth() - start.getMonth()));
|
|
463
|
-
}
|
|
496
|
+
// Contract-period arithmetic (month-end clamping, current-period resolution,
|
|
497
|
+
// the UTC-day normalisation that keeps a term's first day from being dropped
|
|
498
|
+
// when the plan was created after midnight) lives in `@camunda/ccma-shared-types`
|
|
499
|
+
// so this tab, control-frontend and accounts-frontend cannot disagree about
|
|
500
|
+
// which days a figure covers. See `enterpriseTerm.utils.ts`.
|
|
464
501
|
function formatDate(date) {
|
|
465
502
|
try {
|
|
466
503
|
return Intl.DateTimeFormat('en-GB', {
|
|
@@ -485,7 +522,7 @@ function themeNameToClassName(theme) {
|
|
|
485
522
|
return 'g10';
|
|
486
523
|
}
|
|
487
524
|
}
|
|
488
|
-
export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, urls, onNeedsReload, }) => {
|
|
525
|
+
export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, tenantsValueMetricEnabled = false, hdpValueMetricsFor2025Enabled = false, permissionsReworkEnabled = false, urls, onNeedsReload, }) => {
|
|
489
526
|
const runtime = useC4ConsoleRuntime();
|
|
490
527
|
const designSystem = useC4DesignSystem();
|
|
491
528
|
const data = useC4ConsoleData();
|
|
@@ -898,6 +935,10 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
898
935
|
const [billingClusters, setBillingClusters] = useState([]);
|
|
899
936
|
const [billingMetricsMonthly, setBillingMetricsMonthly] = useState([]);
|
|
900
937
|
const [billingUsageAlerts, setBillingUsageAlerts] = useState([]);
|
|
938
|
+
// Raw daily points rather than a pre-reduced peak: the peak has to be taken
|
|
939
|
+
// over the current contract period, which isn't known at fetch time.
|
|
940
|
+
const [billingTenantUsage, setBillingTenantUsage] = useState([]);
|
|
941
|
+
const [billingHdpUsageMetrics, setBillingHdpUsageMetrics] = useState([]);
|
|
901
942
|
const [apiClients, setApiClients] = useState([]);
|
|
902
943
|
const [apiClientsLoading, setApiClientsLoading] = useState(false);
|
|
903
944
|
const [apiClientsError, setApiClientsError] = useState(undefined);
|
|
@@ -1061,6 +1102,8 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1061
1102
|
setUsageLoading(false);
|
|
1062
1103
|
}
|
|
1063
1104
|
}, [apiConfig, orgId]);
|
|
1105
|
+
const isLicensingModel2025 = useMemo(() => isLicensingModel2025Prop ??
|
|
1106
|
+
getNestedValue(org, ['metadata', 'licensingModel']) === '2025', [isLicensingModel2025Prop, org]);
|
|
1064
1107
|
const loadBilling = useCallback(async () => {
|
|
1065
1108
|
setBillingLoading(true);
|
|
1066
1109
|
setBillingError(undefined);
|
|
@@ -1069,7 +1112,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1069
1112
|
const clusters = data.clusters[orgId]?.error
|
|
1070
1113
|
? []
|
|
1071
1114
|
: (data.getClusters(orgId) ?? []);
|
|
1072
|
-
const [monthlyResult, alertsResult] = await Promise.allSettled([
|
|
1115
|
+
const [monthlyResult, alertsResult, tenantsResult, hdpUsageResult] = await Promise.allSettled([
|
|
1073
1116
|
ConsoleValueMetricsService.getValueMetrics({
|
|
1074
1117
|
config: apiConfig,
|
|
1075
1118
|
params: {
|
|
@@ -1081,14 +1124,32 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1081
1124
|
config: apiConfig,
|
|
1082
1125
|
params: { orgId },
|
|
1083
1126
|
}),
|
|
1127
|
+
tenantsValueMetricEnabled && isLicensingModel2025
|
|
1128
|
+
? HdpService.getTenantUsage({
|
|
1129
|
+
config: apiConfig,
|
|
1130
|
+
params: { orgId, days: 360 },
|
|
1131
|
+
})
|
|
1132
|
+
: Promise.resolve([]),
|
|
1133
|
+
hdpValueMetricsFor2025Enabled && isLicensingModel2025
|
|
1134
|
+
? HdpService.getUsageMetrics({
|
|
1135
|
+
config: apiConfig,
|
|
1136
|
+
params: { orgId },
|
|
1137
|
+
})
|
|
1138
|
+
: Promise.resolve({ valueMetrics: { orgId, valueMetrics: [] } }),
|
|
1084
1139
|
]);
|
|
1085
1140
|
const normalizedClusters = (clusters ?? []).filter((item) => Boolean(item) && typeof item === 'object');
|
|
1086
1141
|
const monthly = monthlyResult.status === 'fulfilled' ? monthlyResult.value : [];
|
|
1087
1142
|
const alerts = alertsResult.status === 'fulfilled' ? alertsResult.value : undefined;
|
|
1088
|
-
const loadErrors = [monthlyResult, alertsResult].filter((result) => result.status === 'rejected');
|
|
1143
|
+
const loadErrors = [monthlyResult, alertsResult, hdpUsageResult].filter((result) => result.status === 'rejected');
|
|
1144
|
+
const tenantUsage = tenantsResult.status === 'fulfilled' ? tenantsResult.value : [];
|
|
1145
|
+
const hdpUsageMetrics = hdpUsageResult.status === 'fulfilled'
|
|
1146
|
+
? (hdpUsageResult.value?.valueMetrics?.valueMetrics ?? [])
|
|
1147
|
+
: [];
|
|
1089
1148
|
setBillingClusters(normalizedClusters);
|
|
1090
1149
|
setBillingMetricsMonthly(monthly ?? []);
|
|
1091
1150
|
setBillingUsageAlerts(alerts?.usageAlerts ?? []);
|
|
1151
|
+
setBillingTenantUsage(tenantUsage);
|
|
1152
|
+
setBillingHdpUsageMetrics(hdpUsageMetrics);
|
|
1092
1153
|
if (loadErrors.length > 0) {
|
|
1093
1154
|
const firstError = loadErrors[0]?.reason;
|
|
1094
1155
|
setBillingError(firstError instanceof Error
|
|
@@ -1100,15 +1161,21 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1100
1161
|
setBillingClusters([]);
|
|
1101
1162
|
setBillingMetricsMonthly([]);
|
|
1102
1163
|
setBillingUsageAlerts([]);
|
|
1164
|
+
setBillingTenantUsage([]);
|
|
1165
|
+
setBillingHdpUsageMetrics([]);
|
|
1103
1166
|
setBillingError(error instanceof Error ? error.message : 'Could not load billing');
|
|
1104
1167
|
}
|
|
1105
1168
|
finally {
|
|
1106
1169
|
setBillingLoading(false);
|
|
1107
1170
|
}
|
|
1108
|
-
}, [
|
|
1171
|
+
}, [
|
|
1172
|
+
apiConfig,
|
|
1173
|
+
orgId,
|
|
1174
|
+
tenantsValueMetricEnabled,
|
|
1175
|
+
isLicensingModel2025,
|
|
1176
|
+
hdpValueMetricsFor2025Enabled,
|
|
1177
|
+
]);
|
|
1109
1178
|
const enterpriseDevOnly = useMemo(() => getNestedBoolean(org, ['metadata', 'enterpriseDevOnly']), [org]);
|
|
1110
|
-
const isLicensingModel2025 = useMemo(() => isLicensingModel2025Prop ??
|
|
1111
|
-
getNestedValue(org, ['metadata', 'licensingModel']) === '2025', [isLicensingModel2025Prop, org]);
|
|
1112
1179
|
const billingIsEnterprise = useMemo(() => orgHasSalesPlanType(org, 'enterprise'), [org]);
|
|
1113
1180
|
const billingGeneralData = useMemo(() => {
|
|
1114
1181
|
const salesPlanType = getSalesPlanType(org);
|
|
@@ -1156,7 +1223,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1156
1223
|
// the correct reference point for period labels.
|
|
1157
1224
|
const inferredStartDate = startCandidates
|
|
1158
1225
|
.filter((c) => typeof c.monthsSinceStart === 'number')
|
|
1159
|
-
.map((c) =>
|
|
1226
|
+
.map((c) => addMonthsClamped(c.startDate, -c.monthsSinceStart))
|
|
1160
1227
|
.sort((a, b) => a.getTime() - b.getTime())[0];
|
|
1161
1228
|
const orgEnterpriseStartBilling = toDate(getNestedValue(org, ['organizationToSalesPlan', 'enterpriseStartDate']));
|
|
1162
1229
|
const orgTrialStartBilling = toDate(getNestedValue(org, ['organizationToSalesPlan', 'trialPlanStartDate']));
|
|
@@ -1173,20 +1240,10 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1173
1240
|
const durationInMonths = typeof durationInMonthsRaw === 'number' && durationInMonthsRaw > 0
|
|
1174
1241
|
? durationInMonthsRaw
|
|
1175
1242
|
: 12;
|
|
1176
|
-
const monthsDiff = Math.abs(diffInMonthsSimple(startDate, now));
|
|
1177
|
-
const completedPeriods = Math.floor(monthsDiff / durationInMonths);
|
|
1178
|
-
const periodStart = addMonthsSafe(startDate, completedPeriods * durationInMonths);
|
|
1179
|
-
const periodEnd = new Date(addMonthsSafe(periodStart, durationInMonths).getTime() - DAY_MS);
|
|
1180
|
-
const startMonth = completedPeriods * durationInMonths;
|
|
1181
|
-
const endMonth = startMonth + (durationInMonths - 1);
|
|
1182
1243
|
return {
|
|
1183
1244
|
startDate,
|
|
1184
1245
|
durationInMonths,
|
|
1185
|
-
|
|
1186
|
-
periodEnd,
|
|
1187
|
-
startMonth,
|
|
1188
|
-
endMonth,
|
|
1189
|
-
nextRenewal: addMonthsSafe(periodStart, durationInMonths),
|
|
1246
|
+
...getCurrentEnterpriseTerm({ startDate, durationInMonths, now }),
|
|
1190
1247
|
};
|
|
1191
1248
|
}, [billingMetricsMonthly, org]);
|
|
1192
1249
|
const billingIncludedMetrics = useMemo(() => {
|
|
@@ -1194,13 +1251,40 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1194
1251
|
'organizationToSalesPlan',
|
|
1195
1252
|
'enterpriseIncludingValueMetrics',
|
|
1196
1253
|
];
|
|
1254
|
+
const rawTenants = getNestedValue(org, [...basePath, 'tenants']);
|
|
1197
1255
|
return {
|
|
1198
1256
|
processInstances: getNumber(getNestedValue(org, [...basePath, 'processInstances'])),
|
|
1199
1257
|
decisionInstances: getNumber(getNestedValue(org, [...basePath, 'decisionInstances'])),
|
|
1200
1258
|
taskUsers: getNumber(getNestedValue(org, [...basePath, 'taskUsers'])),
|
|
1259
|
+
tenants: rawTenants === undefined ? undefined : getNumber(rawTenants),
|
|
1201
1260
|
};
|
|
1202
1261
|
}, [org]);
|
|
1203
1262
|
const billingCurrentMetrics = useMemo(() => {
|
|
1263
|
+
const periodStartDayMs = toUtcDayStartMs(billingEnterprisePeriod.periodStart);
|
|
1264
|
+
const periodEndDayMs = toUtcDayStartMs(billingEnterprisePeriod.periodEnd);
|
|
1265
|
+
// Peak tenants *inside the current contract period*, matching the window
|
|
1266
|
+
// the PI/DI/TU totals below use. Reducing over the whole fetched history
|
|
1267
|
+
// instead would let a previous term's peak be billed against this term's
|
|
1268
|
+
// included quota. Tenants is a gauge, so the peak is taken over the daily
|
|
1269
|
+
// org totals rather than summed. Shared with the two internal tools so all
|
|
1270
|
+
// three surfaces report the same number for the same org.
|
|
1271
|
+
const tenantPeak = peakWithinTerm(billingTenantUsage, billingEnterprisePeriod);
|
|
1272
|
+
if (hdpValueMetricsFor2025Enabled && isLicensingModel2025) {
|
|
1273
|
+
return billingHdpUsageMetrics
|
|
1274
|
+
.filter((entry) => entry.date.ts >= periodStartDayMs &&
|
|
1275
|
+
entry.date.ts <= periodEndDayMs)
|
|
1276
|
+
.reduce((acc, entry) => {
|
|
1277
|
+
acc.processInstances += entry.pi;
|
|
1278
|
+
acc.decisionInstances += entry.di;
|
|
1279
|
+
acc.taskUsers += entry.tu;
|
|
1280
|
+
return acc;
|
|
1281
|
+
}, {
|
|
1282
|
+
processInstances: 0,
|
|
1283
|
+
decisionInstances: 0,
|
|
1284
|
+
taskUsers: 0,
|
|
1285
|
+
tenants: tenantPeak,
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1204
1288
|
const relevant = billingMetricsMonthly.filter((entry) => {
|
|
1205
1289
|
const m = entry.monthsSinceStart;
|
|
1206
1290
|
return (typeof m === 'number' &&
|
|
@@ -1212,11 +1296,22 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1212
1296
|
acc.decisionInstances += entry.decisionInstances;
|
|
1213
1297
|
acc.taskUsers += entry.taskUsers;
|
|
1214
1298
|
return acc;
|
|
1215
|
-
}, {
|
|
1299
|
+
}, {
|
|
1300
|
+
processInstances: 0,
|
|
1301
|
+
decisionInstances: 0,
|
|
1302
|
+
taskUsers: 0,
|
|
1303
|
+
tenants: tenantPeak,
|
|
1304
|
+
});
|
|
1216
1305
|
}, [
|
|
1217
1306
|
billingEnterprisePeriod.endMonth,
|
|
1218
1307
|
billingEnterprisePeriod.startMonth,
|
|
1308
|
+
billingEnterprisePeriod.periodStart,
|
|
1309
|
+
billingEnterprisePeriod.periodEnd,
|
|
1219
1310
|
billingMetricsMonthly,
|
|
1311
|
+
billingTenantUsage,
|
|
1312
|
+
billingHdpUsageMetrics,
|
|
1313
|
+
hdpValueMetricsFor2025Enabled,
|
|
1314
|
+
isLicensingModel2025,
|
|
1220
1315
|
]);
|
|
1221
1316
|
const billingClusterReservations = useMemo(() => {
|
|
1222
1317
|
const reservedRaw = getNestedValue(org, [
|
|
@@ -1277,6 +1372,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1277
1372
|
billingClusterReservations,
|
|
1278
1373
|
enterpriseDevOnly,
|
|
1279
1374
|
isLicensingModel2025,
|
|
1375
|
+
tenantsValueMetricEnabled,
|
|
1280
1376
|
membersCount: members.length,
|
|
1281
1377
|
changeTab,
|
|
1282
1378
|
onUpdateUsageAlert: async (alertId, threshold, enabled) => {
|
|
@@ -1317,6 +1413,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1317
1413
|
billingUsageAlerts,
|
|
1318
1414
|
enterpriseDevOnly,
|
|
1319
1415
|
isLicensingModel2025,
|
|
1416
|
+
tenantsValueMetricEnabled,
|
|
1320
1417
|
changeTab,
|
|
1321
1418
|
members.length,
|
|
1322
1419
|
t,
|
|
@@ -1378,6 +1475,14 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1378
1475
|
value: item.entry.taskUsers,
|
|
1379
1476
|
});
|
|
1380
1477
|
}
|
|
1478
|
+
const otherLabelFor = (otherClusterCount) => safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.charts.otherClusters', `Other (${otherClusterCount} cluster${otherClusterCount === 1 ? '' : 's'})`, { count: otherClusterCount });
|
|
1479
|
+
// Cap each chart's series to the top-N clusters (+ an aggregated "Other"
|
|
1480
|
+
// line) so the legend stays bounded for orgs with many clusters. Applied
|
|
1481
|
+
// at the data-mapping site so both the Carbon and ds render paths consume
|
|
1482
|
+
// the reduced group set.
|
|
1483
|
+
const piCapped = capChartGroupsToTopN(pi, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1484
|
+
const diCapped = capChartGroupsToTopN(di, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1485
|
+
const tuCapped = capChartGroupsToTopN(tu, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1381
1486
|
const titleBottom = safeTranslate(t, 'orgmanagement:tabs.billing.billingHistory.charts.titleOverall', 'Overall');
|
|
1382
1487
|
const titleLeft = safeTranslate(t, 'orgmanagement:tabs.billing.billingHistory.charts.titleLeft', 'Usage');
|
|
1383
1488
|
return {
|
|
@@ -1385,7 +1490,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1385
1490
|
title: safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.headers.processInstances', 'Process instances'),
|
|
1386
1491
|
theme,
|
|
1387
1492
|
axes: { titleBottom, titleLeft },
|
|
1388
|
-
dataPoints:
|
|
1493
|
+
dataPoints: piCapped,
|
|
1389
1494
|
},
|
|
1390
1495
|
di: isLicensingModel2025
|
|
1391
1496
|
? undefined
|
|
@@ -1393,7 +1498,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1393
1498
|
title: safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.headers.decisionInstances', 'Decision instances'),
|
|
1394
1499
|
theme,
|
|
1395
1500
|
axes: { titleBottom, titleLeft },
|
|
1396
|
-
dataPoints:
|
|
1501
|
+
dataPoints: diCapped,
|
|
1397
1502
|
},
|
|
1398
1503
|
tu: isLicensingModel2025
|
|
1399
1504
|
? undefined
|
|
@@ -1401,7 +1506,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1401
1506
|
title: safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.headers.taskUsers', 'Task users'),
|
|
1402
1507
|
theme,
|
|
1403
1508
|
axes: { titleBottom, titleLeft },
|
|
1404
|
-
dataPoints:
|
|
1509
|
+
dataPoints: tuCapped,
|
|
1405
1510
|
},
|
|
1406
1511
|
};
|
|
1407
1512
|
}, [
|
|
@@ -1436,7 +1541,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1436
1541
|
// the correct reference point for period labels.
|
|
1437
1542
|
const inferredStartDate = startCandidates
|
|
1438
1543
|
.filter((c) => typeof c.monthsSinceStart === 'number')
|
|
1439
|
-
.map((c) =>
|
|
1544
|
+
.map((c) => addMonthsClamped(c.startDate, -c.monthsSinceStart))
|
|
1440
1545
|
.sort((a, b) => a.getTime() - b.getTime())[0];
|
|
1441
1546
|
const orgEnterpriseStart = toDate(getNestedValue(org, ['organizationToSalesPlan', 'enterpriseStartDate']));
|
|
1442
1547
|
const orgTrialStart = toDate(getNestedValue(org, ['organizationToSalesPlan', 'trialPlanStartDate']));
|
|
@@ -1447,13 +1552,13 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1447
1552
|
inferredStartDate ??
|
|
1448
1553
|
now;
|
|
1449
1554
|
const durationInMonths = usageGroupBy === 'month' ? 1 : 12;
|
|
1450
|
-
const monthsDiff =
|
|
1555
|
+
const monthsDiff = diffInWholeMonths(startDate, now);
|
|
1451
1556
|
const iterationsRaw = usageGroupBy === 'month' ? monthsDiff : Math.floor(monthsDiff / 12);
|
|
1452
1557
|
const iterations = Math.max(0, Math.abs(iterationsRaw));
|
|
1453
1558
|
const periods = [];
|
|
1454
1559
|
for (let i = 0; i <= iterations; i++) {
|
|
1455
|
-
const periodStart =
|
|
1456
|
-
const periodEnd = new Date(
|
|
1560
|
+
const periodStart = addMonthsClamped(startDate, i * durationInMonths);
|
|
1561
|
+
const periodEnd = new Date(addMonthsClamped(periodStart, durationInMonths).getTime() - DAY_MS);
|
|
1457
1562
|
periods.push({ start: periodStart, end: periodEnd });
|
|
1458
1563
|
}
|
|
1459
1564
|
// If monthly metrics are missing, build the full period list and aggregate from per-day metrics.
|
|
@@ -1540,8 +1645,8 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1540
1645
|
const iterations2 = iterations;
|
|
1541
1646
|
const aggregated = [];
|
|
1542
1647
|
for (let i = 0; i <= iterations2; i++) {
|
|
1543
|
-
const periodStart =
|
|
1544
|
-
const periodEnd = new Date(
|
|
1648
|
+
const periodStart = addMonthsClamped(startDate, i * durationInMonths);
|
|
1649
|
+
const periodEnd = new Date(addMonthsClamped(periodStart, durationInMonths).getTime() - DAY_MS);
|
|
1545
1650
|
const currentStartMonth = i * durationInMonths;
|
|
1546
1651
|
const currentEndMonth = i * durationInMonths + (durationInMonths - 1);
|
|
1547
1652
|
const perCluster = [];
|
|
@@ -2458,7 +2563,6 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
2458
2563
|
});
|
|
2459
2564
|
});
|
|
2460
2565
|
})();
|
|
2461
|
-
const showOnly8_8Roles = !showLegacyClusterRoles;
|
|
2462
2566
|
const mayUpdateGeneralVisible = getNestedBoolean(org, [
|
|
2463
2567
|
'permissions',
|
|
2464
2568
|
'org',
|
|
@@ -2485,16 +2589,18 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
2485
2589
|
const more = [];
|
|
2486
2590
|
if (mayUpdateGeneralVisible) {
|
|
2487
2591
|
primary.push(OrganizationRole.MODELER, OrganizationRole.ANALYST);
|
|
2592
|
+
if (permissionsReworkEnabled) {
|
|
2593
|
+
primary.push(OrganizationRole.OPERATIONS_ENGINEER);
|
|
2594
|
+
}
|
|
2488
2595
|
}
|
|
2489
2596
|
if (mayUpdateAdminVisible) {
|
|
2490
2597
|
primary.push(OrganizationRole.ADMIN);
|
|
2491
2598
|
}
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
}
|
|
2496
|
-
more.push(OrganizationRole.MEMBER);
|
|
2599
|
+
// Candidate set only; the users tab filters it per member.
|
|
2600
|
+
if (mayUpdateGeneralVisible) {
|
|
2601
|
+
more.push(...legacySectionRoles(permissionsReworkEnabled));
|
|
2497
2602
|
}
|
|
2603
|
+
more.push(OrganizationRole.MEMBER);
|
|
2498
2604
|
return { primary, more };
|
|
2499
2605
|
})();
|
|
2500
2606
|
const introToIdentityDocsUrl = externalUrls.introToIdentityDocsUrl;
|
|
@@ -2569,15 +2675,11 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
2569
2675
|
id: 'users',
|
|
2570
2676
|
label: getTabLabel(legacyTabs, 'users', tabTitle('users')),
|
|
2571
2677
|
visible: canReadMembers,
|
|
2572
|
-
component: (_jsx(C4ManagementUsersTab, { orgId: orgId, members: members, loading: membersLoading, mayManageUsersActions: mayManageUsersActions, mayInviteUsers: Boolean(mayInviteMembers || mayInviteAdmins), inviteModal: {
|
|
2678
|
+
component: (_jsx(C4ManagementUsersTab, { orgId: orgId, members: members, loading: membersLoading, mayManageUsersActions: mayManageUsersActions, mayInviteUsers: Boolean(mayInviteMembers || mayInviteAdmins), showLegacyClusterRoles: showLegacyClusterRoles, permissionsReworkEnabled: permissionsReworkEnabled, inviteModal: {
|
|
2573
2679
|
showAdminRole: Boolean(mayInviteAdmins),
|
|
2574
|
-
showLegacyClusterRoles,
|
|
2575
2680
|
learnMoreUrl: identityAuthorizationsDocsUrl,
|
|
2576
2681
|
}, changeRolesModal: {
|
|
2577
2682
|
editableRoles,
|
|
2578
|
-
showOnly8_8Roles,
|
|
2579
|
-
}, assignOwnerModal: {
|
|
2580
|
-
showLegacyClusterRoles,
|
|
2581
2683
|
}, mayAssignNewOwner: isCurrentUserOwner, currentUserEmail: currentUserEmail, telemetry: runtime.telemetry, onNavigateToUser: (email) => {
|
|
2582
2684
|
handleNavigate({
|
|
2583
2685
|
kind: 'userDetails',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ManagementTab } from './c4-management-page.types';
|
|
1
|
+
import type { C4ManagementTab } from './c4-management-page.types.js';
|
|
2
2
|
export type C4ManagementNavigateEvent = {
|
|
3
3
|
kind: 'tabChange';
|
|
4
4
|
orgId: string;
|
|
@@ -61,6 +61,23 @@ export interface C4ManagementAppProps {
|
|
|
61
61
|
* This should be computed by the host app, gated behind the feature flag.
|
|
62
62
|
*/
|
|
63
63
|
isLicensingModel2025?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the tenants value metric is enabled.
|
|
66
|
+
* When true (and the org is on the 2025 model with an included tenants
|
|
67
|
+
* value set), a Tenants usage card is shown on the billing tab, sourced
|
|
68
|
+
* from HDP. This should be computed by the host app, gated behind the
|
|
69
|
+
* feature flag.
|
|
70
|
+
*/
|
|
71
|
+
tenantsValueMetricEnabled?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether PI/DI/TU for the current billing period should be sourced from HDP
|
|
74
|
+
* instead of the console-scraped monthly metrics. Only takes effect for orgs
|
|
75
|
+
* on the 2025 licensing model. This should be computed by the host app,
|
|
76
|
+
* gated behind the feature flag.
|
|
77
|
+
*/
|
|
78
|
+
hdpValueMetricsFor2025Enabled?: boolean;
|
|
79
|
+
/** Aligned org-role model active (camunda-hub#25467). */
|
|
80
|
+
permissionsReworkEnabled?: boolean;
|
|
64
81
|
urls?: C4ManagementUrls;
|
|
65
82
|
/**
|
|
66
83
|
* Called when the component needs the host to reload org data (e.g. after a
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ManagementPageProps } from './c4-management-page.types';
|
|
2
|
+
import type { C4ManagementPageProps } from './c4-management-page.types.js';
|
|
3
3
|
export declare const C4ManagementPage: ({ loading, notFound, tabs, }: C4ManagementPageProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ManagementActivityProps } from '../../../components/c4-management-activity/c4-management-activity.types';
|
|
2
|
+
import type { C4ManagementActivityProps } from '../../../components/c4-management-activity/c4-management-activity.types.js';
|
|
3
3
|
export interface C4ManagementActivityTabProps extends C4ManagementActivityProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const C4ManagementActivityTab: (props: C4ManagementActivityTabProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX, ReactElement } from 'react';
|
|
2
|
-
import type { CloudClientItem } from '../../../components/c4-management-api/c4-management-api.types';
|
|
2
|
+
import type { CloudClientItem } from '../../../components/c4-management-api/c4-management-api.types.js';
|
|
3
3
|
export interface C4ManagementApiTabProps {
|
|
4
4
|
apiClientsItems: CloudClientItem[];
|
|
5
5
|
apiClientsLoading: boolean;
|
|
@@ -26,11 +26,13 @@ export interface C4ManagementBillingTabProps {
|
|
|
26
26
|
processInstances: number;
|
|
27
27
|
decisionInstances: number;
|
|
28
28
|
taskUsers: number;
|
|
29
|
+
tenants?: number;
|
|
29
30
|
};
|
|
30
31
|
billingCurrentMetrics: {
|
|
31
32
|
processInstances: number;
|
|
32
33
|
decisionInstances: number;
|
|
33
34
|
taskUsers: number;
|
|
35
|
+
tenants?: number;
|
|
34
36
|
};
|
|
35
37
|
billingClusterReservations: ClusterReservation[];
|
|
36
38
|
enterpriseDevOnly: boolean;
|
|
@@ -40,6 +42,7 @@ export interface C4ManagementBillingTabProps {
|
|
|
40
42
|
onCreateUsageAlert: (metric: UsageAlertMetric, threshold: number, enabled: boolean) => Promise<void>;
|
|
41
43
|
t?: Translate;
|
|
42
44
|
isLicensingModel2025?: boolean;
|
|
45
|
+
tenantsValueMetricEnabled?: boolean;
|
|
43
46
|
}
|
|
44
47
|
export declare const C4ManagementBillingTab: (props: C4ManagementBillingTabProps) => JSX.Element;
|
|
45
48
|
export {};
|
|
@@ -143,9 +143,13 @@ export const C4ManagementBillingTab = (props) => {
|
|
|
143
143
|
}, currentUsageMetrics: {
|
|
144
144
|
title: (_jsx(_Fragment, { children: safeTranslate(props.t, 'orgmanagement:tabs.billing.metrics.title', 'Current usage') })),
|
|
145
145
|
description: `${formatDate(props.billingEnterprisePeriod.periodStart)} - ${formatDate(props.billingEnterprisePeriod.periodEnd)}`,
|
|
146
|
-
order: props.
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
order: props.tenantsValueMetricEnabled &&
|
|
147
|
+
props.isLicensingModel2025 &&
|
|
148
|
+
props.billingIncludedMetrics.tenants !== undefined
|
|
149
|
+
? ['gu', 'pi', 'tenants']
|
|
150
|
+
: props.isLicensingModel2025
|
|
151
|
+
? ['gu', 'pi']
|
|
152
|
+
: ['gu', 'pi', 'di', 'tu'],
|
|
149
153
|
taskUsers: {
|
|
150
154
|
title: safeTranslate(props.t, 'orgmanagement:tabs.billing.metrics.taskUsers.title', 'Task Users'),
|
|
151
155
|
loading: props.billingLoading,
|
|
@@ -199,6 +203,18 @@ export const C4ManagementBillingTab = (props) => {
|
|
|
199
203
|
: undefined,
|
|
200
204
|
},
|
|
201
205
|
},
|
|
206
|
+
tenants: {
|
|
207
|
+
title: safeTranslate(props.t, 'orgmanagement:tabs.billing.metrics.tenants.title', 'Tenants'),
|
|
208
|
+
loading: props.billingLoading,
|
|
209
|
+
metric: {
|
|
210
|
+
kind: 'chart',
|
|
211
|
+
value: {
|
|
212
|
+
current: props.billingCurrentMetrics.tenants ?? 0,
|
|
213
|
+
max: props.billingIncludedMetrics.tenants ?? 0,
|
|
214
|
+
maxPostfix: safeTranslate(props.t, 'orgmanagement:tabs.billing.metrics.tenants.maxPostfix', ''),
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
202
218
|
}, clusterReservations: {
|
|
203
219
|
title: safeTranslate(props.t, 'orgmanagement:tabs.billing.clusterReservations.title', 'Cluster reservations'),
|
|
204
220
|
tooltip: safeTranslate(props.t, 'orgmanagement:tabs.billing.clusterReservations.tooltip', ''),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { ConsoleTelemetry, ConsoleUser } from '../../../runtime/c4-console-runtime.types';
|
|
2
|
+
import type { ConsoleTelemetry, ConsoleUser } from '../../../runtime/c4-console-runtime.types.js';
|
|
3
3
|
type Translate = (key: string, options?: Record<string, unknown>) => string;
|
|
4
4
|
type OrgRecord = Record<string, unknown>;
|
|
5
5
|
type ExternalUrls = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4ManagementSettingsProps, EarlyAccessFeature } from '../../../components/c4-management-settings/c4-management-settings.types';
|
|
2
|
+
import type { C4ManagementSettingsProps, EarlyAccessFeature } from '../../../components/c4-management-settings/c4-management-settings.types.js';
|
|
3
3
|
export interface C4ManagementSettingsTabProps {
|
|
4
4
|
orgId: string;
|
|
5
5
|
orgName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RowBaseProps } from '@camunda/camunda-composite-components';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { UsageHistoryChartsProps } from '../../../components/c4-usage-history/elements/usage-history-charts';
|
|
3
|
+
import type { UsageHistoryChartsProps } from '../../../components/c4-usage-history/elements/usage-history-charts.js';
|
|
4
4
|
export interface UsageHistoryEntryPerCluster {
|
|
5
5
|
processInstances: number;
|
|
6
6
|
decisionInstances: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OrganizationRole } from '@camunda/ccma-shared-types';
|
|
2
2
|
import type { JSX } from 'react';
|
|
3
|
-
import type { C4InviteUserToOrganizationRole } from '../../../components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types';
|
|
4
|
-
import type { UserDataTableRow } from '../../../components/c4-management-users/c4-management-users.types';
|
|
3
|
+
import type { C4InviteUserToOrganizationRole } from '../../../components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.js';
|
|
4
|
+
import type { UserDataTableRow } from '../../../components/c4-management-users/c4-management-users.types.js';
|
|
5
5
|
export interface C4ManagementUsersTabProps {
|
|
6
6
|
orgId: string;
|
|
7
7
|
members: UserDataTableRow[];
|
|
@@ -9,9 +9,10 @@ export interface C4ManagementUsersTabProps {
|
|
|
9
9
|
mayManageUsersActions: boolean;
|
|
10
10
|
mayInviteUsers: boolean;
|
|
11
11
|
mayAssignNewOwner: boolean;
|
|
12
|
+
showLegacyClusterRoles?: boolean;
|
|
13
|
+
permissionsReworkEnabled?: boolean;
|
|
12
14
|
inviteModal?: {
|
|
13
15
|
showAdminRole?: boolean;
|
|
14
|
-
showLegacyClusterRoles?: boolean;
|
|
15
16
|
learnMoreUrl?: string;
|
|
16
17
|
};
|
|
17
18
|
changeRolesModal?: {
|
|
@@ -19,10 +20,6 @@ export interface C4ManagementUsersTabProps {
|
|
|
19
20
|
primary: OrganizationRole[];
|
|
20
21
|
more: OrganizationRole[];
|
|
21
22
|
};
|
|
22
|
-
showOnly8_8Roles: boolean;
|
|
23
|
-
};
|
|
24
|
-
assignOwnerModal?: {
|
|
25
|
-
showLegacyClusterRoles?: boolean;
|
|
26
23
|
};
|
|
27
24
|
currentUserEmail?: string;
|
|
28
25
|
onNavigateToUser: (email: string) => void;
|
|
@@ -38,4 +35,4 @@ export interface C4ManagementUsersTabProps {
|
|
|
38
35
|
onAssignNewOwner: (newOwnerUserId: string, oldOwnerNewRoles: string[]) => Promise<void>;
|
|
39
36
|
onUpdateUserRoles: (userId: string, roles: string[]) => Promise<void>;
|
|
40
37
|
}
|
|
41
|
-
export declare const C4ManagementUsersTab: ({ orgId, members, loading, mayManageUsersActions, mayInviteUsers, mayAssignNewOwner, inviteModal, changeRolesModal,
|
|
38
|
+
export declare const C4ManagementUsersTab: ({ orgId, members, loading, mayManageUsersActions, mayInviteUsers, mayAssignNewOwner, showLegacyClusterRoles, permissionsReworkEnabled, inviteModal, changeRolesModal, currentUserEmail, onNavigateToUser, t, telemetry, onRemoveUser, onInviteUser, onResendInvite, onCancelInvite, onAssignNewOwner, onUpdateUserRoles, }: C4ManagementUsersTabProps) => JSX.Element;
|