@camunda/ccma-saas-frontend 0.0.46 → 0.3.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/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
- package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
- package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
- package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
- package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
- package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
- package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
- package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
- package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
- package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
- 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 +69 -6
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
- package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
- package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
- package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
- package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
- package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
- package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
- package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
- package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
- package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
- package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
- package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
- package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
- package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
- package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
- package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +109 -9
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
- package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
- package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
- package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
- package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
- package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
- package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
- package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
- package/lib/esm/components/c4-search/c4-search-results.js +2 -1
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
- package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
- package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
- package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
- package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
- package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
- package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
- package/lib/esm/components/c4-stat/c4-stat.js +1 -6
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
- package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
- package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
- package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
- package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
- package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
- package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
- package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
- package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
- package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
- package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
- package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
- package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
- package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
- package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
- package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
- package/lib/esm/externalUrls.const.d.ts +2 -0
- package/lib/esm/externalUrls.const.js +7 -0
- package/lib/esm/externalUrls.const.spec.js +2 -0
- package/lib/esm/i18n/c4-console-i18n.js +8 -0
- package/lib/esm/i18n/en/entities/orgroles.json +0 -16
- package/lib/esm/i18n/en/modals/clusters.json +0 -8
- package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
- package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
- package/lib/esm/index.d.ts +33 -1
- package/lib/esm/index.js +23 -1
- package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
- package/lib/esm/runtime/c4-console-authz.js +59 -29
- package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
- package/lib/esm/runtime/c4-console-data-context.js +40 -0
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
- package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
- package/lib/esm/runtime/c4-console-data-store.js +145 -31
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
- package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
- package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
- package/lib/esm/runtime/c4-console-events-context.js +62 -0
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
- package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
- package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
- package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
- package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
- package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
- package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
- package/lib/esm/runtime/c4-user-theme.js +106 -0
- package/lib/esm/runtime/decode-access-token.d.ts +12 -0
- package/lib/esm/runtime/decode-access-token.js +39 -0
- package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
- package/lib/esm/runtime/nav/camunda-apps.js +100 -0
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
- package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
- package/lib/esm/runtime/to-api-config.js +4 -0
- package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
- package/lib/esm/ui/c4-modal-dialog.js +35 -0
- package/lib/esm/ui/families.d.ts +42 -0
- package/lib/esm/ui/families.js +46 -0
- package/lib/esm/ui/index.d.ts +32 -0
- package/lib/esm/ui/index.js +95 -0
- package/lib/esm/ui/switchable.d.ts +14 -0
- package/lib/esm/ui/switchable.js +27 -0
- package/lib/esm/ui/tabs.d.ts +21 -0
- package/lib/esm/ui/tabs.js +27 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
- package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
- package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
- package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +132 -23
- package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
- package/lib/esm/widgets/management/c4-management-page.js +1 -6
- package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
- package/lib/esm/widgets/management/management-tabs.js +76 -0
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
- package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
- package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
- package/lib/esm/widgets/use-extend-trial.js +36 -0
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
- package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
- package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
- package/package.json +16 -7
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const useRadioFamily: () => {
|
|
2
|
+
RadioButton: import("react").ForwardRefExoticComponent<import("@carbon/react").RadioButtonProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
3
|
+
RadioButtonGroup: import("react").ForwardRefExoticComponent<import("@carbon/react").RadioButtonGroupProps & import("react").RefAttributes<unknown>>;
|
|
4
|
+
};
|
|
5
|
+
export declare const useSelectFamily: () => {
|
|
6
|
+
Select: import("react").ForwardRefExoticComponent<Omit<import("@carbon/react").SelectProps, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
7
|
+
SelectItem: {
|
|
8
|
+
({ className, value, disabled, hidden, text, ...other }: import("@carbon/react").SelectItemProps): import("react").JSX.Element;
|
|
9
|
+
propTypes: {
|
|
10
|
+
className: import("prop-types").Requireable<string>;
|
|
11
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
12
|
+
hidden: import("prop-types").Requireable<boolean>;
|
|
13
|
+
text: import("prop-types").Validator<string>;
|
|
14
|
+
value: import("prop-types").Validator<any>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const useContentSwitcherFamily: () => {
|
|
19
|
+
ContentSwitcher: {
|
|
20
|
+
({ children, className, light, lowContrast, selectedIndex: selectedIndexProp, selectionMode, size, onChange, ...other }: import("@carbon/react").ContentSwitcherProps): import("react").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
propTypes: {
|
|
23
|
+
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
24
|
+
className: import("prop-types").Requireable<string>;
|
|
25
|
+
light: (props: Record<string, any>, propName: string, componentName: string, ...rest: any[]) => any;
|
|
26
|
+
lowContrast: import("prop-types").Requireable<boolean>;
|
|
27
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
28
|
+
selectedIndex: import("prop-types").Requireable<number>;
|
|
29
|
+
selectionMode: import("prop-types").Requireable<string>;
|
|
30
|
+
size: import("prop-types").Requireable<string>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
Switch: import("react").ForwardRefExoticComponent<import("@carbon/react").SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
};
|
|
35
|
+
export declare const useMenuButtonFamily: () => {
|
|
36
|
+
MenuButton: import("react").ForwardRefExoticComponent<Omit<import("@carbon/react").MenuButtonProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
|
+
MenuItem: import("react").ForwardRefExoticComponent<import("@carbon/react").MenuItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
38
|
+
};
|
|
39
|
+
export declare const useBreadcrumbFamily: () => {
|
|
40
|
+
Breadcrumb: import("react").ForwardRefExoticComponent<import("@carbon/react").BreadcrumbProps & import("react").RefAttributes<HTMLElement>>;
|
|
41
|
+
BreadcrumbItem: import("react").ForwardRefExoticComponent<import("@carbon/react").BreadcrumbItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
import { Breadcrumb as DsBreadcrumb, BreadcrumbItem as DsBreadcrumbItem, ContentSwitcher as DsContentSwitcher, MenuButton as DsMenuButton, MenuItem as DsMenuItem, RadioButton as DsRadioButton, RadioButtonGroup as DsRadioButtonGroup, Select as DsSelect, SelectItem as DsSelectItem, Switch as DsSwitch, } from '@camunda/design-system/carbon-compat';
|
|
7
|
+
import { Breadcrumb as CarbonBreadcrumb, BreadcrumbItem as CarbonBreadcrumbItem, ContentSwitcher as CarbonContentSwitcher, MenuButton as CarbonMenuButton, MenuItem as CarbonMenuItem, RadioButton as CarbonRadioButton, RadioButtonGroup as CarbonRadioButtonGroup, Select as CarbonSelect, SelectItem as CarbonSelectItem, Switch as CarbonSwitch, } from '@carbon/react';
|
|
8
|
+
import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
|
|
9
|
+
/**
|
|
10
|
+
* Compound-family switching for c4.
|
|
11
|
+
*
|
|
12
|
+
* A compound family (parent + children the parent coordinates by
|
|
13
|
+
* identity/context) can't be switched symbol-by-symbol — mixing a Carbon parent
|
|
14
|
+
* with DS children (or vice versa) breaks selection. Each `useXFamily()` hook
|
|
15
|
+
* returns the WHOLE family from one library, chosen by the consumer's
|
|
16
|
+
* `designSystem` flag; callers destructure it and render the same JSX so every
|
|
17
|
+
* member is cohesive within a render. Carbon prop types are exposed so call
|
|
18
|
+
* sites stay unchanged; `as unknown as` bridges the structurally-distinct
|
|
19
|
+
* carbon-compat adapter types (unsupported props degrade in 'ds' mode, never
|
|
20
|
+
* error at the call site).
|
|
21
|
+
*/
|
|
22
|
+
function makeFamily(carbon, ds) {
|
|
23
|
+
return function useFamily() {
|
|
24
|
+
return useC4DesignSystem() === 'ds' ? ds : carbon;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const useRadioFamily = makeFamily({ RadioButton: CarbonRadioButton, RadioButtonGroup: CarbonRadioButtonGroup }, {
|
|
28
|
+
RadioButton: DsRadioButton,
|
|
29
|
+
RadioButtonGroup: DsRadioButtonGroup,
|
|
30
|
+
});
|
|
31
|
+
export const useSelectFamily = makeFamily({ Select: CarbonSelect, SelectItem: CarbonSelectItem }, {
|
|
32
|
+
Select: DsSelect,
|
|
33
|
+
SelectItem: DsSelectItem,
|
|
34
|
+
});
|
|
35
|
+
export const useContentSwitcherFamily = makeFamily({ ContentSwitcher: CarbonContentSwitcher, Switch: CarbonSwitch }, {
|
|
36
|
+
ContentSwitcher: DsContentSwitcher,
|
|
37
|
+
Switch: DsSwitch,
|
|
38
|
+
});
|
|
39
|
+
export const useMenuButtonFamily = makeFamily({ MenuButton: CarbonMenuButton, MenuItem: CarbonMenuItem }, {
|
|
40
|
+
MenuButton: DsMenuButton,
|
|
41
|
+
MenuItem: DsMenuItem,
|
|
42
|
+
});
|
|
43
|
+
export const useBreadcrumbFamily = makeFamily({ Breadcrumb: CarbonBreadcrumb, BreadcrumbItem: CarbonBreadcrumbItem }, {
|
|
44
|
+
Breadcrumb: DsBreadcrumb,
|
|
45
|
+
BreadcrumbItem: DsBreadcrumbItem,
|
|
46
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FilterableMultiSelect as CarbonFilterableMultiSelect, MultiSelect as CarbonMultiSelect, Tooltip as CarbonTooltip } from '@carbon/react';
|
|
2
|
+
import { type ComponentType } from 'react';
|
|
3
|
+
export declare const Button: ComponentType<import("@camunda/design-system/carbon-compat").ButtonProps<"button">>;
|
|
4
|
+
export declare const Checkbox: ComponentType<import("@carbon/react").CheckboxProps & import("react").RefAttributes<unknown>>;
|
|
5
|
+
export declare const CodeSnippet: ComponentType<import("@camunda/design-system/carbon-compat").CodeSnippetProps>;
|
|
6
|
+
export declare const Dropdown: ComponentType<import("@carbon/react").DropdownProps<unknown> & {
|
|
7
|
+
ref?: import("react").Ref<HTMLButtonElement>;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const Link: ComponentType<import("@camunda/design-system/carbon-compat").LinkProps>;
|
|
10
|
+
export declare const Loading: ComponentType<import("@carbon/react").LoadingProps>;
|
|
11
|
+
export declare const Modal: ComponentType<import("@carbon/react").ModalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const ComposedModal: ComponentType<import("@carbon/react").ComposedModalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const ModalHeader: ComponentType<import("@carbon/react").ModalHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const ModalBody: ComponentType<import("@carbon/react").ModalBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const ModalFooter: ComponentType<import("@carbon/react").ModalFooterProps & import("react").RefAttributes<HTMLElement>>;
|
|
16
|
+
export declare const MultiSelect: typeof CarbonMultiSelect;
|
|
17
|
+
export declare const FilterableMultiSelect: typeof CarbonFilterableMultiSelect;
|
|
18
|
+
export declare const ProgressBar: ComponentType<import("@carbon/react").ProgressBarProps>;
|
|
19
|
+
export declare const Search: ComponentType<import("@carbon/react").SearchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export declare const SkeletonText: ComponentType<import("@carbon/react").SkeletonTextProps>;
|
|
21
|
+
export declare const SkeletonPlaceholder: ComponentType<import("@carbon/react").SkeletonPlaceholderProps>;
|
|
22
|
+
export declare const BreadcrumbSkeleton: ComponentType<import("@carbon/react").BreadcrumbSkeletonProps>;
|
|
23
|
+
export declare const TabsSkeleton: ComponentType<import("@carbon/react/lib/components/Tabs/Tabs.Skeleton").TabsSkeletonProps>;
|
|
24
|
+
export declare const OverflowMenu: ComponentType<import("@carbon/react").OverflowMenuProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export declare const OverflowMenuItem: ComponentType<Omit<import("@carbon/react").OverflowMenuItemProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
26
|
+
export declare const Stack: ComponentType<import("@carbon/react").StackProps & import("react").RefAttributes<HTMLElement>>;
|
|
27
|
+
export declare const Tag: ComponentType<import("@camunda/design-system/carbon-compat").TagProps<"div">>;
|
|
28
|
+
export declare const TextArea: ComponentType<import("@carbon/react").TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
29
|
+
export declare const TextInput: ComponentType<import("@carbon/react").TextInputProps & import("react").RefAttributes<unknown>>;
|
|
30
|
+
export declare const Tile: ComponentType<import("@carbon/react").TileProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export declare const Toggle: ComponentType<import("@carbon/react").ToggleProps>;
|
|
32
|
+
export declare const Tooltip: typeof CarbonTooltip;
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
/*
|
|
7
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
8
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
9
|
+
*
|
|
10
|
+
* c4 design-system-switchable UI layer.
|
|
11
|
+
*
|
|
12
|
+
* Each component here renders either the Carbon component (`@carbon/react`) or
|
|
13
|
+
* its Camunda Design System adapter (`@camunda/design-system/carbon-compat`),
|
|
14
|
+
* chosen at runtime by the consumer via `designSystem: 'carbon' | 'ds'` on the
|
|
15
|
+
* c4 runtime config (default 'carbon'). This lets each c4 consumer decide when
|
|
16
|
+
* to switch, without duplicating component logic.
|
|
17
|
+
*
|
|
18
|
+
* ONLY standalone *leaf* components belong here. Compound-family members
|
|
19
|
+
* (RadioButton/RadioButtonGroup, Tabs/Tab/TabList/TabPanel, Select/SelectItem,
|
|
20
|
+
* Switch (a ContentSwitcher child), MenuButton/MenuItem, Breadcrumb children,
|
|
21
|
+
* Dropdown) must NOT be routed: Carbon parents detect/clone their children by
|
|
22
|
+
* component identity, and the `switchable` wrapper changes that identity, which
|
|
23
|
+
* breaks state injection (checked/selected). Migrate such families as a whole
|
|
24
|
+
* composite, not symbol-by-symbol.
|
|
25
|
+
*
|
|
26
|
+
* Also excluded: SHIM symbols (render identically in both modes) and prop-gap
|
|
27
|
+
* symbols (Tooltip `autoAlign`, ref-forwarding TextInput/TextArea/Stack,
|
|
28
|
+
* OverflowMenuItem `id`, FilterableMultiSelect item typing).
|
|
29
|
+
*
|
|
30
|
+
* To add a leaf: import the Carbon + carbon-compat versions and wrap with
|
|
31
|
+
* `switchable(...)`, then point the consuming component's import at this module.
|
|
32
|
+
*/
|
|
33
|
+
import { BreadcrumbSkeleton as DsBreadcrumbSkeleton, Button as DsButton, Checkbox as DsCheckbox, CodeSnippet as DsCodeSnippet, ComposedModal as DsComposedModal, Dropdown as DsDropdown, FilterableMultiSelect as DsFilterableMultiSelect, Link as DsLink, Loading as DsLoading, ModalBody as DsModalBody, ModalFooter as DsModalFooter, ModalHeader as DsModalHeader, MultiSelect as DsMultiSelect, OverflowMenu as DsOverflowMenu, OverflowMenuItem as DsOverflowMenuItem, ProgressBar as DsProgressBar, Search as DsSearch, SkeletonPlaceholder as DsSkeletonPlaceholder, SkeletonText as DsSkeletonText, Stack as DsStack, TabsSkeleton as DsTabsSkeleton, Tag as DsTag, TextArea as DsTextArea, TextInput as DsTextInput, Tile as DsTile, Toggle as DsToggle, Tooltip as DsTooltip, } from '@camunda/design-system/carbon-compat';
|
|
34
|
+
import { BreadcrumbSkeleton as CarbonBreadcrumbSkeleton, Button as CarbonButton, Checkbox as CarbonCheckbox, CodeSnippet as CarbonCodeSnippet, ComposedModal as CarbonComposedModal, Dropdown as CarbonDropdown, FilterableMultiSelect as CarbonFilterableMultiSelect, Link as CarbonLink, Loading as CarbonLoading, Modal as CarbonModal, ModalBody as CarbonModalBody, ModalFooter as CarbonModalFooter, ModalHeader as CarbonModalHeader, MultiSelect as CarbonMultiSelect, OverflowMenu as CarbonOverflowMenu, OverflowMenuItem as CarbonOverflowMenuItem, ProgressBar as CarbonProgressBar, Search as CarbonSearch, SkeletonPlaceholder as CarbonSkeletonPlaceholder, SkeletonText as CarbonSkeletonText, Stack as CarbonStack, TabsSkeleton as CarbonTabsSkeleton, Tag as CarbonTag, TextArea as CarbonTextArea, TextInput as CarbonTextInput, Tile as CarbonTile, Toggle as CarbonToggle, Tooltip as CarbonTooltip, } from '@carbon/react';
|
|
35
|
+
import { createElement } from 'react';
|
|
36
|
+
import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
|
|
37
|
+
import { C4ModalDialog } from './c4-modal-dialog.js';
|
|
38
|
+
import { switchable } from './switchable.js';
|
|
39
|
+
export const Button = switchable(CarbonButton, DsButton);
|
|
40
|
+
export const Checkbox = switchable(CarbonCheckbox, DsCheckbox);
|
|
41
|
+
export const CodeSnippet = switchable(CarbonCodeSnippet, DsCodeSnippet);
|
|
42
|
+
export const Dropdown = switchable(CarbonDropdown, DsDropdown);
|
|
43
|
+
export const Link = switchable(CarbonLink, DsLink);
|
|
44
|
+
export const Loading = switchable(CarbonLoading, DsLoading);
|
|
45
|
+
export const Modal = switchable(CarbonModal, C4ModalDialog);
|
|
46
|
+
export const ComposedModal = switchable(CarbonComposedModal, DsComposedModal);
|
|
47
|
+
export const ModalHeader = switchable(CarbonModalHeader, DsModalHeader);
|
|
48
|
+
export const ModalBody = switchable(CarbonModalBody, DsModalBody);
|
|
49
|
+
export const ModalFooter = switchable(CarbonModalFooter, DsModalFooter);
|
|
50
|
+
// MultiSelect / FilterableMultiSelect are generic over their item type, which
|
|
51
|
+
// the non-generic `switchable` can't carry. Erase to a plain ComponentType for
|
|
52
|
+
// the switch, then restore the Carbon type on the export so call sites keep
|
|
53
|
+
// item-type inference (carbon-compat REMAPs both onto the DS MultiSelect).
|
|
54
|
+
export const MultiSelect = switchable(CarbonMultiSelect, DsMultiSelect);
|
|
55
|
+
export const FilterableMultiSelect = switchable(CarbonFilterableMultiSelect, DsFilterableMultiSelect);
|
|
56
|
+
export const ProgressBar = switchable(CarbonProgressBar, DsProgressBar);
|
|
57
|
+
export const Search = switchable(CarbonSearch, DsSearch);
|
|
58
|
+
export const SkeletonText = switchable(CarbonSkeletonText, DsSkeletonText);
|
|
59
|
+
export const SkeletonPlaceholder = switchable(CarbonSkeletonPlaceholder, DsSkeletonPlaceholder);
|
|
60
|
+
export const BreadcrumbSkeleton = switchable(CarbonBreadcrumbSkeleton, DsBreadcrumbSkeleton);
|
|
61
|
+
export const TabsSkeleton = switchable(CarbonTabsSkeleton, DsTabsSkeleton);
|
|
62
|
+
export const OverflowMenu = switchable(CarbonOverflowMenu, DsOverflowMenu);
|
|
63
|
+
// ds drops OverflowMenuItem `id` (carbon-compat maps to DropdownMenuItem which
|
|
64
|
+
// has no id slot) — a test/a11y-hook delta, not a functional break.
|
|
65
|
+
export const OverflowMenuItem = switchable(CarbonOverflowMenuItem, DsOverflowMenuItem);
|
|
66
|
+
export const Stack = switchable(CarbonStack, DsStack);
|
|
67
|
+
export const Tag = switchable(CarbonTag, DsTag);
|
|
68
|
+
export const TextArea = switchable(CarbonTextArea, DsTextArea);
|
|
69
|
+
export const TextInput = switchable(CarbonTextInput, DsTextInput);
|
|
70
|
+
export const Tile = switchable(CarbonTile, DsTile);
|
|
71
|
+
export const Toggle = switchable(CarbonToggle, DsToggle);
|
|
72
|
+
// Carbon Tooltip is generic over its trigger element; erase for the switch then
|
|
73
|
+
// restore the Carbon type so call sites keep props like `align`/`autoAlign`.
|
|
74
|
+
// Carbon mode uses them for positioning; the carbon-compat adapter has no
|
|
75
|
+
// shadcn equivalent and `console.warn`s once per render for each (no dedup), so
|
|
76
|
+
// in ds mode we drop them up front — same render result, no console spam.
|
|
77
|
+
const TOOLTIP_CARBON_ONLY_PROPS = [
|
|
78
|
+
'align',
|
|
79
|
+
'autoAlign',
|
|
80
|
+
'leaveDelayMs',
|
|
81
|
+
'dropShadow',
|
|
82
|
+
'caret',
|
|
83
|
+
];
|
|
84
|
+
function C4Tooltip(props) {
|
|
85
|
+
const designSystem = useC4DesignSystem();
|
|
86
|
+
if (designSystem !== 'ds') {
|
|
87
|
+
return createElement(CarbonTooltip, props);
|
|
88
|
+
}
|
|
89
|
+
const dsProps = { ...props };
|
|
90
|
+
for (const key of TOOLTIP_CARBON_ONLY_PROPS) {
|
|
91
|
+
delete dsProps[key];
|
|
92
|
+
}
|
|
93
|
+
return createElement(DsTooltip, dsProps);
|
|
94
|
+
}
|
|
95
|
+
export const Tooltip = C4Tooltip;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Wraps a Carbon component and its Camunda Design System (carbon-compat)
|
|
4
|
+
* counterpart into one component that renders whichever the consumer selected
|
|
5
|
+
* via the `designSystem` runtime flag (default 'carbon').
|
|
6
|
+
*
|
|
7
|
+
* Callers keep the Carbon prop type, so behaviour in Carbon mode is unchanged
|
|
8
|
+
* and no JSX edits are needed when routing a component through this layer.
|
|
9
|
+
* carbon-compat is Carbon-API-shaped; where its adapter accepts a narrower set
|
|
10
|
+
* of props, the unsupported ones are simply ignored in 'ds' mode (a visual
|
|
11
|
+
* delta, never a type error at the call site). Only route symbols where that
|
|
12
|
+
* degradation is safe — keep ref-dependent or prop-gap symbols on Carbon.
|
|
13
|
+
*/
|
|
14
|
+
export declare function switchable<P extends object>(Carbon: ComponentType<P>, Ds: ComponentType<P> | ComponentType<Record<string, unknown>>): ComponentType<P>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
import { createElement } from 'react';
|
|
7
|
+
import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
|
|
8
|
+
/**
|
|
9
|
+
* Wraps a Carbon component and its Camunda Design System (carbon-compat)
|
|
10
|
+
* counterpart into one component that renders whichever the consumer selected
|
|
11
|
+
* via the `designSystem` runtime flag (default 'carbon').
|
|
12
|
+
*
|
|
13
|
+
* Callers keep the Carbon prop type, so behaviour in Carbon mode is unchanged
|
|
14
|
+
* and no JSX edits are needed when routing a component through this layer.
|
|
15
|
+
* carbon-compat is Carbon-API-shaped; where its adapter accepts a narrower set
|
|
16
|
+
* of props, the unsupported ones are simply ignored in 'ds' mode (a visual
|
|
17
|
+
* delta, never a type error at the call site). Only route symbols where that
|
|
18
|
+
* degradation is safe — keep ref-dependent or prop-gap symbols on Carbon.
|
|
19
|
+
*/
|
|
20
|
+
export function switchable(Carbon, Ds) {
|
|
21
|
+
function Switchable(props) {
|
|
22
|
+
const designSystem = useC4DesignSystem();
|
|
23
|
+
return createElement((designSystem === 'ds' ? Ds : Carbon), props);
|
|
24
|
+
}
|
|
25
|
+
Switchable.displayName = `Switchable(${Carbon.displayName ?? Carbon.name ?? 'Component'})`;
|
|
26
|
+
return Switchable;
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Tab as CarbonTab, TabList as CarbonTabList, TabPanel as CarbonTabPanel, TabPanels as CarbonTabPanels, Tabs as CarbonTabs, TabsSkeleton as CarbonTabsSkeleton } from '@carbon/react';
|
|
2
|
+
/**
|
|
3
|
+
* Tabs is a compound family: the parent (`Tabs`/`TabList`) coordinates its
|
|
4
|
+
* children by identity/context, so it cannot be switched symbol-by-symbol like
|
|
5
|
+
* a leaf (mixing Carbon parent + DS child, or vice versa, breaks selection).
|
|
6
|
+
*
|
|
7
|
+
* Instead this hook returns the *whole* family from a single library, chosen by
|
|
8
|
+
* the consumer's `designSystem` flag. Callers destructure it inside their
|
|
9
|
+
* component and render the same JSX — every member is cohesive within a render,
|
|
10
|
+
* so selection works in both modes. Carbon prop types are exposed so call sites
|
|
11
|
+
* stay unchanged; carbon-compat is Carbon-API-shaped.
|
|
12
|
+
*/
|
|
13
|
+
export interface TabsFamily {
|
|
14
|
+
Tabs: typeof CarbonTabs;
|
|
15
|
+
Tab: typeof CarbonTab;
|
|
16
|
+
TabList: typeof CarbonTabList;
|
|
17
|
+
TabPanel: typeof CarbonTabPanel;
|
|
18
|
+
TabPanels: typeof CarbonTabPanels;
|
|
19
|
+
TabsSkeleton: typeof CarbonTabsSkeleton;
|
|
20
|
+
}
|
|
21
|
+
export declare function useTabsFamily(): TabsFamily;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
import { Tab as DsTab, TabList as DsTabList, TabPanel as DsTabPanel, TabPanels as DsTabPanels, Tabs as DsTabs, TabsSkeleton as DsTabsSkeleton, } from '@camunda/design-system/carbon-compat';
|
|
7
|
+
import { Tab as CarbonTab, TabList as CarbonTabList, TabPanel as CarbonTabPanel, TabPanels as CarbonTabPanels, Tabs as CarbonTabs, TabsSkeleton as CarbonTabsSkeleton, } from '@carbon/react';
|
|
8
|
+
import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
|
|
9
|
+
const carbonFamily = {
|
|
10
|
+
Tabs: CarbonTabs,
|
|
11
|
+
Tab: CarbonTab,
|
|
12
|
+
TabList: CarbonTabList,
|
|
13
|
+
TabPanel: CarbonTabPanel,
|
|
14
|
+
TabPanels: CarbonTabPanels,
|
|
15
|
+
TabsSkeleton: CarbonTabsSkeleton,
|
|
16
|
+
};
|
|
17
|
+
const dsFamily = {
|
|
18
|
+
Tabs: DsTabs,
|
|
19
|
+
Tab: DsTab,
|
|
20
|
+
TabList: DsTabList,
|
|
21
|
+
TabPanel: DsTabPanel,
|
|
22
|
+
TabPanels: DsTabPanels,
|
|
23
|
+
TabsSkeleton: DsTabsSkeleton,
|
|
24
|
+
};
|
|
25
|
+
export function useTabsFamily() {
|
|
26
|
+
return useC4DesignSystem() === 'ds' ? dsFamily : carbonFamily;
|
|
27
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleClusterClientsService, ConsoleClusterService, } from '@camunda/ccma-api';
|
|
3
3
|
import { checkVersion, VersionCheckOperator } from '@camunda/ccma-shared-types';
|
|
4
|
-
import { BreadcrumbSkeleton, CodeSnippet, InlineNotification, Modal, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, TextInput, } from '@carbon/react';
|
|
5
4
|
import { observer } from 'mobx-react-lite';
|
|
6
5
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
6
|
+
import { C4InlineNotification } from '../../components/c4-inline-notification/c4-inline-notification.js';
|
|
7
7
|
import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
|
|
8
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../../components/c4-structured-list/c4-structured-list.js';
|
|
8
9
|
import { getC4ClusterClientDetailsDocsUrl } from '../../externalUrls.const.js';
|
|
9
10
|
import { useC4ConsoleAuthz } from '../../runtime/c4-console-authz.js';
|
|
10
11
|
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
11
12
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
13
|
+
import { BreadcrumbSkeleton, CodeSnippet, Modal, Stack, TextInput, } from '../../ui/index.js';
|
|
12
14
|
function safeTranslate(t, key, fallback) {
|
|
13
15
|
if (!t)
|
|
14
16
|
return fallback;
|
|
@@ -505,15 +507,15 @@ export const C4ClusterClientDetailsApp = observer((props) => {
|
|
|
505
507
|
}),
|
|
506
508
|
},
|
|
507
509
|
],
|
|
508
|
-
}, children: _jsxs(Stack, { gap: 4, children: [(clusterError || clientsError) && (_jsx(
|
|
510
|
+
}, children: _jsxs(Stack, { gap: 4, children: [(clusterError || clientsError) && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:clients.details.error.title', 'Something went wrong'), subtitle: clusterError || clientsError })), _jsxs(Stack, { gap: 6, children: [_jsxs(Stack, { gap: 3, children: [_jsx("h4", { children: safeTranslate(t, 'clusterdetails:clients.details.general', 'General') }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: generalRows.map((row) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: structuredListLabelStyle, children: _jsx("strong", { children: row.label }) }), _jsx(C4StructuredListCell, { children: row.copy ? (_jsx(CodeSnippet, { type: 'inline', children: row.value })) : (row.value) })] }, row.id))) }) })] }), _jsxs(Stack, { gap: 3, children: [_jsx("h4", { children: safeTranslate(t, 'clusterdetails:clients.details.connectionInformation', 'Connection information') }), _jsx("p", { children: _jsx("a", { href: docsUrl, target: '_blank', rel: 'noreferrer', onClick: (e) => {
|
|
509
511
|
// Keep the existing UX but allow hosts to intercept.
|
|
510
512
|
e.preventDefault();
|
|
511
513
|
props.onNavigate?.({ kind: 'openUrl', url: docsUrl });
|
|
512
|
-
}, children: safeTranslate(t, 'clusterdetails:clients.details.connectionInformationDocs.link', 'Learn more in the documentation') }) }), _jsx(
|
|
514
|
+
}, children: safeTranslate(t, 'clusterdetails:clients.details.connectionInformationDocs.link', 'Learn more in the documentation') }) }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: connectionRows.map((row) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, style: structuredListLabelStyle, children: _jsx("strong", { children: row.label }) }), _jsx(C4StructuredListCell, { children: row.copy ? (_jsx(CodeSnippet, { type: 'single', children: row.value })) : (row.value) })] }, row.id))) }) })] })] })] }) }), renameOpen && (_jsx(Modal, { open: true, size: 'sm', modalHeading: safeTranslate(t, 'clusterclients:update.heading', 'Rename client'), primaryButtonText: safeTranslate(t, 'clusterclients:update.buttons.primary', 'Rename'), secondaryButtonText: safeTranslate(t, 'clusterclients:update.buttons.secondary', 'Cancel'), onRequestClose: () => mutationBusy ? undefined : setRenameOpen(false), onRequestSubmit: () => {
|
|
513
515
|
void onSubmitRename();
|
|
514
|
-
}, primaryButtonDisabled: !canSubmitRename, children: _jsxs(Stack, { gap: 5, children: [mutationError && (_jsx(
|
|
516
|
+
}, primaryButtonDisabled: !canSubmitRename, children: _jsxs(Stack, { gap: 5, children: [mutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'common:error', 'Error'), subtitle: mutationError })), _jsx(TextInput, { id: 'clusterClientName-update', "data-modal-primary-focus": true, labelText: safeTranslate(t, 'clusterclients:update.fields.name.label', 'Name'), maxLength: 50, value: clientName, placeholder: safeTranslate(t, 'clusterclients:update.fields.name.label', 'Name'), helperText: safeTranslate(t, 'clusterclients:update.fields.name.helperText', 'can contain letters, dashes, underscores, and digits'), invalid: Boolean(clientNameValidationMessage), invalidText: clientNameValidationMessage ?? '', onChange: (event) => {
|
|
515
517
|
setClientName(event.target.value);
|
|
516
518
|
}, onBlur: () => setClientNameTouched(true) })] }) })), deleteOpen && (_jsx(Modal, { open: true, size: 'sm', danger: true, modalHeading: safeTranslate(t, 'clusterclients:delete.heading', 'Delete client'), primaryButtonText: safeTranslate(t, 'clusterclients:delete.buttons.primary', 'Delete'), secondaryButtonText: safeTranslate(t, 'clusterclients:delete.buttons.secondary', 'Cancel'), onRequestClose: () => mutationBusy ? undefined : setDeleteOpen(false), onRequestSubmit: () => {
|
|
517
519
|
void onSubmitDelete();
|
|
518
|
-
}, primaryButtonDisabled: mutationBusy, children: _jsxs(Stack, { gap: 5, children: [mutationError && (_jsx(
|
|
520
|
+
}, primaryButtonDisabled: mutationBusy, children: _jsxs(Stack, { gap: 5, children: [mutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'common:error', 'Error'), subtitle: mutationError })), _jsx("p", { children: safeTranslate(t, 'clusterclients:delete.description', 'Deleting this client will revoke access for any integrations using these credentials.') })] }) }))] }));
|
|
519
521
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type JSX } from 'react';
|
|
2
2
|
import type { C4ClusterDetailsAppProps } from './c4-cluster-details-app.types';
|
|
3
|
+
export declare function mergeNestedSnapshot<T>(previous: T | undefined, next: T): T;
|
|
3
4
|
export declare const C4ClusterDetailsApp: ((props: C4ClusterDetailsAppProps) => JSX.Element) & {
|
|
4
5
|
displayName: string;
|
|
5
6
|
};
|
|
@@ -6,7 +6,6 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
6
6
|
*/
|
|
7
7
|
import { AuditLoggerService, ConsoleAlertsService, ConsoleByomMonitoringService, ConsoleClusterClientsService, ConsoleClusterParametersService, ConsoleClusterService, HdpService, SaaSJobsService, } from '@camunda/ccma-api';
|
|
8
8
|
import { checkVersion, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
9
|
-
import { Modal, Stack, TextInput } from '@carbon/react';
|
|
10
9
|
import { observer } from 'mobx-react-lite';
|
|
11
10
|
import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
12
11
|
import { getC4ClusterDetailsUrls } from '../../externalUrls.const.js';
|
|
@@ -14,7 +13,9 @@ import { useC4ConsoleAuthz } from '../../runtime/c4-console-authz.js';
|
|
|
14
13
|
import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
|
|
15
14
|
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
16
15
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
16
|
+
import { Modal, Stack, TextInput } from '../../ui/index.js';
|
|
17
17
|
import { C4ClusterDetailsPage } from './c4-cluster-details-page.js';
|
|
18
|
+
import { clusterDetailsTab } from './cluster-details-tabs.js';
|
|
18
19
|
import { C4ClusterDetailsActivityTab } from './tabs/c4-cluster-details-activity-tab.js';
|
|
19
20
|
import { C4ClusterDetailsAlertsTab } from './tabs/c4-cluster-details-alerts-tab.js';
|
|
20
21
|
import { C4ClusterDetailsAuditLogTab } from './tabs/c4-cluster-details-audit-log-tab.js';
|
|
@@ -99,12 +100,22 @@ function isAuditLogCategory(value) {
|
|
|
99
100
|
function isRecord(value) {
|
|
100
101
|
return typeof value === 'object' && value !== null;
|
|
101
102
|
}
|
|
102
|
-
function mergeNestedSnapshot(previous, next) {
|
|
103
|
+
export function mergeNestedSnapshot(previous, next) {
|
|
103
104
|
if (!isRecord(previous) || !isRecord(next)) {
|
|
104
105
|
return next;
|
|
105
106
|
}
|
|
106
107
|
const merged = { ...previous };
|
|
107
108
|
for (const [key, nextValue] of Object.entries(next)) {
|
|
109
|
+
// externalMetadata is a single JSON column with no per-field permission
|
|
110
|
+
// gating (unlike e.g. generation/plan, which can be legitimately absent
|
|
111
|
+
// from a lean SSE payload) — whenever it's present in a snapshot it's the
|
|
112
|
+
// complete, authoritative value. Deep-merging it would resurrect stale
|
|
113
|
+
// sub-fields (e.g. optimizeFiltering) whose cleared value got dropped by
|
|
114
|
+
// JSON.stringify, so take it wholesale instead.
|
|
115
|
+
if (key === 'externalMetadata') {
|
|
116
|
+
merged[key] = nextValue;
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
108
119
|
const previousValue = previous[key];
|
|
109
120
|
if (nextValue === undefined) {
|
|
110
121
|
merged[key] = previousValue;
|
|
@@ -715,7 +726,12 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
715
726
|
]);
|
|
716
727
|
// Get members from cache after fetch completes
|
|
717
728
|
const members = data.getMembers(props.orgId) ?? [];
|
|
718
|
-
|
|
729
|
+
// Defend against a non-array audit response (e.g. an undefined body or
|
|
730
|
+
// an unmocked service in tests): `groupAuditsByDate` iterates `audits`,
|
|
731
|
+
// so a non-iterable here throws "audits is not iterable" inside this
|
|
732
|
+
// async callback. When the component has already unmounted (tests), that
|
|
733
|
+
// rejection surfaces as an unhandled error and fails the run.
|
|
734
|
+
const grouped = groupAuditsByDate(Array.isArray(audits) ? audits : []);
|
|
719
735
|
// Map audits to activity items with fresh members and clients data
|
|
720
736
|
const mapAudits = (auditList) => auditList.map((audit) => auditToActivityItem(audit, members, clients));
|
|
721
737
|
setActivityGroups([
|
|
@@ -1026,8 +1042,10 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
1026
1042
|
identityAuthorization: urls.docs.identityAuthorization,
|
|
1027
1043
|
swagger: urls.docs.swagger,
|
|
1028
1044
|
mcpOverview: urls.docs.mcpOverview,
|
|
1045
|
+
msTeamsIntegration: urls.docs.msTeamsIntegration,
|
|
1029
1046
|
tasklistApiVersions: urls.docs.tasklistApiVersions,
|
|
1030
1047
|
multiTenancy: urls.docs.multiTenancy,
|
|
1048
|
+
byoidp: urls.docs.byoidp,
|
|
1031
1049
|
} }));
|
|
1032
1050
|
}, [
|
|
1033
1051
|
cluster,
|
|
@@ -1141,16 +1159,22 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
1141
1159
|
encryptionManual: urls.docs.encryptionManual,
|
|
1142
1160
|
} }));
|
|
1143
1161
|
const tabs = useMemo(() => {
|
|
1162
|
+
// Labels come from the shared cluster-details tab catalog (single source
|
|
1163
|
+
// of the ids / i18n keys / order, also consumed by the docs screenshots).
|
|
1164
|
+
const tabLabel = (id) => {
|
|
1165
|
+
const { titleKey, titleFallback } = clusterDetailsTab(id);
|
|
1166
|
+
return safeTranslate(t, titleKey, titleFallback);
|
|
1167
|
+
};
|
|
1144
1168
|
const base = [
|
|
1145
1169
|
{
|
|
1146
1170
|
id: 'overview',
|
|
1147
|
-
label:
|
|
1171
|
+
label: tabLabel('overview'),
|
|
1148
1172
|
component: overviewComponent,
|
|
1149
1173
|
init: () => { },
|
|
1150
1174
|
},
|
|
1151
1175
|
{
|
|
1152
1176
|
id: 'api',
|
|
1153
|
-
label:
|
|
1177
|
+
label: tabLabel('api'),
|
|
1154
1178
|
component: clientsComponent,
|
|
1155
1179
|
visible: canViewApiClientsTab,
|
|
1156
1180
|
init: () => { },
|
|
@@ -1159,35 +1183,35 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
1159
1183
|
id: 'secrets',
|
|
1160
1184
|
label: useClusterSecretsLabel
|
|
1161
1185
|
? safeTranslate(t, 'clusterdetails:clusterSecrets.title', 'Cluster secrets')
|
|
1162
|
-
:
|
|
1186
|
+
: tabLabel('secrets'),
|
|
1163
1187
|
component: connectorSecretsComponent,
|
|
1164
1188
|
visible: canViewConnectorSecretsTab,
|
|
1165
1189
|
init: () => { },
|
|
1166
1190
|
},
|
|
1167
1191
|
{
|
|
1168
1192
|
id: 'alerts',
|
|
1169
|
-
label:
|
|
1193
|
+
label: tabLabel('alerts'),
|
|
1170
1194
|
component: alertsComponent,
|
|
1171
1195
|
visible: canViewAlertsTab,
|
|
1172
1196
|
init: () => { },
|
|
1173
1197
|
},
|
|
1174
1198
|
{
|
|
1175
1199
|
id: 'activity',
|
|
1176
|
-
label:
|
|
1200
|
+
label: tabLabel('activity'),
|
|
1177
1201
|
component: activityComponent,
|
|
1178
1202
|
visible: canViewActivityTab,
|
|
1179
1203
|
init: () => { },
|
|
1180
1204
|
},
|
|
1181
1205
|
{
|
|
1182
1206
|
id: 'monitoring',
|
|
1183
|
-
label:
|
|
1207
|
+
label: tabLabel('monitoring'),
|
|
1184
1208
|
component: byomComponent,
|
|
1185
1209
|
visible: canViewMonitoringTab,
|
|
1186
1210
|
init: () => { },
|
|
1187
1211
|
},
|
|
1188
1212
|
{
|
|
1189
1213
|
id: 'ipWhitelist',
|
|
1190
|
-
label:
|
|
1214
|
+
label: tabLabel('ipWhitelist'),
|
|
1191
1215
|
component: ipWhitelistComponent,
|
|
1192
1216
|
visible: canViewIpWhitelistTab &&
|
|
1193
1217
|
Boolean(orgInfo?.organizationToSalesPlan?.limits?.ipWhiteList),
|
|
@@ -1195,7 +1219,7 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
1195
1219
|
},
|
|
1196
1220
|
{
|
|
1197
1221
|
id: 'privateNetworking',
|
|
1198
|
-
label:
|
|
1222
|
+
label: tabLabel('privateNetworking'),
|
|
1199
1223
|
component: secureConnectivityComponent,
|
|
1200
1224
|
visible: isSecureConnectivityTabVisible &&
|
|
1201
1225
|
canViewSecureConnectivityTab &&
|
|
@@ -1204,14 +1228,14 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
1204
1228
|
},
|
|
1205
1229
|
{
|
|
1206
1230
|
id: 'backups',
|
|
1207
|
-
label:
|
|
1231
|
+
label: tabLabel('backups'),
|
|
1208
1232
|
component: hotBackupsComponent,
|
|
1209
1233
|
visible: Boolean(orgInfo?.organizationToSalesPlan?.limits?.hotBackup),
|
|
1210
1234
|
init: () => { },
|
|
1211
1235
|
},
|
|
1212
1236
|
{
|
|
1213
1237
|
id: 'auditLog',
|
|
1214
|
-
label:
|
|
1238
|
+
label: tabLabel('auditLog'),
|
|
1215
1239
|
component: auditLogComponent,
|
|
1216
1240
|
visible: Boolean(cluster?.generation?.versions?.zeebe &&
|
|
1217
1241
|
checkVersion({
|
|
@@ -1225,14 +1249,14 @@ export const C4ClusterDetailsApp = observer((props) => {
|
|
|
1225
1249
|
},
|
|
1226
1250
|
{
|
|
1227
1251
|
id: 'settings',
|
|
1228
|
-
label:
|
|
1252
|
+
label: tabLabel('settings'),
|
|
1229
1253
|
component: settingsComponent,
|
|
1230
1254
|
visible: true,
|
|
1231
1255
|
init: () => { },
|
|
1232
1256
|
},
|
|
1233
1257
|
{
|
|
1234
1258
|
id: 'encryption',
|
|
1235
|
-
label:
|
|
1259
|
+
label: tabLabel('encryption'),
|
|
1236
1260
|
component: encryptionComponent,
|
|
1237
1261
|
visible: cluster?.encryption === 'External',
|
|
1238
1262
|
init: () => { },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
+
* You may not use this file except in compliance with the commercial license.
|
|
5
|
+
*/
|
|
6
|
+
import { describe, expect, it } from 'vitest';
|
|
7
|
+
import { mergeNestedSnapshot } from './c4-cluster-details-app.js';
|
|
8
|
+
describe('mergeNestedSnapshot', () => {
|
|
9
|
+
it('clears externalMetadata.optimizeFiltering instead of preserving the stale value', () => {
|
|
10
|
+
const previous = {
|
|
11
|
+
uuid: 'cluster-1',
|
|
12
|
+
externalMetadata: {
|
|
13
|
+
optimizeFiltering: {
|
|
14
|
+
processDefinition: { inclusion: ['order-process'] },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
// Disabling drops the `optimizeFiltering` key entirely from the JSON
|
|
19
|
+
// wire payload (the backend persists/serializes it as `undefined`, which
|
|
20
|
+
// JSON.stringify omits) rather than sending an explicit `null`.
|
|
21
|
+
const next = JSON.parse(JSON.stringify({
|
|
22
|
+
uuid: 'cluster-1',
|
|
23
|
+
externalMetadata: { optimizeFiltering: undefined },
|
|
24
|
+
}));
|
|
25
|
+
const merged = mergeNestedSnapshot(previous, next);
|
|
26
|
+
expect(merged.externalMetadata
|
|
27
|
+
.optimizeFiltering).toBeUndefined();
|
|
28
|
+
});
|
|
29
|
+
it('still preserves other nested fields omitted from a lean SSE payload', () => {
|
|
30
|
+
const previous = {
|
|
31
|
+
uuid: 'cluster-1',
|
|
32
|
+
planType: {
|
|
33
|
+
uuid: 'plan-1',
|
|
34
|
+
name: 'Advanced',
|
|
35
|
+
category: 'ADVANCED_OFFERING',
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const next = {
|
|
39
|
+
uuid: 'cluster-1',
|
|
40
|
+
planType: { uuid: 'plan-1', name: 'Advanced' },
|
|
41
|
+
};
|
|
42
|
+
const merged = mergeNestedSnapshot(previous, next);
|
|
43
|
+
expect(merged.planType).toEqual({
|
|
44
|
+
uuid: 'plan-1',
|
|
45
|
+
name: 'Advanced',
|
|
46
|
+
category: 'ADVANCED_OFFERING',
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
});
|