@camunda/ccma-saas-frontend 0.0.31
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 +40 -0
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +3 -0
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +25 -0
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.d.ts +9 -0
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.types.js +6 -0
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +3 -0
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.js +135 -0
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.types.d.ts +13 -0
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.types.js +6 -0
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +16 -0
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +39 -0
- package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.d.ts +16 -0
- package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +147 -0
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +14 -0
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +133 -0
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +13 -0
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +63 -0
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +16 -0
- package/lib/esm/components/c4-advanced-search-filters/OrSection.js +116 -0
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +3 -0
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +406 -0
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.d.ts +32 -0
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.types.js +6 -0
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +14 -0
- package/lib/esm/components/c4-advanced-search-filters/state.types.js +6 -0
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +5 -0
- package/lib/esm/components/c4-advanced-search-filters/utils.js +58 -0
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +3 -0
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +38 -0
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.types.d.ts +59 -0
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.types.js +6 -0
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +3 -0
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +8 -0
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.types.d.ts +12 -0
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.types.js +6 -0
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +3 -0
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +20 -0
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.types.d.ts +12 -0
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.types.js +6 -0
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +2 -0
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +22 -0
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +13 -0
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.js +6 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +3 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +68 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.types.d.ts +28 -0
- package/lib/esm/components/c4-async-modal/c4-async-modal.types.js +6 -0
- package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +3 -0
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +147 -0
- package/lib/esm/components/c4-audit-log/c4-audit-log.types.d.ts +13 -0
- package/lib/esm/components/c4-audit-log/c4-audit-log.types.js +6 -0
- package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +10 -0
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +39 -0
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +13 -0
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.js +6 -0
- package/lib/esm/components/c4-billing-page/custom-styles.d.ts +13 -0
- package/lib/esm/components/c4-billing-page/custom-styles.js +18 -0
- package/lib/esm/components/c4-billing-page/elements/cluster-reservations.d.ts +29 -0
- package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +32 -0
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +16 -0
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +62 -0
- package/lib/esm/components/c4-billing-page/elements/plan-details.d.ts +20 -0
- package/lib/esm/components/c4-billing-page/elements/plan-details.js +16 -0
- package/lib/esm/components/c4-billing-page/elements/usage-alerts.d.ts +30 -0
- package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +18 -0
- package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +28 -0
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +116 -0
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +3 -0
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +9 -0
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +4 -0
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.js +6 -0
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +3 -0
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +33 -0
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.types.d.ts +22 -0
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.types.js +6 -0
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +3 -0
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +56 -0
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.types.d.ts +83 -0
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.types.js +6 -0
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +6 -0
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +87 -0
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +7 -0
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +37 -0
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +7 -0
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +35 -0
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +3 -0
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +133 -0
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.types.d.ts +43 -0
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.types.js +6 -0
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +4 -0
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +58 -0
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.types.d.ts +39 -0
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.types.js +6 -0
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +4 -0
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +64 -0
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.types.d.ts +45 -0
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +46 -0
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.types.d.ts +24 -0
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +124 -0
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.types.d.ts +51 -0
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +206 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.d.ts +58 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +192 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.d.ts +53 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +104 -0
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.d.ts +76 -0
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +222 -0
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.types.d.ts +89 -0
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +93 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.types.d.ts +36 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.types.js +6 -0
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +174 -0
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.types.d.ts +118 -0
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.types.js +6 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +3 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +220 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +75 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.js +6 -0
- package/lib/esm/components/c4-cluster-overview/applications.d.ts +47 -0
- package/lib/esm/components/c4-cluster-overview/applications.js +132 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +20 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +101 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +22 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.js +6 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +116 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +170 -0
- package/lib/esm/components/c4-cluster-overview/cluster-load.d.ts +35 -0
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +1 -0
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +38 -0
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +334 -0
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +3 -0
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +17 -0
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +12 -0
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.js +6 -0
- package/lib/esm/components/c4-cluster-settings/elements/autoUpdate.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/autoUpdate.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/business-id-uniqueness-toggle.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/business-id-uniqueness-toggle.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +23 -0
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +34 -0
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.d.ts +16 -0
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/enforce-groups.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/enforce-groups.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/identity-based-authorizations.d.ts +13 -0
- package/lib/esm/components/c4-cluster-settings/elements/identity-based-authorizations.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/low-latency-toggle.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/low-latency-toggle.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/mcp-toggle.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/mcp-toggle.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.d.ts +13 -0
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.js +15 -0
- package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.d.ts +27 -0
- package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +20 -0
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.d.ts +7 -0
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/swagger-toggle.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/swagger-toggle.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +5 -0
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.js +7 -0
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.d.ts +13 -0
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +13 -0
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +3 -0
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +64 -0
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.d.ts +15 -0
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.types.js +6 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +3 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +44 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +25 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.js +6 -0
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +3 -0
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +15 -0
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +6 -0
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.js +6 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +3 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +216 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +130 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.js +6 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +13 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +21 -0
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +3 -0
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.js +66 -0
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +12 -0
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.js +6 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +3 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +508 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.d.ts +209 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.types.js +6 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +2 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +182 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +26 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.js +6 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +2 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +96 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.types.d.ts +18 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.types.js +6 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +2 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +352 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +20 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.js +6 -0
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +3 -0
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +52 -0
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.types.d.ts +19 -0
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.types.js +6 -0
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +3 -0
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +9 -0
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +6 -0
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.js +6 -0
- package/lib/esm/components/c4-divider/c4-divider.d.ts +2 -0
- package/lib/esm/components/c4-divider/c4-divider.js +11 -0
- package/lib/esm/components/c4-divider/c4-divider.types.d.ts +3 -0
- package/lib/esm/components/c4-divider/c4-divider.types.js +6 -0
- package/lib/esm/components/c4-external-link/c4-external-link.d.ts +3 -0
- package/lib/esm/components/c4-external-link/c4-external-link.js +10 -0
- package/lib/esm/components/c4-external-link/c4-external-link.types.d.ts +9 -0
- package/lib/esm/components/c4-external-link/c4-external-link.types.js +6 -0
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +3 -0
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.js +18 -0
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.types.d.ts +6 -0
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.types.js +6 -0
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +2 -0
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +187 -0
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.d.ts +22 -0
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.types.js +6 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +8 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +46 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +101 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.js +6 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.d.ts +7 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +18 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +12 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +65 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +13 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +74 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +16 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +81 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +13 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +45 -0
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +4 -0
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +40 -0
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +23 -0
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.js +6 -0
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +3 -0
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +88 -0
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +44 -0
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.js +6 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.d.ts +8 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +10 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +30 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +51 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-shared.types.d.ts +23 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-shared.types.js +6 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.d.ts +17 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +47 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +4 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.js +30 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.d.ts +6 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-timestamp-information.js +14 -0
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +3 -0
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +25 -0
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.types.d.ts +7 -0
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.types.js +6 -0
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +3 -0
- package/lib/esm/components/c4-link-button/c4-link-button.js +18 -0
- package/lib/esm/components/c4-link-button/c4-link-button.types.d.ts +8 -0
- package/lib/esm/components/c4-link-button/c4-link-button.types.js +6 -0
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +3 -0
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +81 -0
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.types.d.ts +58 -0
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.types.js +6 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +3 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +16 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +22 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.js +6 -0
- package/lib/esm/components/c4-management-api/c4-management-api.d.ts +3 -0
- package/lib/esm/components/c4-management-api/c4-management-api.js +204 -0
- package/lib/esm/components/c4-management-api/c4-management-api.types.d.ts +66 -0
- package/lib/esm/components/c4-management-api/c4-management-api.types.js +6 -0
- package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +3 -0
- package/lib/esm/components/c4-management-overview/c4-management-overview.js +22 -0
- package/lib/esm/components/c4-management-overview/c4-management-overview.types.d.ts +17 -0
- package/lib/esm/components/c4-management-overview/c4-management-overview.types.js +6 -0
- package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +3 -0
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +131 -0
- package/lib/esm/components/c4-management-settings/c4-management-settings.types.d.ts +77 -0
- package/lib/esm/components/c4-management-settings/c4-management-settings.types.js +6 -0
- package/lib/esm/components/c4-management-users/c4-management-users.d.ts +3 -0
- package/lib/esm/components/c4-management-users/c4-management-users.js +17 -0
- package/lib/esm/components/c4-management-users/c4-management-users.types.d.ts +23 -0
- package/lib/esm/components/c4-management-users/c4-management-users.types.js +6 -0
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +3 -0
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +48 -0
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.types.d.ts +31 -0
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.types.js +6 -0
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +2 -0
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +45 -0
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.d.ts +18 -0
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.types.js +6 -0
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +2 -0
- package/lib/esm/components/c4-number-input/c4-number-input.js +21 -0
- package/lib/esm/components/c4-number-input/c4-number-input.types.d.ts +11 -0
- package/lib/esm/components/c4-number-input/c4-number-input.types.js +6 -0
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +3 -0
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +62 -0
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +60 -0
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.js +6 -0
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +29 -0
- package/lib/esm/components/c4-page-template/c4-page-template.js +17 -0
- package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +1 -0
- package/lib/esm/components/c4-page-template/c4-page-template.spec.js +58 -0
- package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +6 -0
- package/lib/esm/components/c4-page-template/c4-page-template.stories.js +73 -0
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +3 -0
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +44 -0
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.types.d.ts +12 -0
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.types.js +6 -0
- package/lib/esm/components/c4-pricing/c4-pricing.d.ts +3 -0
- package/lib/esm/components/c4-pricing/c4-pricing.js +59 -0
- package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +20 -0
- package/lib/esm/components/c4-pricing/c4-pricing.types.js +6 -0
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +3 -0
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +51 -0
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.types.d.ts +53 -0
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.types.js +6 -0
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +13 -0
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.js +58 -0
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +2 -0
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +68 -0
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.types.d.ts +15 -0
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.types.js +6 -0
- package/lib/esm/components/c4-search/c4-search-results.d.ts +2 -0
- package/lib/esm/components/c4-search/c4-search-results.js +235 -0
- package/lib/esm/components/c4-search/c4-search-results.types.d.ts +33 -0
- package/lib/esm/components/c4-search/c4-search-results.types.js +6 -0
- package/lib/esm/components/c4-search/c4-search.d.ts +35 -0
- package/lib/esm/components/c4-search/c4-search.js +134 -0
- package/lib/esm/components/c4-search/c4-search.types.d.ts +20 -0
- package/lib/esm/components/c4-search/c4-search.types.js +6 -0
- package/lib/esm/components/c4-search/search.utils.d.ts +61 -0
- package/lib/esm/components/c4-search/search.utils.js +421 -0
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +3 -0
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +20 -0
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +3 -0
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +27 -0
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +71 -0
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.js +6 -0
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +4 -0
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +29 -0
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +7 -0
- package/lib/esm/components/c4-sm-cluster-details/details.js +24 -0
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +3 -0
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +43 -0
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +3 -0
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +34 -0
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +40 -0
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.js +6 -0
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +9 -0
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +59 -0
- package/lib/esm/components/c4-sm-dashboard/component-tile.d.ts +14 -0
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +45 -0
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +20 -0
- package/lib/esm/components/c4-sm-dashboard/explore.js +29 -0
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +10 -0
- package/lib/esm/components/c4-sm-dashboard/health-status.js +60 -0
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +13 -0
- package/lib/esm/components/c4-sm-dashboard/overview.js +148 -0
- package/lib/esm/components/c4-sm-dashboard/usage-tile.d.ts +22 -0
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +35 -0
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +3 -0
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +26 -0
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +12 -0
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.js +6 -0
- package/lib/esm/components/c4-stat/c4-stat.d.ts +3 -0
- package/lib/esm/components/c4-stat/c4-stat.js +11 -0
- package/lib/esm/components/c4-stat/c4-stat.types.d.ts +4 -0
- package/lib/esm/components/c4-stat/c4-stat.types.js +6 -0
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +3 -0
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +38 -0
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.d.ts +7 -0
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.types.js +6 -0
- package/lib/esm/components/c4-tabs/c4-tabs.d.ts +3 -0
- package/lib/esm/components/c4-tabs/c4-tabs.js +49 -0
- package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +1 -0
- package/lib/esm/components/c4-tabs/c4-tabs.spec.js +97 -0
- package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +6 -0
- package/lib/esm/components/c4-tabs/c4-tabs.stories.js +35 -0
- package/lib/esm/components/c4-tabs/c4-tabs.types.d.ts +14 -0
- package/lib/esm/components/c4-tabs/c4-tabs.types.js +6 -0
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +4 -0
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +110 -0
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +45 -0
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.js +6 -0
- package/lib/esm/components/c4-telemetry-page/component-metrics.d.ts +26 -0
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +47 -0
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.d.ts +2 -0
- package/lib/esm/components/c4-telemetry-page/metrics-empty-state-image.js +6 -0
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +50 -0
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +90 -0
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +3 -0
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +80 -0
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.d.ts +40 -0
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.types.js +6 -0
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +23 -0
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +187 -0
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.types.d.ts +23 -0
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.types.js +6 -0
- package/lib/esm/components/c4-theme-switcher/cyberzee-removebg-preview-100.png +0 -0
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +3 -0
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +39 -0
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.d.ts +18 -0
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.types.js +6 -0
- package/lib/esm/components/c4-toggle/c4-toggle.d.ts +3 -0
- package/lib/esm/components/c4-toggle/c4-toggle.js +16 -0
- package/lib/esm/components/c4-toggle/c4-toggle.types.d.ts +27 -0
- package/lib/esm/components/c4-toggle/c4-toggle.types.js +6 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +3 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +14 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.types.d.ts +14 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.types.js +6 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +6 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.js +21 -0
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +3 -0
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +15 -0
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.types.d.ts +30 -0
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.types.js +6 -0
- package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +3 -0
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +79 -0
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +36 -0
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.js +6 -0
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +35 -0
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +44 -0
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +3 -0
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +107 -0
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.types.d.ts +50 -0
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.types.js +6 -0
- package/lib/esm/components/c4-user-details/c4-user-details.d.ts +3 -0
- package/lib/esm/components/c4-user-details/c4-user-details.js +46 -0
- package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +22 -0
- package/lib/esm/components/c4-user-details/c4-user-details.types.js +6 -0
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.d.ts +20 -0
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +15 -0
- package/lib/esm/components/c4-user-details/tabs/details.d.ts +10 -0
- package/lib/esm/components/c4-user-details/tabs/details.js +17 -0
- package/lib/esm/components/c4-user-details/tabs/roles.d.ts +32 -0
- package/lib/esm/components/c4-user-details/tabs/roles.js +63 -0
- package/lib/esm/i18n/c4-console-i18n.d.ts +8 -0
- package/lib/esm/i18n/c4-console-i18n.js +138 -0
- package/lib/esm/i18n/en/components/fatalError.json +5 -0
- package/lib/esm/i18n/en/components/navbar.json +44 -0
- package/lib/esm/i18n/en/entities/orgroles.json +100 -0
- package/lib/esm/i18n/en/modals/alerts.json +99 -0
- package/lib/esm/i18n/en/modals/apiclients.json +151 -0
- package/lib/esm/i18n/en/modals/backups.json +66 -0
- package/lib/esm/i18n/en/modals/billing.json +192 -0
- package/lib/esm/i18n/en/modals/clusterclients.json +145 -0
- package/lib/esm/i18n/en/modals/clusters.json +177 -0
- package/lib/esm/i18n/en/modals/connectorsecrets.json +123 -0
- package/lib/esm/i18n/en/modals/createtrialorg.json +29 -0
- package/lib/esm/i18n/en/modals/invitations.json +48 -0
- package/lib/esm/i18n/en/modals/ipwhitelist.json +46 -0
- package/lib/esm/i18n/en/modals/usagealerts.json +40 -0
- package/lib/esm/i18n/en/modals/users.json +95 -0
- package/lib/esm/i18n/en/modals/validation.json +9 -0
- package/lib/esm/i18n/en/pages/clusterdetails.json +595 -0
- package/lib/esm/i18n/en/pages/clusters.json +77 -0
- package/lib/esm/i18n/en/pages/connectormanagement.json +8 -0
- package/lib/esm/i18n/en/pages/createcluster.json +90 -0
- package/lib/esm/i18n/en/pages/dashboard.json +94 -0
- package/lib/esm/i18n/en/pages/home.json +12 -0
- package/lib/esm/i18n/en/pages/job-dashboard.json +101 -0
- package/lib/esm/i18n/en/pages/orgmanagement.json +488 -0
- package/lib/esm/icons/c4-icons.d.ts +12 -0
- package/lib/esm/icons/c4-icons.js +28 -0
- package/lib/esm/icons/c4-icons.types.d.ts +3 -0
- package/lib/esm/icons/c4-icons.types.js +6 -0
- package/lib/esm/index.d.ts +210 -0
- package/lib/esm/index.js +112 -0
- package/lib/esm/index.scss +267 -0
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +3 -0
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.js +12 -0
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +3 -0
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.js +12 -0
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +3 -0
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.js +12 -0
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +3 -0
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.js +12 -0
- package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +3 -0
- package/lib/esm/modals/c4-rename-organization-modal-handle.js +12 -0
- package/lib/esm/notifications/c4-console-notifications-handle.d.ts +8 -0
- package/lib/esm/notifications/c4-console-notifications-handle.js +15 -0
- package/lib/esm/runtime/c4-console-authz.d.ts +31 -0
- package/lib/esm/runtime/c4-console-authz.js +191 -0
- package/lib/esm/runtime/c4-console-authz.spec.d.ts +1 -0
- package/lib/esm/runtime/c4-console-authz.spec.js +45 -0
- package/lib/esm/runtime/c4-console-data-context.d.ts +38 -0
- package/lib/esm/runtime/c4-console-data-context.js +229 -0
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +49 -0
- package/lib/esm/runtime/c4-console-data-context.types.js +6 -0
- package/lib/esm/runtime/c4-console-data-store.d.ts +75 -0
- package/lib/esm/runtime/c4-console-data-store.js +440 -0
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +1 -0
- package/lib/esm/runtime/c4-console-data-store.spec.js +33 -0
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +7 -0
- package/lib/esm/runtime/c4-console-notifications-context.js +76 -0
- package/lib/esm/runtime/c4-console-notifications-context.types.d.ts +34 -0
- package/lib/esm/runtime/c4-console-notifications-context.types.js +6 -0
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -0
- package/lib/esm/runtime/c4-console-runtime-context.js +13 -0
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +45 -0
- package/lib/esm/runtime/c4-console-runtime.types.js +6 -0
- package/lib/esm/runtime/to-api-config.d.ts +3 -0
- package/lib/esm/runtime/to-api-config.js +31 -0
- package/lib/esm/runtime/to-identity-api-base-url.d.ts +5 -0
- package/lib/esm/runtime/to-identity-api-base-url.js +22 -0
- package/lib/esm/setupTests.d.ts +1 -0
- package/lib/esm/setupTests.js +37 -0
- package/lib/esm/themes/barbie-light.css +446 -0
- package/lib/esm/themes/barbie.css +446 -0
- package/lib/esm/themes/cyberpunk-brutalism-light.css +748 -0
- package/lib/esm/themes/cyberpunk-brutalism.css +956 -0
- package/lib/esm/themes/cyberpunk-rose-light.css +750 -0
- package/lib/esm/themes/cyberpunk-rose.css +958 -0
- package/lib/esm/themes/terminal-light.css +422 -0
- package/lib/esm/themes/terminal.css +474 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +4 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +492 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +14 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.js +6 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +5 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +1029 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +44 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.js +6 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +3 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +116 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +67 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +31 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.js +6 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +12 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.js +31 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +32 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +232 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +12 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.js +5 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +20 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +289 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +20 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +483 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +17 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +466 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.d.ts +15 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +256 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +18 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +454 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.d.ts +17 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +205 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +43 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +750 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.d.ts +16 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +338 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +17 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +340 -0
- package/lib/esm/widgets/cluster-details/tabs/url-utils.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/tabs/url-utils.js +28 -0
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +34 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +4 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.js +682 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +1 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +155 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +49 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.types.js +6 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +4 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +76 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.types.d.ts +24 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.types.js +6 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +4 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +76 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.types.d.ts +24 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.types.js +6 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +4 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +74 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +1 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +140 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +18 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.types.js +6 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +14 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +97 -0
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +5 -0
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +841 -0
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +1 -0
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +179 -0
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.types.d.ts +29 -0
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.types.js +6 -0
- package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +14 -0
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +456 -0
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.d.ts +80 -0
- package/lib/esm/widgets/dashboard/c4-dashboard-app.types.js +6 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +5 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.js +193 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +1 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +35 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.types.d.ts +17 -0
- package/lib/esm/widgets/group-details/c4-group-details-page.types.js +6 -0
- package/lib/esm/widgets/management/c4-management-app.d.ts +5 -0
- package/lib/esm/widgets/management/c4-management-app.js +2303 -0
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +69 -0
- package/lib/esm/widgets/management/c4-management-app.types.js +6 -0
- package/lib/esm/widgets/management/c4-management-page.d.ts +3 -0
- package/lib/esm/widgets/management/c4-management-page.js +35 -0
- package/lib/esm/widgets/management/c4-management-page.spec.d.ts +1 -0
- package/lib/esm/widgets/management/c4-management-page.spec.js +40 -0
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +11 -0
- package/lib/esm/widgets/management/c4-management-page.types.js +6 -0
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +5 -0
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.js +5 -0
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +61 -0
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +629 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +43 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +340 -0
- package/lib/esm/widgets/management/tabs/c4-management-groups-tab.d.ts +13 -0
- package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +26 -0
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +12 -0
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +85 -0
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +20 -0
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +266 -0
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +39 -0
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +103 -0
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +49 -0
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +72 -0
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +25 -0
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +259 -0
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +1 -0
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +65 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +5 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.js +591 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +1 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +61 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.types.d.ts +29 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.types.js +6 -0
- package/package.json +88 -0
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
+
* You may not use this file except in compliance with the commercial license.
|
|
6
|
+
*/
|
|
7
|
+
import { OrgsService } from '@camunda/ccma-api';
|
|
8
|
+
import { ClusterEncryptionKey, OrganizationRole, SalesPlanType, } from '@camunda/ccma-shared-types';
|
|
9
|
+
import { InlineNotification, Modal, Select, SelectItem, Stack, TextInput, } from '@carbon/react';
|
|
10
|
+
import { observer } from 'mobx-react-lite';
|
|
11
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
12
|
+
import { C4ClusterList } from '../../components/c4-cluster-list/c4-cluster-list.js';
|
|
13
|
+
import { C4ClustersEmptyState } from '../../components/c4-clusters-empty-state/c4-clusters-empty-state.js';
|
|
14
|
+
import { C4ClustersTrialNotification } from '../../components/c4-clusters-trial-notification/c4-clusters-trial-notification.js';
|
|
15
|
+
import { useC4ConsoleAuthz } from '../../runtime/c4-console-authz.js';
|
|
16
|
+
import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
|
|
17
|
+
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
18
|
+
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
19
|
+
function getString(record, key) {
|
|
20
|
+
const value = record[key];
|
|
21
|
+
return typeof value === 'string' ? value : undefined;
|
|
22
|
+
}
|
|
23
|
+
function getPathString(record, path) {
|
|
24
|
+
let current = record;
|
|
25
|
+
for (const key of path) {
|
|
26
|
+
if (!current || typeof current !== 'object') {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
current = current[key];
|
|
30
|
+
}
|
|
31
|
+
return typeof current === 'string' ? current : undefined;
|
|
32
|
+
}
|
|
33
|
+
function getBoolean(record, key) {
|
|
34
|
+
const value = record[key];
|
|
35
|
+
return typeof value === 'boolean' ? value : undefined;
|
|
36
|
+
}
|
|
37
|
+
function openUrlInNewTab(url) {
|
|
38
|
+
if (typeof window === 'undefined') {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
window.open(url, '_blank', 'noopener,noreferrer');
|
|
42
|
+
}
|
|
43
|
+
function getOptionalNumber(record, key) {
|
|
44
|
+
const value = record[key];
|
|
45
|
+
return typeof value === 'number' ? value : undefined;
|
|
46
|
+
}
|
|
47
|
+
function getPathUnknown(record, path) {
|
|
48
|
+
let current = record;
|
|
49
|
+
for (const key of path) {
|
|
50
|
+
if (!current || typeof current !== 'object') {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
current = current[key];
|
|
54
|
+
}
|
|
55
|
+
return current;
|
|
56
|
+
}
|
|
57
|
+
function normalizeStatus(input) {
|
|
58
|
+
if (typeof input !== 'string') {
|
|
59
|
+
return 'unknown';
|
|
60
|
+
}
|
|
61
|
+
return input.toLowerCase();
|
|
62
|
+
}
|
|
63
|
+
function mapClusterToListItem(rawCluster, index) {
|
|
64
|
+
const id = getString(rawCluster, 'id') ??
|
|
65
|
+
getString(rawCluster, 'clusterId') ??
|
|
66
|
+
getString(rawCluster, 'uuid') ??
|
|
67
|
+
getString(rawCluster, 'clusterUuid');
|
|
68
|
+
if (!id) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
const name = getString(rawCluster, 'name') ?? getString(rawCluster, 'clusterName') ?? id;
|
|
72
|
+
const generation = getString(rawCluster, 'generation') ??
|
|
73
|
+
getPathString(rawCluster, ['generation', 'name']) ??
|
|
74
|
+
getString(rawCluster, 'generationId') ??
|
|
75
|
+
getString(rawCluster, 'generationName') ??
|
|
76
|
+
'unknown';
|
|
77
|
+
const type = getString(rawCluster, 'type') ??
|
|
78
|
+
getPathString(rawCluster, ['planType', 'name']) ??
|
|
79
|
+
getString(rawCluster, 'planType') ??
|
|
80
|
+
getString(rawCluster, 'planTypeId') ??
|
|
81
|
+
'unknown';
|
|
82
|
+
const region = getString(rawCluster, 'region') ??
|
|
83
|
+
getPathString(rawCluster, ['k8sContext', 'name']) ??
|
|
84
|
+
getPathString(rawCluster, ['k8sContext', 'config', 'name']) ??
|
|
85
|
+
'unknown';
|
|
86
|
+
const status = normalizeStatus(getPathString(rawCluster, ['status', 'ready']) ?? 'unknown');
|
|
87
|
+
// Extract tags from labels.camunda and labels.custom
|
|
88
|
+
const labelsObj = rawCluster.labels;
|
|
89
|
+
const camundaTags = labelsObj?.camunda;
|
|
90
|
+
const customTags = labelsObj?.custom;
|
|
91
|
+
const camundaArray = Array.isArray(camundaTags)
|
|
92
|
+
? camundaTags.filter((t) => typeof t === 'string')
|
|
93
|
+
: [];
|
|
94
|
+
const customArray = Array.isArray(customTags)
|
|
95
|
+
? customTags.filter((t) => typeof t === 'string')
|
|
96
|
+
: [];
|
|
97
|
+
const tags = [...camundaArray, ...customArray];
|
|
98
|
+
const currentClusterLoad = getOptionalNumber(rawCluster, 'currentClusterLoad');
|
|
99
|
+
return {
|
|
100
|
+
id,
|
|
101
|
+
name,
|
|
102
|
+
generation,
|
|
103
|
+
type,
|
|
104
|
+
region,
|
|
105
|
+
status,
|
|
106
|
+
tags,
|
|
107
|
+
currentClusterLoad,
|
|
108
|
+
originalIndex: index,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function buildDefaultTranslations(t) {
|
|
112
|
+
const translate = (key, fallback) => {
|
|
113
|
+
try {
|
|
114
|
+
const translated = t?.(key);
|
|
115
|
+
return translated && translated !== key ? translated : fallback;
|
|
116
|
+
}
|
|
117
|
+
catch {
|
|
118
|
+
return fallback;
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
return {
|
|
122
|
+
title: translate('c4console:clusters.list.title', 'Clusters'),
|
|
123
|
+
createButton: translate('c4console:clusters.list.createButton', 'Create new cluster'),
|
|
124
|
+
searchLabel: translate('c4console:clusters.list.searchLabel', 'Search'),
|
|
125
|
+
emptyState: {
|
|
126
|
+
noClusters: translate('c4console:clusters.list.emptyState.noClusters', 'No clusters found.'),
|
|
127
|
+
},
|
|
128
|
+
headers: {
|
|
129
|
+
name: translate('c4console:clusters.list.headers.name', 'Name'),
|
|
130
|
+
generation: translate('c4console:clusters.list.headers.generation', 'Generation'),
|
|
131
|
+
type: translate('c4console:clusters.list.headers.type', 'Type'),
|
|
132
|
+
region: translate('c4console:clusters.list.headers.region', 'Region'),
|
|
133
|
+
status: translate('c4console:clusters.list.headers.status', 'Status'),
|
|
134
|
+
tags: translate('c4console:clusters.list.headers.tags', 'Tags'),
|
|
135
|
+
currentClusterLoad: translate('c4console:clusters.list.headers.currentClusterLoad', 'Load'),
|
|
136
|
+
},
|
|
137
|
+
overflowMenu: {
|
|
138
|
+
delete: translate('c4console:clusters.list.overflowMenu.delete', 'Delete'),
|
|
139
|
+
resume: translate('c4console:clusters.list.overflowMenu.resume', 'Resume'),
|
|
140
|
+
},
|
|
141
|
+
tags: {
|
|
142
|
+
addLabel: translate('c4console:clusters.tags.addLabel', 'Add tag'),
|
|
143
|
+
},
|
|
144
|
+
tooltips: {
|
|
145
|
+
clusterLoad: translate('c4console:clusters.tooltips.clusterLoad', 'Cluster load'),
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function encodeClusterDetailsUrl(orgId, clusterId) {
|
|
150
|
+
return `/org/${encodeURIComponent(orgId)}/cluster/${encodeURIComponent(clusterId)}`;
|
|
151
|
+
}
|
|
152
|
+
function encodeCreateClusterUrl(orgId) {
|
|
153
|
+
return `createCluster:${orgId}`;
|
|
154
|
+
}
|
|
155
|
+
function decodeNavigateUrl(url) {
|
|
156
|
+
if (url.startsWith('clusterDetails:')) {
|
|
157
|
+
const [, orgId, clusterId] = url.split(':');
|
|
158
|
+
if (orgId && clusterId) {
|
|
159
|
+
return { kind: 'clusterDetails', orgId, clusterId };
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// Support real hrefs so browser features (open in new tab) work.
|
|
163
|
+
// Example: /org/<orgId>/cluster/<clusterId>
|
|
164
|
+
try {
|
|
165
|
+
const parsed = new URL(url, 'https://example.invalid');
|
|
166
|
+
const match = parsed.pathname.match(/^\/org\/([^/]+)\/cluster\/([^/]+)(?:\/|$)/);
|
|
167
|
+
if (match) {
|
|
168
|
+
const orgId = decodeURIComponent(match[1] ?? '');
|
|
169
|
+
const clusterId = decodeURIComponent(match[2] ?? '');
|
|
170
|
+
if (orgId && clusterId) {
|
|
171
|
+
return { kind: 'clusterDetails', orgId, clusterId };
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
catch {
|
|
176
|
+
// ignore
|
|
177
|
+
}
|
|
178
|
+
if (url.startsWith('createCluster:')) {
|
|
179
|
+
const [, orgId] = url.split(':');
|
|
180
|
+
if (orgId) {
|
|
181
|
+
return { kind: 'createCluster', orgId };
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
function mergePermissions(base, override) {
|
|
187
|
+
if (!override) {
|
|
188
|
+
return base;
|
|
189
|
+
}
|
|
190
|
+
return { ...base, ...override };
|
|
191
|
+
}
|
|
192
|
+
export const C4ClustersPage = observer(({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, }) => {
|
|
193
|
+
const runtime = useC4ConsoleRuntime();
|
|
194
|
+
const authz = useC4ConsoleAuthz({ orgId });
|
|
195
|
+
const data = useC4ConsoleData();
|
|
196
|
+
const apiConfig = useMemo(() => {
|
|
197
|
+
return toApiConfig(runtime);
|
|
198
|
+
}, [runtime]);
|
|
199
|
+
const [deleteModalOpen, setDeleteModalOpen] = useState(false);
|
|
200
|
+
const [deleteTarget, setDeleteTarget] = useState(undefined);
|
|
201
|
+
const [deleteConfirmation, setDeleteConfirmation] = useState('');
|
|
202
|
+
const [deleteBusy, setDeleteBusy] = useState(false);
|
|
203
|
+
const [deleteError, setDeleteError] = useState(undefined);
|
|
204
|
+
const [tagModalOpen, setTagModalOpen] = useState(false);
|
|
205
|
+
const [tagTarget, setTagTarget] = useState(undefined);
|
|
206
|
+
const [selectedTag, setSelectedTag] = useState('');
|
|
207
|
+
const [tagBusy, setTagBusy] = useState(false);
|
|
208
|
+
const [tagError, setTagError] = useState(undefined);
|
|
209
|
+
const [wakeModalOpen, setWakeModalOpen] = useState(false);
|
|
210
|
+
const [wakeTarget, setWakeTarget] = useState(undefined);
|
|
211
|
+
const [wakeBusy, setWakeBusy] = useState(false);
|
|
212
|
+
const [wakeError, setWakeError] = useState(undefined);
|
|
213
|
+
const [orgInfo, setOrgInfo] = useState(undefined);
|
|
214
|
+
useEffect(() => {
|
|
215
|
+
if (!orgId) {
|
|
216
|
+
setOrgInfo(undefined);
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
let cancelled = false;
|
|
220
|
+
OrgsService.getOrgInfo({ config: apiConfig, orgUuid: orgId })
|
|
221
|
+
.then((result) => {
|
|
222
|
+
if (cancelled)
|
|
223
|
+
return;
|
|
224
|
+
setOrgInfo(result);
|
|
225
|
+
})
|
|
226
|
+
.catch((error) => {
|
|
227
|
+
if (cancelled)
|
|
228
|
+
return;
|
|
229
|
+
setOrgInfo(undefined);
|
|
230
|
+
runtime.telemetry?.captureException?.(error, {
|
|
231
|
+
widget: 'C4ClustersPage',
|
|
232
|
+
action: 'loadOrgInfo',
|
|
233
|
+
orgId,
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
return () => {
|
|
237
|
+
cancelled = true;
|
|
238
|
+
};
|
|
239
|
+
}, [apiConfig, orgId, runtime.telemetry]);
|
|
240
|
+
// Fetch data on mount/orgId change (idempotent, cached in context)
|
|
241
|
+
useEffect(() => {
|
|
242
|
+
if (!orgId)
|
|
243
|
+
return;
|
|
244
|
+
// Trigger fetch (context handles caching/deduplication)
|
|
245
|
+
data.fetchClusters(orgId).then(() => {
|
|
246
|
+
// Once clusters are loaded, fetch capacity data
|
|
247
|
+
const clusters = data.getClusters(orgId) ?? [];
|
|
248
|
+
if (clusters.length > 0) {
|
|
249
|
+
const clusterIds = clusters
|
|
250
|
+
.map((cluster) => {
|
|
251
|
+
return (getString(cluster, 'uuid') ??
|
|
252
|
+
getString(cluster, 'id') ??
|
|
253
|
+
getString(cluster, 'clusterId'));
|
|
254
|
+
})
|
|
255
|
+
.filter((id) => Boolean(id));
|
|
256
|
+
if (clusterIds.length > 0) {
|
|
257
|
+
data.fetchClusterCapacity(orgId, clusterIds);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
}, [orgId, data.fetchClusterCapacity, data.fetchClusters, data.getClusters]);
|
|
262
|
+
// Get data from context (reactive via MobX)
|
|
263
|
+
const clustersCache = data.clusters[orgId];
|
|
264
|
+
const clusterCapacityMap = data.clusterCapacity[orgId] ?? new Map();
|
|
265
|
+
const rawClusters = (clustersCache?.data ?? []);
|
|
266
|
+
const isLoading = clustersCache?.isLoading ?? false;
|
|
267
|
+
const error = clustersCache?.error;
|
|
268
|
+
// Map cluster load from context
|
|
269
|
+
const clusterLoadData = useMemo(() => {
|
|
270
|
+
return clusterCapacityMap;
|
|
271
|
+
}, [clusterCapacityMap]);
|
|
272
|
+
const clusters = useMemo(() => {
|
|
273
|
+
return rawClusters
|
|
274
|
+
.map((rawCluster, index) => {
|
|
275
|
+
const item = mapClusterToListItem(rawCluster, index);
|
|
276
|
+
if (!item)
|
|
277
|
+
return undefined;
|
|
278
|
+
// Add cluster load data if available
|
|
279
|
+
const clusterLoad = clusterLoadData.get(item.id);
|
|
280
|
+
const clusterWithLoad = {
|
|
281
|
+
...item,
|
|
282
|
+
currentClusterLoad: clusterLoad,
|
|
283
|
+
};
|
|
284
|
+
return clusterWithLoad;
|
|
285
|
+
})
|
|
286
|
+
.filter((item) => Boolean(item));
|
|
287
|
+
}, [rawClusters, clusterLoadData]);
|
|
288
|
+
const clusterById = useMemo(() => {
|
|
289
|
+
const map = new Map();
|
|
290
|
+
for (const cluster of clusters) {
|
|
291
|
+
map.set(cluster.id, cluster);
|
|
292
|
+
}
|
|
293
|
+
return map;
|
|
294
|
+
}, [clusters]);
|
|
295
|
+
const clusterStatusById = useMemo(() => {
|
|
296
|
+
const statusMap = new Map();
|
|
297
|
+
for (const cluster of clusters) {
|
|
298
|
+
if (cluster) {
|
|
299
|
+
statusMap.set(cluster.id, normalizeStatus(cluster.status));
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return statusMap;
|
|
303
|
+
}, [clusters]);
|
|
304
|
+
const unsupportedGenerationById = useMemo(() => {
|
|
305
|
+
const map = new Map();
|
|
306
|
+
for (const rawCluster of rawClusters) {
|
|
307
|
+
const clusterId = getString(rawCluster, 'uuid') ??
|
|
308
|
+
getString(rawCluster, 'id') ??
|
|
309
|
+
getString(rawCluster, 'clusterId');
|
|
310
|
+
if (!clusterId) {
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
const isUnsupportedStarting = getPathUnknown(rawCluster, [
|
|
314
|
+
'generation',
|
|
315
|
+
'isUnsupportedStarting',
|
|
316
|
+
]);
|
|
317
|
+
if (typeof isUnsupportedStarting !== 'string' ||
|
|
318
|
+
!isUnsupportedStarting) {
|
|
319
|
+
map.set(clusterId, false);
|
|
320
|
+
continue;
|
|
321
|
+
}
|
|
322
|
+
const start = new Date(isUnsupportedStarting).getTime();
|
|
323
|
+
map.set(clusterId, Number.isFinite(start) && Date.now() > start);
|
|
324
|
+
}
|
|
325
|
+
return map;
|
|
326
|
+
}, [rawClusters]);
|
|
327
|
+
const hasEncryptionWarning = useMemo(() => {
|
|
328
|
+
return rawClusters.some((cluster) => {
|
|
329
|
+
return (cluster.primaryEncryptionKeyId === null &&
|
|
330
|
+
cluster.encryption === ClusterEncryptionKey.EXTERNAL);
|
|
331
|
+
});
|
|
332
|
+
}, [rawClusters]);
|
|
333
|
+
const safeTranslate = (key, fallback, options) => {
|
|
334
|
+
try {
|
|
335
|
+
const translated = runtime.i18n?.t(key, options);
|
|
336
|
+
if (!translated || translated === key) {
|
|
337
|
+
return fallback;
|
|
338
|
+
}
|
|
339
|
+
// i18next can return the key *without* the namespace when the namespace is missing.
|
|
340
|
+
// Example: `c4console:clusters.list.trialExpired.title` -> `clusters.list.trialExpired.title`
|
|
341
|
+
if (key.includes(':')) {
|
|
342
|
+
const withoutNamespace = key.split(':').slice(1).join(':');
|
|
343
|
+
if (translated === withoutNamespace) {
|
|
344
|
+
return fallback;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return translated;
|
|
348
|
+
}
|
|
349
|
+
catch {
|
|
350
|
+
return fallback;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const trialState = useMemo(() => {
|
|
354
|
+
if (!orgInfo || typeof orgInfo !== 'object') {
|
|
355
|
+
return {
|
|
356
|
+
isTrial: false,
|
|
357
|
+
trialStateExpired: false,
|
|
358
|
+
showClusterListBanner: false,
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
const orgInfoRecord = orgInfo;
|
|
362
|
+
const organizationToSalesPlan = getPathUnknown(orgInfoRecord, ['organizationToSalesPlan']) ?? {};
|
|
363
|
+
const salesPlanTypeRaw = getPathString(organizationToSalesPlan, [
|
|
364
|
+
'salesPlan',
|
|
365
|
+
'salesPlanType',
|
|
366
|
+
]);
|
|
367
|
+
const isTrial = salesPlanTypeRaw === SalesPlanType.TRIAL;
|
|
368
|
+
const trialStateExpired = getBoolean(organizationToSalesPlan, 'trialStateExpired') ?? false;
|
|
369
|
+
const trialExpirationDateRaw = getString(organizationToSalesPlan, 'trialExpirationDate');
|
|
370
|
+
const trialExpirationMs = trialExpirationDateRaw
|
|
371
|
+
? new Date(trialExpirationDateRaw).getTime()
|
|
372
|
+
: Number.NaN;
|
|
373
|
+
const countdownDays = Number.isFinite(trialExpirationMs)
|
|
374
|
+
? Math.round((trialExpirationMs - Date.now()) / 1000 / 60 / 60 / 24)
|
|
375
|
+
: undefined;
|
|
376
|
+
const showClusterListBanner = isTrial &&
|
|
377
|
+
!trialStateExpired &&
|
|
378
|
+
typeof countdownDays === 'number' &&
|
|
379
|
+
countdownDays <= 7 &&
|
|
380
|
+
countdownDays >= 0;
|
|
381
|
+
return {
|
|
382
|
+
isTrial,
|
|
383
|
+
trialStateExpired,
|
|
384
|
+
showClusterListBanner,
|
|
385
|
+
};
|
|
386
|
+
}, [orgInfo]);
|
|
387
|
+
const isOrgAdmin = useMemo(() => {
|
|
388
|
+
const orgAdminRoles = new Set([
|
|
389
|
+
OrganizationRole.ADMIN,
|
|
390
|
+
OrganizationRole.OWNER,
|
|
391
|
+
OrganizationRole.ORGANIZATION_ADMIN,
|
|
392
|
+
OrganizationRole.ORGANIZATION_OWNER,
|
|
393
|
+
]);
|
|
394
|
+
const roles = authz.orgRoles ?? [];
|
|
395
|
+
return roles.some((role) => orgAdminRoles.has(role));
|
|
396
|
+
}, [authz]);
|
|
397
|
+
const contactUrl = 'https://camunda.com/contact';
|
|
398
|
+
const derivedTrialNotification = useMemo(() => {
|
|
399
|
+
if (!trialState.showClusterListBanner) {
|
|
400
|
+
return undefined;
|
|
401
|
+
}
|
|
402
|
+
const prelude = safeTranslate('c4console:clusters.list.banner.trialIsAboutToExpirePrelude', 'Your trial is about to expire.');
|
|
403
|
+
const actionText = isOrgAdmin
|
|
404
|
+
? safeTranslate('c4console:clusters.list.banner.actionAdmin', 'Upgrade your plan to keep using Camunda.')
|
|
405
|
+
: safeTranslate('c4console:clusters.list.banner.actionMember', 'Contact your admin to upgrade your plan.');
|
|
406
|
+
return (_jsx(C4ClustersTrialNotification, { title: `${prelude} ${actionText}`, showUpgradeAction: isOrgAdmin, upgradeButtonLabel: safeTranslate('c4console:clusters.list.banner.upgradeButton', 'Upgrade'), onUpgradeClick: () => openUrlInNewTab(contactUrl) }));
|
|
407
|
+
}, [
|
|
408
|
+
contactUrl,
|
|
409
|
+
isOrgAdmin,
|
|
410
|
+
safeTranslate,
|
|
411
|
+
trialState.showClusterListBanner,
|
|
412
|
+
]);
|
|
413
|
+
const encryptionNotification = hasEncryptionWarning
|
|
414
|
+
? {
|
|
415
|
+
kind: 'warning',
|
|
416
|
+
title: safeTranslate('c4console:clusters.encryption.notification.title', 'Action Required'),
|
|
417
|
+
subtitle: safeTranslate('c4console:clusters.encryption.notification.text', 'Complete the remaining steps to finalize the cluster creation.'),
|
|
418
|
+
lowContrast: true,
|
|
419
|
+
hideCloseButton: true,
|
|
420
|
+
}
|
|
421
|
+
: undefined;
|
|
422
|
+
const derivedPermissions = useMemo(() => {
|
|
423
|
+
const clustersVisibility = authz.visibilities.clusters;
|
|
424
|
+
const base = {
|
|
425
|
+
canCreateCluster: clustersVisibility?.canCreate ?? false,
|
|
426
|
+
canEditCluster: clustersVisibility?.canEdit ?? false,
|
|
427
|
+
canDeleteCluster: clustersVisibility?.canDelete ?? false,
|
|
428
|
+
canUpdateTag: clustersVisibility?.canUpdateTag ?? false,
|
|
429
|
+
canSeeClusterLoad: clustersVisibility?.canSeeClusterLoad ?? false,
|
|
430
|
+
canWakeCluster: clustersVisibility?.canWake ?? false,
|
|
431
|
+
createClusterButtonDisabled: !(clustersVisibility?.canCreate ?? false),
|
|
432
|
+
};
|
|
433
|
+
return mergePermissions(base, permissionsOverride);
|
|
434
|
+
}, [authz.visibilities.clusters, permissionsOverride]);
|
|
435
|
+
const resolvedTranslations = useMemo(() => {
|
|
436
|
+
if (translations) {
|
|
437
|
+
return translations;
|
|
438
|
+
}
|
|
439
|
+
const t = runtime.i18n?.t;
|
|
440
|
+
return buildDefaultTranslations((key) => t?.(key) ?? key);
|
|
441
|
+
}, [runtime.i18n, translations]);
|
|
442
|
+
const urls = useMemo(() => {
|
|
443
|
+
return {
|
|
444
|
+
clusterDetails: (clusterId) => encodeClusterDetailsUrl(orgId, clusterId),
|
|
445
|
+
createCluster: encodeCreateClusterUrl(orgId),
|
|
446
|
+
};
|
|
447
|
+
}, [orgId]);
|
|
448
|
+
const handleNavigate = useCallback((url) => {
|
|
449
|
+
const event = decodeNavigateUrl(url);
|
|
450
|
+
if (event) {
|
|
451
|
+
onNavigate?.(event);
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
runtime.telemetry?.track?.('c4Clusters.navigate.unknown', { url });
|
|
455
|
+
}, [onNavigate, runtime.telemetry]);
|
|
456
|
+
const derivedEmptyStateContent = useMemo(() => {
|
|
457
|
+
// Avoid flashing the empty state before we know whether clusters exist.
|
|
458
|
+
if (isLoading || authz.isLoading) {
|
|
459
|
+
return undefined;
|
|
460
|
+
}
|
|
461
|
+
if (trialState.isTrial && trialState.trialStateExpired) {
|
|
462
|
+
const variant = isOrgAdmin ? 'trialExpiredAdmin' : 'trialExpiredMember';
|
|
463
|
+
return (_jsx(C4ClustersEmptyState, { variant: variant, onUpgrade: isOrgAdmin ? () => openUrlInNewTab(contactUrl) : undefined, texts: {
|
|
464
|
+
noClusters: {
|
|
465
|
+
heading: safeTranslate('c4console:clusters.emptyState.noClusters.heading', 'Processes run on clusters'),
|
|
466
|
+
description: safeTranslate('c4console:clusters.emptyState.noClusters.description', 'Create a cluster to get started.'),
|
|
467
|
+
createButtonLabel: resolvedTranslations.createButton,
|
|
468
|
+
docsLinkLabel: safeTranslate('c4console:clusters.emptyState.noClusters.docsLinkLabel', 'View The Getting Started Guide'),
|
|
469
|
+
},
|
|
470
|
+
trialExpired: {
|
|
471
|
+
heading: safeTranslate('c4console:clusters.list.trialExpired.title', 'Your trial has expired'),
|
|
472
|
+
adminDescription: safeTranslate('c4console:clusters.list.trialExpired.admin.text', 'Upgrade your plan to continue using Camunda.'),
|
|
473
|
+
memberDescription: safeTranslate('c4console:clusters.list.trialExpired.member.text', 'Contact your admin to upgrade your plan.'),
|
|
474
|
+
upgradeButtonLabel: safeTranslate('c4console:clusters.list.trialExpired.admin.upgradeButton', 'Upgrade'),
|
|
475
|
+
},
|
|
476
|
+
} }));
|
|
477
|
+
}
|
|
478
|
+
if (clusters.length !== 0) {
|
|
479
|
+
return undefined;
|
|
480
|
+
}
|
|
481
|
+
const createButtonLabel = safeTranslate('c4console:clusters.emptyState.noClusters.createButtonLabel', 'Create new cluster');
|
|
482
|
+
const descriptionPrefix = safeTranslate('c4console:clusters.emptyState.noClusters.descriptionPrefix', 'Click ');
|
|
483
|
+
const descriptionSuffix = safeTranslate('c4console:clusters.emptyState.noClusters.descriptionSuffix', ' to have a place to execute your processes');
|
|
484
|
+
return (_jsx(C4ClustersEmptyState, { variant: 'noClusters', docsHref: gettingStartedHref, onCreateCluster: derivedPermissions.canCreateCluster
|
|
485
|
+
? () => handleNavigate(urls.createCluster)
|
|
486
|
+
: undefined, createClusterButtonDisabled: derivedPermissions.createClusterButtonDisabled, texts: {
|
|
487
|
+
noClusters: {
|
|
488
|
+
heading: safeTranslate('c4console:clusters.emptyState.noClusters.heading', 'Processes run on clusters'),
|
|
489
|
+
description: (_jsxs("span", { children: [descriptionPrefix, _jsx("strong", { children: createButtonLabel }), descriptionSuffix] })),
|
|
490
|
+
createButtonLabel,
|
|
491
|
+
docsLinkLabel: safeTranslate('c4console:clusters.emptyState.noClusters.docsLinkLabel', 'View The Getting Started Guide'),
|
|
492
|
+
},
|
|
493
|
+
trialExpired: {
|
|
494
|
+
heading: safeTranslate('c4console:clusters.list.trialExpired.title', 'Your trial has expired'),
|
|
495
|
+
adminDescription: safeTranslate('c4console:clusters.list.trialExpired.admin.text', 'Upgrade your plan to continue using Camunda.'),
|
|
496
|
+
memberDescription: safeTranslate('c4console:clusters.list.trialExpired.member.text', 'Contact your admin to upgrade your plan.'),
|
|
497
|
+
upgradeButtonLabel: safeTranslate('c4console:clusters.list.trialExpired.admin.upgradeButton', 'Upgrade'),
|
|
498
|
+
},
|
|
499
|
+
} }));
|
|
500
|
+
}, [
|
|
501
|
+
authz.isLoading,
|
|
502
|
+
clusters.length,
|
|
503
|
+
contactUrl,
|
|
504
|
+
derivedPermissions.canCreateCluster,
|
|
505
|
+
derivedPermissions.createClusterButtonDisabled,
|
|
506
|
+
gettingStartedHref,
|
|
507
|
+
handleNavigate,
|
|
508
|
+
isLoading,
|
|
509
|
+
isOrgAdmin,
|
|
510
|
+
resolvedTranslations.createButton,
|
|
511
|
+
safeTranslate,
|
|
512
|
+
trialState.isTrial,
|
|
513
|
+
trialState.trialStateExpired,
|
|
514
|
+
urls.createCluster,
|
|
515
|
+
]);
|
|
516
|
+
const handleDeleteCluster = (clusterId) => {
|
|
517
|
+
onRequestDeleteCluster?.(clusterId);
|
|
518
|
+
if (!onRequestDeleteCluster) {
|
|
519
|
+
const cluster = clusterById.get(clusterId);
|
|
520
|
+
setDeleteTarget({
|
|
521
|
+
clusterId,
|
|
522
|
+
clusterName: cluster?.name ?? clusterId,
|
|
523
|
+
});
|
|
524
|
+
setDeleteConfirmation('');
|
|
525
|
+
setDeleteError(undefined);
|
|
526
|
+
setDeleteModalOpen(true);
|
|
527
|
+
runtime.telemetry?.track?.('c4Clusters.delete.requested', { clusterId });
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
const handleAssignTag = (clusterId) => {
|
|
531
|
+
onRequestAssignTag?.(clusterId);
|
|
532
|
+
if (!onRequestAssignTag) {
|
|
533
|
+
const cluster = clusterById.get(clusterId);
|
|
534
|
+
setTagTarget({
|
|
535
|
+
clusterId,
|
|
536
|
+
clusterName: cluster?.name ?? clusterId,
|
|
537
|
+
});
|
|
538
|
+
setSelectedTag('');
|
|
539
|
+
setTagError(undefined);
|
|
540
|
+
setTagModalOpen(true);
|
|
541
|
+
runtime.telemetry?.track?.('c4Clusters.tag.requested', { clusterId });
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
const handleWakeCluster = (clusterId) => {
|
|
545
|
+
onRequestWakeCluster?.(clusterId);
|
|
546
|
+
if (!onRequestWakeCluster) {
|
|
547
|
+
const cluster = clusterById.get(clusterId);
|
|
548
|
+
setWakeTarget({
|
|
549
|
+
clusterId,
|
|
550
|
+
clusterName: cluster?.name ?? clusterId,
|
|
551
|
+
});
|
|
552
|
+
setWakeError(undefined);
|
|
553
|
+
setWakeModalOpen(true);
|
|
554
|
+
runtime.telemetry?.track?.('c4Clusters.wake.requested', { clusterId });
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
const isClusterPausedFallback = (clusterId) => {
|
|
558
|
+
const status = clusterStatusById.get(clusterId);
|
|
559
|
+
return status === 'suspended';
|
|
560
|
+
};
|
|
561
|
+
const isRunningOnUnsupportedGenerationFallback = (clusterId) => {
|
|
562
|
+
return unsupportedGenerationById.get(clusterId) ?? false;
|
|
563
|
+
};
|
|
564
|
+
const isPageLoading = isLoading || authz.isLoading;
|
|
565
|
+
useEffect(() => {
|
|
566
|
+
if (!error) {
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
runtime.telemetry?.captureException?.(error, {
|
|
570
|
+
widget: 'C4ClustersPage',
|
|
571
|
+
orgId,
|
|
572
|
+
});
|
|
573
|
+
}, [error, orgId, runtime.telemetry]);
|
|
574
|
+
return (_jsxs(_Fragment, { children: [_jsx(C4ClusterList, { orgId: orgId, clusters: clusters, loading: isPageLoading, urls: urls, permissions: derivedPermissions, onNavigate: handleNavigate, onDeleteCluster: handleDeleteCluster, onAssignTag: handleAssignTag, onWakeCluster: handleWakeCluster, trialNotification: derivedTrialNotification, encryptionNotification: encryptionNotification, clusterCapMessage: clusterCapMessage, emptyStateContent: derivedEmptyStateContent, translations: resolvedTranslations, isClusterPaused: isClusterPausedOverride ?? isClusterPausedFallback, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride ??
|
|
575
|
+
isRunningOnUnsupportedGenerationFallback }), deleteTarget ? (_jsx(Modal, { open: deleteModalOpen, danger: true, modalHeading: safeTranslate('clustermodals:delete.heading', 'Delete cluster'), primaryButtonText: safeTranslate('clustermodals:delete.buttons.primary', 'Delete'), secondaryButtonText: safeTranslate('clustermodals:delete.buttons.secondary', 'Cancel'), primaryButtonDisabled: deleteBusy || deleteConfirmation.trim() !== 'DELETE', onRequestClose: () => {
|
|
576
|
+
if (deleteBusy)
|
|
577
|
+
return;
|
|
578
|
+
setDeleteModalOpen(false);
|
|
579
|
+
}, onRequestSubmit: async () => {
|
|
580
|
+
if (deleteBusy)
|
|
581
|
+
return;
|
|
582
|
+
setDeleteError(undefined);
|
|
583
|
+
setDeleteBusy(true);
|
|
584
|
+
try {
|
|
585
|
+
const { ConsoleClusterService } = await import('@camunda/ccma-api');
|
|
586
|
+
await ConsoleClusterService.deleteCluster({
|
|
587
|
+
config: apiConfig,
|
|
588
|
+
params: { orgId, clusterId: deleteTarget.clusterId },
|
|
589
|
+
});
|
|
590
|
+
data.invalidateClusters(orgId);
|
|
591
|
+
data.invalidateClusterCapacity(orgId);
|
|
592
|
+
await data.fetchClusters(orgId, { force: true });
|
|
593
|
+
setDeleteModalOpen(false);
|
|
594
|
+
}
|
|
595
|
+
catch (error) {
|
|
596
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
597
|
+
setDeleteError(message);
|
|
598
|
+
runtime.telemetry?.captureException?.(error, {
|
|
599
|
+
widget: 'C4ClustersPage',
|
|
600
|
+
action: 'delete',
|
|
601
|
+
orgId,
|
|
602
|
+
clusterId: deleteTarget.clusterId,
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
finally {
|
|
606
|
+
setDeleteBusy(false);
|
|
607
|
+
}
|
|
608
|
+
}, children: _jsxs(Stack, { gap: 4, children: [deleteError ? (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate('clustermodals:delete.error.generic', 'Error deleting cluster'), subtitle: deleteError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate('clustermodals:delete.description', `This will permanently delete ${deleteTarget.clusterName}.`, { clusterName: deleteTarget.clusterName }) }), _jsx(TextInput, { id: 'c4-delete-cluster-confirmation', labelText: safeTranslate('clustermodals:delete.confirm.label', 'Type the word DELETE to confirm'), value: deleteConfirmation, onChange: (e) => setDeleteConfirmation(e.target.value), disabled: deleteBusy })] }) })) : null, tagTarget ? (_jsx(Modal, { open: tagModalOpen, modalHeading: safeTranslate('clustermodals:assignTag.heading', 'Assign cluster tag'), primaryButtonText: safeTranslate('clustermodals:assignTag.buttons.primary', 'Assign'), secondaryButtonText: safeTranslate('clustermodals:assignTag.buttons.secondary', 'Cancel'), primaryButtonDisabled: tagBusy || selectedTag === '', onRequestClose: () => {
|
|
609
|
+
if (tagBusy)
|
|
610
|
+
return;
|
|
611
|
+
setTagModalOpen(false);
|
|
612
|
+
}, onRequestSubmit: async () => {
|
|
613
|
+
if (tagBusy || selectedTag === '')
|
|
614
|
+
return;
|
|
615
|
+
setTagError(undefined);
|
|
616
|
+
setTagBusy(true);
|
|
617
|
+
try {
|
|
618
|
+
const { ConsoleClusterService } = await import('@camunda/ccma-api');
|
|
619
|
+
await ConsoleClusterService.updateCluster({
|
|
620
|
+
config: apiConfig,
|
|
621
|
+
params: { orgId, clusterId: tagTarget.clusterId },
|
|
622
|
+
body: {
|
|
623
|
+
labels: {
|
|
624
|
+
custom: [],
|
|
625
|
+
camunda: [selectedTag],
|
|
626
|
+
},
|
|
627
|
+
},
|
|
628
|
+
});
|
|
629
|
+
data.invalidateClusters(orgId);
|
|
630
|
+
await data.fetchClusters(orgId, { force: true });
|
|
631
|
+
setTagModalOpen(false);
|
|
632
|
+
}
|
|
633
|
+
catch (error) {
|
|
634
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
635
|
+
setTagError(message);
|
|
636
|
+
runtime.telemetry?.captureException?.(error, {
|
|
637
|
+
widget: 'C4ClustersPage',
|
|
638
|
+
action: 'assignTag',
|
|
639
|
+
orgId,
|
|
640
|
+
clusterId: tagTarget.clusterId,
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
finally {
|
|
644
|
+
setTagBusy(false);
|
|
645
|
+
}
|
|
646
|
+
}, children: _jsxs(Stack, { gap: 4, children: [tagError ? (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate('clustermodals:assignTag.errorMessage', 'Error assigning tag'), subtitle: tagError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate('clustermodals:assignTag.description', `Assign an environment tag to ${tagTarget.clusterName}.`) }), _jsxs(Select, { id: 'c4-assign-cluster-tag', labelText: safeTranslate('clustermodals:assignTag.label', 'Tag'), value: selectedTag, disabled: tagBusy, onChange: (e) => {
|
|
647
|
+
const value = e.target.value;
|
|
648
|
+
setSelectedTag(value);
|
|
649
|
+
}, children: [_jsx(SelectItem, { value: '', text: 'Select a tag' }), _jsx(SelectItem, { value: 'dev', text: 'dev' }), _jsx(SelectItem, { value: 'test', text: 'test' }), _jsx(SelectItem, { value: 'stage', text: 'stage' }), _jsx(SelectItem, { value: 'prod', text: 'prod' })] })] }) })) : null, wakeTarget ? (_jsx(Modal, { open: wakeModalOpen, modalHeading: safeTranslate('clustermodals:resume.heading', 'Resume cluster'), primaryButtonText: safeTranslate('clustermodals:resume.buttons.primary', 'Resume'), secondaryButtonText: safeTranslate('clustermodals:resume.buttons.secondary', 'Cancel'), primaryButtonDisabled: wakeBusy, onRequestClose: () => {
|
|
650
|
+
if (wakeBusy)
|
|
651
|
+
return;
|
|
652
|
+
setWakeModalOpen(false);
|
|
653
|
+
}, onRequestSubmit: async () => {
|
|
654
|
+
if (wakeBusy)
|
|
655
|
+
return;
|
|
656
|
+
setWakeError(undefined);
|
|
657
|
+
setWakeBusy(true);
|
|
658
|
+
try {
|
|
659
|
+
const { ConsoleClusterService } = await import('@camunda/ccma-api');
|
|
660
|
+
await ConsoleClusterService.wakeCluster({
|
|
661
|
+
config: apiConfig,
|
|
662
|
+
params: { orgId, clusterId: wakeTarget.clusterId },
|
|
663
|
+
});
|
|
664
|
+
data.invalidateClusters(orgId);
|
|
665
|
+
await data.fetchClusters(orgId, { force: true });
|
|
666
|
+
setWakeModalOpen(false);
|
|
667
|
+
}
|
|
668
|
+
catch (error) {
|
|
669
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
670
|
+
setWakeError(message);
|
|
671
|
+
runtime.telemetry?.captureException?.(error, {
|
|
672
|
+
widget: 'C4ClustersPage',
|
|
673
|
+
action: 'wake',
|
|
674
|
+
orgId,
|
|
675
|
+
clusterId: wakeTarget.clusterId,
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
finally {
|
|
679
|
+
setWakeBusy(false);
|
|
680
|
+
}
|
|
681
|
+
}, children: _jsxs(Stack, { gap: 4, children: [wakeError ? (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate('clustermodals:resume.errorMessage', 'Error resuming cluster'), subtitle: wakeError, hideCloseButton: true })) : null, _jsx("p", { children: safeTranslate('clustermodals:resume.description', `Resume ${wakeTarget.clusterName}?`) })] }) })) : null] }));
|
|
682
|
+
});
|