@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
package/lib/esm/index.js
CHANGED
|
@@ -86,7 +86,6 @@ export { C4Search } from './components/c4-search/c4-search.js';
|
|
|
86
86
|
export { C4SearchResults } from './components/c4-search/c4-search-results.js';
|
|
87
87
|
export { C4SmClusterDetails } from './components/c4-sm-cluster-details/c4-sm-cluster-details.js';
|
|
88
88
|
export { C4SmDashboard } from './components/c4-sm-dashboard/c4-sm-dashboard.js';
|
|
89
|
-
export { C4StackDriverLinks } from './components/c4-stackdriver-links/c4-stackdriver-links.js';
|
|
90
89
|
export { C4Stat } from './components/c4-stat/c4-stat.js';
|
|
91
90
|
export { C4StatefulButton } from './components/c4-stateful-button/c4-stateful-button.js';
|
|
92
91
|
export { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListSkeleton, C4StructuredListWrapper, } from './components/c4-structured-list/c4-structured-list.js';
|
|
@@ -97,6 +96,7 @@ export { C4ThemeSwitcher } from './components/c4-theme-switcher/c4-theme-switche
|
|
|
97
96
|
export { C4TileWithTitleAndAction } from './components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
98
97
|
export { C4ToastNotification } from './components/c4-toast-notification/c4-toast-notification.js';
|
|
99
98
|
export { C4Toggle } from './components/c4-toggle/c4-toggle.js';
|
|
99
|
+
export { C4TsugaLinks } from './components/c4-tsuga-links/c4-tsuga-links.js';
|
|
100
100
|
export { C4TutorialTile } from './components/c4-tutorial-tile/c4-tutorial-tile.js';
|
|
101
101
|
export { C4UsageAlertUpdateModal } from './components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js';
|
|
102
102
|
export { C4UsageHistory } from './components/c4-usage-history/c4-usage-history.js';
|
|
@@ -110,16 +110,11 @@ export { openC4CreateConnectorSecretModal, setC4CreateConnectorSecretModalHandle
|
|
|
110
110
|
export { openC4CreateConsoleApiClientModal, setC4CreateConsoleApiClientModalHandle, } from './modals/c4-create-console-api-client-modal-handle.js';
|
|
111
111
|
export { openC4InviteUserToOrganizationModal, setC4InviteUserToOrganizationModalHandle, } from './modals/c4-invite-user-to-organization-modal-handle.js';
|
|
112
112
|
export { openC4RenameOrganizationModal, setC4RenameOrganizationModalHandle, } from './modals/c4-rename-organization-modal-handle.js';
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export { C4ConsoleNotificationsProvider, useC4ConsoleNotifications, } from './runtime/
|
|
118
|
-
export { C4ConsoleRuntimeProvider, useC4ConsoleRuntime, useC4DesignSystem, } from './runtime/c4-console-runtime-context.js';
|
|
119
|
-
export { C4UserNotificationsProvider, useC4UserNotifications, } from './runtime/c4-user-notifications-context.js';
|
|
120
|
-
export { useC4UserTheme } from './runtime/c4-user-theme.js';
|
|
121
|
-
export { buildModelerOrgUrl, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, resolveAdminAppName, } from './runtime/nav/camunda-apps.js';
|
|
122
|
-
export { useC4ClusterNavEntries, useC4WebappBreadcrumbData, } from './runtime/nav/use-webapp-nav-data.js';
|
|
113
|
+
// The headless runtime data layer. Forwarded from `./runtime` rather than
|
|
114
|
+
// re-listed per module, so the package root and the
|
|
115
|
+
// `@camunda/ccma-saas-frontend/runtime` subpath expose one identical surface.
|
|
116
|
+
// Add runtime exports in `src/runtime/index.ts` and mirror them here.
|
|
117
|
+
export { addC4ConsoleNotification, buildModelerOrgUrl, C4ConsoleDataProvider, C4ConsoleEventsProvider, C4ConsoleNotificationsProvider, C4ConsoleRuntimeProvider, C4UserNotificationsProvider, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, removeC4ConsoleNotificationById, resolveAdminAppName, setC4ConsoleNotificationsHandle, useC4ClusterNavEntries, useC4ConsoleAuthz, useC4ConsoleData, useC4ConsoleEventsState, useC4ConsoleNotifications, useC4ConsoleRuntime, useC4DesignSystem, useC4UserNotifications, useC4UserTheme, useC4WebappBreadcrumbData, } from './runtime/index.js';
|
|
123
118
|
export { C4ClusterClientDetailsApp } from './widgets/cluster-client-details/c4-cluster-client-details-app.js';
|
|
124
119
|
export { C4ClusterDetailsApp } from './widgets/cluster-details/c4-cluster-details-app.js';
|
|
125
120
|
export { C4ClusterDetailsPage } from './widgets/cluster-details/c4-cluster-details-page.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4CreateClusterApiClientModalHandle, C4CreateClusterApiClientModalOpenParams } from '../components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types';
|
|
1
|
+
import type { C4CreateClusterApiClientModalHandle, C4CreateClusterApiClientModalOpenParams } from '../components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.js';
|
|
2
2
|
export declare function setC4CreateClusterApiClientModalHandle(next: C4CreateClusterApiClientModalHandle | undefined): void;
|
|
3
3
|
export declare function openC4CreateClusterApiClientModal(params: C4CreateClusterApiClientModalOpenParams): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4CreateConnectorSecretModalHandle, C4CreateConnectorSecretModalOpenParams } from '../components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.types';
|
|
1
|
+
import type { C4CreateConnectorSecretModalHandle, C4CreateConnectorSecretModalOpenParams } from '../components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.types.js';
|
|
2
2
|
export declare function setC4CreateConnectorSecretModalHandle(next: C4CreateConnectorSecretModalHandle | undefined): void;
|
|
3
3
|
export declare function openC4CreateConnectorSecretModal(params: C4CreateConnectorSecretModalOpenParams): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4CreateConsoleApiClientModalHandle, C4CreateConsoleApiClientModalOpenParams } from '../components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types';
|
|
1
|
+
import type { C4CreateConsoleApiClientModalHandle, C4CreateConsoleApiClientModalOpenParams } from '../components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.js';
|
|
2
2
|
export declare function setC4CreateConsoleApiClientModalHandle(next: C4CreateConsoleApiClientModalHandle | undefined): void;
|
|
3
3
|
export declare function openC4CreateConsoleApiClientModal(params: C4CreateConsoleApiClientModalOpenParams): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4InviteUserToOrganizationModalHandle, C4InviteUserToOrganizationModalOpenParams } from '../components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types';
|
|
1
|
+
import type { C4InviteUserToOrganizationModalHandle, C4InviteUserToOrganizationModalOpenParams } from '../components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.js';
|
|
2
2
|
export declare function setC4InviteUserToOrganizationModalHandle(handle: C4InviteUserToOrganizationModalHandle | undefined): void;
|
|
3
3
|
export declare function openC4InviteUserToOrganizationModal(params: C4InviteUserToOrganizationModalOpenParams): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { C4RenameOrganizationModalHandle, C4RenameOrganizationModalOpenParams } from '../components/c4-rename-organization-modal/c4-rename-organization-modal.types';
|
|
1
|
+
import type { C4RenameOrganizationModalHandle, C4RenameOrganizationModalOpenParams } from '../components/c4-rename-organization-modal/c4-rename-organization-modal.types.js';
|
|
2
2
|
export declare function setC4RenameOrganizationModalHandle(next: C4RenameOrganizationModalHandle | undefined): void;
|
|
3
3
|
export declare function openC4RenameOrganizationModal(params: C4RenameOrganizationModalOpenParams): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AddC4ConsoleNotificationOptions } from '../runtime/c4-console-notifications-context.types';
|
|
1
|
+
import type { AddC4ConsoleNotificationOptions } from '../runtime/c4-console-notifications-context.types.js';
|
|
2
2
|
export interface C4ConsoleNotificationsHandle {
|
|
3
3
|
add: (options: AddC4ConsoleNotificationOptions) => string;
|
|
4
4
|
removeById: (id: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { C4ConsoleDataState } from './c4-console-data-context.types';
|
|
3
|
-
import { type ConsoleDataStoreSnapshotIn } from './c4-console-data-store';
|
|
2
|
+
import type { C4ConsoleDataState } from './c4-console-data-context.types.js';
|
|
3
|
+
import { type ConsoleDataStoreSnapshotIn } from './c4-console-data-store.js';
|
|
4
4
|
export interface C4ConsoleDataProviderProps {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
/**
|
|
@@ -26,13 +26,25 @@ export declare const C4ConsoleDataProvider: ({ children, initialState, }: C4Cons
|
|
|
26
26
|
*
|
|
27
27
|
* Must be used within C4ConsoleDataProvider.
|
|
28
28
|
*
|
|
29
|
+
* ⚠️ Reactivity: the context value returned here is now **stable** — it no
|
|
30
|
+
* longer changes on every store mutation. The data getters read MobX
|
|
31
|
+
* observables lazily, so a component that reads data from this hook during
|
|
32
|
+
* render (e.g. `data.getClusters(orgId)`) MUST be wrapped in `observer()` from
|
|
33
|
+
* `mobx-react-lite` to re-render when that data changes. Components that only
|
|
34
|
+
* call actions (`data.fetchClusters(...)`) in effects/handlers do not need it.
|
|
35
|
+
* Custom hooks that read data during render should wrap the read in
|
|
36
|
+
* `useObserver(() => ...)` so their (possibly non-observer) caller re-renders.
|
|
37
|
+
*
|
|
29
38
|
* @example
|
|
30
|
-
* const
|
|
39
|
+
* const MyWidget = observer(({ orgId }) => {
|
|
40
|
+
* const data = useC4ConsoleData()
|
|
31
41
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
42
|
+
* useEffect(() => {
|
|
43
|
+
* data.fetchClusters(orgId)
|
|
44
|
+
* }, [data, orgId])
|
|
35
45
|
*
|
|
36
|
-
*
|
|
46
|
+
* const clusters = data.getClusters(orgId) ?? []
|
|
47
|
+
* return <ClusterList clusters={clusters} />
|
|
48
|
+
* })
|
|
37
49
|
*/
|
|
38
50
|
export declare const useC4ConsoleData: () => C4ConsoleDataState;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { SseEntity, SseType } from '@camunda/ccma-shared-types';
|
|
3
|
-
import {
|
|
4
|
-
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, } from 'react';
|
|
3
|
+
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, } from 'react';
|
|
5
4
|
import { addC4ConsoleNotification } from '../notifications/c4-console-notifications-handle.js';
|
|
6
5
|
import { ConsoleDataStore, } from './c4-console-data-store.js';
|
|
7
6
|
import { useC4ConsoleRuntime } from './c4-console-runtime-context.js';
|
|
@@ -36,6 +35,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
36
35
|
earlyAccessFeatures: {},
|
|
37
36
|
members: {},
|
|
38
37
|
audits: {},
|
|
38
|
+
clients: {},
|
|
39
39
|
clusterCapacity: {},
|
|
40
40
|
upgradableGenerations: {},
|
|
41
41
|
generationDetails: {},
|
|
@@ -43,13 +43,6 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
43
43
|
...initialStateRef.current,
|
|
44
44
|
});
|
|
45
45
|
}, []);
|
|
46
|
-
// Re-render provider consumers whenever the MST store changes.
|
|
47
|
-
const [storeVersion, setStoreVersion] = useState(0);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
return onSnapshot(store, () => {
|
|
50
|
-
setStoreVersion((prev) => prev + 1);
|
|
51
|
-
});
|
|
52
|
-
}, [store]);
|
|
53
46
|
// Inject runtime config into store before child effects run
|
|
54
47
|
useLayoutEffect(() => {
|
|
55
48
|
store.setRuntime(runtime);
|
|
@@ -59,6 +52,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
59
52
|
const fetchOrgInfo = useCallback((orgId, options) => store.fetchOrgInfo(orgId, options), [store]);
|
|
60
53
|
const fetchMembers = useCallback((orgId, options) => store.fetchMembers(orgId, options), [store]);
|
|
61
54
|
const fetchAudits = useCallback((orgId, options) => store.fetchAudits(orgId, options), [store]);
|
|
55
|
+
const fetchClients = useCallback((orgId, options) => store.fetchClients(orgId, options), [store]);
|
|
62
56
|
const fetchOrgOwner = useCallback((orgId, options) => store.fetchOrgOwner(orgId, options), [store]);
|
|
63
57
|
const fetchEarlyAccessFeatures = useCallback((orgId, options) => store.fetchEarlyAccessFeatures(orgId, options), [store]);
|
|
64
58
|
const fetchClusterCapacity = useCallback((orgId, clusterIds, options) => store.fetchClusterCapacity(orgId, clusterIds, options), [store]);
|
|
@@ -74,6 +68,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
74
68
|
const invalidateClusterCapacity = useCallback((orgId) => store.invalidateClusterCapacity(orgId), [store]);
|
|
75
69
|
const invalidateMembers = useCallback((orgId) => store.invalidateMembers(orgId), [store]);
|
|
76
70
|
const invalidateAudits = useCallback((orgId) => store.invalidateAudits(orgId), [store]);
|
|
71
|
+
const invalidateClients = useCallback((orgId) => store.invalidateClients(orgId), [store]);
|
|
77
72
|
const invalidateMyOrgs = useCallback(() => store.invalidateMyOrgs(), [store]);
|
|
78
73
|
const invalidateWebappClusters = useCallback((orgId) => store.invalidateWebappClusters(orgId), [store]);
|
|
79
74
|
const invalidateAll = useCallback((orgId) => store.invalidateAll(orgId), [store]);
|
|
@@ -83,6 +78,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
83
78
|
const getEarlyAccessFeatures = useCallback((orgId) => store.getEarlyAccessFeatures(orgId), [store]);
|
|
84
79
|
const getMembers = useCallback((orgId) => store.getMembers(orgId), [store]);
|
|
85
80
|
const getAudits = useCallback((orgId) => store.getAudits(orgId), [store]);
|
|
81
|
+
const getClients = useCallback((orgId) => store.getClients(orgId), [store]);
|
|
86
82
|
const getClusterCapacity = useCallback((orgId, clusterId) => store.getClusterCapacity(orgId, clusterId), [store]);
|
|
87
83
|
const getMyOrgs = useCallback(() => store.getMyOrgs(), [store]);
|
|
88
84
|
const getWebappClusters = useCallback((orgId) => store.getWebappClusters(orgId), [store]);
|
|
@@ -162,6 +158,18 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
162
158
|
});
|
|
163
159
|
return result;
|
|
164
160
|
},
|
|
161
|
+
get clients() {
|
|
162
|
+
const result = {};
|
|
163
|
+
store.clients.forEach((value, key) => {
|
|
164
|
+
result[key] = {
|
|
165
|
+
data: value.data,
|
|
166
|
+
isLoading: value.isLoading,
|
|
167
|
+
error: (value.error ?? undefined),
|
|
168
|
+
lastFetched: value.lastFetched ?? undefined,
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
return result;
|
|
172
|
+
},
|
|
165
173
|
get clusterCapacity() {
|
|
166
174
|
const result = {};
|
|
167
175
|
store.clusterCapacity.forEach((value, key) => {
|
|
@@ -221,6 +229,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
221
229
|
fetchEarlyAccessFeatures,
|
|
222
230
|
fetchMembers,
|
|
223
231
|
fetchAudits,
|
|
232
|
+
fetchClients,
|
|
224
233
|
fetchClusterCapacity,
|
|
225
234
|
fetchMyOrgs,
|
|
226
235
|
fetchWebappClusters,
|
|
@@ -235,6 +244,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
235
244
|
invalidateClusterCapacity,
|
|
236
245
|
invalidateMembers,
|
|
237
246
|
invalidateAudits,
|
|
247
|
+
invalidateClients,
|
|
238
248
|
invalidateMyOrgs,
|
|
239
249
|
invalidateWebappClusters,
|
|
240
250
|
invalidateAll,
|
|
@@ -245,6 +255,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
245
255
|
getEarlyAccessFeatures,
|
|
246
256
|
getMembers,
|
|
247
257
|
getAudits,
|
|
258
|
+
getClients,
|
|
248
259
|
getClusterCapacity,
|
|
249
260
|
getMyOrgs,
|
|
250
261
|
getWebappClusters,
|
|
@@ -253,13 +264,13 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
253
264
|
getGenerationDetails,
|
|
254
265
|
}), [
|
|
255
266
|
store,
|
|
256
|
-
storeVersion,
|
|
257
267
|
fetchClusters,
|
|
258
268
|
fetchOrgInfo,
|
|
259
269
|
fetchOrgOwner,
|
|
260
270
|
fetchEarlyAccessFeatures,
|
|
261
271
|
fetchMembers,
|
|
262
272
|
fetchAudits,
|
|
273
|
+
fetchClients,
|
|
263
274
|
fetchClusterCapacity,
|
|
264
275
|
fetchMyOrgs,
|
|
265
276
|
fetchWebappClusters,
|
|
@@ -273,6 +284,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
273
284
|
invalidateClusterCapacity,
|
|
274
285
|
invalidateMembers,
|
|
275
286
|
invalidateAudits,
|
|
287
|
+
invalidateClients,
|
|
276
288
|
invalidateMyOrgs,
|
|
277
289
|
invalidateWebappClusters,
|
|
278
290
|
invalidateAll,
|
|
@@ -282,6 +294,7 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
282
294
|
getEarlyAccessFeatures,
|
|
283
295
|
getMembers,
|
|
284
296
|
getAudits,
|
|
297
|
+
getClients,
|
|
285
298
|
getClusterCapacity,
|
|
286
299
|
getMyOrgs,
|
|
287
300
|
getWebappClusters,
|
|
@@ -353,14 +366,26 @@ export const C4ConsoleDataProvider = ({ children, initialState, }) => {
|
|
|
353
366
|
*
|
|
354
367
|
* Must be used within C4ConsoleDataProvider.
|
|
355
368
|
*
|
|
369
|
+
* ⚠️ Reactivity: the context value returned here is now **stable** — it no
|
|
370
|
+
* longer changes on every store mutation. The data getters read MobX
|
|
371
|
+
* observables lazily, so a component that reads data from this hook during
|
|
372
|
+
* render (e.g. `data.getClusters(orgId)`) MUST be wrapped in `observer()` from
|
|
373
|
+
* `mobx-react-lite` to re-render when that data changes. Components that only
|
|
374
|
+
* call actions (`data.fetchClusters(...)`) in effects/handlers do not need it.
|
|
375
|
+
* Custom hooks that read data during render should wrap the read in
|
|
376
|
+
* `useObserver(() => ...)` so their (possibly non-observer) caller re-renders.
|
|
377
|
+
*
|
|
356
378
|
* @example
|
|
357
|
-
* const
|
|
379
|
+
* const MyWidget = observer(({ orgId }) => {
|
|
380
|
+
* const data = useC4ConsoleData()
|
|
358
381
|
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
382
|
+
* useEffect(() => {
|
|
383
|
+
* data.fetchClusters(orgId)
|
|
384
|
+
* }, [data, orgId])
|
|
362
385
|
*
|
|
363
|
-
*
|
|
386
|
+
* const clusters = data.getClusters(orgId) ?? []
|
|
387
|
+
* return <ClusterList clusters={clusters} />
|
|
388
|
+
* })
|
|
364
389
|
*/
|
|
365
390
|
export const useC4ConsoleData = () => {
|
|
366
391
|
const context = useContext(DataContext);
|
|
@@ -25,6 +25,7 @@ export interface C4ConsoleDataState {
|
|
|
25
25
|
earlyAccessFeatures: OrgCache<any[]>;
|
|
26
26
|
members: OrgCache<any[]>;
|
|
27
27
|
audits: OrgCache<any[]>;
|
|
28
|
+
clients: OrgCache<any[]>;
|
|
28
29
|
clusterCapacity: Record<string, Map<string, number>>;
|
|
29
30
|
/** Organizations of the current user (external API). Single cache entry. */
|
|
30
31
|
myOrgs: CacheState<ExternalOrganizationDto[]>;
|
|
@@ -54,6 +55,9 @@ export interface C4ConsoleDataState {
|
|
|
54
55
|
fetchAudits: (orgId: string, options?: {
|
|
55
56
|
force?: boolean;
|
|
56
57
|
}) => Promise<void>;
|
|
58
|
+
fetchClients: (orgId: string, options?: {
|
|
59
|
+
force?: boolean;
|
|
60
|
+
}) => Promise<void>;
|
|
57
61
|
fetchClusterCapacity: (orgId: string, clusterIds: string[], options?: {
|
|
58
62
|
force?: boolean;
|
|
59
63
|
}) => Promise<void>;
|
|
@@ -82,6 +86,7 @@ export interface C4ConsoleDataState {
|
|
|
82
86
|
invalidateClusterCapacity: (orgId: string) => void;
|
|
83
87
|
invalidateMembers: (orgId: string) => void;
|
|
84
88
|
invalidateAudits: (orgId: string) => void;
|
|
89
|
+
invalidateClients: (orgId: string) => void;
|
|
85
90
|
invalidateMyOrgs: () => void;
|
|
86
91
|
invalidateWebappClusters: (orgId: string) => void;
|
|
87
92
|
invalidateAll: (orgId: string) => void;
|
|
@@ -96,6 +101,7 @@ export interface C4ConsoleDataState {
|
|
|
96
101
|
getEarlyAccessFeatures: (orgId: string) => any[] | undefined;
|
|
97
102
|
getMembers: (orgId: string) => any[] | undefined;
|
|
98
103
|
getAudits: (orgId: string) => any[] | undefined;
|
|
104
|
+
getClients: (orgId: string) => any[] | undefined;
|
|
99
105
|
getClusterCapacity: (orgId: string, clusterId: string) => number | undefined;
|
|
100
106
|
getMyOrgs: () => ExternalOrganizationDto[] | undefined;
|
|
101
107
|
getWebappClusters: (orgId: string) => ExternalClusterDto[] | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ConsoleClusterDto, type ExternalClusterDto, type ExternalOrganizationDto, SseEntity, type UpgradableGenerationsDto } from '@camunda/ccma-shared-types';
|
|
2
2
|
import { type SnapshotIn } from 'mobx-state-tree';
|
|
3
|
-
import type { C4ConsoleRuntimeConfig } from './c4-console-runtime.types';
|
|
3
|
+
import type { C4ConsoleRuntimeConfig } from './c4-console-runtime.types.js';
|
|
4
4
|
export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
|
|
5
5
|
clusters: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
6
6
|
data: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -38,6 +38,12 @@ export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
|
|
|
38
38
|
error: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").IType<any, any, any>>;
|
|
39
39
|
lastFetched: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").IType<number | Date, number, Date>>;
|
|
40
40
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
41
|
+
clients: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
42
|
+
data: import("mobx-state-tree").IType<any, any, any>;
|
|
43
|
+
isLoading: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
44
|
+
error: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").IType<any, any, any>>;
|
|
45
|
+
lastFetched: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").IType<number | Date, number, Date>>;
|
|
46
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
41
47
|
clusterCapacity: import("mobx-state-tree").IMapType<import("mobx-state-tree").IType<Map<string, number>, Map<string, number>, Map<string, number>>>;
|
|
42
48
|
upgradableGenerations: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
43
49
|
data: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -96,6 +102,7 @@ export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
|
|
|
96
102
|
getEarlyAccessFeatures(orgId: string): any[] | undefined;
|
|
97
103
|
getMembers(orgId: string): any[] | undefined;
|
|
98
104
|
getAudits(orgId: string): any[] | undefined;
|
|
105
|
+
getClients(orgId: string): any[] | undefined;
|
|
99
106
|
getClusterCapacity(orgId: string, clusterId: string): number | undefined;
|
|
100
107
|
getUpgradableGenerations(fromGenerationUuid: string, clusterId?: string): UpgradableGenerationsDto | undefined;
|
|
101
108
|
getGenerationDetails(generationUuid: string): any | undefined;
|
|
@@ -114,6 +121,7 @@ export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
|
|
|
114
121
|
invalidateClusterCapacity(orgId: string): void;
|
|
115
122
|
invalidateMembers(orgId: string): void;
|
|
116
123
|
invalidateAudits(orgId: string): void;
|
|
124
|
+
invalidateClients(orgId: string): void;
|
|
117
125
|
invalidateMyOrgs(): void;
|
|
118
126
|
invalidateWebappClusters(orgId: string): void;
|
|
119
127
|
invalidateAll(orgId: string): void;
|
|
@@ -155,6 +163,9 @@ export declare const ConsoleDataStore: import("mobx-state-tree").IModelType<{
|
|
|
155
163
|
fetchAudits: (orgId: string, options?: {
|
|
156
164
|
force?: boolean;
|
|
157
165
|
} | undefined) => Promise<void>;
|
|
166
|
+
fetchClients: (orgId: string, options?: {
|
|
167
|
+
force?: boolean;
|
|
168
|
+
} | undefined) => Promise<void>;
|
|
158
169
|
fetchClusterCapacity: (orgId: string, clusterIds: string[], options?: {
|
|
159
170
|
force?: boolean;
|
|
160
171
|
} | undefined) => Promise<void>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
4
|
* You may not use this file except in compliance with the commercial license.
|
|
5
5
|
*/
|
|
6
|
-
import { AuditLoggerService, ConsoleClusterService, EarlyAccessFeaturesService, ExternalAccountsService, ExternalConsoleService, GenerationService, HdpService, HttpError, OrganizationMembersService, OrgsService, } from '@camunda/ccma-api';
|
|
6
|
+
import { AuditLoggerService, ConsoleApiClientsService, ConsoleClusterService, EarlyAccessFeaturesService, ExternalAccountsService, ExternalConsoleService, GenerationService, HdpService, HttpError, OrganizationMembersService, OrgsService, } from '@camunda/ccma-api';
|
|
7
7
|
import { SseEntity, SseType, } from '@camunda/ccma-shared-types';
|
|
8
8
|
import { flow, types } from 'mobx-state-tree';
|
|
9
9
|
import { toApiConfig } from './to-api-config.js';
|
|
@@ -100,6 +100,7 @@ export const ConsoleDataStore = types
|
|
|
100
100
|
earlyAccessFeatures: types.map(CacheStateModel),
|
|
101
101
|
members: types.map(CacheStateModel),
|
|
102
102
|
audits: types.map(CacheStateModel),
|
|
103
|
+
clients: types.map(CacheStateModel),
|
|
103
104
|
clusterCapacity: types.map(types.frozen()),
|
|
104
105
|
// Caches keyed by arbitrary string keys (e.g., generationUuid)
|
|
105
106
|
upgradableGenerations: types.map(CacheStateModel),
|
|
@@ -159,6 +160,10 @@ export const ConsoleDataStore = types
|
|
|
159
160
|
const cached = self.audits.get(orgId);
|
|
160
161
|
return cached?.data;
|
|
161
162
|
},
|
|
163
|
+
getClients(orgId) {
|
|
164
|
+
const cached = self.clients.get(orgId);
|
|
165
|
+
return cached?.data;
|
|
166
|
+
},
|
|
162
167
|
getClusterCapacity(orgId, clusterId) {
|
|
163
168
|
const map = self.clusterCapacity.get(orgId);
|
|
164
169
|
return map?.get(clusterId);
|
|
@@ -247,6 +252,9 @@ export const ConsoleDataStore = types
|
|
|
247
252
|
invalidateAudits(orgId) {
|
|
248
253
|
self.audits.delete(orgId);
|
|
249
254
|
},
|
|
255
|
+
invalidateClients(orgId) {
|
|
256
|
+
self.clients.delete(orgId);
|
|
257
|
+
},
|
|
250
258
|
invalidateMyOrgs() {
|
|
251
259
|
self.myOrgs = null;
|
|
252
260
|
},
|
|
@@ -260,6 +268,7 @@ export const ConsoleDataStore = types
|
|
|
260
268
|
self.earlyAccessFeatures.delete(orgId);
|
|
261
269
|
self.members.delete(orgId);
|
|
262
270
|
self.audits.delete(orgId);
|
|
271
|
+
self.clients.delete(orgId);
|
|
263
272
|
self.clusterCapacity.delete(orgId);
|
|
264
273
|
self.webappClusters.delete(orgId);
|
|
265
274
|
},
|
|
@@ -745,6 +754,42 @@ export const ConsoleDataStore = types
|
|
|
745
754
|
});
|
|
746
755
|
}
|
|
747
756
|
}),
|
|
757
|
+
fetchClients: flow(function* (orgId, options) {
|
|
758
|
+
if (!self.runtime) {
|
|
759
|
+
throw new Error('Runtime config not set');
|
|
760
|
+
}
|
|
761
|
+
const cached = self.clients.get(orgId);
|
|
762
|
+
if (!options?.force && cached && !cached.isLoading && cached.data) {
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
self.clients.set(orgId, {
|
|
766
|
+
data: cached?.data,
|
|
767
|
+
isLoading: true,
|
|
768
|
+
error: null,
|
|
769
|
+
lastFetched: cached?.lastFetched ?? null,
|
|
770
|
+
});
|
|
771
|
+
try {
|
|
772
|
+
const apiConfig = toApiConfig(self.runtime);
|
|
773
|
+
const clientsList = yield ConsoleApiClientsService.getAll({
|
|
774
|
+
params: { orgId },
|
|
775
|
+
config: apiConfig,
|
|
776
|
+
});
|
|
777
|
+
self.clients.set(orgId, {
|
|
778
|
+
data: clientsList,
|
|
779
|
+
isLoading: false,
|
|
780
|
+
error: null,
|
|
781
|
+
lastFetched: new Date(),
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
catch (error) {
|
|
785
|
+
self.clients.set(orgId, {
|
|
786
|
+
data: cached?.data,
|
|
787
|
+
isLoading: false,
|
|
788
|
+
error: error,
|
|
789
|
+
lastFetched: cached?.lastFetched ?? null,
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
}),
|
|
748
793
|
fetchClusterCapacity: flow(function* (orgId, clusterIds, options) {
|
|
749
794
|
if (!self.runtime) {
|
|
750
795
|
throw new Error('Runtime config not set');
|
|
@@ -764,40 +809,33 @@ export const ConsoleDataStore = types
|
|
|
764
809
|
try {
|
|
765
810
|
const apiConfig = toApiConfig(self.runtime);
|
|
766
811
|
const loadMap = new Map();
|
|
767
|
-
// Fetch capacity for
|
|
768
|
-
//
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
const point = match ?? points[0];
|
|
786
|
-
if (!point) {
|
|
787
|
-
continue;
|
|
788
|
-
}
|
|
789
|
-
// The HDP capacity API returns a data point with min/max/avg.
|
|
790
|
-
// The UI treats `avg` as the current load for the "latest" operation.
|
|
791
|
-
const rawValue = point?.avg ?? point?.current?.value ?? point?.value ?? undefined;
|
|
792
|
-
const numericValue = parseFiniteNumber(rawValue);
|
|
793
|
-
if (numericValue === undefined) {
|
|
794
|
-
continue;
|
|
795
|
-
}
|
|
796
|
-
loadMap.set(clusterId, numericValue);
|
|
812
|
+
// Fetch capacity for all clusters in a single batched request.
|
|
813
|
+
// The HDP `latest` operation accepts the full `clusterIds` array and
|
|
814
|
+
// returns one data point per cluster, each tagged with its `clusterId`
|
|
815
|
+
// (see accounts-backend getLatestCapacity). This replaces the previous
|
|
816
|
+
// per-cluster serial loop, which issued one HTTP round-trip per cluster.
|
|
817
|
+
const latest = yield HdpService.getClusterCapacity({
|
|
818
|
+
params: {
|
|
819
|
+
orgId,
|
|
820
|
+
clusterIds,
|
|
821
|
+
operation: 'latest',
|
|
822
|
+
},
|
|
823
|
+
config: apiConfig,
|
|
824
|
+
});
|
|
825
|
+
const points = Array.isArray(latest) ? latest : [];
|
|
826
|
+
for (const point of points) {
|
|
827
|
+
const clusterId = point?.clusterId;
|
|
828
|
+
if (!clusterId) {
|
|
829
|
+
continue;
|
|
797
830
|
}
|
|
798
|
-
|
|
799
|
-
|
|
831
|
+
// The HDP capacity API returns a data point with min/max/avg.
|
|
832
|
+
// The UI treats `avg` as the current load for the "latest" operation.
|
|
833
|
+
const rawValue = point?.avg ?? point?.current?.value ?? point?.value ?? undefined;
|
|
834
|
+
const numericValue = parseFiniteNumber(rawValue);
|
|
835
|
+
if (numericValue === undefined) {
|
|
836
|
+
continue;
|
|
800
837
|
}
|
|
838
|
+
loadMap.set(clusterId, numericValue);
|
|
801
839
|
}
|
|
802
840
|
self.clusterCapacity.set(orgId, loadMap);
|
|
803
841
|
self.clusterCapacityLastRefreshMs.set(orgId, Date.now());
|
|
@@ -923,7 +961,9 @@ export const ConsoleDataStore = types
|
|
|
923
961
|
}
|
|
924
962
|
case SseEntity.CONSOLE_API_CLIENT: {
|
|
925
963
|
self.bumpSseEntityVersion(orgId, SseEntity.CONSOLE_API_CLIENT, clusterId);
|
|
926
|
-
|
|
964
|
+
if (self.clients.has(orgId)) {
|
|
965
|
+
void self.fetchClients(orgId, { force: true });
|
|
966
|
+
}
|
|
927
967
|
break;
|
|
928
968
|
}
|
|
929
969
|
default: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { C4ConsoleNotificationsState } from './c4-console-notifications-context.types';
|
|
2
|
+
import type { C4ConsoleNotificationsState } from './c4-console-notifications-context.types.js';
|
|
3
3
|
export interface C4ConsoleNotificationsProviderProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { C4ConsoleRuntimeConfig, C4DesignSystem } from './c4-console-runtime.types';
|
|
2
|
+
import type { C4ConsoleRuntimeConfig, C4DesignSystem } from './c4-console-runtime.types.js';
|
|
3
3
|
export interface C4ConsoleRuntimeProviderProps {
|
|
4
4
|
config: C4ConsoleRuntimeConfig;
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { C4UserNotificationsProviderProps, C4UserNotificationsState } from './c4-user-notifications-context.types';
|
|
1
|
+
import type { C4UserNotificationsProviderProps, C4UserNotificationsState } from './c4-user-notifications-context.types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Provides the per-user notification **feed** (the bell-icon inbox): initial
|
|
4
4
|
* fetch, live SSE updates, and optimistic mark-read / dismiss / analytics —
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The c4 **runtime** entry point — the headless data layer, without the
|
|
3
|
+
* presentational barrel.
|
|
4
|
+
*
|
|
5
|
+
* Published as the `@camunda/ccma-saas-frontend/runtime` subpath so external
|
|
6
|
+
* consumers (e.g. the Camunda Design System navigation in `camunda-hub`) can
|
|
7
|
+
* take the providers/hooks without pulling the whole Console SaaS component
|
|
8
|
+
* graph — and, critically, without pulling Carbon, `lucide-react`, `recharts`
|
|
9
|
+
* or `react-markdown` into their bundle.
|
|
10
|
+
*
|
|
11
|
+
* Everything exported here is also exported from the package root (`.`) for
|
|
12
|
+
* backwards compatibility — the root barrel forwards to this module, so the
|
|
13
|
+
* two surfaces cannot drift. `src/runtime/runtime-entry.spec.ts` enforces both
|
|
14
|
+
* that parity and the import closure below.
|
|
15
|
+
*
|
|
16
|
+
* The module graph reachable from here MUST stay limited to:
|
|
17
|
+
* `react`, `mobx`, `mobx-react-lite`, `mobx-state-tree`,
|
|
18
|
+
* `@camunda/ccma-api`, `@camunda/ccma-shared-types`.
|
|
19
|
+
*
|
|
20
|
+
* See `docs/runtime.md` for the integration guide.
|
|
21
|
+
*/
|
|
22
|
+
export type { AccountsPermissions, CamundaWebApp, ConsoleClusterDto, ConsolePermissions, ExternalClusterDto, ExternalOrganizationDto, NotificationDto, OrganizationPermissions, OrganizationRole, SseEntity, UpgradableGenerationsDto, } from '@camunda/ccma-shared-types';
|
|
23
|
+
export { addC4ConsoleNotification, removeC4ConsoleNotificationById, setC4ConsoleNotificationsHandle, } from '../notifications/c4-console-notifications-handle.js';
|
|
24
|
+
export type { C4ConsoleAuthzFeatures, C4ConsoleAuthzState, C4ConsoleVisibilities, } from './c4-console-authz.js';
|
|
25
|
+
export { useC4ConsoleAuthz } from './c4-console-authz.js';
|
|
26
|
+
export { C4ConsoleDataProvider, useC4ConsoleData, } from './c4-console-data-context.js';
|
|
27
|
+
export type { C4ConsoleDataState, CacheState, OrgCache, } from './c4-console-data-context.types.js';
|
|
28
|
+
export type { C4ConsoleEventsProviderProps } from './c4-console-events-context.js';
|
|
29
|
+
export { C4ConsoleEventsProvider, useC4ConsoleEventsState, } from './c4-console-events-context.js';
|
|
30
|
+
export { C4ConsoleNotificationsProvider, useC4ConsoleNotifications, } from './c4-console-notifications-context.js';
|
|
31
|
+
export type { AddC4ConsoleNotificationOptions, C4ConsoleNotification, C4ConsoleNotificationAction, C4ConsoleNotificationKind, C4ConsoleNotificationsState, } from './c4-console-notifications-context.types.js';
|
|
32
|
+
export type { C4ConsoleRuntimeConfig, ConsoleAuth, ConsoleBackendUrls, ConsoleClickwrapConfig, ConsolePublicUrls, ConsoleStage, ConsoleTelemetry, ConsoleUser, } from './c4-console-runtime.types.js';
|
|
33
|
+
export { C4ConsoleRuntimeProvider, useC4ConsoleRuntime, useC4DesignSystem, } from './c4-console-runtime-context.js';
|
|
34
|
+
export { C4UserNotificationsProvider, useC4UserNotifications, } from './c4-user-notifications-context.js';
|
|
35
|
+
export type { C4UserNotificationsProviderProps, C4UserNotificationsState, } from './c4-user-notifications-context.types.js';
|
|
36
|
+
export type { C4ResolvedTheme, C4ThemePreference, C4UserThemeState, } from './c4-user-theme.js';
|
|
37
|
+
export { useC4UserTheme } from './c4-user-theme.js';
|
|
38
|
+
export { buildModelerOrgUrl, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, resolveAdminAppName, } from './nav/camunda-apps.js';
|
|
39
|
+
export type { C4BreadcrumbCrumb, C4BreadcrumbDropdownItem, C4ClusterNavAppEntry, C4ClusterNavEntry, UseC4ClusterNavEntriesOptions, UseC4WebappBreadcrumbDataOptions, } from './nav/use-webapp-nav-data.js';
|
|
40
|
+
export { useC4ClusterNavEntries, useC4WebappBreadcrumbData, } from './nav/use-webapp-nav-data.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
// Part of the runtime contract: `C4ConsoleDataProvider` drives these to surface
|
|
7
|
+
// request failures, and a host app calls `setC4ConsoleNotificationsHandle` to
|
|
8
|
+
// receive them. The module itself is a dependency-free leaf.
|
|
9
|
+
export { addC4ConsoleNotification, removeC4ConsoleNotificationById, setC4ConsoleNotificationsHandle, } from '../notifications/c4-console-notifications-handle.js';
|
|
10
|
+
export { useC4ConsoleAuthz } from './c4-console-authz.js';
|
|
11
|
+
export { C4ConsoleDataProvider, useC4ConsoleData, } from './c4-console-data-context.js';
|
|
12
|
+
export { C4ConsoleEventsProvider, useC4ConsoleEventsState, } from './c4-console-events-context.js';
|
|
13
|
+
export { C4ConsoleNotificationsProvider, useC4ConsoleNotifications, } from './c4-console-notifications-context.js';
|
|
14
|
+
export { C4ConsoleRuntimeProvider, useC4ConsoleRuntime, useC4DesignSystem, } from './c4-console-runtime-context.js';
|
|
15
|
+
export { C4UserNotificationsProvider, useC4UserNotifications, } from './c4-user-notifications-context.js';
|
|
16
|
+
export { useC4UserTheme } from './c4-user-theme.js';
|
|
17
|
+
export { buildModelerOrgUrl, DEFAULT_NAV_APPS, getClusterStage, getEndpointForApp, getReadableAppName, hasReadPermissionForApp, isAdminApp, isAppHealthyOnCluster, resolveAdminAppName, } from './nav/camunda-apps.js';
|
|
18
|
+
export { useC4ClusterNavEntries, useC4WebappBreadcrumbData, } from './nav/use-webapp-nav-data.js';
|