@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,15 @@
|
|
|
1
|
+
import { type AlertVariant } from '@camunda/design-system';
|
|
2
|
+
import { InlineNotification } from '@carbon/react';
|
|
3
|
+
import type { ComponentProps, JSX } from 'react';
|
|
4
|
+
type C4InlineNotificationProps = ComponentProps<typeof InlineNotification>;
|
|
5
|
+
export declare function kindToAlertVariant(kind: unknown): AlertVariant;
|
|
6
|
+
/**
|
|
7
|
+
* Design-system-switchable inline notification.
|
|
8
|
+
*
|
|
9
|
+
* Carbon mode renders Carbon's `InlineNotification` unchanged. ds mode renders
|
|
10
|
+
* the DS-native `Alert` (kind→variant, title, subtitle→description,
|
|
11
|
+
* hideCloseButton→non-dismissible). `lowContrast` has no DS analogue and is
|
|
12
|
+
* ignored in ds mode.
|
|
13
|
+
*/
|
|
14
|
+
export declare function C4InlineNotification(props: C4InlineNotificationProps): JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { Alert } from '@camunda/design-system';
|
|
8
|
+
import { InlineNotification } from '@carbon/react';
|
|
9
|
+
import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
|
|
10
|
+
// Carbon notification `kind` → DS Alert variant.
|
|
11
|
+
const KIND_TO_VARIANT = {
|
|
12
|
+
error: 'destructive',
|
|
13
|
+
info: 'info',
|
|
14
|
+
'info-square': 'info',
|
|
15
|
+
success: 'success',
|
|
16
|
+
warning: 'warning',
|
|
17
|
+
'warning-alt': 'warning',
|
|
18
|
+
};
|
|
19
|
+
export function kindToAlertVariant(kind) {
|
|
20
|
+
return (typeof kind === 'string' && KIND_TO_VARIANT[kind]) || 'default';
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Design-system-switchable inline notification.
|
|
24
|
+
*
|
|
25
|
+
* Carbon mode renders Carbon's `InlineNotification` unchanged. ds mode renders
|
|
26
|
+
* the DS-native `Alert` (kind→variant, title, subtitle→description,
|
|
27
|
+
* hideCloseButton→non-dismissible). `lowContrast` has no DS analogue and is
|
|
28
|
+
* ignored in ds mode.
|
|
29
|
+
*/
|
|
30
|
+
export function C4InlineNotification(props) {
|
|
31
|
+
const designSystem = useC4DesignSystem();
|
|
32
|
+
if (designSystem !== 'ds') {
|
|
33
|
+
return _jsx(InlineNotification, { ...props });
|
|
34
|
+
}
|
|
35
|
+
const { kind, title, subtitle, hideCloseButton, onCloseButtonClick, children, } = props;
|
|
36
|
+
return (_jsx(Alert, { variant: kindToAlertVariant(kind), title: typeof title === 'string' ? title : undefined, description: subtitle, dismissible: !hideCloseButton, onDismiss: onCloseButtonClick, children: children }));
|
|
37
|
+
}
|
|
@@ -5,8 +5,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { OrganizationRole } from '@camunda/ccma-shared-types';
|
|
8
|
-
import { Checkbox, InlineNotification, Link, Modal, Stack, TextInput, } from '@carbon/react';
|
|
9
8
|
import { forwardRef, useCallback, useImperativeHandle, useMemo, useState, } from 'react';
|
|
9
|
+
import { Checkbox, Link, Modal, Stack, TextInput } from '../../ui/index.js';
|
|
10
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
10
11
|
function safeTranslate(t, key, defaultValue, options) {
|
|
11
12
|
if (!t)
|
|
12
13
|
return defaultValue;
|
|
@@ -176,7 +177,7 @@ export const C4InviteUserToOrganizationModal = forwardRef(({ t, onInviteUser, sh
|
|
|
176
177
|
return (_jsx(Modal, { open: isOpen, modalHeading: modalHeading, primaryButtonText: safeTranslate(t, 'invitations:invite.buttons.primary', 'Send invite'), secondaryButtonText: safeTranslate(t, 'orgmanagement:common.cancel', 'Cancel'), primaryButtonDisabled: inviteSaving, onRequestClose: close, onRequestSubmit: onSubmit, children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-invite-email', labelText: safeTranslate(t, 'invitations:invite.form.email', 'Email address'), value: inviteEmail, onChange: (e) => {
|
|
177
178
|
setInviteError(undefined);
|
|
178
179
|
setInviteEmail(e.currentTarget.value);
|
|
179
|
-
}, disabled: inviteSaving, invalid: Boolean(inviteError), invalidText: inviteError }), rolesError && (_jsx(
|
|
180
|
+
}, disabled: inviteSaving, invalid: Boolean(inviteError), invalidText: inviteError }), rolesError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: rolesError })), _jsxs("fieldset", { className: 'cds--fieldset', children: [_jsx("legend", { className: 'cds--label', children: safeTranslate(t, 'invitations:invite.form.roles', 'Select role(s) to the platform') }), primaryRoles.map((role) => {
|
|
180
181
|
const enriched = roleLabelDescription(t, role);
|
|
181
182
|
return (_jsxs("span", { children: [_jsx(Checkbox, { labelText: enriched.label, id: `c4-invite-role-${role}`, checked: inviteRoles.has(role), disabled: inviteSaving, onChange: (_, data) => {
|
|
182
183
|
setRolesError(undefined);
|
|
@@ -191,7 +192,7 @@ export const C4InviteUserToOrganizationModal = forwardRef(({ t, onInviteUser, sh
|
|
|
191
192
|
return next;
|
|
192
193
|
});
|
|
193
194
|
} }), enriched.description && (_jsx("span", { className: 'cds--label', style: { marginLeft: '27px' }, children: enriched.description }))] }, `c4-invite-role-${role}`));
|
|
194
|
-
}), _jsxs("div", { style: { margin: '16px 0' }, children: [_jsx(
|
|
195
|
+
}), _jsxs("div", { style: { margin: '16px 0' }, children: [_jsx(C4InlineNotification, { lowContrast: true, kind: 'info', hideCloseButton: true, title: '', subtitle: safeTranslate(t, 'users:changeOrgRoles.notification.title', 'Starting with version 8.8, user access to clusters is managed independently.') }), _jsxs("p", { style: { paddingTop: '4px' }, children: [_jsx(Link, { href: learnMoreUrl, target: '_blank', rel: 'noopener noreferrer', children: safeTranslate(t, 'users:changeOrgRoles.notification.learnMore', 'Learn more') }), "."] }), _jsx("p", { style: { paddingTop: '4px' }, children: safeTranslate(t, 'invitations:invite.form.clusterAuthDisabledNote', 'If cluster authorizations are disabled, the user will have full access to the cluster and its components.') })] }), legacyClusterRoles.length > 0 && (_jsxs(_Fragment, { children: [_jsx("div", { style: {
|
|
195
196
|
color: 'var(--cds-text-secondary)',
|
|
196
197
|
letterSpacing: 'var(--cds-label-01-letter-spacing, 0.32px)',
|
|
197
198
|
fontSize: 'var(--cds-label-01-font-size, 0.75rem)',
|
|
@@ -4,12 +4,14 @@ 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 { InlineNotification, Stack, Tile } from '@carbon/react';
|
|
8
7
|
import styled from 'styled-components';
|
|
8
|
+
import { Stack, Tile } from '../../ui/index.js';
|
|
9
9
|
import { C4Breadcrumb } from '../c4-breadcrumb/c4-breadcrumb.js';
|
|
10
|
+
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
10
11
|
import { C4JobDashboardErrorHandler } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
11
12
|
import C4JobDashboardTimeRangeDropdown from '../c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js';
|
|
12
13
|
import C4TimestampInformation from '../c4-job-dashboard-shared/c4-timestamp-information.js';
|
|
14
|
+
import { C4PageLayout } from '../c4-page-layout/c4-page-layout.js';
|
|
13
15
|
import C4JobDashboardErrorTable from './elements/c4-job-dashboard-error-table.js';
|
|
14
16
|
import C4JobDashboardPieChart from './elements/c4-job-dashboard-piechart.js';
|
|
15
17
|
import C4JobDashboardTimeChart from './elements/c4-job-dashboard-time-chart.js';
|
|
@@ -53,5 +55,5 @@ export const C4JobDashboardDetailsPage = ({ jobType, config, isLoadingConfig, la
|
|
|
53
55
|
const error = { status: 403, details: 'Feature is disabled', message: '' };
|
|
54
56
|
return (_jsx(C4JobDashboardErrorHandler, { itemsLength: 0, showIcons: true, translations: translations.errorHandler, error: error }));
|
|
55
57
|
}
|
|
56
|
-
return (_jsxs(Stack, { gap: 4, children: [_jsx(C4Breadcrumb, { title: translations.title, elements: breadcrumb.elements }), _jsxs("p", { children: [translations.jobTypeLabel, " ", _jsx("strong", { children: jobType })] }), _jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: lastUpdatedAt }), _jsx(C4JobDashboardTimeRangeDropdown, { onChange: onTimeRangeChange, exportInterval: config?.exportInterval, disabled: isLoadingConfig, translations: translations.dropdown }), jobData.isIncomplete && (_jsx(
|
|
58
|
+
return (_jsx(C4PageLayout, { children: _jsxs(Stack, { gap: 4, children: [_jsx(C4Breadcrumb, { title: translations.title, elements: breadcrumb.elements }), _jsxs("p", { children: [translations.jobTypeLabel, " ", _jsx("strong", { children: jobType })] }), _jsx(C4TimestampInformation, { description: translations.lastUpdated, lastUpdatedAt: lastUpdatedAt }), _jsx(C4JobDashboardTimeRangeDropdown, { onChange: onTimeRangeChange, exportInterval: config?.exportInterval, disabled: isLoadingConfig, translations: translations.dropdown }), jobData.isIncomplete && (_jsx(C4InlineNotification, { style: { maxWidth: '100%' }, lowContrast: true, kind: 'warning', title: translations.dataLimitWarning.title, subtitle: translations.dataLimitWarning.description })), _jsx(ChartContainer, { children: _jsxs(ChartGrid, { children: [_jsx(TimeChartWrapper, { children: _jsx(C4JobDashboardTimeChart, { timeSeries: timeSeries.items, colorScale: colorScale, isLoading: timeSeries.isLoading, translations: translations, error: timeSeries.error }) }), _jsx(PieChartWrapper, { children: _jsx(C4JobDashboardPieChart, { jobData: jobData.data, colorScale: colorScale, isLoading: jobData.isLoading, translations: translations, error: jobData.error }) })] }) }), _jsx(TileWithShadow, { children: _jsx(C4JobDashboardWorkerTable, { workerData: workerData.items, isLoading: workerData.isLoading, translations: translations, error: workerData.error }) }), _jsx(TileWithShadow, { children: _jsx(C4JobDashboardErrorTable, { errors: errorData.items, operateBaseUrl: errorData.operateBaseUrl, isLoading: errorData.isLoading, translations: translations, error: errorData.error, trackErrorClick: trackErrorClick }) })] }) }));
|
|
57
59
|
};
|
package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
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 { getDropdownTranslations, getErrorHandlerTranslations, } from '../c4-job-dashboard-shared/c4-stories-data-generator.js';
|
|
7
|
+
// All dates below are computed relative to real "now" (rather than a fixed
|
|
8
|
+
// past date, which reads as obviously stale in a docs screenshot) - matches
|
|
9
|
+
// this migration's dynamic-date convention (see stories/shared/billing-dates.ts).
|
|
10
|
+
const MINUTE = 60 * 1000;
|
|
11
|
+
const HOUR = 60 * MINUTE;
|
|
12
|
+
const now = Date.now();
|
|
13
|
+
const isoAt = (offsetMs) => new Date(now - offsetMs).toISOString();
|
|
14
|
+
const lastUpdatedDisplay = new Date(now).toLocaleString('en-US', {
|
|
15
|
+
month: 'long',
|
|
16
|
+
day: 'numeric',
|
|
17
|
+
year: 'numeric',
|
|
18
|
+
hour: 'numeric',
|
|
19
|
+
minute: '2-digit',
|
|
20
|
+
hour12: true,
|
|
21
|
+
});
|
|
22
|
+
export const defaultDetailsProps = {
|
|
23
|
+
jobType: 'fetch-customer-data',
|
|
24
|
+
lastUpdatedAt: lastUpdatedDisplay,
|
|
25
|
+
config: {
|
|
26
|
+
enabled: true,
|
|
27
|
+
exportInterval: 'PT5M',
|
|
28
|
+
},
|
|
29
|
+
isLoadingConfig: false,
|
|
30
|
+
breadcrumb: {
|
|
31
|
+
elements: [
|
|
32
|
+
{ key: 'clusters', label: 'Clusters', href: '/clusters' },
|
|
33
|
+
{
|
|
34
|
+
key: 'cluster-123',
|
|
35
|
+
label: 'cluster-123',
|
|
36
|
+
href: '/clusters/cluster-123',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: 'job-dashboard',
|
|
40
|
+
label: 'Job Dashboard',
|
|
41
|
+
href: '/clusters/cluster-123/job-dashboard',
|
|
42
|
+
},
|
|
43
|
+
{ key: 'job-type', label: 'fetch-customer-data' },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
onTimeRangeChange: () => { },
|
|
47
|
+
translations: {
|
|
48
|
+
title: 'Job type details',
|
|
49
|
+
lastUpdated: 'Last updated:',
|
|
50
|
+
jobTypeLabel: 'Job type:',
|
|
51
|
+
backgroundFetching: 'Loading more data...',
|
|
52
|
+
dataLimitWarning: {
|
|
53
|
+
title: 'Data limit warning',
|
|
54
|
+
description: 'Not all data could be fetched. Data limit reached',
|
|
55
|
+
},
|
|
56
|
+
charts: {
|
|
57
|
+
jobLabel: {
|
|
58
|
+
singular: 'job',
|
|
59
|
+
plural: 'jobs',
|
|
60
|
+
},
|
|
61
|
+
jobWorkload: {
|
|
62
|
+
title: 'Job workload',
|
|
63
|
+
tooltip: 'Tracks the flow of created, completed and not completed (failed, cancelled, timed out) jobs over time for the chosen Job type.',
|
|
64
|
+
subtitle: 'Jobs created, completed and not completed (failed, cancelled, timed out) over time',
|
|
65
|
+
},
|
|
66
|
+
createdVsCompleted: {
|
|
67
|
+
title: 'Created vs completed jobs',
|
|
68
|
+
tooltip: 'Indicates overall completion rate. How many created jobs were finished for the chosen job type.',
|
|
69
|
+
},
|
|
70
|
+
axes: {
|
|
71
|
+
time: 'Time',
|
|
72
|
+
numberOfJobs: 'Number of jobs',
|
|
73
|
+
},
|
|
74
|
+
legend: {
|
|
75
|
+
created: 'Created',
|
|
76
|
+
completed: 'Completed',
|
|
77
|
+
failed: 'Not completed',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
workerTable: {
|
|
81
|
+
title: 'Job worker connection',
|
|
82
|
+
headers: {
|
|
83
|
+
workerName: 'Worker name',
|
|
84
|
+
createdJobs: 'Created Jobs',
|
|
85
|
+
completedJobs: 'Completed Jobs',
|
|
86
|
+
completedJobsTooltip: 'Jobs that have finished executing successfully.',
|
|
87
|
+
failedJobs: 'Failed Jobs',
|
|
88
|
+
failedJobsTooltip: 'Jobs that encountered an error and could not complete.',
|
|
89
|
+
lastCompleted: 'Last Completed',
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
errorTable: {
|
|
93
|
+
title: 'Failed Jobs by Error Type',
|
|
94
|
+
searchLabel: 'Search',
|
|
95
|
+
viewErrorsAction: 'View errors',
|
|
96
|
+
headers: {
|
|
97
|
+
errorType: 'Error Type',
|
|
98
|
+
errorMessage: 'Error Message',
|
|
99
|
+
jobsWithError: 'Job workers with errors',
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
errorHandler: getErrorHandlerTranslations(),
|
|
103
|
+
dropdown: getDropdownTranslations(),
|
|
104
|
+
},
|
|
105
|
+
// The totals below (jobData.data), the per-worker breakdown (workerData),
|
|
106
|
+
// and the per-interval series (timeSeries) are kept internally consistent:
|
|
107
|
+
// workerData's completed/failed sum to jobData.data's, and timeSeries'
|
|
108
|
+
// created/completed/failed each sum to jobData.data's - unlike the
|
|
109
|
+
// previous version, where a 1200/1100/50 top-line total didn't reconcile
|
|
110
|
+
// with either the ~750/~730/~7 worker sums or the timeSeries values.
|
|
111
|
+
jobData: {
|
|
112
|
+
data: {
|
|
113
|
+
created: {
|
|
114
|
+
count: 11,
|
|
115
|
+
lastUpdatedAt: isoAt(0),
|
|
116
|
+
},
|
|
117
|
+
completed: {
|
|
118
|
+
count: 10,
|
|
119
|
+
lastUpdatedAt: isoAt(0),
|
|
120
|
+
},
|
|
121
|
+
failed: {
|
|
122
|
+
count: 3,
|
|
123
|
+
lastUpdatedAt: isoAt(0),
|
|
124
|
+
},
|
|
125
|
+
lastUpdatedAt: isoAt(0),
|
|
126
|
+
},
|
|
127
|
+
isIncomplete: false,
|
|
128
|
+
isLoading: false,
|
|
129
|
+
},
|
|
130
|
+
workerData: {
|
|
131
|
+
items: [
|
|
132
|
+
{
|
|
133
|
+
worker: 'worker-1',
|
|
134
|
+
created: {
|
|
135
|
+
count: 7,
|
|
136
|
+
lastUpdatedAt: isoAt(0),
|
|
137
|
+
},
|
|
138
|
+
completed: {
|
|
139
|
+
count: 6,
|
|
140
|
+
lastUpdatedAt: isoAt(0),
|
|
141
|
+
},
|
|
142
|
+
failed: {
|
|
143
|
+
count: 2,
|
|
144
|
+
lastUpdatedAt: isoAt(2 * MINUTE),
|
|
145
|
+
},
|
|
146
|
+
lastUpdatedAt: isoAt(0),
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
worker: 'worker-2',
|
|
150
|
+
created: {
|
|
151
|
+
count: 4,
|
|
152
|
+
lastUpdatedAt: isoAt(2 * MINUTE),
|
|
153
|
+
},
|
|
154
|
+
completed: {
|
|
155
|
+
count: 4,
|
|
156
|
+
lastUpdatedAt: isoAt(2 * MINUTE),
|
|
157
|
+
},
|
|
158
|
+
failed: {
|
|
159
|
+
count: 1,
|
|
160
|
+
lastUpdatedAt: isoAt(4 * MINUTE),
|
|
161
|
+
},
|
|
162
|
+
lastUpdatedAt: isoAt(2 * MINUTE),
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
isLoading: false,
|
|
166
|
+
},
|
|
167
|
+
timeSeries: {
|
|
168
|
+
// 5 buckets spanning the full 24 hours ending at `lastUpdatedAt` (rather
|
|
169
|
+
// than a few minutes) so the x-axis actually matches the "Last 24 hours"
|
|
170
|
+
// range selected above it. Mountain-shaped (peaking mid-window) rather
|
|
171
|
+
// than a monotonic decline from unrealistically large counts. Each
|
|
172
|
+
// series' counts sum to jobData.data's total above (created: 11,
|
|
173
|
+
// completed: 10, failed: 3).
|
|
174
|
+
items: [
|
|
175
|
+
{
|
|
176
|
+
time: isoAt(24 * HOUR),
|
|
177
|
+
created: { count: 1, lastUpdatedAt: isoAt(24 * HOUR) },
|
|
178
|
+
completed: { count: 1, lastUpdatedAt: isoAt(24 * HOUR) },
|
|
179
|
+
failed: { count: 0, lastUpdatedAt: isoAt(24 * HOUR) },
|
|
180
|
+
lastUpdatedAt: isoAt(24 * HOUR),
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
time: isoAt(18 * HOUR),
|
|
184
|
+
created: { count: 2, lastUpdatedAt: isoAt(18 * HOUR) },
|
|
185
|
+
completed: { count: 2, lastUpdatedAt: isoAt(18 * HOUR) },
|
|
186
|
+
failed: { count: 1, lastUpdatedAt: isoAt(18 * HOUR) },
|
|
187
|
+
lastUpdatedAt: isoAt(18 * HOUR),
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
time: isoAt(12 * HOUR),
|
|
191
|
+
created: { count: 3, lastUpdatedAt: isoAt(12 * HOUR) },
|
|
192
|
+
completed: { count: 3, lastUpdatedAt: isoAt(12 * HOUR) },
|
|
193
|
+
failed: { count: 1, lastUpdatedAt: isoAt(12 * HOUR) },
|
|
194
|
+
lastUpdatedAt: isoAt(12 * HOUR),
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
time: isoAt(6 * HOUR),
|
|
198
|
+
created: { count: 3, lastUpdatedAt: isoAt(6 * HOUR) },
|
|
199
|
+
completed: { count: 2, lastUpdatedAt: isoAt(6 * HOUR) },
|
|
200
|
+
failed: { count: 1, lastUpdatedAt: isoAt(6 * HOUR) },
|
|
201
|
+
lastUpdatedAt: isoAt(6 * HOUR),
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
time: isoAt(0),
|
|
205
|
+
created: { count: 2, lastUpdatedAt: isoAt(0) },
|
|
206
|
+
completed: { count: 2, lastUpdatedAt: isoAt(0) },
|
|
207
|
+
failed: { count: 0, lastUpdatedAt: isoAt(0) },
|
|
208
|
+
lastUpdatedAt: isoAt(0),
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
isLoading: false,
|
|
212
|
+
},
|
|
213
|
+
errorData: {
|
|
214
|
+
operateBaseUrl: 'https://example.camunda.io/operate',
|
|
215
|
+
// Sums to jobData.data.failed.count (3) above, instead of wildly
|
|
216
|
+
// exceeding the total number of failed jobs.
|
|
217
|
+
items: [
|
|
218
|
+
{
|
|
219
|
+
errorCode: 'UNHANDLED_ERROR_EVENT',
|
|
220
|
+
errorMessage: 'An unexpected error occurred.',
|
|
221
|
+
workers: 2,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
errorCode: 'IO_ERROR',
|
|
225
|
+
errorMessage: 'Failed to read from remote server.',
|
|
226
|
+
workers: 1,
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
isLoading: false,
|
|
230
|
+
},
|
|
231
|
+
};
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js
CHANGED
|
@@ -4,9 +4,9 @@ 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 { Tooltip } from '@carbon/react';
|
|
8
7
|
import { Information } from '@carbon/react/icons/index.esm.js';
|
|
9
8
|
import styled from 'styled-components';
|
|
9
|
+
import { Tooltip } from '../../../ui/index.js';
|
|
10
10
|
const Wrapper = styled.div `
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
|
|
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 { C3DataTable, } from '@camunda/camunda-composite-components';
|
|
8
|
-
import { Stack } from '@carbon/react';
|
|
2
|
+
import { Stack } from '../../../ui/index.js';
|
|
3
|
+
import { C4DataTable } from '../../c4-data-table/c4-data-table.js';
|
|
9
4
|
import { C4BackgroundFetchingIndicator } from '../../c4-job-dashboard-shared/c4-background-fetching-indicator.js';
|
|
10
5
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
11
6
|
function noWrapLabel(label) {
|
|
@@ -47,7 +42,7 @@ function C4JobDashboardErrorTable({ errors, operateBaseUrl, isLoading, translati
|
|
|
47
42
|
},
|
|
48
43
|
]
|
|
49
44
|
: [];
|
|
50
|
-
return (_jsxs(_Fragment, { children: [_jsx("h2", { children: translations.errorTable.title }), _jsx(
|
|
45
|
+
return (_jsxs(_Fragment, { children: [_jsx("h2", { children: translations.errorTable.title }), _jsx(C4DataTable, { id: 'errors-data-table', data: rows, headers: [
|
|
51
46
|
{
|
|
52
47
|
key: 'errorCode',
|
|
53
48
|
label: noWrapLabel(translations.errorTable.headers.errorType),
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
/*
|
|
3
3
|
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
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
7
|
import { DonutChart } from '@carbon/charts-react';
|
|
8
|
+
import { Cell, Pie, PieChart, ResponsiveContainer, Tooltip } from 'recharts';
|
|
9
|
+
import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
|
|
10
|
+
import { JOB_STATUS_DS_COLORS } from '../../c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js';
|
|
8
11
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
12
|
+
import { DS_CHART_TOOLTIP_PROPS } from '../../shared-charts/recharts-tokens.js';
|
|
9
13
|
import { CHART_HEIGHT, PIE_CHART_MAX_WIDTH_PX, } from '../c4-job-dashboard-details-page.js';
|
|
10
14
|
import C4JobDashboardChartHeading from './c4-job-dashboard-chart-heading.js';
|
|
11
15
|
function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, translations, }) {
|
|
16
|
+
const designSystem = useC4DesignSystem();
|
|
12
17
|
const completedCount = jobData?.completed?.count ?? 0;
|
|
13
18
|
const failedCount = jobData?.failed?.count ?? 0;
|
|
14
19
|
const createdCount = jobData?.created?.count ?? 0;
|
|
@@ -67,9 +72,58 @@ function C4JobDashboardPieChart({ jobData, error, colorScale, isLoading, transla
|
|
|
67
72
|
loading: isLoading,
|
|
68
73
|
},
|
|
69
74
|
};
|
|
75
|
+
const dsPieData = [
|
|
76
|
+
{
|
|
77
|
+
key: 'completed',
|
|
78
|
+
label: getPieChartLabel(completedCount, translations.charts.legend.completed),
|
|
79
|
+
value: completedCount,
|
|
80
|
+
color: JOB_STATUS_DS_COLORS.completed,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: 'failed',
|
|
84
|
+
label: getPieChartLabel(failedCount, translations.charts.legend.failed),
|
|
85
|
+
value: failedCount,
|
|
86
|
+
color: JOB_STATUS_DS_COLORS.failed,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: 'created',
|
|
90
|
+
label: getPieChartLabel(createdCount, translations.charts.legend.created),
|
|
91
|
+
value: createdCount,
|
|
92
|
+
color: JOB_STATUS_DS_COLORS.created,
|
|
93
|
+
},
|
|
94
|
+
];
|
|
70
95
|
const noData = (jobData?.created.count === jobData?.failed.count &&
|
|
71
96
|
jobData?.completed.count === 0) ||
|
|
72
97
|
!jobData;
|
|
73
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { style: { marginBottom: 25 }, children: _jsx(C4JobDashboardChartHeading, { title: translations.charts.createdVsCompleted.title, tooltipLabel: translations.charts.createdVsCompleted.tooltip }) }), (!jobData || noData || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: noData ? 0 : 1, showIcons: false, translations: translations.errorHandler, error: error })) : (
|
|
98
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { style: { marginBottom: 25 }, children: _jsx(C4JobDashboardChartHeading, { title: translations.charts.createdVsCompleted.title, tooltipLabel: translations.charts.createdVsCompleted.tooltip }) }), (!jobData || noData || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: noData ? 0 : 1, showIcons: false, translations: translations.errorHandler, error: error })) : designSystem === 'ds' ? (_jsxs("div", { style: { maxWidth: PIE_CHART_MAX_WIDTH_PX, margin: '0 auto' }, children: [_jsxs("div", { style: { position: 'relative', height: CHART_HEIGHT }, children: [_jsx(ResponsiveContainer, { width: '100%', height: '100%', children: _jsxs(PieChart, { children: [_jsx(Pie, { data: dsPieData, dataKey: 'value', nameKey: 'label', innerRadius: '62%', outerRadius: '88%', paddingAngle: 2, stroke: 'none', children: dsPieData.map((entry) => (_jsx(Cell, { fill: entry.color }, entry.key))) }), _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS })] }) }), _jsx("div", { style: {
|
|
99
|
+
position: 'absolute',
|
|
100
|
+
top: '50%',
|
|
101
|
+
left: '50%',
|
|
102
|
+
transform: 'translate(-50%, -50%)',
|
|
103
|
+
textAlign: 'center',
|
|
104
|
+
pointerEvents: 'none',
|
|
105
|
+
}, children: _jsx("div", { style: {
|
|
106
|
+
fontSize: 24,
|
|
107
|
+
fontWeight: 700,
|
|
108
|
+
color: 'var(--neutral-foreground-strong)',
|
|
109
|
+
}, children: isLoading ? '' : `${completionRate}%` }) })] }), _jsx("div", { style: {
|
|
110
|
+
display: 'flex',
|
|
111
|
+
gap: 16,
|
|
112
|
+
justifyContent: 'center',
|
|
113
|
+
marginTop: 12,
|
|
114
|
+
flexWrap: 'wrap',
|
|
115
|
+
}, children: dsPieData.map((entry) => (_jsxs("div", { style: {
|
|
116
|
+
display: 'flex',
|
|
117
|
+
alignItems: 'center',
|
|
118
|
+
gap: 6,
|
|
119
|
+
fontSize: 12,
|
|
120
|
+
color: 'var(--neutral-foreground-subtle)',
|
|
121
|
+
}, children: [_jsx("span", { style: {
|
|
122
|
+
width: 10,
|
|
123
|
+
height: 10,
|
|
124
|
+
borderRadius: '50%',
|
|
125
|
+
background: entry.color,
|
|
126
|
+
display: 'inline-block',
|
|
127
|
+
} }), entry.label] }, entry.key))) })] })) : (_jsx("div", { style: { maxWidth: PIE_CHART_MAX_WIDTH_PX, margin: '0 auto' }, children: _jsx(DonutChart, { data: pieData, options: pieOptions }) }))] }));
|
|
74
128
|
}
|
|
75
129
|
export default C4JobDashboardPieChart;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js
CHANGED
|
@@ -6,8 +6,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
*/
|
|
7
7
|
import { TickRotations } from '@carbon/charts';
|
|
8
8
|
import { ScaleTypes, StackedAreaChart, } from '@carbon/charts-react';
|
|
9
|
-
import {
|
|
9
|
+
import { Area, AreaChart, CartesianGrid, Legend, ResponsiveContainer, Tooltip, XAxis, YAxis, } from 'recharts';
|
|
10
|
+
import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
|
|
11
|
+
import { Stack } from '../../../ui/index.js';
|
|
12
|
+
import { JOB_STATUS_DS_COLORS } from '../../c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js';
|
|
10
13
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
14
|
+
import { DS_CHART_AXIS_COLOR, DS_CHART_GRID_COLOR, DS_CHART_TOOLTIP_PROPS, } from '../../shared-charts/recharts-tokens.js';
|
|
11
15
|
import { CHART_HEIGHT } from '../c4-job-dashboard-details-page.js';
|
|
12
16
|
import C4JobDashboardChartHeading from './c4-job-dashboard-chart-heading.js';
|
|
13
17
|
function formatTooltipTimestamp(value) {
|
|
@@ -20,6 +24,7 @@ function formatTooltipTimestamp(value) {
|
|
|
20
24
|
}).format(new Date(value));
|
|
21
25
|
}
|
|
22
26
|
function C4JobDashboardTimeChart({ timeSeries, isLoading, colorScale, translations, error, }) {
|
|
27
|
+
const designSystem = useC4DesignSystem();
|
|
23
28
|
const chartData = timeSeries.flatMap((item) => [
|
|
24
29
|
{
|
|
25
30
|
group: translations.charts.legend.created,
|
|
@@ -44,6 +49,24 @@ function C4JobDashboardTimeChart({ timeSeries, isLoading, colorScale, translatio
|
|
|
44
49
|
const lastTimeDataPoint = Math.max(...timeSeries.map((t) => new Date(t.time).getTime()));
|
|
45
50
|
const coversMultipleDays = new Date(firstTimeDataPoint).toDateString() !==
|
|
46
51
|
new Date(lastTimeDataPoint).toDateString();
|
|
52
|
+
const dsRows = timeSeries.map((item) => ({
|
|
53
|
+
time: new Date(item.time).toISOString(),
|
|
54
|
+
[translations.charts.legend.created]: item.created.count,
|
|
55
|
+
[translations.charts.legend.completed]: item.completed.count,
|
|
56
|
+
[translations.charts.legend.failed]: item.failed.count,
|
|
57
|
+
}));
|
|
58
|
+
const formatDsTick = (tick, index) => {
|
|
59
|
+
if (index % 2 !== 0)
|
|
60
|
+
return '';
|
|
61
|
+
const date = new Date(tick);
|
|
62
|
+
return coversMultipleDays
|
|
63
|
+
? Intl.DateTimeFormat('en-US', { month: 'short', day: '2-digit' }).format(date)
|
|
64
|
+
: Intl.DateTimeFormat('en-US', {
|
|
65
|
+
hour12: false,
|
|
66
|
+
hour: '2-digit',
|
|
67
|
+
minute: '2-digit',
|
|
68
|
+
}).format(date);
|
|
69
|
+
};
|
|
47
70
|
const formattedColorScale = {
|
|
48
71
|
[translations.charts.legend.completed]: colorScale.Completed,
|
|
49
72
|
[translations.charts.legend.failed]: colorScale.Failed,
|
|
@@ -97,6 +120,18 @@ function C4JobDashboardTimeChart({ timeSeries, isLoading, colorScale, translatio
|
|
|
97
120
|
scale: formattedColorScale,
|
|
98
121
|
},
|
|
99
122
|
};
|
|
100
|
-
return (_jsxs(Stack, { gap: 6, children: [_jsx(C4JobDashboardChartHeading, { title: translations.charts.jobWorkload.title, tooltipLabel: translations.charts.jobWorkload.tooltip }), _jsxs("strong", { children: [translations.charts.jobWorkload.subtitle, " "] }), (!timeSeries || timeSeries.length === 0 || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: timeSeries.length, showIcons: false, translations: translations.errorHandler, error: error })) : (_jsx("div", { style: { height: CHART_HEIGHT }, children: _jsx(
|
|
123
|
+
return (_jsxs(Stack, { gap: 6, children: [_jsx(C4JobDashboardChartHeading, { title: translations.charts.jobWorkload.title, tooltipLabel: translations.charts.jobWorkload.tooltip }), _jsxs("strong", { children: [translations.charts.jobWorkload.subtitle, " "] }), (!timeSeries || timeSeries.length === 0 || error) && !isLoading ? (_jsx(C4JobDashboardErrorHandler, { itemsLength: timeSeries.length, showIcons: false, translations: translations.errorHandler, error: error })) : designSystem === 'ds' ? (_jsx("div", { style: { height: CHART_HEIGHT }, children: _jsx(ResponsiveContainer, { width: '100%', height: '100%', children: _jsxs(AreaChart, { data: dsRows, margin: { top: 8, right: 16, left: 8, bottom: 8 }, children: [_jsx(CartesianGrid, { stroke: DS_CHART_GRID_COLOR, vertical: false }), _jsx(XAxis, { dataKey: 'time', tickFormatter: formatDsTick, stroke: DS_CHART_AXIS_COLOR, tick: { fill: DS_CHART_AXIS_COLOR, fontSize: 12 }, label: {
|
|
124
|
+
value: translations.charts.axes.time,
|
|
125
|
+
position: 'insideBottom',
|
|
126
|
+
offset: -6,
|
|
127
|
+
fill: DS_CHART_AXIS_COLOR,
|
|
128
|
+
fontSize: 12,
|
|
129
|
+
} }), _jsx(YAxis, { domain: [0, maxStackedValue], stroke: DS_CHART_AXIS_COLOR, tick: { fill: DS_CHART_AXIS_COLOR, fontSize: 12 }, label: {
|
|
130
|
+
value: translations.charts.axes.numberOfJobs,
|
|
131
|
+
angle: -90,
|
|
132
|
+
position: 'insideLeft',
|
|
133
|
+
fill: DS_CHART_AXIS_COLOR,
|
|
134
|
+
fontSize: 12,
|
|
135
|
+
} }), _jsx(Tooltip, { ...DS_CHART_TOOLTIP_PROPS, labelFormatter: (label) => formatTooltipTimestamp(String(label)) }), _jsx(Legend, { wrapperStyle: { color: DS_CHART_AXIS_COLOR, fontSize: 12 } }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.created, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.created, fill: JOB_STATUS_DS_COLORS.created, fillOpacity: 0.6 }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.completed, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.completed, fill: JOB_STATUS_DS_COLORS.completed, fillOpacity: 0.6 }), _jsx(Area, { type: 'monotone', dataKey: translations.charts.legend.failed, stackId: 'status', stroke: JOB_STATUS_DS_COLORS.failed, fill: JOB_STATUS_DS_COLORS.failed, fillOpacity: 0.6 })] }) }) })) : (_jsx("div", { style: { height: CHART_HEIGHT }, children: _jsx(StackedAreaChart, { data: chartData, options: areaOptions }) }))] }));
|
|
101
136
|
}
|
|
102
137
|
export default C4JobDashboardTimeChart;
|
package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js
CHANGED
|
@@ -4,8 +4,8 @@ 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 {
|
|
8
|
-
import {
|
|
7
|
+
import { Stack } from '../../../ui/index.js';
|
|
8
|
+
import { C4DataTable } from '../../c4-data-table/c4-data-table.js';
|
|
9
9
|
import { C4BackgroundFetchingIndicator } from '../../c4-job-dashboard-shared/c4-background-fetching-indicator.js';
|
|
10
10
|
import { C4JobDashboardErrorHandler } from '../../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
11
11
|
import { headerWithTooltip } from '../../c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js';
|
|
@@ -21,7 +21,7 @@ function C4JobDashboardWorkerTable({ workerData, error, isLoading, translations,
|
|
|
21
21
|
if (error || (!isLoading && workerData.length === 0)) {
|
|
22
22
|
return (_jsxs(_Fragment, { children: [_jsx("h2", { children: translations.workerTable.title }), _jsx(C4JobDashboardErrorHandler, { itemsLength: workerData.length, showIcons: false, error: error, translations: translations.errorHandler })] }));
|
|
23
23
|
}
|
|
24
|
-
return (_jsxs(Stack, { gap: 4, children: [_jsx("h2", { children: translations.workerTable.title }), _jsx(
|
|
24
|
+
return (_jsxs(Stack, { gap: 4, children: [_jsx("h2", { children: translations.workerTable.title }), _jsx(C4DataTable, { id: 'worker-data-table', data: tableData, headers: [
|
|
25
25
|
{ key: 'worker', label: translations.workerTable.headers.workerName },
|
|
26
26
|
{
|
|
27
27
|
key: 'completed',
|
|
@@ -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 {
|
|
7
|
+
import { Layer } from '@carbon/react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { JobsCompletedIcon, JobsCreatedIcon, JobsFailedIcon, } from '../../icons/c4-icons.js';
|
|
10
|
+
import { Button, Loading, Stack, Tile, Tooltip } from '../../ui/index.js';
|
|
10
11
|
import { C4JobDashboardErrorHandler } from '../c4-job-dashboard-shared/c4-job-dashboard-error-handler.js';
|
|
11
12
|
import C4TimestampInformation from '../c4-job-dashboard-shared/c4-timestamp-information.js';
|
|
12
13
|
const containerHeight = '30vh';
|