@camunda/ccma-saas-frontend 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -1
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.d.ts +3 -3
- package/lib/esm/components/c4-activity-graph/c4-activity-graph.js +90 -73
- package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FieldRow.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/FiltersSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/OrSection.d.ts +2 -2
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +13 -13
- package/lib/esm/components/c4-advanced-search-filters/state.types.d.ts +1 -1
- package/lib/esm/components/c4-advanced-search-filters/utils.d.ts +1 -1
- package/lib/esm/components/c4-ai-usage/c4-ai-usage.d.ts +1 -1
- package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.d.ts +1 -1
- package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.types.d.ts +1 -1
- package/lib/esm/components/c4-async-modal/c4-async-modal.d.ts +1 -1
- package/lib/esm/components/c4-audit-log/c4-audit-log.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-billing-page/c4-billing-page.types.d.ts +4 -4
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.d.ts +4 -3
- package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +13 -2
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.d.ts +1 -1
- package/lib/esm/components/c4-bottom-links/c4-bottom-links.types.d.ts +1 -1
- package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.d.ts +2 -2
- package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +31 -25
- package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.d.ts +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.d.ts +1 -1
- package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.d.ts +1 -1
- package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +11 -8
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +21 -20
- package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +22 -2
- package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.d.ts +2 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +4 -2
- package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.types.d.ts +2 -0
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.d.ts +1 -1
- package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +10 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +5 -2
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/applications.js +7 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.d.ts +1 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +3 -3
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +8 -8
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.types.d.ts +5 -5
- package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +11 -11
- package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-settings.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.d.ts +1 -1
- package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +7 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.d.ts +1 -1
- package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +26 -5
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +1 -1
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +1 -0
- package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.types.d.ts +1 -0
- package/lib/esm/components/c4-console-dashboard/elements/empty-state.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-convert-trial-organization-modal/c4-convert-trial-organization-modal.types.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +16 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +5 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +1 -1
- package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +1 -1
- package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.d.ts +1 -1
- package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.types.d.ts +1 -1
- package/lib/esm/components/c4-data-table/c4-data-table.js +58 -4
- package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-divider/c4-divider.d.ts +1 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +1 -1
- package/lib/esm/components/c4-external-link/c4-external-link.d.ts +1 -1
- package/lib/esm/components/c4-help-center/c4-help-center.d.ts +1 -1
- package/lib/esm/components/c4-info-tooltip/c4-info-tooltip.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +2 -47
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.d.ts +3 -3
- package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.types.d.ts +2 -2
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.types.d.ts +4 -4
- package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.d.ts +1 -1
- package/lib/esm/components/c4-job-dashboard-shared/c4-stories-data-generator.d.ts +2 -2
- package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-link-button/c4-link-button.d.ts +1 -1
- package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.d.ts +1 -1
- package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +2 -2
- package/lib/esm/components/c4-management-activity/c4-management-activity.js +9 -4
- package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.d.ts +1 -1
- package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +1 -1
- package/lib/esm/components/c4-management-overview/c4-management-overview.d.ts +1 -1
- package/lib/esm/components/c4-management-settings/c4-management-settings.d.ts +2 -2
- package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -5
- package/lib/esm/components/c4-management-users/c4-management-users.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.d.ts +1 -1
- package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.d.ts +1 -1
- package/lib/esm/components/c4-navigation/c4-navigation.d.ts +2 -2
- package/lib/esm/components/c4-number-input/c4-number-input.d.ts +1 -1
- package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-optimize-activation-modal/c4-optimize-activation-modal.d.ts +1 -1
- package/lib/esm/components/c4-page-template/c4-page-template.d.ts +9 -4
- package/lib/esm/components/c4-page-template/c4-page-template.js +1 -1
- package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.d.ts +1 -1
- package/lib/esm/components/c4-pricing/c4-pricing.types.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.d.ts +1 -1
- package/lib/esm/components/c4-pricing-card/c4-pricing-card.utils.d.ts +1 -1
- package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search-results.types.d.ts +1 -1
- package/lib/esm/components/c4-search/c4-search.d.ts +2 -2
- package/lib/esm/components/c4-search/c4-search.types.d.ts +1 -1
- package/lib/esm/components/c4-search/search.utils.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/automation-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.types.d.ts +3 -3
- package/lib/esm/components/c4-sm-cluster-details/custom-properties.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/details.d.ts +1 -1
- package/lib/esm/components/c4-sm-cluster-details/zeebe-components.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +2 -2
- package/lib/esm/components/c4-sm-dashboard/cluster-tile.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/explore.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/health-status.d.ts +1 -1
- package/lib/esm/components/c4-sm-dashboard/overview.d.ts +1 -1
- package/lib/esm/components/c4-stat/c4-stat.d.ts +1 -1
- package/lib/esm/components/c4-stateful-button/c4-stateful-button.d.ts +1 -1
- package/lib/esm/components/c4-tabs/c4-tabs.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.types.d.ts +1 -1
- package/lib/esm/components/c4-telemetry-page/telemetry-for-component.d.ts +2 -2
- package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.d.ts +1 -1
- package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.d.ts +1 -1
- package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.d.ts +1 -1
- package/lib/esm/components/c4-toggle/c4-toggle.d.ts +1 -1
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.d.ts +8 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.js +18 -0
- package/lib/esm/components/c4-tsuga-links/c4-tsuga-links.types.d.ts +15 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.d.ts +5 -0
- package/lib/esm/components/c4-tsuga-links/tsuga-logs-url.js +36 -0
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.d.ts +1 -1
- package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.utils.d.ts +1 -1
- package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/c4-usage-history.d.ts +2 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -2
- package/lib/esm/components/c4-usage-history/c4-usage-history.types.d.ts +1 -1
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.d.ts +2 -2
- package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +6 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.d.ts +2 -2
- package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +14 -8
- package/lib/esm/components/c4-user-details/c4-user-details.d.ts +1 -1
- package/lib/esm/components/c4-user-details/c4-user-details.types.d.ts +3 -3
- package/lib/esm/components/shared-charts/recharts-tokens.d.ts +14 -2
- package/lib/esm/components/shared-charts/recharts-tokens.js +22 -1
- package/lib/esm/externalUrls.const.d.ts +6 -6
- package/lib/esm/i18n/en/entities/orgroles.json +2 -0
- package/lib/esm/i18n/en/modals/users.json +0 -1
- package/lib/esm/i18n/en/pages/clusterdetails.json +14 -3
- package/lib/esm/i18n/en/pages/dashboard.json +1 -0
- package/lib/esm/i18n/en/pages/orgmanagement.json +8 -0
- package/lib/esm/icons/c4-icons.d.ts +1 -1
- package/lib/esm/index.d.ts +237 -253
- package/lib/esm/index.js +6 -11
- package/lib/esm/modals/c4-create-cluster-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-connector-secret-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-create-console-api-client-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-invite-user-to-organization-modal-handle.d.ts +1 -1
- package/lib/esm/modals/c4-rename-organization-modal-handle.d.ts +1 -1
- package/lib/esm/notifications/c4-console-notifications-handle.d.ts +1 -1
- package/lib/esm/runtime/build-cluster-swagger-url.d.ts +1 -1
- package/lib/esm/runtime/c4-console-data-context.d.ts +19 -7
- package/lib/esm/runtime/c4-console-data-context.js +40 -15
- package/lib/esm/runtime/c4-console-data-context.types.d.ts +6 -0
- package/lib/esm/runtime/c4-console-data-store.d.ts +12 -1
- package/lib/esm/runtime/c4-console-data-store.js +74 -34
- package/lib/esm/runtime/c4-console-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/c4-console-runtime-context.d.ts +1 -1
- package/lib/esm/runtime/c4-user-notifications-context.d.ts +1 -1
- package/lib/esm/runtime/index.d.ts +40 -0
- package/lib/esm/runtime/index.js +18 -0
- package/lib/esm/runtime/nav/use-webapp-nav-data.js +11 -3
- package/lib/esm/runtime/to-api-config.d.ts +2 -2
- package/lib/esm/runtime/to-api-config.js +6 -0
- package/lib/esm/runtime/to-api-domain.d.ts +1 -1
- package/lib/esm/runtime/to-identity-api-base-url.d.ts +1 -1
- package/lib/esm/ui/c4-modal-dialog.js +16 -3
- package/lib/esm/ui/index.d.ts +2 -2
- package/lib/esm/ui/index.js +28 -2
- package/lib/esm/utils/role-labels.d.ts +20 -0
- package/lib/esm/utils/role-labels.js +79 -0
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.types.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +55 -2
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +8 -0
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.types.d.ts +4 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-audit-log-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.d.ts +5 -0
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +4 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +6 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +31 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.d.ts +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +23 -8
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.d.ts +3 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +5 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +115 -45
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.d.ts +36 -0
- package/lib/esm/widgets/cluster-details/tabs/use-restart-confirm.js +58 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +2 -2
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
- package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +12 -3
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.d.ts +1 -1
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +25 -6
- package/lib/esm/widgets/group-details/c4-group-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.d.ts +1 -1
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.d.ts +2 -2
- package/lib/esm/widgets/management/c4-management-app.js +142 -22
- package/lib/esm/widgets/management/c4-management-app.types.d.ts +16 -1
- package/lib/esm/widgets/management/c4-management-page.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-page.types.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-activity-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-api-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.d.ts +3 -0
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +19 -3
- package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-settings-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.d.ts +4 -8
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +63 -87
- package/lib/esm/widgets/user-details/c4-user-details-page.d.ts +1 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.js +29 -82
- package/package.json +50 -30
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +0 -1
- package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +0 -43
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.d.ts +0 -1
- package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +0 -67
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.spec.js +0 -132
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.waiting.spec.js +0 -87
- package/lib/esm/components/c4-cluster-overview/applications.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/applications.spec.js +0 -58
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.d.ts +0 -1
- package/lib/esm/components/c4-cluster-overview/cluster-load.formatNumber.test.js +0 -38
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +0 -93
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +0 -50
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/multi-tenancy.spec.js +0 -42
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +0 -1
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +0 -120
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +0 -1
- package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +0 -40
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +0 -83
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.d.ts +0 -1
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.spec.js +0 -350
- package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.spec.js +0 -71
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +0 -1
- package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +0 -151
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +0 -1
- package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +0 -33
- package/lib/esm/components/c4-page-template/c4-page-template.spec.d.ts +0 -1
- package/lib/esm/components/c4-page-template/c4-page-template.spec.js +0 -58
- package/lib/esm/components/c4-page-template/c4-page-template.stories.d.ts +0 -6
- package/lib/esm/components/c4-page-template/c4-page-template.stories.js +0 -73
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.d.ts +0 -3
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.js +0 -26
- package/lib/esm/components/c4-stackdriver-links/c4-stackdriver-links.types.d.ts +0 -12
- package/lib/esm/components/c4-tabs/c4-tabs.spec.d.ts +0 -1
- package/lib/esm/components/c4-tabs/c4-tabs.spec.js +0 -97
- package/lib/esm/components/c4-tabs/c4-tabs.stories.d.ts +0 -6
- package/lib/esm/components/c4-tabs/c4-tabs.stories.js +0 -35
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +0 -1
- package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +0 -47
- package/lib/esm/externalUrls.const.spec.d.ts +0 -1
- package/lib/esm/externalUrls.const.spec.js +0 -102
- package/lib/esm/runtime/c4-console-authz.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +0 -202
- package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.nav.spec.js +0 -121
- package/lib/esm/runtime/c4-console-data-store.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-console-data-store.spec.js +0 -263
- package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +0 -1
- package/lib/esm/runtime/c4-user-notifications-context.spec.js +0 -80
- package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/camunda-apps.spec.js +0 -90
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +0 -1
- package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +0 -91
- package/lib/esm/setupTests.d.ts +0 -1
- package/lib/esm/setupTests.js +0 -37
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +0 -49
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.permissions.spec.js +0 -471
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +0 -95
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +0 -33
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.spec.js +0 -72
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.spec.js +0 -85
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.mcp.spec.js +0 -105
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.spec.js +0 -226
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.spec.js +0 -179
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +0 -1255
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.spec.js +0 -397
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +0 -488
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.d.ts +0 -1
- package/lib/esm/widgets/cluster-details/tabs/url-utils.test.js +0 -34
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.d.ts +0 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +0 -502
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +0 -226
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.d.ts +0 -1
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.spec.js +0 -191
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/group-details/c4-group-details-page.spec.js +0 -35
- package/lib/esm/widgets/management/c4-management-app.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-app.spec.js +0 -509
- package/lib/esm/widgets/management/c4-management-page.spec.d.ts +0 -1
- package/lib/esm/widgets/management/c4-management-page.spec.js +0 -40
- package/lib/esm/widgets/management/management-tabs.spec.d.ts +0 -1
- package/lib/esm/widgets/management/management-tabs.spec.js +0 -28
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-billing-tab.spec.js +0 -246
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.d.ts +0 -1
- package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +0 -225
- package/lib/esm/widgets/use-extend-trial.spec.d.ts +0 -1
- package/lib/esm/widgets/use-extend-trial.spec.js +0 -79
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.d.ts +0 -1
- package/lib/esm/widgets/user-details/c4-user-details-page.spec.js +0 -65
- /package/lib/esm/components/{c4-stackdriver-links/c4-stackdriver-links.types.js → c4-tsuga-links/c4-tsuga-links.types.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -13,8 +13,28 @@
|
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "Camunda",
|
|
15
15
|
"type": "module",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"**/*.css",
|
|
18
|
+
"**/*.scss"
|
|
19
|
+
],
|
|
16
20
|
"main": "./lib/esm/index.js",
|
|
17
21
|
"types": "./lib/esm/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./lib/esm/index.d.ts",
|
|
25
|
+
"default": "./lib/esm/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./runtime": {
|
|
28
|
+
"types": "./lib/esm/runtime/index.d.ts",
|
|
29
|
+
"default": "./lib/esm/runtime/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./package.json": "./package.json",
|
|
32
|
+
"./*": [
|
|
33
|
+
"./*",
|
|
34
|
+
"./*.js",
|
|
35
|
+
"./*/index.js"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
18
38
|
"files": [
|
|
19
39
|
"/lib"
|
|
20
40
|
],
|
|
@@ -23,40 +43,41 @@
|
|
|
23
43
|
"registry": "https://registry.npmjs.org/"
|
|
24
44
|
},
|
|
25
45
|
"devDependencies": {
|
|
26
|
-
"@camunda/c4-connectors": "1.10.
|
|
27
|
-
"@playwright/test": "1.
|
|
28
|
-
"@camunda/c4-identity": "0.0.
|
|
29
|
-
"@camunda/design-system": "0.
|
|
30
|
-
"@carbon/charts": "1.27.
|
|
31
|
-
"@carbon/charts-react": "1.27.
|
|
32
|
-
"@carbon/layout": "11.
|
|
46
|
+
"@camunda/c4-connectors": "1.10.3",
|
|
47
|
+
"@playwright/test": "1.62.0",
|
|
48
|
+
"@camunda/c4-identity": "0.0.45",
|
|
49
|
+
"@camunda/design-system": "0.36.0",
|
|
50
|
+
"@carbon/charts": "1.27.17",
|
|
51
|
+
"@carbon/charts-react": "1.27.16",
|
|
52
|
+
"@carbon/layout": "11.55.0",
|
|
33
53
|
"@carbon/motion": "^11.46.0",
|
|
34
|
-
"@carbon/react": "1.
|
|
54
|
+
"@carbon/react": "1.112.0",
|
|
35
55
|
"@carbon/styles": "^1.107.0",
|
|
36
56
|
"@carbon/themes": "^11.74.0",
|
|
37
|
-
"@carbon/type": "11.
|
|
38
|
-
"recharts": "3.
|
|
57
|
+
"@carbon/type": "11.63.0",
|
|
58
|
+
"recharts": "3.10.1",
|
|
39
59
|
"@chromatic-com/storybook": "5.2.1",
|
|
40
60
|
"@mdx-js/react": "3.1.1",
|
|
41
|
-
"@storybook/addon-docs": "10.4
|
|
42
|
-
"@storybook/addon-links": "10.4
|
|
43
|
-
"@storybook/react": "10.4
|
|
44
|
-
"@storybook/react-vite": "10.4
|
|
45
|
-
"@testing-library/jest-dom": "
|
|
61
|
+
"@storybook/addon-docs": "10.5.4",
|
|
62
|
+
"@storybook/addon-links": "10.5.4",
|
|
63
|
+
"@storybook/react": "10.5.4",
|
|
64
|
+
"@storybook/react-vite": "10.5.4",
|
|
65
|
+
"@testing-library/jest-dom": "7.0.0",
|
|
46
66
|
"@testing-library/react": "16.3.2",
|
|
47
67
|
"@testing-library/user-event": "14.6.1",
|
|
48
68
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
49
69
|
"eslint-plugin-react": "7.37.5",
|
|
50
70
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
51
|
-
"eslint-plugin-storybook": "10.4
|
|
71
|
+
"eslint-plugin-storybook": "10.5.4",
|
|
52
72
|
"jsdom": "29.1.1",
|
|
53
|
-
"react": "
|
|
54
|
-
"react
|
|
55
|
-
"react-
|
|
73
|
+
"lucide-react": "1.27.0",
|
|
74
|
+
"react": "19.2.8",
|
|
75
|
+
"react-dom": "19.2.8",
|
|
76
|
+
"react-is": "19.2.8",
|
|
56
77
|
"rimraf": "6.1.3",
|
|
57
|
-
"storybook": "10.4
|
|
58
|
-
"styled-components": "6.4.
|
|
59
|
-
"@camunda/camunda-composite-components": "0.25.
|
|
78
|
+
"storybook": "10.5.4",
|
|
79
|
+
"styled-components": "6.4.4",
|
|
80
|
+
"@camunda/camunda-composite-components": "0.25.4"
|
|
60
81
|
},
|
|
61
82
|
"peerDependencies": {
|
|
62
83
|
"@camunda/c4-connectors": "1.x",
|
|
@@ -69,24 +90,23 @@
|
|
|
69
90
|
"recharts": "3.x",
|
|
70
91
|
"@carbon/react": "1.x",
|
|
71
92
|
"@carbon/themes": "11.x",
|
|
93
|
+
"lucide-react": ">=1.0.0 <2",
|
|
72
94
|
"react": "18.x || 19.x",
|
|
73
95
|
"react-dom": "18.x || 19.x",
|
|
74
96
|
"react-markdown": "^8.0.7 || ^10.0.0"
|
|
75
97
|
},
|
|
76
98
|
"dependencies": {
|
|
77
99
|
"@pactsafe/pactsafe-react-sdk": "2.15.0",
|
|
78
|
-
"cron-parser": "5.
|
|
79
|
-
"lucide-react": "1.17.0",
|
|
100
|
+
"cron-parser": "5.6.2",
|
|
80
101
|
"mobx": "6.16.1",
|
|
81
102
|
"mobx-react-lite": "4.1.1",
|
|
82
|
-
"mobx-state-tree": "7.
|
|
83
|
-
"
|
|
84
|
-
"@camunda/ccma-
|
|
85
|
-
"@camunda/ccma-shared-types": "0.4.0"
|
|
103
|
+
"mobx-state-tree": "7.3.1",
|
|
104
|
+
"@camunda/ccma-api": "0.5.0",
|
|
105
|
+
"@camunda/ccma-shared-types": "0.5.0"
|
|
86
106
|
},
|
|
87
107
|
"scripts": {
|
|
88
108
|
"clean": "rimraf lib/",
|
|
89
|
-
"build": "pnpm clean && pnpm --filter @camunda/ccma-api build && pnpm --filter @camunda/ccma-shared-types build && tsc && node copy-static-assets.mjs && node fix-esm-imports.mjs",
|
|
109
|
+
"build": "pnpm clean && pnpm --filter @camunda/ccma-api build && pnpm --filter @camunda/ccma-shared-types build && tsc --project ./tsconfig.build.json && node copy-static-assets.mjs && node fix-esm-imports.mjs",
|
|
90
110
|
"start": "storybook dev -p 6006",
|
|
91
111
|
"test": "vitest run --config ./testing-library.config.ts",
|
|
92
112
|
"test:ts": "tsc --noEmit --project ./tsconfig.json",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } 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 { render, screen } from '@testing-library/react';
|
|
8
|
-
import { C4ConsoleRuntimeProvider } from '../../runtime/c4-console-runtime-context.js';
|
|
9
|
-
import { C4AppTeaserCard } from './c4-app-teaster-card.js';
|
|
10
|
-
const PROPS = {
|
|
11
|
-
id: 'operate',
|
|
12
|
-
title: 'Operate',
|
|
13
|
-
img: { path: '/operate.png', altText: 'Operate preview' },
|
|
14
|
-
description: 'Monitor processes',
|
|
15
|
-
};
|
|
16
|
-
function renderCard(designSystem) {
|
|
17
|
-
if (!designSystem) {
|
|
18
|
-
return render(_jsx(C4AppTeaserCard, { ...PROPS }));
|
|
19
|
-
}
|
|
20
|
-
const wrapper = ({ children }) => (_jsx(C4ConsoleRuntimeProvider, { config: {
|
|
21
|
-
stage: 'dev',
|
|
22
|
-
designSystem,
|
|
23
|
-
auth: { getAccessToken: async () => '' },
|
|
24
|
-
backendUrls: {},
|
|
25
|
-
}, children: children }));
|
|
26
|
-
return render(_jsx(C4AppTeaserCard, { ...PROPS }), { wrapper });
|
|
27
|
-
}
|
|
28
|
-
describe('C4AppTeaserCard design-system switch', () => {
|
|
29
|
-
it('renders the Carbon Tile by default (no runtime provider)', () => {
|
|
30
|
-
const { container } = renderCard();
|
|
31
|
-
expect(screen.getByText('Operate')).toBeInTheDocument();
|
|
32
|
-
expect(container.querySelector('.cds--tile')).toBeTruthy();
|
|
33
|
-
});
|
|
34
|
-
it("renders the Carbon Tile when designSystem is 'carbon'", () => {
|
|
35
|
-
const { container } = renderCard('carbon');
|
|
36
|
-
expect(container.querySelector('.cds--tile')).toBeTruthy();
|
|
37
|
-
});
|
|
38
|
-
it("renders the Design System adapter (not Carbon Tile) when designSystem is 'ds'", () => {
|
|
39
|
-
const { container } = renderCard('ds');
|
|
40
|
-
expect(screen.getByText('Operate')).toBeInTheDocument();
|
|
41
|
-
expect(container.querySelector('.cds--tile')).toBeNull();
|
|
42
|
-
});
|
|
43
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } 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 { render, screen } from '@testing-library/react';
|
|
8
|
-
import { vi } from 'vitest';
|
|
9
|
-
import { ValueMetric } from './value-metric.js';
|
|
10
|
-
const { mockUseC4DesignSystem } = vi.hoisted(() => ({
|
|
11
|
-
mockUseC4DesignSystem: vi.fn(() => 'carbon'),
|
|
12
|
-
}));
|
|
13
|
-
vi.mock('@carbon/charts-react', () => ({
|
|
14
|
-
MeterChart: ({ data }) => (_jsx("div", { "data-testid": 'meter-chart', "data-value": data[0]?.value })),
|
|
15
|
-
}));
|
|
16
|
-
vi.mock('../../../runtime/c4-console-runtime-context', () => ({
|
|
17
|
-
useC4DesignSystem: mockUseC4DesignSystem,
|
|
18
|
-
}));
|
|
19
|
-
vi.mock('../../shared-charts/ds-meter-chart', () => ({
|
|
20
|
-
DsMeterChart: () => _jsx("div", { "data-testid": 'ds-meter-chart' }),
|
|
21
|
-
}));
|
|
22
|
-
function buildChartProps(current, max = 500000) {
|
|
23
|
-
return {
|
|
24
|
-
title: 'Process instances',
|
|
25
|
-
loading: false,
|
|
26
|
-
metric: {
|
|
27
|
-
kind: 'chart',
|
|
28
|
-
value: {
|
|
29
|
-
current,
|
|
30
|
-
max,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
describe('ValueMetric', () => {
|
|
36
|
-
beforeEach(() => {
|
|
37
|
-
mockUseC4DesignSystem.mockReturnValue('carbon');
|
|
38
|
-
});
|
|
39
|
-
describe('MeterChart (progress bar)', () => {
|
|
40
|
-
it('renders the progress bar when included (max) > 0', () => {
|
|
41
|
-
render(_jsx(ValueMetric, { ...buildChartProps(0, 500000) }));
|
|
42
|
-
expect(screen.getByTestId('meter-chart')).toBeInTheDocument();
|
|
43
|
-
});
|
|
44
|
-
it('renders the progress bar when both current and max are > 0', () => {
|
|
45
|
-
render(_jsx(ValueMetric, { ...buildChartProps(400000, 500000) }));
|
|
46
|
-
expect(screen.getByTestId('meter-chart')).toBeInTheDocument();
|
|
47
|
-
});
|
|
48
|
-
it('does NOT render the progress bar when included (max) is zero', () => {
|
|
49
|
-
render(_jsx(ValueMetric, { ...buildChartProps(0, 0) }));
|
|
50
|
-
expect(screen.queryByTestId('meter-chart')).not.toBeInTheDocument();
|
|
51
|
-
});
|
|
52
|
-
it('does NOT render the progress bar when max is zero even if current > 0', () => {
|
|
53
|
-
render(_jsx(ValueMetric, { ...buildChartProps(5, 0) }));
|
|
54
|
-
expect(screen.queryByTestId('meter-chart')).not.toBeInTheDocument();
|
|
55
|
-
});
|
|
56
|
-
it('still renders the current and max values when included (max) is zero', () => {
|
|
57
|
-
render(_jsx(ValueMetric, { ...buildChartProps(0, 0) }));
|
|
58
|
-
expect(screen.getAllByText('0')).toHaveLength(2);
|
|
59
|
-
});
|
|
60
|
-
it('renders ds meter chart in ds mode', () => {
|
|
61
|
-
mockUseC4DesignSystem.mockReturnValue('ds');
|
|
62
|
-
render(_jsx(ValueMetric, { ...buildChartProps(400000, 500000) }));
|
|
63
|
-
expect(screen.getByTestId('ds-meter-chart')).toBeInTheDocument();
|
|
64
|
-
expect(screen.queryByTestId('meter-chart')).not.toBeInTheDocument();
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } 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 { render, waitFor } from '@testing-library/react';
|
|
8
|
-
import userEvent from '@testing-library/user-event';
|
|
9
|
-
import { C4ClusterList } from './c4-cluster-list.js';
|
|
10
|
-
function createCluster(id) {
|
|
11
|
-
return {
|
|
12
|
-
id: `cluster-${id}`,
|
|
13
|
-
name: `Cluster ${id}`,
|
|
14
|
-
generation: '8.8',
|
|
15
|
-
type: 'Production',
|
|
16
|
-
region: 'eu-central-1',
|
|
17
|
-
status: 'healthy',
|
|
18
|
-
tags: [],
|
|
19
|
-
originalIndex: id - 1,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function buildProps(clusters) {
|
|
23
|
-
return {
|
|
24
|
-
orgId: 'org-1',
|
|
25
|
-
clusters,
|
|
26
|
-
loading: false,
|
|
27
|
-
urls: {
|
|
28
|
-
clusterDetails: (clusterId) => `/org/org-1/clusters/${clusterId}`,
|
|
29
|
-
createCluster: '/org/org-1/clusters/create',
|
|
30
|
-
},
|
|
31
|
-
permissions: {
|
|
32
|
-
canCreateCluster: true,
|
|
33
|
-
canEditCluster: true,
|
|
34
|
-
canDeleteCluster: true,
|
|
35
|
-
canUpdateTag: true,
|
|
36
|
-
canSeeClusterLoad: false,
|
|
37
|
-
canWakeCluster: true,
|
|
38
|
-
createClusterButtonDisabled: false,
|
|
39
|
-
},
|
|
40
|
-
onNavigate: vi.fn(),
|
|
41
|
-
onDeleteCluster: vi.fn(),
|
|
42
|
-
onAssignTag: vi.fn(),
|
|
43
|
-
onWakeCluster: vi.fn(),
|
|
44
|
-
translations: {
|
|
45
|
-
title: 'Clusters',
|
|
46
|
-
createButton: 'Create cluster',
|
|
47
|
-
searchLabel: 'Search',
|
|
48
|
-
emptyState: {
|
|
49
|
-
noClusters: 'No clusters',
|
|
50
|
-
},
|
|
51
|
-
headers: {
|
|
52
|
-
name: 'Name',
|
|
53
|
-
generation: 'Generation',
|
|
54
|
-
type: 'Type',
|
|
55
|
-
region: 'Region',
|
|
56
|
-
status: 'Status',
|
|
57
|
-
tags: 'Tags',
|
|
58
|
-
},
|
|
59
|
-
overflowMenu: {
|
|
60
|
-
delete: 'Delete',
|
|
61
|
-
resume: 'Resume',
|
|
62
|
-
},
|
|
63
|
-
tags: {
|
|
64
|
-
addLabel: 'Add tag',
|
|
65
|
-
},
|
|
66
|
-
tooltips: {
|
|
67
|
-
clusterLoad: 'Cluster load',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
isClusterPaused: () => false,
|
|
71
|
-
isRunningOnUnsupportedGeneration: () => false,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function getPageSelect() {
|
|
75
|
-
const pageSelect = document.querySelector('.cds--select__page-number select');
|
|
76
|
-
if (!pageSelect) {
|
|
77
|
-
throw new Error('Expected cluster list pagination page select');
|
|
78
|
-
}
|
|
79
|
-
return pageSelect;
|
|
80
|
-
}
|
|
81
|
-
describe('C4ClusterList pagination', () => {
|
|
82
|
-
it('preserves the selected page when clusters are added or removed', async () => {
|
|
83
|
-
const user = userEvent.setup();
|
|
84
|
-
const initialClusters = Array.from({ length: 20 }, (_, index) => {
|
|
85
|
-
return createCluster(index + 1);
|
|
86
|
-
});
|
|
87
|
-
const { rerender } = render(_jsx(C4ClusterList, { ...buildProps(initialClusters) }));
|
|
88
|
-
await waitFor(() => {
|
|
89
|
-
expect(getPageSelect().value).toBe('1');
|
|
90
|
-
});
|
|
91
|
-
await user.selectOptions(getPageSelect(), '2');
|
|
92
|
-
await waitFor(() => {
|
|
93
|
-
expect(getPageSelect().value).toBe('2');
|
|
94
|
-
});
|
|
95
|
-
rerender(_jsx(C4ClusterList, { ...buildProps([...initialClusters, createCluster(21)]) }));
|
|
96
|
-
await waitFor(() => {
|
|
97
|
-
expect(getPageSelect().value).toBe('2');
|
|
98
|
-
});
|
|
99
|
-
rerender(_jsx(C4ClusterList, { ...buildProps(initialClusters.slice(0, 19)) }));
|
|
100
|
-
await waitFor(() => {
|
|
101
|
-
expect(getPageSelect().value).toBe('2');
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
it('preserves the selected page when cluster data updates without changing list length', async () => {
|
|
105
|
-
const user = userEvent.setup();
|
|
106
|
-
const initialClusters = Array.from({ length: 20 }, (_, index) => {
|
|
107
|
-
return createCluster(index + 1);
|
|
108
|
-
});
|
|
109
|
-
const { rerender } = render(_jsx(C4ClusterList, { ...buildProps(initialClusters) }));
|
|
110
|
-
await waitFor(() => {
|
|
111
|
-
expect(getPageSelect().value).toBe('1');
|
|
112
|
-
});
|
|
113
|
-
await user.selectOptions(getPageSelect(), '2');
|
|
114
|
-
await waitFor(() => {
|
|
115
|
-
expect(getPageSelect().value).toBe('2');
|
|
116
|
-
});
|
|
117
|
-
const updatedClusters = initialClusters.map((cluster, index) => {
|
|
118
|
-
if (index !== 0) {
|
|
119
|
-
return cluster;
|
|
120
|
-
}
|
|
121
|
-
return {
|
|
122
|
-
...cluster,
|
|
123
|
-
status: 'updating',
|
|
124
|
-
generation: '8.8.1',
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
rerender(_jsx(C4ClusterList, { ...buildProps(updatedClusters) }));
|
|
128
|
-
await waitFor(() => {
|
|
129
|
-
expect(getPageSelect().value).toBe('2');
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } 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 { render, screen } from '@testing-library/react';
|
|
8
|
-
import userEvent from '@testing-library/user-event';
|
|
9
|
-
import { describe, expect, it, vi } from 'vitest';
|
|
10
|
-
import { C4ClusterList } from './c4-cluster-list.js';
|
|
11
|
-
function buildProps() {
|
|
12
|
-
return {
|
|
13
|
-
orgId: 'org-1',
|
|
14
|
-
clusters: [
|
|
15
|
-
{
|
|
16
|
-
id: 'cluster-1',
|
|
17
|
-
name: 'Encryption Setup Cluster',
|
|
18
|
-
generation: '8.9',
|
|
19
|
-
type: 'Production',
|
|
20
|
-
region: 'eu-central-1',
|
|
21
|
-
status: 'waitingForInput',
|
|
22
|
-
statusInfoTooltip: 'Waiting for external encryption to be configured',
|
|
23
|
-
tags: ['prod'],
|
|
24
|
-
originalIndex: 0,
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
loading: false,
|
|
28
|
-
urls: {
|
|
29
|
-
clusterDetails: (clusterId) => `/org/org-1/clusters/${clusterId}`,
|
|
30
|
-
createCluster: '/org/org-1/clusters/create',
|
|
31
|
-
},
|
|
32
|
-
permissions: {
|
|
33
|
-
canCreateCluster: true,
|
|
34
|
-
canEditCluster: true,
|
|
35
|
-
canDeleteCluster: true,
|
|
36
|
-
canUpdateTag: true,
|
|
37
|
-
canSeeClusterLoad: false,
|
|
38
|
-
canWakeCluster: true,
|
|
39
|
-
createClusterButtonDisabled: false,
|
|
40
|
-
},
|
|
41
|
-
onNavigate: vi.fn(),
|
|
42
|
-
onDeleteCluster: vi.fn(),
|
|
43
|
-
onAssignTag: vi.fn(),
|
|
44
|
-
onWakeCluster: vi.fn(),
|
|
45
|
-
translations: {
|
|
46
|
-
title: 'Clusters',
|
|
47
|
-
createButton: 'Create cluster',
|
|
48
|
-
searchLabel: 'Search',
|
|
49
|
-
emptyState: {
|
|
50
|
-
noClusters: 'No clusters',
|
|
51
|
-
},
|
|
52
|
-
headers: {
|
|
53
|
-
name: 'Name',
|
|
54
|
-
generation: 'Generation',
|
|
55
|
-
type: 'Type',
|
|
56
|
-
region: 'Region',
|
|
57
|
-
status: 'Status',
|
|
58
|
-
tags: 'Tags',
|
|
59
|
-
},
|
|
60
|
-
overflowMenu: {
|
|
61
|
-
delete: 'Delete',
|
|
62
|
-
resume: 'Resume',
|
|
63
|
-
},
|
|
64
|
-
tags: {
|
|
65
|
-
addLabel: 'Add tag',
|
|
66
|
-
},
|
|
67
|
-
tooltips: {
|
|
68
|
-
clusterLoad: 'Cluster load',
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
isClusterPaused: () => false,
|
|
72
|
-
isRunningOnUnsupportedGeneration: () => false,
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
describe('C4ClusterList waitingForInput status', () => {
|
|
76
|
-
it('shows the info icon and routes to encryption details', async () => {
|
|
77
|
-
const user = userEvent.setup();
|
|
78
|
-
const props = buildProps();
|
|
79
|
-
render(_jsx(C4ClusterList, { ...props }));
|
|
80
|
-
const infoButton = screen.getByRole('button', {
|
|
81
|
-
name: 'Waiting for external encryption to be configured',
|
|
82
|
-
});
|
|
83
|
-
expect(infoButton).toBeInTheDocument();
|
|
84
|
-
await user.click(infoButton);
|
|
85
|
-
expect(props.onNavigate).toHaveBeenCalledWith('/org/org-1/clusters/cluster-1/encryption');
|
|
86
|
-
});
|
|
87
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } 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 { render, screen } from '@testing-library/react';
|
|
8
|
-
import userEvent from '@testing-library/user-event';
|
|
9
|
-
import { describe, expect, it, vi } from 'vitest';
|
|
10
|
-
import { ApplicationTile, ClusterStatusElement, normalizeClusterStatus, } from './applications.js';
|
|
11
|
-
describe('ClusterStatusElement', () => {
|
|
12
|
-
it('renders waiting for input as waiting and forwards info clicks', async () => {
|
|
13
|
-
const onInfoClick = vi.fn();
|
|
14
|
-
const user = userEvent.setup();
|
|
15
|
-
render(_jsx(ClusterStatusElement, { status: 'waitingForInput', infoTooltip: 'Waiting for external encryption to be configured', onInfoClick: onInfoClick }));
|
|
16
|
-
expect(screen.getByText('Waiting')).toBeInTheDocument();
|
|
17
|
-
await user.click(screen.getByRole('button', {
|
|
18
|
-
name: 'Waiting for external encryption to be configured',
|
|
19
|
-
}));
|
|
20
|
-
expect(onInfoClick).toHaveBeenCalledTimes(1);
|
|
21
|
-
});
|
|
22
|
-
it('normalizes waiting for input status values', () => {
|
|
23
|
-
expect(normalizeClusterStatus('WaitingForInput')).toBe('waitingForInput');
|
|
24
|
-
expect(normalizeClusterStatus('waitingforinput')).toBe('waitingForInput');
|
|
25
|
-
});
|
|
26
|
-
it('renders maintenance with Carbon undefined icon indicator', () => {
|
|
27
|
-
const { container } = render(_jsx(ClusterStatusElement, { status: 'maintenance' }));
|
|
28
|
-
expect(screen.getByText('Maintenance')).toBeInTheDocument();
|
|
29
|
-
expect(screen.queryAllByText('Maintenance')).toHaveLength(1);
|
|
30
|
-
expect(container.querySelector('.cds--icon-indicator--undefined')).toBeInTheDocument();
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
describe('ApplicationTile link click handling', () => {
|
|
34
|
-
const renderTile = (onClick) => render(_jsx(ApplicationTile, { name: 'Connectors', status: 'healthy', version: '8.8.8', link: {
|
|
35
|
-
url: '/org/org-1/cluster/cluster-1/connectors/management',
|
|
36
|
-
label: 'Manage',
|
|
37
|
-
visible: true,
|
|
38
|
-
onClick,
|
|
39
|
-
} }));
|
|
40
|
-
it('routes in-app on a plain left click', async () => {
|
|
41
|
-
const onClick = vi.fn();
|
|
42
|
-
const user = userEvent.setup();
|
|
43
|
-
renderTile(onClick);
|
|
44
|
-
await user.click(screen.getByRole('link', { name: /Manage/ }));
|
|
45
|
-
expect(onClick).toHaveBeenCalledTimes(1);
|
|
46
|
-
});
|
|
47
|
-
it('lets the browser handle modifier clicks so the link opens in a new tab', async () => {
|
|
48
|
-
const onClick = vi.fn();
|
|
49
|
-
const user = userEvent.setup();
|
|
50
|
-
renderTile(onClick);
|
|
51
|
-
// Cmd/Ctrl-click should fall through to the native href instead of routing
|
|
52
|
-
// in-app, preserving open-in-new-tab.
|
|
53
|
-
await user.keyboard('[ControlLeft>]');
|
|
54
|
-
await user.click(screen.getByRole('link', { name: /Manage/ }));
|
|
55
|
-
await user.keyboard('[/ControlLeft]');
|
|
56
|
-
expect(onClick).not.toHaveBeenCalled();
|
|
57
|
-
});
|
|
58
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
// Helper function to format numbers (same as in cluster-load.tsx)
|
|
8
|
-
function formatNumber(number) {
|
|
9
|
-
return new Intl.NumberFormat('en-US', {
|
|
10
|
-
minimumFractionDigits: 2,
|
|
11
|
-
maximumFractionDigits: 2,
|
|
12
|
-
}).format(number);
|
|
13
|
-
}
|
|
14
|
-
describe('formatNumber', () => {
|
|
15
|
-
it('should format small decimal values to 2 decimal places', () => {
|
|
16
|
-
// Test values that would show precision issues with maximumSignificantDigits
|
|
17
|
-
expect(formatNumber(0.45)).toBe('0.45');
|
|
18
|
-
expect(formatNumber(0.35)).toBe('0.35');
|
|
19
|
-
});
|
|
20
|
-
it('should format whole numbers with 2 decimal places', () => {
|
|
21
|
-
expect(formatNumber(25)).toBe('25.00');
|
|
22
|
-
expect(formatNumber(100)).toBe('100.00');
|
|
23
|
-
});
|
|
24
|
-
it('should format values with exactly 2 decimal places', () => {
|
|
25
|
-
expect(formatNumber(0.45)).toBe('0.45');
|
|
26
|
-
expect(formatNumber(25.5)).toBe('25.50');
|
|
27
|
-
});
|
|
28
|
-
it('should round values correctly', () => {
|
|
29
|
-
expect(formatNumber(0.444)).toBe('0.44');
|
|
30
|
-
expect(formatNumber(0.445)).toBe('0.45');
|
|
31
|
-
expect(formatNumber(0.446)).toBe('0.45');
|
|
32
|
-
});
|
|
33
|
-
it('should handle edge cases', () => {
|
|
34
|
-
expect(formatNumber(0)).toBe('0.00');
|
|
35
|
-
expect(formatNumber(0.01)).toBe('0.01');
|
|
36
|
-
expect(formatNumber(99.99)).toBe('99.99');
|
|
37
|
-
});
|
|
38
|
-
});
|
package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/vitest';
|