@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,132 @@
|
|
|
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
|
+
export const mockClusters = [
|
|
7
|
+
{
|
|
8
|
+
id: 'cluster-1',
|
|
9
|
+
name: 'Production Cluster',
|
|
10
|
+
generation: 'Camunda 8.5',
|
|
11
|
+
type: 'Production',
|
|
12
|
+
region: 'us-east-1',
|
|
13
|
+
status: 'healthy',
|
|
14
|
+
tags: ['prod'],
|
|
15
|
+
currentClusterLoad: 45.5,
|
|
16
|
+
originalIndex: 0,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'cluster-2',
|
|
20
|
+
name: 'Development Cluster',
|
|
21
|
+
generation: 'Camunda 8.4 - update available',
|
|
22
|
+
type: 'Development',
|
|
23
|
+
region: 'eu-central-1',
|
|
24
|
+
status: 'creating',
|
|
25
|
+
tags: ['dev'],
|
|
26
|
+
currentClusterLoad: 12.3,
|
|
27
|
+
originalIndex: 1,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'cluster-3',
|
|
31
|
+
name: 'Test Cluster',
|
|
32
|
+
generation: 'Camunda 8.5',
|
|
33
|
+
type: 'Production - 2x',
|
|
34
|
+
region: 'us-west-2',
|
|
35
|
+
status: 'suspended',
|
|
36
|
+
tags: ['test'],
|
|
37
|
+
originalIndex: 2,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'cluster-4',
|
|
41
|
+
name: 'Staging Cluster',
|
|
42
|
+
generation: 'Camunda 8.5',
|
|
43
|
+
type: 'Production',
|
|
44
|
+
region: 'ap-southeast-1',
|
|
45
|
+
status: 'healthy',
|
|
46
|
+
tags: [],
|
|
47
|
+
currentClusterLoad: 78.9,
|
|
48
|
+
originalIndex: 3,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'cluster-5',
|
|
52
|
+
name: 'Encryption Setup Cluster',
|
|
53
|
+
generation: 'Camunda 8.9',
|
|
54
|
+
type: 'Production',
|
|
55
|
+
region: 'eu-west-1',
|
|
56
|
+
status: 'waitingForInput',
|
|
57
|
+
statusInfoTooltip: 'Waiting for external encryption to be configured',
|
|
58
|
+
tags: ['prod'],
|
|
59
|
+
currentClusterLoad: 0,
|
|
60
|
+
originalIndex: 4,
|
|
61
|
+
},
|
|
62
|
+
];
|
|
63
|
+
export const defaultProps = {
|
|
64
|
+
orgId: 'org-123',
|
|
65
|
+
clusters: mockClusters,
|
|
66
|
+
loading: false,
|
|
67
|
+
urls: {
|
|
68
|
+
clusterDetails: (clusterId) => `/org/org-123/clusters/${clusterId}`,
|
|
69
|
+
createCluster: '/org/org-123/clusters/create',
|
|
70
|
+
},
|
|
71
|
+
permissions: {
|
|
72
|
+
canCreateCluster: true,
|
|
73
|
+
canEditCluster: true,
|
|
74
|
+
canDeleteCluster: true,
|
|
75
|
+
canUpdateTag: true,
|
|
76
|
+
canSeeClusterLoad: true,
|
|
77
|
+
canWakeCluster: true,
|
|
78
|
+
createClusterButtonDisabled: false,
|
|
79
|
+
},
|
|
80
|
+
onNavigate: (url) => console.log('Navigate to:', url),
|
|
81
|
+
onDeleteCluster: (id) => console.log('Delete cluster:', id),
|
|
82
|
+
onAssignTag: (id) => console.log('Assign tag to cluster:', id),
|
|
83
|
+
onWakeCluster: (id) => console.log('Wake cluster:', id),
|
|
84
|
+
translations: {
|
|
85
|
+
title: 'Clusters',
|
|
86
|
+
createButton: 'Create cluster',
|
|
87
|
+
searchLabel: 'Search',
|
|
88
|
+
// Not exercised by any story: `emptyStateContent` is always supplied
|
|
89
|
+
// where `clusters` is empty (see c4-cluster-list.tsx `renderDataTable`),
|
|
90
|
+
// so this fallback copy never renders. Present only to satisfy the
|
|
91
|
+
// (non-optional) `C4ClusterListProps['translations']['emptyState']` type
|
|
92
|
+
// outside the stories file (which TS excludes from typechecking).
|
|
93
|
+
emptyState: {
|
|
94
|
+
noClusters: 'No clusters found.',
|
|
95
|
+
},
|
|
96
|
+
headers: {
|
|
97
|
+
name: 'Name',
|
|
98
|
+
generation: 'Generation',
|
|
99
|
+
type: 'Type',
|
|
100
|
+
region: 'Region',
|
|
101
|
+
status: 'Status',
|
|
102
|
+
tags: 'Tags',
|
|
103
|
+
currentClusterLoad: 'Current cluster load',
|
|
104
|
+
},
|
|
105
|
+
overflowMenu: {
|
|
106
|
+
delete: 'Delete',
|
|
107
|
+
resume: 'Resume',
|
|
108
|
+
},
|
|
109
|
+
tags: {
|
|
110
|
+
addLabel: 'Add tag',
|
|
111
|
+
},
|
|
112
|
+
tooltips: {
|
|
113
|
+
clusterLoad: 'Current cluster load',
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
isClusterPaused: (clusterId) => clusterId === 'cluster-3',
|
|
117
|
+
isRunningOnUnsupportedGeneration: (clusterId) => clusterId === 'cluster-2',
|
|
118
|
+
};
|
|
119
|
+
// A single freshly created cluster, isolated (no other rows) - used to
|
|
120
|
+
// document the "just created a cluster" moment in the docs screenshots,
|
|
121
|
+
// once while it's still provisioning and once after it turns healthy.
|
|
122
|
+
export const newCluster = {
|
|
123
|
+
id: 'new-cluster',
|
|
124
|
+
name: 'new-cluster',
|
|
125
|
+
generation: 'Camunda 8.8',
|
|
126
|
+
type: 'Production',
|
|
127
|
+
region: 'us-east-1',
|
|
128
|
+
status: 'creating',
|
|
129
|
+
tags: [],
|
|
130
|
+
currentClusterLoad: 0,
|
|
131
|
+
originalIndex: 0,
|
|
132
|
+
};
|
|
@@ -66,6 +66,8 @@ export interface C4ClusterListProps {
|
|
|
66
66
|
delete: string;
|
|
67
67
|
resume: string;
|
|
68
68
|
failover?: string;
|
|
69
|
+
/** Shown as the action label while the initial secondary bucket sync is pending. */
|
|
70
|
+
failoverSyncPending?: string;
|
|
69
71
|
};
|
|
70
72
|
tags: {
|
|
71
73
|
addLabel: string;
|
|
@@ -76,5 +78,10 @@ export interface C4ClusterListProps {
|
|
|
76
78
|
};
|
|
77
79
|
isClusterPaused: (clusterId: string) => boolean;
|
|
78
80
|
isMultiRegionCluster?: (clusterId: string) => boolean;
|
|
81
|
+
/**
|
|
82
|
+
* True while a failover-eligible cluster's initial primary→secondary bucket
|
|
83
|
+
* sync has not completed — the action is shown disabled with a reason.
|
|
84
|
+
*/
|
|
85
|
+
isFailoverSyncPending?: (clusterId: string) => boolean;
|
|
79
86
|
isRunningOnUnsupportedGeneration: (clusterId: string) => boolean;
|
|
80
87
|
}
|
|
@@ -4,9 +4,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import { preview__IconIndicator as IconIndicator, Layer
|
|
7
|
+
import { preview__IconIndicator as IconIndicator, Layer } from '@carbon/react';
|
|
8
8
|
import { ArrowRight, CheckmarkFilled, Information, PauseOutlineFilled, PendingFilled, WarningFilled, } from '@carbon/react/icons/index.esm.js';
|
|
9
9
|
import { useEffect, useState } from 'react';
|
|
10
|
+
import { Link, Loading, Stack, Tile, Tooltip } from '../../ui/index.js';
|
|
10
11
|
import { mediaSizeByWidth } from '../c4-billing-page/elements/current-usage-metrics.js';
|
|
11
12
|
import { C4TileWithTitleAndAction } from '../c4-tile-with-title-and-action/c4-tile-with-title-and-action.js';
|
|
12
13
|
const MAINTENANCE_STATUS_TEXT = 'Maintenance';
|
|
@@ -162,10 +163,24 @@ export const ApplicationTile = (props) => {
|
|
|
162
163
|
alignSelf: 'end',
|
|
163
164
|
cursor: 'pointer',
|
|
164
165
|
}, onClick: (e) => {
|
|
165
|
-
if (normalizedLink?.onClick) {
|
|
166
|
-
|
|
167
|
-
normalizedLink.onClick();
|
|
166
|
+
if (!normalizedLink?.onClick) {
|
|
167
|
+
return;
|
|
168
168
|
}
|
|
169
|
+
// Preserve native open-in-new-tab / new-window behaviour:
|
|
170
|
+
// when there's a real href, let the browser handle modifier
|
|
171
|
+
// and non-left clicks (Ctrl/Cmd/Shift/Alt or middle click)
|
|
172
|
+
// instead of routing in-app. Only plain left-clicks are
|
|
173
|
+
// intercepted for client-side navigation.
|
|
174
|
+
if (normalizedLink.url &&
|
|
175
|
+
(e.metaKey ||
|
|
176
|
+
e.ctrlKey ||
|
|
177
|
+
e.shiftKey ||
|
|
178
|
+
e.altKey ||
|
|
179
|
+
e.button !== 0)) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
e.preventDefault();
|
|
183
|
+
normalizedLink.onClick();
|
|
169
184
|
}, children: [normalizedLink.label, ' ', _jsx(ArrowRight, { style: { marginLeft: '0.5rem', marginBottom: '-0.2rem' } })] }))] })] }) }) }));
|
|
170
185
|
return component;
|
|
171
186
|
};
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import { render, screen } from '@testing-library/react';
|
|
8
8
|
import userEvent from '@testing-library/user-event';
|
|
9
9
|
import { describe, expect, it, vi } from 'vitest';
|
|
10
|
-
import { ClusterStatusElement, normalizeClusterStatus } from './applications.js';
|
|
10
|
+
import { ApplicationTile, ClusterStatusElement, normalizeClusterStatus, } from './applications.js';
|
|
11
11
|
describe('ClusterStatusElement', () => {
|
|
12
12
|
it('renders waiting for input as waiting and forwards info clicks', async () => {
|
|
13
13
|
const onInfoClick = vi.fn();
|
|
@@ -30,3 +30,29 @@ describe('ClusterStatusElement', () => {
|
|
|
30
30
|
expect(container.querySelector('.cds--icon-indicator--undefined')).toBeInTheDocument();
|
|
31
31
|
});
|
|
32
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
|
+
});
|
|
@@ -4,10 +4,11 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import { InlineNotification, Stack, Tooltip } from '@carbon/react';
|
|
8
7
|
import { Caution, CheckmarkFilled } from '@carbon/react/icons/index.esm.js';
|
|
9
8
|
import styled from 'styled-components';
|
|
9
|
+
import { Stack, Tooltip } from '../../ui/index.js';
|
|
10
10
|
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
11
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
11
12
|
import C4JobDashboardEntryPoint from '../c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js';
|
|
12
13
|
import { Applications } from './applications.js';
|
|
13
14
|
import { ClusterDetails } from './cluster-details.js';
|
|
@@ -38,10 +39,10 @@ export const C4ClusterOverview = ({ applications, details, clusterLoad, rbaNotif
|
|
|
38
39
|
let rbaNotificationElement = null;
|
|
39
40
|
if (rbaNotification?.visible) {
|
|
40
41
|
if (rbaNotification.canManageUsers) {
|
|
41
|
-
rbaNotificationElement = (_jsx(C4ActionableNotification, { kind: 'info', actionButtonLabel: rbaNotification.texts.actionLabel, onActionButtonClick: rbaNotification.onActionButtonClick, title: rbaNotification.texts.title, subtitle: rbaNotification.texts.subtitle, lowContrast: true }));
|
|
42
|
+
rbaNotificationElement = (_jsx(C4ActionableNotification, { appearance: 'banner', kind: 'info', actionButtonLabel: rbaNotification.texts.actionLabel, onActionButtonClick: rbaNotification.onActionButtonClick, title: rbaNotification.texts.title, subtitle: rbaNotification.texts.subtitle, lowContrast: true }));
|
|
42
43
|
}
|
|
43
44
|
else {
|
|
44
|
-
rbaNotificationElement = (_jsx(
|
|
45
|
+
rbaNotificationElement = (_jsx(C4InlineNotification, { kind: 'info', hideCloseButton: true, style: { maxWidth: '100%' }, title: rbaNotification.texts.title, subtitle: '', lowContrast: true }));
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
let secondRow = _jsx(_Fragment, {});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ApplicationsProps, ClusterStatus } from './applications';
|
|
2
|
+
import type { ClusterDetailsProps } from './cluster-details';
|
|
3
|
+
import type { ClusterLoadProps } from './cluster-load';
|
|
4
|
+
export declare const getClusterLoadProps: () => ClusterLoadProps;
|
|
5
|
+
export declare const getApps: (status: ClusterStatus) => ApplicationsProps;
|
|
6
|
+
export declare const getDetails: (update?: "update-available" | "update-available-no-permissions" | "no-update-latest" | "updating" | "update-available-wait-needed", options?: {
|
|
7
|
+
cta?: boolean;
|
|
8
|
+
}) => ClusterDetailsProps;
|
|
@@ -0,0 +1,203 @@
|
|
|
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
|
+
// "Created ~6 weeks ago" relative to real "now" (rather than a fixed past
|
|
7
|
+
// date, which reads as obviously stale in a docs screenshot) - matches this
|
|
8
|
+
// migration's dynamic-date convention (see stories/shared/billing-dates.ts).
|
|
9
|
+
// Clamped to no earlier than Jan 1 of the current year so the screenshot's
|
|
10
|
+
// "Created" date always shows the current year (in early January the raw
|
|
11
|
+
// 6-weeks-ago date would otherwise fall into the previous year). Formatted
|
|
12
|
+
// "D Month, YYYY" to match the original mock's style (e.g. "10 May, 2023").
|
|
13
|
+
const nowForCreated = new Date();
|
|
14
|
+
const createdDate = new Date(nowForCreated);
|
|
15
|
+
createdDate.setDate(createdDate.getDate() - 42);
|
|
16
|
+
const startOfYear = new Date(nowForCreated.getFullYear(), 0, 1);
|
|
17
|
+
if (createdDate < startOfYear) {
|
|
18
|
+
createdDate.setTime(startOfYear.getTime());
|
|
19
|
+
}
|
|
20
|
+
const createdDisplay = `${createdDate.getDate()} ${createdDate.toLocaleDateString('en-US', { month: 'long' })}, ${createdDate.getFullYear()}`;
|
|
21
|
+
// Deterministic percent (0-100) load point: `avg` follows a sine wave over
|
|
22
|
+
// `index`/`period`, with `min`/`max` symmetric around it so min <= avg <= max
|
|
23
|
+
// always holds (unlike independently-randomized values, which could produce
|
|
24
|
+
// min > max).
|
|
25
|
+
const loadPoint = (ts, index, period) => {
|
|
26
|
+
const avg = 50 + 30 * Math.sin((index / period) * Math.PI * 2);
|
|
27
|
+
const spread = 10 + 5 * Math.cos((index / period) * Math.PI * 2);
|
|
28
|
+
return {
|
|
29
|
+
ts,
|
|
30
|
+
avg: Math.round(avg),
|
|
31
|
+
min: Math.round(Math.max(0, avg - spread)),
|
|
32
|
+
max: Math.round(Math.min(100, avg + spread)),
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export const getClusterLoadProps = () => {
|
|
36
|
+
const now = Date.now();
|
|
37
|
+
const clusterLoadProps = {
|
|
38
|
+
texts: {
|
|
39
|
+
title: 'Cluster Load',
|
|
40
|
+
last: 'Last',
|
|
41
|
+
day30: '30 days',
|
|
42
|
+
day7: '7 days',
|
|
43
|
+
last24h: 'Last 24h',
|
|
44
|
+
current: 'Current',
|
|
45
|
+
clusterLoadTooltip: "Cluster capacity load: Indicates how much of the cluster's resources are in use.",
|
|
46
|
+
docs: 'Learn more about cluster capacity',
|
|
47
|
+
},
|
|
48
|
+
docs: {
|
|
49
|
+
url: 'https://docs.camunda.io/',
|
|
50
|
+
onClick: () => {
|
|
51
|
+
console.log('docs clicked');
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
values: {
|
|
55
|
+
latest: {
|
|
56
|
+
ts: now,
|
|
57
|
+
min: 25,
|
|
58
|
+
max: 25,
|
|
59
|
+
avg: 25,
|
|
60
|
+
},
|
|
61
|
+
last24h: Array.from({ length: 24 }, (_, i) => loadPoint(now - i * 60000 * 60, i, 24)),
|
|
62
|
+
perDay: Array.from({ length: 30 }, (_, i) => loadPoint(now - i * 1000 * 60 * 60 * 24, i, 30)),
|
|
63
|
+
},
|
|
64
|
+
reload: () => {
|
|
65
|
+
console.log('Reload triggered');
|
|
66
|
+
},
|
|
67
|
+
suspended: false,
|
|
68
|
+
};
|
|
69
|
+
return clusterLoadProps;
|
|
70
|
+
};
|
|
71
|
+
export const getApps = (status) => {
|
|
72
|
+
return {
|
|
73
|
+
title: 'Applications',
|
|
74
|
+
applications: {
|
|
75
|
+
zeebe: {
|
|
76
|
+
name: 'Zeebe',
|
|
77
|
+
description: 'The engine that powers Camunda',
|
|
78
|
+
version: '8.7.0',
|
|
79
|
+
status,
|
|
80
|
+
},
|
|
81
|
+
tasklist: {
|
|
82
|
+
name: 'Tasklist',
|
|
83
|
+
description: 'Assign & execute user tasks',
|
|
84
|
+
version: '8.7.0',
|
|
85
|
+
status,
|
|
86
|
+
link: {
|
|
87
|
+
url: 'https://camunda.io',
|
|
88
|
+
label: 'Launch',
|
|
89
|
+
visible: true,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
operate: {
|
|
93
|
+
name: 'Operate',
|
|
94
|
+
description: 'Monitor and fix running processes',
|
|
95
|
+
version: '8.7.0',
|
|
96
|
+
status,
|
|
97
|
+
link: {
|
|
98
|
+
url: 'https://camunda.io',
|
|
99
|
+
label: 'Launch',
|
|
100
|
+
visible: true,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
optimize: {
|
|
104
|
+
name: 'Optimize',
|
|
105
|
+
description: 'Get insights to improve your processes',
|
|
106
|
+
version: '8.7.0',
|
|
107
|
+
status,
|
|
108
|
+
link: {
|
|
109
|
+
url: 'https://camunda.io',
|
|
110
|
+
label: 'Launch',
|
|
111
|
+
visible: true,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export const getDetails = (update = 'no-update-latest', options) => {
|
|
118
|
+
const details = {
|
|
119
|
+
title: 'Cluster details',
|
|
120
|
+
provider: { label: 'asd' },
|
|
121
|
+
cta: options?.cta === true
|
|
122
|
+
? {
|
|
123
|
+
title: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.',
|
|
124
|
+
text: "Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
|
|
125
|
+
actionLabel: 'Start using Lorem Ipsum!!',
|
|
126
|
+
action: () => { },
|
|
127
|
+
}
|
|
128
|
+
: undefined,
|
|
129
|
+
name: {
|
|
130
|
+
label: 'Name',
|
|
131
|
+
value: 'test-cluster',
|
|
132
|
+
},
|
|
133
|
+
description: {
|
|
134
|
+
label: 'Description',
|
|
135
|
+
value: 'This is a test cluster for development purposes',
|
|
136
|
+
placeholder: 'Enter a description for your cluster',
|
|
137
|
+
noDescription: 'No description provided',
|
|
138
|
+
saveLabel: 'Save',
|
|
139
|
+
cancelLabel: 'Cancel',
|
|
140
|
+
editLabel: 'Edit',
|
|
141
|
+
errorMaxLength: 'Description must be 150 characters or less',
|
|
142
|
+
updateAction: async (newDescription) => {
|
|
143
|
+
console.log(`Description updated to: ${newDescription}`);
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
generation: {
|
|
147
|
+
label: 'Generation',
|
|
148
|
+
value: 'Zeebe over 9000',
|
|
149
|
+
update: {
|
|
150
|
+
updateType: update,
|
|
151
|
+
updateStates: {
|
|
152
|
+
updateAvailable: {
|
|
153
|
+
action: () => {
|
|
154
|
+
console.log(`Update triggered`);
|
|
155
|
+
},
|
|
156
|
+
label: 'Update cluster',
|
|
157
|
+
},
|
|
158
|
+
updateAvailableNoPermission: {
|
|
159
|
+
label: 'Update cluster',
|
|
160
|
+
description: 'Contact the organization admin to update.',
|
|
161
|
+
},
|
|
162
|
+
updateAvailableWaitNeeded: {
|
|
163
|
+
label: 'Update cluster',
|
|
164
|
+
description: 'To ensure cluster stabilization, your cluster can only be upgraded in 12 hours, at 2024-12-25 18:00. Learn more',
|
|
165
|
+
},
|
|
166
|
+
noUpdateLatest: {
|
|
167
|
+
label: 'No updates available - running on latest available version',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
type: {
|
|
173
|
+
label: 'Type',
|
|
174
|
+
value: 'Production',
|
|
175
|
+
},
|
|
176
|
+
region: {
|
|
177
|
+
label: 'Region',
|
|
178
|
+
value: 'Europe',
|
|
179
|
+
},
|
|
180
|
+
regionId: {
|
|
181
|
+
label: 'Region Id',
|
|
182
|
+
value: 'eur-1',
|
|
183
|
+
},
|
|
184
|
+
id: {
|
|
185
|
+
label: 'ID',
|
|
186
|
+
value: 'c4a16eb2-f194-47b0-8f60-bb89183065e5',
|
|
187
|
+
},
|
|
188
|
+
created: {
|
|
189
|
+
label: 'Created',
|
|
190
|
+
value: createdDisplay,
|
|
191
|
+
},
|
|
192
|
+
tags: {
|
|
193
|
+
label: 'Tags',
|
|
194
|
+
addTagLabel: 'add label',
|
|
195
|
+
value: ['prod'],
|
|
196
|
+
updateAction: () => { },
|
|
197
|
+
updateTagLabel: 'edit label',
|
|
198
|
+
updateDisabled: false,
|
|
199
|
+
updateVisible: true,
|
|
200
|
+
},
|
|
201
|
+
};
|
|
202
|
+
return details;
|
|
203
|
+
};
|