@camunda/ccma-saas-frontend 0.0.46 → 0.1.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/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.js +2 -1
- 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 +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +1 -1
- package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -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-clients/c4-cluster-details-clients.js +6 -10
- package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
- 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-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-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
- package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +6 -4
- package/lib/esm/components/c4-cluster-overview/applications.js +2 -1
- package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
- package/lib/esm/components/c4-cluster-overview/cluster-details.js +12 -10
- package/lib/esm/components/c4-cluster-overview/cluster-load.js +1 -1
- package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
- package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +3 -3
- 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 +4 -2
- 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/elements/empty-state.js +2 -2
- package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +44 -15
- package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +4 -2
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
- package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +2 -1
- 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 +194 -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-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/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-time-chart.js +1 -1
- 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-shared/c4-background-fetching-indicator.js +1 -6
- 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.js +7 -9
- package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
- package/lib/esm/components/c4-management-overview/c4-management-overview.js +8 -12
- 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 +2 -1
- 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 +41 -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 +2 -1
- 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 +1 -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 +1 -1
- 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/i18n/c4-console-i18n.js +8 -0
- package/lib/esm/i18n/en/modals/clusters.json +0 -8
- package/lib/esm/i18n/en/pages/clusterdetails.json +5 -1
- package/lib/esm/i18n/en/pages/orgmanagement.json +3 -1
- package/lib/esm/index.d.ts +17 -0
- package/lib/esm/index.js +13 -0
- package/lib/esm/runtime/c4-console-authz.js +1 -1
- package/lib/esm/runtime/c4-console-authz.spec.js +3 -3
- 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 +8 -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 +31 -0
- package/lib/esm/ui/index.js +94 -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.js +7 -2
- 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/tabs/c4-cluster-details-alerts-tab.js +10 -6
- 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 +7 -5
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +54 -21
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +96 -5
- 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.js +5 -4
- package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
- package/lib/esm/widgets/clusters/c4-clusters-page.js +122 -66
- package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +133 -0
- package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -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 +54 -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 +10 -2
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
- package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +57 -4
- package/lib/esm/widgets/management/c4-management-app.spec.js +141 -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/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 +2 -1
- package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +10 -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 +47 -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 -4
- package/package.json +13 -6
|
@@ -41,12 +41,16 @@ vi.mock('@camunda/ccma-api', async () => {
|
|
|
41
41
|
...actual,
|
|
42
42
|
ConsoleClusterService: {
|
|
43
43
|
updateCluster: vi.fn(),
|
|
44
|
+
wakeCluster: vi.fn(),
|
|
44
45
|
},
|
|
45
46
|
SaaSJobsService: {
|
|
46
47
|
getJobStatisticsGlobal: vi.fn(),
|
|
47
48
|
},
|
|
48
49
|
};
|
|
49
50
|
});
|
|
51
|
+
vi.mock('../../../notifications/c4-console-notifications-handle', () => ({
|
|
52
|
+
addC4ConsoleNotification: vi.fn(),
|
|
53
|
+
}));
|
|
50
54
|
vi.mock('@camunda/camunda-composite-components', async () => {
|
|
51
55
|
const actual = await vi.importActual('@camunda/camunda-composite-components');
|
|
52
56
|
return {
|
|
@@ -257,7 +261,21 @@ describe('C4ClusterDetailsOverviewTab job statistics fetching', () => {
|
|
|
257
261
|
linkVisible: true,
|
|
258
262
|
}));
|
|
259
263
|
});
|
|
260
|
-
it('hides the connectors link when
|
|
264
|
+
it('hides the connectors link for pre-8.8 clusters when canViewConnectorsLink is false', async () => {
|
|
265
|
+
renderTab({
|
|
266
|
+
canViewConnectorsLink: false,
|
|
267
|
+
cluster: buildCluster('Healthy', {
|
|
268
|
+
zeebeVersion: 'zeebe:8.6.12',
|
|
269
|
+
connectorBridgeVersion: 'connector-bridge:8.6.12',
|
|
270
|
+
}),
|
|
271
|
+
});
|
|
272
|
+
await screen.findByTestId('cluster-overview');
|
|
273
|
+
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
274
|
+
linkLabel: 'Manage',
|
|
275
|
+
linkVisible: false,
|
|
276
|
+
}));
|
|
277
|
+
});
|
|
278
|
+
it('shows the connectors link for 8.8+ clusters even when canViewConnectorsLink is false', async () => {
|
|
261
279
|
renderTab({
|
|
262
280
|
canViewConnectorsLink: false,
|
|
263
281
|
cluster: buildCluster('Healthy', {
|
|
@@ -267,11 +285,12 @@ describe('C4ClusterDetailsOverviewTab job statistics fetching', () => {
|
|
|
267
285
|
});
|
|
268
286
|
await screen.findByTestId('cluster-overview');
|
|
269
287
|
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
288
|
+
url: '/org/org-1/cluster/cluster-1/connectors/management',
|
|
270
289
|
linkLabel: 'Manage',
|
|
271
|
-
linkVisible:
|
|
290
|
+
linkVisible: true,
|
|
272
291
|
}));
|
|
273
292
|
});
|
|
274
|
-
it('
|
|
293
|
+
it('hides the connectors link for pre-8.7 clusters even when canViewConnectorsLink is true', async () => {
|
|
275
294
|
renderTab({
|
|
276
295
|
cluster: buildCluster('Healthy', {
|
|
277
296
|
zeebeVersion: 'zeebe:8.6.12',
|
|
@@ -280,8 +299,40 @@ describe('C4ClusterDetailsOverviewTab job statistics fetching', () => {
|
|
|
280
299
|
});
|
|
281
300
|
await screen.findByTestId('cluster-overview');
|
|
282
301
|
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
283
|
-
|
|
284
|
-
|
|
302
|
+
linkLabel: 'Manage',
|
|
303
|
+
linkVisible: false,
|
|
304
|
+
}));
|
|
305
|
+
});
|
|
306
|
+
it('hides the connectors link for pre-8.7 clusters without a connectors url even when canViewConnectorsLink is true', async () => {
|
|
307
|
+
const cluster = buildCluster('Healthy', {
|
|
308
|
+
zeebeVersion: 'zeebe:8.6.12',
|
|
309
|
+
connectorBridgeVersion: 'connector-bridge:8.6.12',
|
|
310
|
+
});
|
|
311
|
+
const clusterWithoutConnectorsUrl = {
|
|
312
|
+
...cluster,
|
|
313
|
+
status: {
|
|
314
|
+
...cluster.status,
|
|
315
|
+
connectorsUrl: undefined,
|
|
316
|
+
},
|
|
317
|
+
};
|
|
318
|
+
renderTab({ cluster: clusterWithoutConnectorsUrl });
|
|
319
|
+
await screen.findByTestId('cluster-overview');
|
|
320
|
+
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
321
|
+
linkLabel: 'Manage',
|
|
322
|
+
linkVisible: false,
|
|
323
|
+
}));
|
|
324
|
+
});
|
|
325
|
+
it('shows the internal connectors link for 8.7 clusters when canViewConnectorsLink is true', async () => {
|
|
326
|
+
renderTab({
|
|
327
|
+
cluster: buildCluster('Healthy', {
|
|
328
|
+
zeebeVersion: 'zeebe:8.7.3',
|
|
329
|
+
connectorBridgeVersion: 'connector-bridge:8.7.3',
|
|
330
|
+
}),
|
|
331
|
+
});
|
|
332
|
+
await screen.findByTestId('cluster-overview');
|
|
333
|
+
expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
|
|
334
|
+
url: '/org/org-1/cluster/cluster-1/connectors/management',
|
|
335
|
+
linkLabel: 'Manage',
|
|
285
336
|
linkVisible: true,
|
|
286
337
|
}));
|
|
287
338
|
});
|
|
@@ -1138,3 +1189,43 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
|
|
|
1138
1189
|
});
|
|
1139
1190
|
});
|
|
1140
1191
|
});
|
|
1192
|
+
describe('C4ClusterDetailsOverviewTab Resume cluster', () => {
|
|
1193
|
+
beforeEach(() => {
|
|
1194
|
+
lastOverviewProps = undefined;
|
|
1195
|
+
vi.mocked(ConsoleClusterService.wakeCluster).mockReset();
|
|
1196
|
+
vi.mocked(SaaSJobsService.getJobStatisticsGlobal).mockResolvedValue(undefined);
|
|
1197
|
+
});
|
|
1198
|
+
afterEach(() => {
|
|
1199
|
+
cleanup();
|
|
1200
|
+
});
|
|
1201
|
+
it('calls wakeCluster API when wakeAction is invoked', async () => {
|
|
1202
|
+
vi.mocked(ConsoleClusterService.wakeCluster).mockResolvedValue(undefined);
|
|
1203
|
+
const onReloadCluster = vi.fn().mockResolvedValue(undefined);
|
|
1204
|
+
renderTab({
|
|
1205
|
+
cluster: buildCluster('Suspended'),
|
|
1206
|
+
canWakeCluster: true,
|
|
1207
|
+
onReloadCluster,
|
|
1208
|
+
});
|
|
1209
|
+
await screen.findByTestId('cluster-overview');
|
|
1210
|
+
await act(async () => {
|
|
1211
|
+
await lastOverviewProps?.details?.status?.wakeAction?.();
|
|
1212
|
+
});
|
|
1213
|
+
expect(ConsoleClusterService.wakeCluster).toHaveBeenCalledWith(expect.objectContaining({
|
|
1214
|
+
params: { orgId: 'org-1', clusterId: 'cluster-1' },
|
|
1215
|
+
}));
|
|
1216
|
+
expect(onReloadCluster).toHaveBeenCalled();
|
|
1217
|
+
});
|
|
1218
|
+
it('shows error notification when wakeCluster fails', async () => {
|
|
1219
|
+
vi.mocked(ConsoleClusterService.wakeCluster).mockRejectedValue(new Error('wake failed'));
|
|
1220
|
+
const { addC4ConsoleNotification } = await import('../../../notifications/c4-console-notifications-handle');
|
|
1221
|
+
renderTab({ cluster: buildCluster('Suspended'), canWakeCluster: true });
|
|
1222
|
+
await screen.findByTestId('cluster-overview');
|
|
1223
|
+
await act(async () => {
|
|
1224
|
+
await lastOverviewProps?.details?.status?.wakeAction?.();
|
|
1225
|
+
});
|
|
1226
|
+
expect(addC4ConsoleNotification).toHaveBeenCalledWith(expect.objectContaining({
|
|
1227
|
+
kind: 'error',
|
|
1228
|
+
title: 'Failed to resume cluster',
|
|
1229
|
+
}));
|
|
1230
|
+
});
|
|
1231
|
+
});
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleSecureConnectivityService } from '@camunda/ccma-api';
|
|
3
3
|
import { isValidAwsArn, isValidPrivateLinkRegion, PRIVATE_LINK_REGIONS, SECURE_CONNECTIVITY_ALLOWED_ENTRIES_LIMIT, SseEntity, } from '@camunda/ccma-shared-types';
|
|
4
|
-
import {
|
|
4
|
+
import { ButtonSet, InlineLoading, ProgressIndicator, ProgressStep, } from '@carbon/react';
|
|
5
5
|
import { Checkmark, Close } from '@carbon/react/icons/index.esm.js';
|
|
6
6
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
import { C4ClusterDetailsSecureConnectivity } from '../../../components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js';
|
|
8
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
9
|
+
import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../../../components/c4-structured-list/c4-structured-list.js';
|
|
8
10
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
9
11
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
12
|
+
import { Button, ComposedModal, FilterableMultiSelect, Modal, ModalBody, ModalFooter, ModalHeader, Stack, TextInput, Tile, } from '../../../ui/index.js';
|
|
10
13
|
function safeTranslate(t, key, fallback) {
|
|
11
14
|
if (!t)
|
|
12
15
|
return fallback;
|
|
@@ -139,7 +142,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
139
142
|
fontSize: '0.875rem',
|
|
140
143
|
fontWeight: 600,
|
|
141
144
|
color: 'var(--cds-text-secondary)',
|
|
142
|
-
}, children: "Principals" }), _jsx(
|
|
145
|
+
}, children: "Principals" }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: allowedPrincipals.length > 0 ? (allowedPrincipals.map((principal) => (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsxs("div", { style: {
|
|
143
146
|
display: 'flex',
|
|
144
147
|
alignItems: 'center',
|
|
145
148
|
justifyContent: 'space-between',
|
|
@@ -147,7 +150,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
147
150
|
}, children: [_jsx("span", { style: { flexGrow: 1 }, children: principal }), _jsx(Button, { kind: 'ghost', size: 'sm', hasIconOnly: true, renderIcon: Close, iconDescription: 'Remove principal', onClick: () => {
|
|
148
151
|
setSecureConnectivityMutationError('');
|
|
149
152
|
setAllowedPrincipals(allowedPrincipals.filter((item) => item !== principal));
|
|
150
|
-
} })] }) }) }, principal)))) : (_jsx(
|
|
153
|
+
} })] }) }) }, principal)))) : (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsx("div", { style: {
|
|
151
154
|
display: 'flex',
|
|
152
155
|
alignItems: 'center',
|
|
153
156
|
justifyContent: 'space-between',
|
|
@@ -179,7 +182,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
179
182
|
fontSize: '0.875rem',
|
|
180
183
|
fontWeight: 600,
|
|
181
184
|
color: 'var(--cds-text-secondary)',
|
|
182
|
-
}, children: "Selected regions" }), _jsx(
|
|
185
|
+
}, children: "Selected regions" }), _jsx(C4StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(C4StructuredListBody, { children: allowedRegions.length > 0 ? (allowedRegions.map((region) => (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsxs("div", { style: {
|
|
183
186
|
display: 'flex',
|
|
184
187
|
alignItems: 'center',
|
|
185
188
|
justifyContent: 'space-between',
|
|
@@ -188,7 +191,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
188
191
|
setShowAllowedRegionsLimitReached(false);
|
|
189
192
|
setSecureConnectivityMutationError('');
|
|
190
193
|
setAllowedRegions(allowedRegions.filter((item) => item !== region));
|
|
191
|
-
} })] }) }) }, region)))) : (_jsx(
|
|
194
|
+
} })] }) }) }, region)))) : (_jsx(C4StructuredListRow, { children: _jsx(C4StructuredListCell, { children: _jsx("div", { style: {
|
|
192
195
|
display: 'flex',
|
|
193
196
|
alignItems: 'center',
|
|
194
197
|
justifyContent: 'space-between',
|
|
@@ -353,7 +356,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
353
356
|
hasTooManyAllowedPrincipals) ||
|
|
354
357
|
(secureConnectivityEditMode === 'regions' && hasTooManyAllowedRegions);
|
|
355
358
|
const emptyDescription = (_jsxs(Stack, { gap: 6, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description0', 'Private networking allows you to connect privately to the cluster using inbound AWS PrivateLink.') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.description1', 'With inbound PrivateLink, traffic from your AWS VPC to Camunda cluster is routed privately and never traverses the public internet. This enables job workers and inbound connectors to run inside your own network while securely accessing Camunda.') }), showActivatingTile ? (_jsx(Tile, { light: true, children: _jsxs(Stack, { gap: 2, children: [_jsx(InlineLoading, { description: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingTitle', 'Activating PrivateLink endpoint service…') }), _jsxs(Stack, { gap: 1, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingText0', 'This may take a few minutes.') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.activatingText1', 'You can leave this page. We will notify you when the endpoint service is ready.') })] })] }) })) : undefined] }));
|
|
356
|
-
return (_jsxs(_Fragment, { children: [showActivePrivateLinkIpAllowlistConflict && (_jsx(
|
|
359
|
+
return (_jsxs(_Fragment, { children: [showActivePrivateLinkIpAllowlistConflict && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle, style: {
|
|
357
360
|
maxWidth: '100%',
|
|
358
361
|
width: '100%',
|
|
359
362
|
marginBottom: 'var(--cds-spacing-05)',
|
|
@@ -432,7 +435,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
432
435
|
}
|
|
433
436
|
closeActivateModal();
|
|
434
437
|
return true;
|
|
435
|
-
}, children: [_jsx(ModalHeader, { title: safeTranslate(t, 'clusterdetails:secureConnectivity.enableButton', 'Activate PrivateLink endpoint service') }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [hasIpAllowlist && (_jsx(
|
|
438
|
+
}, children: [_jsx(ModalHeader, { title: safeTranslate(t, 'clusterdetails:secureConnectivity.enableButton', 'Activate PrivateLink endpoint service') }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [hasIpAllowlist && (_jsx(C4InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle })), secureConnectivityMutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: 'Activation failed', subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), _jsxs(ProgressIndicator, { currentIndex: secureConnectivityModalStep, spaceEqually: true, onChange: setSecureConnectivityModalStep, children: [_jsx(ProgressStep, { label: 'Allowed principals' }, 'private-link-step-0'), _jsx(ProgressStep, { label: 'Supported regions' }, 'private-link-step-1')] }), (() => {
|
|
436
439
|
switch (secureConnectivityModalStep) {
|
|
437
440
|
case 0:
|
|
438
441
|
return renderAllowedPrincipalsEditor('activateModal');
|
|
@@ -522,7 +525,7 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
522
525
|
}
|
|
523
526
|
closeUpdateModal();
|
|
524
527
|
return true;
|
|
525
|
-
}, children: [_jsx(ModalHeader, { title: updateModalTitle }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [secureConnectivityMutationError && (_jsx(
|
|
528
|
+
}, children: [_jsx(ModalHeader, { title: updateModalTitle }), _jsx(ModalBody, { hasForm: true, children: _jsxs(Stack, { gap: 6, children: [secureConnectivityMutationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: updateModalErrorTitle, subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), secureConnectivityEditMode === 'regions'
|
|
526
529
|
? renderAllowedRegionsEditor()
|
|
527
530
|
: renderAllowedPrincipalsEditor('updateModal')] }) }), _jsx(ModalFooter, { children: _jsxs(ButtonSet, { style: { width: '100%' }, children: [_jsx(Button, { kind: 'secondary', disabled: secureConnectivityMutationBusy, onClick: closeUpdateModal, size: 'xl', style: { flex: 1, maxInlineSize: '100%' }, children: "Cancel" }), _jsx(Button, { kind: 'primary', disabled: isUpdateModalSaveDisabled, onClick: () => {
|
|
528
531
|
if (secureConnectivityEditMode === 'principals') {
|
|
@@ -574,5 +577,5 @@ export const C4ClusterDetailsSecureConnectivityTab = (props) => {
|
|
|
574
577
|
setSecureConnectivityDeactivating(false);
|
|
575
578
|
}
|
|
576
579
|
})();
|
|
577
|
-
}, children: _jsxs(Stack, { gap: 4, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody0', 'Are you sure you want to deactivate the PrivateLink endpoint service?') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody1', 'The private connectivity will be disabled for the Camunda cluster and all endpoint connections will be removed.') }), secureConnectivityMutationError ? (_jsx(
|
|
580
|
+
}, children: _jsxs(Stack, { gap: 4, children: [_jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody0', 'Are you sure you want to deactivate the PrivateLink endpoint service?') }), _jsx("p", { children: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalBody1', 'The private connectivity will be disabled for the Camunda cluster and all endpoint connections will be removed.') }), secureConnectivityMutationError ? (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalErrorTitle', 'Deactivation failed'), subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })) : undefined] }) })] }));
|
|
578
581
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleClusterService } from '@camunda/ccma-api';
|
|
3
3
|
import { checkVersion, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
4
|
-
import { InlineNotification, Link, Modal } from '@carbon/react';
|
|
5
4
|
import { Fragment, useCallback, useMemo, useState, } from 'react';
|
|
6
5
|
import { C4ClusterSettings } from '../../../components/c4-cluster-settings/c4-cluster-settings.js';
|
|
6
|
+
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
7
7
|
import { buildClusterSwaggerUrl } from '../../../runtime/build-cluster-swagger-url.js';
|
|
8
8
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
9
|
+
import { Link, Modal } from '../../../ui/index.js';
|
|
9
10
|
import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-paused.js';
|
|
10
11
|
// Helper to translate with fallback
|
|
11
12
|
function safeTranslate(translateFn, key, fallback, options) {
|
|
@@ -551,7 +552,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
551
552
|
updateIdentityBasedAuthorizations,
|
|
552
553
|
updateResourceBasedAuthorizations,
|
|
553
554
|
]);
|
|
554
|
-
return (_jsxs(_Fragment, { children: [operationError && (_jsx(
|
|
555
|
+
return (_jsxs(_Fragment, { children: [operationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(props.t, 'clusterdetails:settings.operationError.title', 'Setting update failed'), subtitle: operationError, onCloseButtonClick: () => setOperationError(undefined) })), _jsx(C4ClusterSettings, { settings: {
|
|
555
556
|
title: safeTranslate(props.t, 'clusterdetails:settings.clusterSettings.title', 'Cluster settings'),
|
|
556
557
|
...(shouldShowResourceBasedAuthorizations && {
|
|
557
558
|
resourceBasedAuthorizations: {
|
|
@@ -763,7 +764,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
763
764
|
setTasklistV2UpgradeError(undefined);
|
|
764
765
|
}, onRequestSubmit: () => {
|
|
765
766
|
void submitTasklistV2Upgrade();
|
|
766
|
-
}, size: 'sm', children: [_jsx("p", { children: safeTranslate(props.t, 'clusterdetails:settings.tasklistMode.modal.description', 'This action cannot be undone. Once upgraded to Tasklist v2, downgrading back to v1 will not be possible.') }), tasklistV2UpgradeError && (_jsx(
|
|
767
|
+
}, size: 'sm', children: [_jsx("p", { children: safeTranslate(props.t, 'clusterdetails:settings.tasklistMode.modal.description', 'This action cannot be undone. Once upgraded to Tasklist v2, downgrading back to v1 will not be possible.') }), tasklistV2UpgradeError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', hideCloseButton: true, title: '', subtitle: tasklistV2UpgradeError }))] })), authorizationsConfirm && (_jsxs(Modal, { open: true, modalHeading: authorizationsConfirmTitle, primaryButtonText: authorizationsConfirmPrimaryText, secondaryButtonText: safeTranslate(props.t, 'clusterdetails:settings.authorizations.modal.buttons.cancel', 'Cancel'), primaryButtonDisabled: isUpdatingRba || isUpdatingIdentityAuthorizations, onRequestClose: () => {
|
|
767
768
|
if (isUpdatingRba || isUpdatingIdentityAuthorizations) {
|
|
768
769
|
return;
|
|
769
770
|
}
|
|
@@ -771,5 +772,5 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
771
772
|
setAuthorizationsConfirmError(undefined);
|
|
772
773
|
}, onRequestSubmit: () => {
|
|
773
774
|
void submitAuthorizationsConfirmation();
|
|
774
|
-
}, size: 'sm', children: [authorizationsConfirmDescription, authorizationsConfirmError && (_jsx(
|
|
775
|
+
}, size: 'sm', children: [authorizationsConfirmDescription, authorizationsConfirmError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', hideCloseButton: true, title: '', subtitle: authorizationsConfirmError }))] }))] }));
|
|
775
776
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { C4ClustersPageProps } from './c4-clusters-page.types';
|
|
2
|
-
export declare const C4ClustersPage: (({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, onRequestFailoverCluster, }: C4ClustersPageProps) => import("react").JSX.Element) & {
|
|
2
|
+
export declare const C4ClustersPage: (({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, onRequestFailoverCluster, onNeedsReload, }: C4ClustersPageProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|