@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
|
@@ -831,7 +831,7 @@ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate,
|
|
|
831
831
|
}
|
|
832
832
|
// Only surface failover for supported reverse-region pairs (#9120) —
|
|
833
833
|
// the backend enforces the same list as a backstop.
|
|
834
|
-
if (!isSupportedFailoverRegionPair(backupRegionCodes[0], backupRegionCodes[1])) {
|
|
834
|
+
if (!isSupportedFailoverRegionPair(backupRegionCodes[0], backupRegionCodes[1], runtime.stage)) {
|
|
835
835
|
continue;
|
|
836
836
|
}
|
|
837
837
|
// Must use the same priority as mapClusterToListItem so the ID stored
|
|
@@ -854,7 +854,7 @@ export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate,
|
|
|
854
854
|
multiRegionClusterIds: eligible,
|
|
855
855
|
syncPendingClusterIds: syncPending,
|
|
856
856
|
};
|
|
857
|
-
}, [rawClusters]);
|
|
857
|
+
}, [rawClusters, runtime.stage]);
|
|
858
858
|
const isMultiRegionClusterFallback = useCallback((clusterId) => multiRegionClusterIds.has(clusterId), [multiRegionClusterIds]);
|
|
859
859
|
const isFailoverSyncPending = useCallback((clusterId) => syncPendingClusterIds.has(clusterId), [syncPendingClusterIds]);
|
|
860
860
|
const isPageLoading = isLoading || authz.isLoading;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClusterListPermissions } from '../../components/c4-cluster-list/c4-cluster-list.types';
|
|
1
|
+
import type { ClusterListPermissions } from '../../components/c4-cluster-list/c4-cluster-list.types.js';
|
|
2
2
|
export type C4ClustersNavigateEvent = {
|
|
3
3
|
kind: 'clusterDetails';
|
|
4
4
|
orgId: string;
|
package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ConnectorManagementExecutableDetailsPageProps } from './c4-connector-management-executable-details-page.types';
|
|
1
|
+
import type { C4ConnectorManagementExecutableDetailsPageProps } from './c4-connector-management-executable-details-page.types.js';
|
|
2
2
|
export declare const C4ConnectorManagementExecutableDetailsPage: (({ orgId, clusterId, connectorId, connectorInstanceId, onNavigate, }: C4ConnectorManagementExecutableDetailsPageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ConnectorManagementExecutablesTablePageProps } from './c4-connector-management-executables-table-page.types';
|
|
1
|
+
import type { C4ConnectorManagementExecutablesTablePageProps } from './c4-connector-management-executables-table-page.types.js';
|
|
2
2
|
export declare const C4ConnectorManagementExecutablesTablePage: (({ orgId, clusterId, connectorId, onNavigate, }: C4ConnectorManagementExecutablesTablePageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ConnectorManagementOutboundDetailsPageProps } from './c4-connector-management-outbound-details-page.types';
|
|
1
|
+
import type { C4ConnectorManagementOutboundDetailsPageProps } from './c4-connector-management-outbound-details-page.types.js';
|
|
2
2
|
export declare const C4ConnectorManagementOutboundDetailsPage: (({ orgId, clusterId, connectorType, onNavigate, }: C4ConnectorManagementOutboundDetailsPageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4ConnectorManagementPageProps } from './c4-connector-management-page.types';
|
|
1
|
+
import type { C4ConnectorManagementPageProps } from './c4-connector-management-page.types.js';
|
|
2
2
|
export declare const C4ConnectorManagementPage: (({ orgId, clusterId, activeTab, onNavigate, }: C4ConnectorManagementPageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
|
@@ -6,6 +6,7 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
|
6
6
|
*/
|
|
7
7
|
import { C4ConnectorsContextProvider } from '@camunda/c4-connectors';
|
|
8
8
|
import { checkVersion, VersionCheckOperator } from '@camunda/ccma-shared-types';
|
|
9
|
+
import { useObserver } from 'mobx-react-lite';
|
|
9
10
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
10
11
|
import { C4_ASSET_URLS } from '../../assetUrls.js';
|
|
11
12
|
import { C4EmptyState } from '../../components/c4-empty-state/c4-empty-state.js';
|
|
@@ -35,9 +36,17 @@ export function useConnectorManagementRuntime(options) {
|
|
|
35
36
|
}
|
|
36
37
|
data.fetchClusters(orgId);
|
|
37
38
|
}, [orgId, data.fetchClusters]);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
// Read the specific observable fields inside useObserver and return derived
|
|
40
|
+
// values, so this hook re-renders its caller (even a non-observer one)
|
|
41
|
+
// whenever the cache's loading state or cluster list changes — without
|
|
42
|
+
// depending on how the `clusters` getter materializes its entries.
|
|
43
|
+
const { isLoading, clusters } = useObserver(() => {
|
|
44
|
+
const cache = data.clusters[orgId];
|
|
45
|
+
return {
|
|
46
|
+
isLoading: cache?.isLoading ?? true,
|
|
47
|
+
clusters: Array.isArray(cache?.data) ? cache.data : [],
|
|
48
|
+
};
|
|
49
|
+
});
|
|
41
50
|
const cluster = useMemo(() => {
|
|
42
51
|
if (!clusterId) {
|
|
43
52
|
return undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { C4CreateClusterPageProps } from './c4-create-cluster-page.types';
|
|
2
|
+
import type { C4CreateClusterPageProps } from './c4-create-cluster-page.types.js';
|
|
3
3
|
export declare const C4CreateClusterPage: (({ orgId, afterCreateModalUrl, talkToAnExpertUrl, externalLinks, onNavigate, }: C4CreateClusterPageProps) => React.ReactElement) & {
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
@@ -61,14 +61,16 @@ export const C4DashboardApp = observer((props) => {
|
|
|
61
61
|
const authz = useC4ConsoleAuthz({ orgId });
|
|
62
62
|
const data = useC4ConsoleData();
|
|
63
63
|
const externalUrls = useMemo(() => getC4DashboardUrls({ orgId, overrides: urls }), [orgId, urls]);
|
|
64
|
-
const { fetchClusters, fetchMembers, fetchAudits, fetchClusterCapacity, getClusters, } = data;
|
|
64
|
+
const { fetchClusters, fetchMembers, fetchAudits, fetchClients, fetchClusterCapacity, getClusters, } = data;
|
|
65
65
|
const orgInfo = data.getOrgInfo(orgId);
|
|
66
66
|
// Permissions derived from orgInfo. If orgInfo isn't loaded yet, default to
|
|
67
67
|
// not loading privileged data (members/activity). The dashboard should still render.
|
|
68
68
|
const canReadMembers = orgInfo?.permissions?.org?.users?.member?.read;
|
|
69
69
|
const canReadActivity = orgInfo?.permissions?.org?.activity?.read;
|
|
70
|
+
const canReadApiClients = orgInfo?.permissions?.org?.clients?.read;
|
|
70
71
|
const shouldLoadMembers = canReadMembers === true;
|
|
71
72
|
const shouldLoadActivity = canReadActivity === true;
|
|
73
|
+
const shouldLoadApiClients = canReadApiClients === true;
|
|
72
74
|
// Fetch data on mount/orgId change (idempotent, cached in context)
|
|
73
75
|
useEffect(() => {
|
|
74
76
|
if (!orgId)
|
|
@@ -122,6 +124,16 @@ export const C4DashboardApp = observer((props) => {
|
|
|
122
124
|
// Errors are surfaced via the shared cache.
|
|
123
125
|
});
|
|
124
126
|
}, [fetchAudits, orgId, shouldLoadActivity]);
|
|
127
|
+
// Load API clients (used for the "Admin APIs" overview tile) only when permitted.
|
|
128
|
+
useEffect(() => {
|
|
129
|
+
if (!orgId)
|
|
130
|
+
return;
|
|
131
|
+
if (!shouldLoadApiClients)
|
|
132
|
+
return;
|
|
133
|
+
fetchClients(orgId).catch(() => {
|
|
134
|
+
// Errors are surfaced via the shared cache.
|
|
135
|
+
});
|
|
136
|
+
}, [fetchClients, orgId, shouldLoadApiClients]);
|
|
125
137
|
useEffect(() => {
|
|
126
138
|
if (!orgId) {
|
|
127
139
|
return;
|
|
@@ -134,13 +146,16 @@ export const C4DashboardApp = observer((props) => {
|
|
|
134
146
|
const clustersCache = data.clusters[orgId];
|
|
135
147
|
const membersCache = data.members[orgId];
|
|
136
148
|
const auditsCache = data.audits[orgId];
|
|
149
|
+
const clientsCache = data.clients[orgId];
|
|
137
150
|
const clusterCapacityMap = data.clusterCapacity[orgId] ?? new Map();
|
|
138
151
|
const clusters = clustersCache?.data ?? [];
|
|
139
152
|
const members = membersCache?.data ?? [];
|
|
140
153
|
const audits = auditsCache?.data ?? [];
|
|
154
|
+
const clients = clientsCache?.data ?? [];
|
|
141
155
|
const error = clustersCache?.error ||
|
|
142
156
|
(shouldLoadMembers ? membersCache?.error : undefined) ||
|
|
143
|
-
(shouldLoadActivity ? auditsCache?.error : undefined)
|
|
157
|
+
(shouldLoadActivity ? auditsCache?.error : undefined) ||
|
|
158
|
+
(shouldLoadApiClients ? clientsCache?.error : undefined);
|
|
144
159
|
// Process audit logs for activity feed
|
|
145
160
|
const activityEntries = useMemo(() => {
|
|
146
161
|
if (!shouldLoadActivity) {
|
|
@@ -168,8 +183,9 @@ export const C4DashboardApp = observer((props) => {
|
|
|
168
183
|
};
|
|
169
184
|
});
|
|
170
185
|
}, [audits, members, shouldLoadActivity]);
|
|
171
|
-
// Process clusters for overview table
|
|
172
|
-
|
|
186
|
+
// Process clusters for overview table (memoized so the mapped array keeps a
|
|
187
|
+
// stable identity across re-renders and does not reset the table's page).
|
|
188
|
+
const clustersOverview = useMemo(() => clusters
|
|
173
189
|
.map((cluster) => {
|
|
174
190
|
const id = (typeof cluster?.uuid === 'string' && cluster.uuid) ||
|
|
175
191
|
(typeof cluster?.id === 'string' && cluster.id) ||
|
|
@@ -190,7 +206,7 @@ export const C4DashboardApp = observer((props) => {
|
|
|
190
206
|
version: cluster.generation?.name || '-',
|
|
191
207
|
};
|
|
192
208
|
})
|
|
193
|
-
.filter((cluster) => Boolean(cluster));
|
|
209
|
+
.filter((cluster) => Boolean(cluster)), [clusters]);
|
|
194
210
|
// Check if any cluster has load data
|
|
195
211
|
const clusterLoadAvailable = clusterCapacityMap.size > 0;
|
|
196
212
|
// Get cluster load callback
|
|
@@ -247,6 +263,8 @@ export const C4DashboardApp = observer((props) => {
|
|
|
247
263
|
reservationAvailable;
|
|
248
264
|
// Count members
|
|
249
265
|
const usersCount = shouldLoadMembers ? members.length : 0;
|
|
266
|
+
// Count Admin API clients (mirrors the Administration API tab's client list).
|
|
267
|
+
const clientsCount = shouldLoadApiClients ? clients.length : 0;
|
|
250
268
|
const salesPlanType = orgInfo?.organizationToSalesPlan?.salesPlan?.salesPlanType;
|
|
251
269
|
const isTrialOrg = salesPlanType === 'trial';
|
|
252
270
|
// Mirrors the "trial expired" gating used elsewhere in Console (e.g. the
|
|
@@ -339,7 +357,7 @@ export const C4DashboardApp = observer((props) => {
|
|
|
339
357
|
}, displayFirstCTA: false }));
|
|
340
358
|
}
|
|
341
359
|
// Render dashboard component
|
|
342
|
-
return (_jsx(C4ConsoleDashboard, { orgId: orgId, usersAmount: canViewUsers ? (shouldLoadMembers ? usersCount : 'N/A') : 'N/A', taskUsersAmount: billing?.taskUsersAmount || 0, clustersAmount: clusters.length, clientsAmount:
|
|
360
|
+
return (_jsx(C4ConsoleDashboard, { orgId: orgId, usersAmount: canViewUsers ? (shouldLoadMembers ? usersCount : 'N/A') : 'N/A', taskUsersAmount: billing?.taskUsersAmount || 0, clustersAmount: clusters.length, clientsAmount: clientsCount, clusters: clustersOverview, clusterLoadAvailable: clusterLoadAvailable, processInstancesChart: {
|
|
343
361
|
title: '',
|
|
344
362
|
theme,
|
|
345
363
|
axes: {
|
|
@@ -418,6 +436,7 @@ export const C4DashboardApp = observer((props) => {
|
|
|
418
436
|
viewClusters: safeTranslate(t, 'dashboard:sections.clusters.viewClusters', 'View all clusters'),
|
|
419
437
|
noClustersFound: safeTranslate(t, 'dashboard:sections.clusters.noClustersFound', 'No clusters found'),
|
|
420
438
|
createCluster: safeTranslate(t, 'dashboard:sections.clusters.createCluster', 'Create cluster'),
|
|
439
|
+
showingCount: safeTranslate(t, 'dashboard:sections.clusters.showingCount', 'Showing {{shown}} of {{total}} clusters'),
|
|
421
440
|
table: {
|
|
422
441
|
name: safeTranslate(t, 'dashboard:sections.clusters.table.name', 'Name'),
|
|
423
442
|
tags: safeTranslate(t, 'dashboard:sections.clusters.table.tags', 'Tags'),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { C4GroupDetailsPageProps } from './c4-group-details-page.types';
|
|
2
|
+
import type { C4GroupDetailsPageProps } from './c4-group-details-page.types.js';
|
|
3
3
|
export declare const C4GroupDetailsPage: (({ orgId, groupId, externalLinks, onNavigate, }: C4GroupDetailsPageProps) => React.ReactElement) & {
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4JobWorkerDetailsPageProps } from './c4-job-worker.types';
|
|
2
|
+
import type { C4JobWorkerDetailsPageProps } from './c4-job-worker.types.js';
|
|
3
3
|
export declare const C4JobWorkerDetailsPage: (({ orgId, clusterId, jobType: jobTypeProp, onNavigate, }: C4JobWorkerDetailsPageProps) => JSX.Element) & {
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import type { C4JobWorkerOverviewPageProps } from './c4-job-worker.types';
|
|
2
|
+
import type { C4JobWorkerOverviewPageProps } from './c4-job-worker.types.js';
|
|
3
3
|
export declare const C4JobWorkerOverviewPage: (({ orgId, clusterId, onNavigate, }: C4JobWorkerOverviewPageProps) => JSX.Element) & {
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ConsoleClusterDto } from '@camunda/ccma-shared-types';
|
|
2
|
-
import type { JobsError } from '../../components/c4-job-dashboard-shared/c4-job-dashboard-shared.types';
|
|
2
|
+
import type { JobsError } from '../../components/c4-job-dashboard-shared/c4-job-dashboard-shared.types.js';
|
|
3
3
|
export type TranslateFn = (key: string) => string;
|
|
4
4
|
export type Tr = (key: string, fallback: string) => string;
|
|
5
5
|
export declare function makeTr(t: TranslateFn | undefined): Tr;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
|
-
import type { C4ManagementAppProps } from './c4-management-app.types';
|
|
3
|
-
export declare const C4ManagementApp: (({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, urls, onNeedsReload, }: C4ManagementAppProps) => JSX.Element) & {
|
|
2
|
+
import type { C4ManagementAppProps } from './c4-management-app.types.js';
|
|
3
|
+
export declare const C4ManagementApp: (({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, tenantsValueMetricEnabled, hdpValueMetricsFor2025Enabled, urls, onNeedsReload, }: C4ManagementAppProps) => JSX.Element) & {
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
@@ -6,7 +6,7 @@ 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';
|
|
9
|
+
import { AuditLoggerService, ConsoleApiClientsService, ConsoleValueMetricsService, EarlyAccessFeaturesService, HdpService, HttpError, OrganizationMembersService, OrgsService, UsageAlertsService, } from '@camunda/ccma-api';
|
|
10
10
|
import { checkVersion, getDisplayedSalesPlan, getRevisitedSalesPlanName, OrganizationRole, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
11
11
|
import { observer } from 'mobx-react-lite';
|
|
12
12
|
import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
@@ -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 { LEGACY_SECTION_ROLES } 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')
|
|
@@ -457,6 +503,14 @@ function addMonthsSafe(date, months) {
|
|
|
457
503
|
}
|
|
458
504
|
return next;
|
|
459
505
|
}
|
|
506
|
+
// HDP value metrics are bucketed per UTC day (a BigQuery DATE column, so every
|
|
507
|
+
// row's ts is UTC midnight), whereas the enterprise period bounds keep the
|
|
508
|
+
// wall-clock time of enterpriseStartDate. Comparing the two directly would drop
|
|
509
|
+
// the term's first day whenever the plan was created after midnight, so both
|
|
510
|
+
// bounds are collapsed to the UTC day they fall on before comparing.
|
|
511
|
+
function toUtcDayStartMs(date) {
|
|
512
|
+
return Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
|
|
513
|
+
}
|
|
460
514
|
function diffInMonthsSimple(start, end) {
|
|
461
515
|
return ((end.getFullYear() - start.getFullYear()) * 12 +
|
|
462
516
|
(end.getMonth() - start.getMonth()));
|
|
@@ -485,7 +539,7 @@ function themeNameToClassName(theme) {
|
|
|
485
539
|
return 'g10';
|
|
486
540
|
}
|
|
487
541
|
}
|
|
488
|
-
export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, urls, onNeedsReload, }) => {
|
|
542
|
+
export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, tenantsValueMetricEnabled = false, hdpValueMetricsFor2025Enabled = false, urls, onNeedsReload, }) => {
|
|
489
543
|
const runtime = useC4ConsoleRuntime();
|
|
490
544
|
const designSystem = useC4DesignSystem();
|
|
491
545
|
const data = useC4ConsoleData();
|
|
@@ -898,6 +952,8 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
898
952
|
const [billingClusters, setBillingClusters] = useState([]);
|
|
899
953
|
const [billingMetricsMonthly, setBillingMetricsMonthly] = useState([]);
|
|
900
954
|
const [billingUsageAlerts, setBillingUsageAlerts] = useState([]);
|
|
955
|
+
const [billingTenantPeak, setBillingTenantPeak] = useState(0);
|
|
956
|
+
const [billingHdpUsageMetrics, setBillingHdpUsageMetrics] = useState([]);
|
|
901
957
|
const [apiClients, setApiClients] = useState([]);
|
|
902
958
|
const [apiClientsLoading, setApiClientsLoading] = useState(false);
|
|
903
959
|
const [apiClientsError, setApiClientsError] = useState(undefined);
|
|
@@ -1061,6 +1117,8 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1061
1117
|
setUsageLoading(false);
|
|
1062
1118
|
}
|
|
1063
1119
|
}, [apiConfig, orgId]);
|
|
1120
|
+
const isLicensingModel2025 = useMemo(() => isLicensingModel2025Prop ??
|
|
1121
|
+
getNestedValue(org, ['metadata', 'licensingModel']) === '2025', [isLicensingModel2025Prop, org]);
|
|
1064
1122
|
const loadBilling = useCallback(async () => {
|
|
1065
1123
|
setBillingLoading(true);
|
|
1066
1124
|
setBillingError(undefined);
|
|
@@ -1069,7 +1127,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1069
1127
|
const clusters = data.clusters[orgId]?.error
|
|
1070
1128
|
? []
|
|
1071
1129
|
: (data.getClusters(orgId) ?? []);
|
|
1072
|
-
const [monthlyResult, alertsResult] = await Promise.allSettled([
|
|
1130
|
+
const [monthlyResult, alertsResult, tenantsResult, hdpUsageResult] = await Promise.allSettled([
|
|
1073
1131
|
ConsoleValueMetricsService.getValueMetrics({
|
|
1074
1132
|
config: apiConfig,
|
|
1075
1133
|
params: {
|
|
@@ -1081,14 +1139,35 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1081
1139
|
config: apiConfig,
|
|
1082
1140
|
params: { orgId },
|
|
1083
1141
|
}),
|
|
1142
|
+
tenantsValueMetricEnabled && isLicensingModel2025
|
|
1143
|
+
? HdpService.getTenantUsage({
|
|
1144
|
+
config: apiConfig,
|
|
1145
|
+
params: { orgId, days: 360 },
|
|
1146
|
+
})
|
|
1147
|
+
: Promise.resolve([]),
|
|
1148
|
+
hdpValueMetricsFor2025Enabled && isLicensingModel2025
|
|
1149
|
+
? HdpService.getUsageMetrics({
|
|
1150
|
+
config: apiConfig,
|
|
1151
|
+
params: { orgId },
|
|
1152
|
+
})
|
|
1153
|
+
: Promise.resolve({ valueMetrics: { orgId, valueMetrics: [] } }),
|
|
1084
1154
|
]);
|
|
1085
1155
|
const normalizedClusters = (clusters ?? []).filter((item) => Boolean(item) && typeof item === 'object');
|
|
1086
1156
|
const monthly = monthlyResult.status === 'fulfilled' ? monthlyResult.value : [];
|
|
1087
1157
|
const alerts = alertsResult.status === 'fulfilled' ? alertsResult.value : undefined;
|
|
1088
|
-
const loadErrors = [monthlyResult, alertsResult].filter((result) => result.status === 'rejected');
|
|
1158
|
+
const loadErrors = [monthlyResult, alertsResult, hdpUsageResult].filter((result) => result.status === 'rejected');
|
|
1159
|
+
const tenantUsage = tenantsResult.status === 'fulfilled' ? tenantsResult.value : [];
|
|
1160
|
+
const tenantPeak = tenantUsage.length > 0
|
|
1161
|
+
? Math.max(...tenantUsage.map((point) => point.value))
|
|
1162
|
+
: 0;
|
|
1163
|
+
const hdpUsageMetrics = hdpUsageResult.status === 'fulfilled'
|
|
1164
|
+
? (hdpUsageResult.value?.valueMetrics?.valueMetrics ?? [])
|
|
1165
|
+
: [];
|
|
1089
1166
|
setBillingClusters(normalizedClusters);
|
|
1090
1167
|
setBillingMetricsMonthly(monthly ?? []);
|
|
1091
1168
|
setBillingUsageAlerts(alerts?.usageAlerts ?? []);
|
|
1169
|
+
setBillingTenantPeak(tenantPeak);
|
|
1170
|
+
setBillingHdpUsageMetrics(hdpUsageMetrics);
|
|
1092
1171
|
if (loadErrors.length > 0) {
|
|
1093
1172
|
const firstError = loadErrors[0]?.reason;
|
|
1094
1173
|
setBillingError(firstError instanceof Error
|
|
@@ -1100,15 +1179,21 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1100
1179
|
setBillingClusters([]);
|
|
1101
1180
|
setBillingMetricsMonthly([]);
|
|
1102
1181
|
setBillingUsageAlerts([]);
|
|
1182
|
+
setBillingTenantPeak(0);
|
|
1183
|
+
setBillingHdpUsageMetrics([]);
|
|
1103
1184
|
setBillingError(error instanceof Error ? error.message : 'Could not load billing');
|
|
1104
1185
|
}
|
|
1105
1186
|
finally {
|
|
1106
1187
|
setBillingLoading(false);
|
|
1107
1188
|
}
|
|
1108
|
-
}, [
|
|
1189
|
+
}, [
|
|
1190
|
+
apiConfig,
|
|
1191
|
+
orgId,
|
|
1192
|
+
tenantsValueMetricEnabled,
|
|
1193
|
+
isLicensingModel2025,
|
|
1194
|
+
hdpValueMetricsFor2025Enabled,
|
|
1195
|
+
]);
|
|
1109
1196
|
const enterpriseDevOnly = useMemo(() => getNestedBoolean(org, ['metadata', 'enterpriseDevOnly']), [org]);
|
|
1110
|
-
const isLicensingModel2025 = useMemo(() => isLicensingModel2025Prop ??
|
|
1111
|
-
getNestedValue(org, ['metadata', 'licensingModel']) === '2025', [isLicensingModel2025Prop, org]);
|
|
1112
1197
|
const billingIsEnterprise = useMemo(() => orgHasSalesPlanType(org, 'enterprise'), [org]);
|
|
1113
1198
|
const billingGeneralData = useMemo(() => {
|
|
1114
1199
|
const salesPlanType = getSalesPlanType(org);
|
|
@@ -1194,13 +1279,33 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1194
1279
|
'organizationToSalesPlan',
|
|
1195
1280
|
'enterpriseIncludingValueMetrics',
|
|
1196
1281
|
];
|
|
1282
|
+
const rawTenants = getNestedValue(org, [...basePath, 'tenants']);
|
|
1197
1283
|
return {
|
|
1198
1284
|
processInstances: getNumber(getNestedValue(org, [...basePath, 'processInstances'])),
|
|
1199
1285
|
decisionInstances: getNumber(getNestedValue(org, [...basePath, 'decisionInstances'])),
|
|
1200
1286
|
taskUsers: getNumber(getNestedValue(org, [...basePath, 'taskUsers'])),
|
|
1287
|
+
tenants: rawTenants === undefined ? undefined : getNumber(rawTenants),
|
|
1201
1288
|
};
|
|
1202
1289
|
}, [org]);
|
|
1203
1290
|
const billingCurrentMetrics = useMemo(() => {
|
|
1291
|
+
if (hdpValueMetricsFor2025Enabled && isLicensingModel2025) {
|
|
1292
|
+
const periodStartDayMs = toUtcDayStartMs(billingEnterprisePeriod.periodStart);
|
|
1293
|
+
const periodEndDayMs = toUtcDayStartMs(billingEnterprisePeriod.periodEnd);
|
|
1294
|
+
return billingHdpUsageMetrics
|
|
1295
|
+
.filter((entry) => entry.date.ts >= periodStartDayMs &&
|
|
1296
|
+
entry.date.ts <= periodEndDayMs)
|
|
1297
|
+
.reduce((acc, entry) => {
|
|
1298
|
+
acc.processInstances += entry.pi;
|
|
1299
|
+
acc.decisionInstances += entry.di;
|
|
1300
|
+
acc.taskUsers += entry.tu;
|
|
1301
|
+
return acc;
|
|
1302
|
+
}, {
|
|
1303
|
+
processInstances: 0,
|
|
1304
|
+
decisionInstances: 0,
|
|
1305
|
+
taskUsers: 0,
|
|
1306
|
+
tenants: billingTenantPeak,
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1204
1309
|
const relevant = billingMetricsMonthly.filter((entry) => {
|
|
1205
1310
|
const m = entry.monthsSinceStart;
|
|
1206
1311
|
return (typeof m === 'number' &&
|
|
@@ -1212,11 +1317,22 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1212
1317
|
acc.decisionInstances += entry.decisionInstances;
|
|
1213
1318
|
acc.taskUsers += entry.taskUsers;
|
|
1214
1319
|
return acc;
|
|
1215
|
-
}, {
|
|
1320
|
+
}, {
|
|
1321
|
+
processInstances: 0,
|
|
1322
|
+
decisionInstances: 0,
|
|
1323
|
+
taskUsers: 0,
|
|
1324
|
+
tenants: billingTenantPeak,
|
|
1325
|
+
});
|
|
1216
1326
|
}, [
|
|
1217
1327
|
billingEnterprisePeriod.endMonth,
|
|
1218
1328
|
billingEnterprisePeriod.startMonth,
|
|
1329
|
+
billingEnterprisePeriod.periodStart,
|
|
1330
|
+
billingEnterprisePeriod.periodEnd,
|
|
1219
1331
|
billingMetricsMonthly,
|
|
1332
|
+
billingTenantPeak,
|
|
1333
|
+
billingHdpUsageMetrics,
|
|
1334
|
+
hdpValueMetricsFor2025Enabled,
|
|
1335
|
+
isLicensingModel2025,
|
|
1220
1336
|
]);
|
|
1221
1337
|
const billingClusterReservations = useMemo(() => {
|
|
1222
1338
|
const reservedRaw = getNestedValue(org, [
|
|
@@ -1277,6 +1393,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1277
1393
|
billingClusterReservations,
|
|
1278
1394
|
enterpriseDevOnly,
|
|
1279
1395
|
isLicensingModel2025,
|
|
1396
|
+
tenantsValueMetricEnabled,
|
|
1280
1397
|
membersCount: members.length,
|
|
1281
1398
|
changeTab,
|
|
1282
1399
|
onUpdateUsageAlert: async (alertId, threshold, enabled) => {
|
|
@@ -1317,6 +1434,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1317
1434
|
billingUsageAlerts,
|
|
1318
1435
|
enterpriseDevOnly,
|
|
1319
1436
|
isLicensingModel2025,
|
|
1437
|
+
tenantsValueMetricEnabled,
|
|
1320
1438
|
changeTab,
|
|
1321
1439
|
members.length,
|
|
1322
1440
|
t,
|
|
@@ -1378,6 +1496,14 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1378
1496
|
value: item.entry.taskUsers,
|
|
1379
1497
|
});
|
|
1380
1498
|
}
|
|
1499
|
+
const otherLabelFor = (otherClusterCount) => safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.charts.otherClusters', `Other (${otherClusterCount} cluster${otherClusterCount === 1 ? '' : 's'})`, { count: otherClusterCount });
|
|
1500
|
+
// Cap each chart's series to the top-N clusters (+ an aggregated "Other"
|
|
1501
|
+
// line) so the legend stays bounded for orgs with many clusters. Applied
|
|
1502
|
+
// at the data-mapping site so both the Carbon and ds render paths consume
|
|
1503
|
+
// the reduced group set.
|
|
1504
|
+
const piCapped = capChartGroupsToTopN(pi, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1505
|
+
const diCapped = capChartGroupsToTopN(di, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1506
|
+
const tuCapped = capChartGroupsToTopN(tu, TOP_N_CHART_CLUSTERS, otherLabelFor);
|
|
1381
1507
|
const titleBottom = safeTranslate(t, 'orgmanagement:tabs.billing.billingHistory.charts.titleOverall', 'Overall');
|
|
1382
1508
|
const titleLeft = safeTranslate(t, 'orgmanagement:tabs.billing.billingHistory.charts.titleLeft', 'Usage');
|
|
1383
1509
|
return {
|
|
@@ -1385,7 +1511,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1385
1511
|
title: safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.headers.processInstances', 'Process instances'),
|
|
1386
1512
|
theme,
|
|
1387
1513
|
axes: { titleBottom, titleLeft },
|
|
1388
|
-
dataPoints:
|
|
1514
|
+
dataPoints: piCapped,
|
|
1389
1515
|
},
|
|
1390
1516
|
di: isLicensingModel2025
|
|
1391
1517
|
? undefined
|
|
@@ -1393,7 +1519,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1393
1519
|
title: safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.headers.decisionInstances', 'Decision instances'),
|
|
1394
1520
|
theme,
|
|
1395
1521
|
axes: { titleBottom, titleLeft },
|
|
1396
|
-
dataPoints:
|
|
1522
|
+
dataPoints: diCapped,
|
|
1397
1523
|
},
|
|
1398
1524
|
tu: isLicensingModel2025
|
|
1399
1525
|
? undefined
|
|
@@ -1401,7 +1527,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
1401
1527
|
title: safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.headers.taskUsers', 'Task users'),
|
|
1402
1528
|
theme,
|
|
1403
1529
|
axes: { titleBottom, titleLeft },
|
|
1404
|
-
dataPoints:
|
|
1530
|
+
dataPoints: tuCapped,
|
|
1405
1531
|
},
|
|
1406
1532
|
};
|
|
1407
1533
|
}, [
|
|
@@ -2458,7 +2584,6 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
2458
2584
|
});
|
|
2459
2585
|
});
|
|
2460
2586
|
})();
|
|
2461
|
-
const showOnly8_8Roles = !showLegacyClusterRoles;
|
|
2462
2587
|
const mayUpdateGeneralVisible = getNestedBoolean(org, [
|
|
2463
2588
|
'permissions',
|
|
2464
2589
|
'org',
|
|
@@ -2489,12 +2614,11 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
2489
2614
|
if (mayUpdateAdminVisible) {
|
|
2490
2615
|
primary.push(OrganizationRole.ADMIN);
|
|
2491
2616
|
}
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
}
|
|
2496
|
-
more.push(OrganizationRole.MEMBER);
|
|
2617
|
+
// Candidate set only; the users tab filters it per member.
|
|
2618
|
+
if (mayUpdateGeneralVisible) {
|
|
2619
|
+
more.push(...LEGACY_SECTION_ROLES);
|
|
2497
2620
|
}
|
|
2621
|
+
more.push(OrganizationRole.MEMBER);
|
|
2498
2622
|
return { primary, more };
|
|
2499
2623
|
})();
|
|
2500
2624
|
const introToIdentityDocsUrl = externalUrls.introToIdentityDocsUrl;
|
|
@@ -2569,15 +2693,11 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
|
|
|
2569
2693
|
id: 'users',
|
|
2570
2694
|
label: getTabLabel(legacyTabs, 'users', tabTitle('users')),
|
|
2571
2695
|
visible: canReadMembers,
|
|
2572
|
-
component: (_jsx(C4ManagementUsersTab, { orgId: orgId, members: members, loading: membersLoading, mayManageUsersActions: mayManageUsersActions, mayInviteUsers: Boolean(mayInviteMembers || mayInviteAdmins), inviteModal: {
|
|
2696
|
+
component: (_jsx(C4ManagementUsersTab, { orgId: orgId, members: members, loading: membersLoading, mayManageUsersActions: mayManageUsersActions, mayInviteUsers: Boolean(mayInviteMembers || mayInviteAdmins), showLegacyClusterRoles: showLegacyClusterRoles, inviteModal: {
|
|
2573
2697
|
showAdminRole: Boolean(mayInviteAdmins),
|
|
2574
|
-
showLegacyClusterRoles,
|
|
2575
2698
|
learnMoreUrl: identityAuthorizationsDocsUrl,
|
|
2576
2699
|
}, changeRolesModal: {
|
|
2577
2700
|
editableRoles,
|
|
2578
|
-
showOnly8_8Roles,
|
|
2579
|
-
}, assignOwnerModal: {
|
|
2580
|
-
showLegacyClusterRoles,
|
|
2581
2701
|
}, mayAssignNewOwner: isCurrentUserOwner, currentUserEmail: currentUserEmail, telemetry: runtime.telemetry, onNavigateToUser: (email) => {
|
|
2582
2702
|
handleNavigate({
|
|
2583
2703
|
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,21 @@ 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;
|
|
64
79
|
urls?: C4ManagementUrls;
|
|
65
80
|
/**
|
|
66
81
|
* 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;
|