@camunda/ccma-saas-frontend 0.1.0 → 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.
Files changed (189) hide show
  1. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
  2. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
  3. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
  4. package/lib/esm/components/c4-billing-page/elements/value-metric.js +14 -3
  5. package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
  6. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +58 -1
  7. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +40 -6
  8. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +6 -0
  9. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
  10. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
  11. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
  12. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
  13. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
  14. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
  15. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
  16. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
  17. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
  18. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
  19. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  20. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +63 -2
  21. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
  22. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
  23. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  24. package/lib/esm/components/c4-cluster-overview/applications.js +17 -3
  25. package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
  26. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
  27. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
  28. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  29. package/lib/esm/components/c4-cluster-overview/cluster-details.js +59 -9
  30. package/lib/esm/components/c4-cluster-overview/cluster-load.js +38 -3
  31. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
  32. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
  33. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
  34. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
  35. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
  36. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
  37. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
  38. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
  39. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
  40. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
  41. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
  42. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
  43. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
  44. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
  45. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
  46. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +116 -24
  47. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
  48. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
  49. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +19 -1
  50. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
  51. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
  52. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
  53. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
  54. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
  55. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
  56. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
  57. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
  58. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
  59. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
  60. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
  61. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
  62. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +31 -58
  63. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
  64. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
  65. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +48 -30
  66. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
  67. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
  68. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
  69. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
  70. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
  71. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +5 -5
  72. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
  73. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
  74. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
  75. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
  76. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
  77. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
  78. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
  79. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
  80. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
  81. package/lib/esm/components/c4-data-table/c4-data-table.js +117 -34
  82. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
  83. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
  84. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
  85. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
  86. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
  87. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +36 -1
  88. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
  89. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
  90. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
  91. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
  92. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
  93. package/lib/esm/components/c4-management-activity/c4-management-activity.js +103 -1
  94. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
  95. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
  96. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
  97. package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
  98. package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
  99. package/lib/esm/components/c4-management-overview/c4-management-overview.js +6 -4
  100. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +1 -1
  101. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
  102. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +4 -1
  103. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +58 -36
  104. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +6 -0
  105. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +3 -1
  106. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
  107. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
  108. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
  109. package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
  110. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
  111. package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
  112. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
  113. package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
  114. package/lib/esm/externalUrls.const.d.ts +2 -0
  115. package/lib/esm/externalUrls.const.js +7 -0
  116. package/lib/esm/externalUrls.const.spec.js +2 -0
  117. package/lib/esm/i18n/en/entities/orgroles.json +0 -16
  118. package/lib/esm/i18n/en/pages/clusterdetails.json +9 -1
  119. package/lib/esm/i18n/en/pages/orgmanagement.json +9 -2
  120. package/lib/esm/index.d.ts +16 -1
  121. package/lib/esm/index.js +10 -1
  122. package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
  123. package/lib/esm/runtime/c4-console-authz.js +58 -28
  124. package/lib/esm/runtime/c4-console-authz.spec.js +84 -17
  125. package/lib/esm/runtime/c4-console-data-context.js +40 -0
  126. package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
  127. package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
  128. package/lib/esm/runtime/c4-console-data-store.js +145 -31
  129. package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
  130. package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
  131. package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
  132. package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
  133. package/lib/esm/runtime/c4-console-events-context.js +62 -0
  134. package/lib/esm/runtime/c4-console-runtime.types.d.ts +12 -0
  135. package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
  136. package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
  137. package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
  138. package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
  139. package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
  140. package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
  141. package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
  142. package/lib/esm/runtime/c4-user-theme.js +106 -0
  143. package/lib/esm/runtime/decode-access-token.d.ts +12 -0
  144. package/lib/esm/runtime/decode-access-token.js +39 -0
  145. package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
  146. package/lib/esm/runtime/nav/camunda-apps.js +100 -0
  147. package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
  148. package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
  149. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
  150. package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
  151. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
  152. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
  153. package/lib/esm/runtime/to-api-config.js +4 -0
  154. package/lib/esm/ui/index.d.ts +1 -0
  155. package/lib/esm/ui/index.js +3 -2
  156. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
  157. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +32 -13
  158. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
  159. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
  160. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
  161. package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
  162. package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
  163. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
  164. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
  165. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +17 -84
  166. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +19 -35
  167. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +38 -18
  168. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +38 -14
  169. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  170. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +190 -3
  171. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
  172. package/lib/esm/widgets/clusters/c4-clusters-page.js +80 -44
  173. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +48 -48
  174. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +2 -0
  175. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +32 -0
  176. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +4 -3
  177. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
  178. package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
  179. package/lib/esm/widgets/management/c4-management-app.js +80 -24
  180. package/lib/esm/widgets/management/c4-management-app.spec.js +32 -10
  181. package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
  182. package/lib/esm/widgets/management/management-tabs.js +76 -0
  183. package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
  184. package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
  185. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +2 -1
  186. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +11 -2
  187. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +0 -10
  188. package/lib/esm/widgets/user-details/c4-user-details-page.js +0 -10
  189. package/package.json +9 -7
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ export const mockSecrets = [
7
+ { id: 'api-key-1', key: 'api-key-1' },
8
+ { id: 'database-password', key: 'database-password' },
9
+ { id: 'oauth-secret', key: 'oauth-secret' },
10
+ { id: 'smtp-credentials', key: 'smtp-credentials' },
11
+ // CAMUNDA_PROVIDED_ secrets are system-managed and display the 'Hidden' badge
12
+ {
13
+ id: 'CAMUNDA_PROVIDED_example',
14
+ key: 'CAMUNDA_PROVIDED_example',
15
+ isProtected: true,
16
+ },
17
+ ];
18
+ export const withSecretsProps = {
19
+ secrets: mockSecrets,
20
+ isLoading: false,
21
+ hasError: false,
22
+ hasImportFromClusterFeature: false,
23
+ hasExportFeature: true,
24
+ text: {
25
+ title: 'Connector secrets',
26
+ createButton: 'Create new secret',
27
+ bulkImportButton: 'Import',
28
+ importFromFileLabel: 'from File',
29
+ importFromClusterButton: 'from Cluster',
30
+ exportButton: 'Export',
31
+ searchLabel: 'Search',
32
+ headerKey: 'Key',
33
+ revealAction: 'Reveal secret',
34
+ updateAction: 'Update',
35
+ deleteAction: 'Delete',
36
+ errorTitle: 'Oops ... something went wrong.',
37
+ errorDescription: 'Please try reloading!',
38
+ errorButton: 'Reload',
39
+ emptyTitle: 'Store Connector credentials safely using Camunda secrets',
40
+ emptyDescription: 'Accessing an external system requires authentication with credentials. To ensure the credentials are secure, use the Camunda secrets vault to store usernames, passwords, or API credentials without exposing sensitive information in your BPMN processes.',
41
+ emptyCreateButton: 'Create new secret',
42
+ emptyLearnMoreLabel: 'View the secrets documentation',
43
+ infoText: 'Secrets can be used to reference encrypted authentication credentials in Connectors. See the secrets documentation for more details.',
44
+ // Label for the badge shown on CAMUNDA_PROVIDED_ secrets
45
+ protectedBadge: 'Hidden',
46
+ },
47
+ urls: {
48
+ docs: 'https://docs.camunda.io/docs/next/components/connectors/use-connectors/#using-secrets',
49
+ },
50
+ permissions: {
51
+ canCreate: true,
52
+ canRead: true,
53
+ canUpdate: true,
54
+ canDelete: true,
55
+ },
56
+ onCreateSecret: () => console.log('Create secret'),
57
+ onBulkImportSecrets: () => console.log('Bulk import secrets'),
58
+ onImportFromCluster: () => console.log('Import from cluster'),
59
+ onExportSecrets: () => console.log('Export secrets'),
60
+ onRevealSecret: (key) => console.log('Reveal secret:', key),
61
+ onUpdateSecret: (key) => console.log('Update secret:', key),
62
+ onDeleteSecret: (key) => console.log('Delete secret:', key),
63
+ onRefresh: () => console.log('Refresh'),
64
+ onOpenDocs: () => console.log('Open docs'),
65
+ };
@@ -0,0 +1,60 @@
1
+ import type { C4ClusterDetailsHotBackupsProps } from './c4-cluster-details-hot-backups.types';
2
+ export declare const defaultText: {
3
+ title: string;
4
+ teaserHeading: string;
5
+ teaserDescription: string;
6
+ teaserAdditionalDescription: string;
7
+ teaserButton: string;
8
+ teaserLink: string;
9
+ createButton: string;
10
+ searchLabel: string;
11
+ headerName: string;
12
+ headerStatus: string;
13
+ headerType: string;
14
+ headerStarted: string;
15
+ headerCompleted: string;
16
+ deleteAction: string;
17
+ expansionVersionLabel: string;
18
+ restoreAction: string;
19
+ restoreInProgressTitle: string;
20
+ restoreInProgressText: string;
21
+ restoreErrorTitle: string;
22
+ restoreErrorMessage: string;
23
+ errorTitle: string;
24
+ errorDescription: string;
25
+ errorButton: string;
26
+ emptyTitle: string;
27
+ emptyDescription: string;
28
+ noBackupsTitle: string;
29
+ noBackupsDescription: string;
30
+ backupsUnavailableTitle: string;
31
+ backupsUnavailableText: string;
32
+ disabledNotificationTitle: string;
33
+ disabledNotificationText: string;
34
+ scheduleTileTitle: string;
35
+ scheduleTileDescription: string;
36
+ scheduleTileButton: string;
37
+ scheduleStatusEnabled: string;
38
+ scheduleStatusDisabled: string;
39
+ scheduleStartTime: string;
40
+ scheduleFrequency: string;
41
+ scheduleTimezone: string;
42
+ scheduleRemoveButton: string;
43
+ infoText: string;
44
+ giveFeedback: string;
45
+ zeebeLabel: string;
46
+ operateLabel: string;
47
+ tasklistLabel: string;
48
+ optimizeLabel: string;
49
+ };
50
+ export declare const defaultUrls: {
51
+ docs: string;
52
+ support: string;
53
+ talkToExpert: string;
54
+ };
55
+ export declare const defaultPermissions: {
56
+ canCreate: boolean;
57
+ canDelete: boolean;
58
+ canRestore: boolean;
59
+ };
60
+ export declare const withBackupsProps: C4ClusterDetailsHotBackupsProps;
@@ -0,0 +1,143 @@
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
+ // Backup timestamps are computed relative to real "now" (rather than fixed
7
+ // 2024 dates, which read as obviously stale in a docs screenshot that renders
8
+ // this list) - matches this migration's dynamic-date convention (see
9
+ // stories/shared/billing-dates.ts).
10
+ const HOUR = 60 * 60 * 1000;
11
+ const backupsNow = Date.now();
12
+ const backupAgo = (offsetMs) => new Date(backupsNow - offsetMs);
13
+ export const defaultText = {
14
+ title: 'Backups',
15
+ teaserHeading: 'Upgrade your plan to enable backups',
16
+ teaserDescription: 'Create manual and scheduled backups to reduce downtime and disruption to your operations. With backups, you can restore instances up to 30 days old, letting you recover lost data and reverse errors.',
17
+ teaserAdditionalDescription: ' Additional information about backups.',
18
+ teaserButton: 'Request a Free Trial Extension',
19
+ teaserLink: 'Learn more',
20
+ createButton: 'Create backup',
21
+ searchLabel: 'Search',
22
+ headerName: 'Name',
23
+ headerStatus: 'Status',
24
+ headerType: 'Type',
25
+ headerStarted: 'Started at',
26
+ headerCompleted: 'Completed at',
27
+ deleteAction: 'Delete',
28
+ expansionVersionLabel: 'Version',
29
+ restoreAction: 'Restore',
30
+ restoreInProgressTitle: 'Restoring "{backupName}"',
31
+ restoreInProgressText: "You can't start another backup or restore while this is in progress.",
32
+ restoreErrorTitle: 'Restore failed',
33
+ restoreErrorMessage: 'Restore of "{backupName}" did not complete. Your cluster is unchanged. Contact support if the issue persists.',
34
+ errorTitle: 'Failed to load backups',
35
+ errorDescription: 'We could not load your backups. Please try again by refreshing the page.',
36
+ errorButton: 'Refresh',
37
+ emptyTitle: 'No backups available yet',
38
+ emptyDescription: 'Your backups will appear here when the backup starts. If you want to make a backup now, you can create a manual backup.',
39
+ noBackupsTitle: 'No backups created yet',
40
+ noBackupsDescription: 'Create manual and scheduled backups to reduce downtime and disruption to your operations.',
41
+ backupsUnavailableTitle: 'Backups temporarily unavailable',
42
+ backupsUnavailableText: 'You can only create one backup per hour. Please wait before creating another backup.',
43
+ disabledNotificationTitle: 'Backups are not available for this cluster',
44
+ disabledNotificationText: 'Backups require Zeebe version 8.2.4 or higher. Please upgrade your cluster to use this feature.',
45
+ scheduleTileTitle: 'Backup schedule',
46
+ scheduleTileDescription: 'Schedule regular backups to ensure your data is protected.',
47
+ scheduleTileButton: 'Create schedule',
48
+ scheduleStatusEnabled: 'Enabled',
49
+ scheduleStatusDisabled: 'Disabled',
50
+ scheduleStartTime: 'Start time',
51
+ scheduleFrequency: 'Frequency',
52
+ scheduleTimezone: 'local time',
53
+ scheduleRemoveButton: 'Remove',
54
+ infoText: 'Learn more about backups in our documentation.',
55
+ giveFeedback: 'Give feedback',
56
+ zeebeLabel: 'Zeebe',
57
+ operateLabel: 'Operate',
58
+ tasklistLabel: 'Tasklist',
59
+ optimizeLabel: 'Optimize',
60
+ };
61
+ export const defaultUrls = {
62
+ docs: 'https://docs.camunda.io/docs/components/console/manage-clusters/backups/',
63
+ support: 'https://support.camunda.io/',
64
+ talkToExpert: 'https://camunda.com/contact/',
65
+ };
66
+ export const defaultPermissions = {
67
+ canCreate: true,
68
+ canDelete: true,
69
+ canRestore: true,
70
+ };
71
+ export const withBackupsProps = {
72
+ backups: [
73
+ {
74
+ id: '1',
75
+ uuid: 'backup-on-demand-1',
76
+ name: 'Manual Backup 1',
77
+ status: 'Complete',
78
+ type: 'Manual',
79
+ started: backupAgo(5 * HOUR),
80
+ completed: backupAgo(5 * HOUR - 15 * 60 * 1000),
81
+ version: 'Camunda 8.10+gen3',
82
+ canRestore: true,
83
+ zeebeStatus: 'complete',
84
+ operateStatus: 'complete',
85
+ tasklistStatus: 'complete',
86
+ optimizeStatus: 'complete',
87
+ },
88
+ {
89
+ id: '2',
90
+ uuid: 'backup-scheduled-2',
91
+ name: 'Scheduled Backup 2',
92
+ status: 'In progress',
93
+ type: 'Scheduled',
94
+ started: backupAgo(2 * HOUR),
95
+ completed: '-',
96
+ version: 'Camunda 8.10+gen3',
97
+ canRestore: true,
98
+ zeebeStatus: 'creating',
99
+ operateStatus: 'creating',
100
+ tasklistStatus: 'creating',
101
+ optimizeStatus: 'creating',
102
+ },
103
+ {
104
+ id: '3',
105
+ uuid: 'backup-on-demand-3',
106
+ name: 'Manual Backup 3',
107
+ status: 'Failed',
108
+ type: 'Manual',
109
+ started: backupAgo(28 * HOUR),
110
+ completed: '-',
111
+ version: 'Camunda 8.9+gen18',
112
+ canRestore: true,
113
+ zeebeStatus: 'failed',
114
+ operateStatus: 'failed',
115
+ tasklistStatus: 'failed',
116
+ optimizeStatus: 'failed',
117
+ },
118
+ ],
119
+ backupSchedule: {
120
+ scheduling: 'Enabled',
121
+ startTime: '02:00',
122
+ frequency: 'Daily',
123
+ },
124
+ isLoading: false,
125
+ hasError: false,
126
+ showTeaser: false,
127
+ canCreateBackup: true,
128
+ canCreateBackupBasedOnTime: true,
129
+ clusterSupportsHotBackups: true,
130
+ text: defaultText,
131
+ urls: defaultUrls,
132
+ permissions: defaultPermissions,
133
+ onCreateBackup: () => console.log('Create backup'),
134
+ onDeleteBackup: (id) => console.log('Delete backup:', id),
135
+ onRestoreBackup: (id) => console.log('Restore backup:', id),
136
+ onCreateSchedule: () => console.log('Create schedule'),
137
+ onUpdateSchedule: () => console.log('Update schedule'),
138
+ onDeleteSchedule: () => console.log('Delete schedule'),
139
+ onRefresh: () => console.log('Refresh'),
140
+ onOpenDocs: () => console.log('Open docs'),
141
+ onTalkToExpert: () => console.log('Talk to expert'),
142
+ onGiveFeedback: () => console.log('Give feedback'),
143
+ };
@@ -0,0 +1,6 @@
1
+ import type { C4ClusterDetailsIpWhitelistProps, IpWhitelistItem } from './c4-cluster-details-ip-whitelist.types';
2
+ export declare const baseText: C4ClusterDetailsIpWhitelistProps['text'];
3
+ export declare const baseUrls: C4ClusterDetailsIpWhitelistProps['urls'];
4
+ export declare const basePermissions: C4ClusterDetailsIpWhitelistProps['permissions'];
5
+ export declare const ipWhitelistEntries: IpWhitelistItem[];
6
+ export declare const withEntriesProps: C4ClusterDetailsIpWhitelistProps;
@@ -0,0 +1,51 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ export const baseText = {
3
+ title: 'IP Allowlist',
4
+ createButton: 'Create new entry',
5
+ searchLabel: 'Search',
6
+ headerIp: 'IP',
7
+ headerDescription: 'Description',
8
+ updateAction: 'Update',
9
+ deleteAction: 'Delete',
10
+ emptyTitle: 'Restrict access to clusters with an IP Allowlist',
11
+ emptyDescription: (_jsxs(_Fragment, { children: [_jsxs("p", { children: ["Click ", _jsx("strong", { children: "Create an entry" }), " to configure allowed networks IP(s) which can access the cluster."] }), _jsx("br", {}), _jsx("p", { children: "Web Modeler has access to clusters by default, as allowlist assignments for IP addresses used by Web Modeler are managed automatically." })] })),
12
+ emptyButton: 'Create an entry',
13
+ emptyLink: 'View the IP Allowlist documentation',
14
+ infoText: (_jsxs(_Fragment, { children: ["IP Allowlist can be used to limit access to the cluster. See the", ' ', _jsx("a", { href: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/', children: "IP Allowlist" }), ' ', "documentation to configure allowed networks."] })),
15
+ };
16
+ export const baseUrls = {
17
+ docs: 'https://docs.camunda.io/docs/next/components/console/manage-clusters/manage-ip-allowlists/',
18
+ };
19
+ export const basePermissions = {
20
+ canCreate: true,
21
+ canUpdate: true,
22
+ canDelete: true,
23
+ };
24
+ export const ipWhitelistEntries = [
25
+ {
26
+ id: '0',
27
+ ip: '192.168.1.0/24',
28
+ description: 'Office network',
29
+ },
30
+ {
31
+ id: '1',
32
+ ip: '10.0.0.0/8',
33
+ description: 'VPN network',
34
+ },
35
+ {
36
+ id: '2',
37
+ ip: '172.16.0.0/16',
38
+ description: 'Development environment',
39
+ },
40
+ ];
41
+ export const withEntriesProps = {
42
+ ipWhitelist: ipWhitelistEntries,
43
+ isLoading: false,
44
+ text: baseText,
45
+ urls: baseUrls,
46
+ permissions: basePermissions,
47
+ onCreateIpWhitelist: () => console.log('Create IP whitelist'),
48
+ onUpdateIpWhitelist: (index) => console.log('Update IP whitelist', index),
49
+ onDeleteIpWhitelist: (index) => console.log('Delete IP whitelist', index),
50
+ onOpenDocs: () => console.log('Open docs'),
51
+ };
@@ -1,3 +1,3 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { C4ClusterListProps } from './c4-cluster-list.types';
3
- export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
3
+ export declare const C4ClusterList: ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isRunningOnUnsupportedGeneration, }: C4ClusterListProps) => JSX.Element;
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
7
7
  import { C3ClusterTag, } from '@camunda/camunda-composite-components';
8
8
  import { Add, WarningAltFilled } from '@carbon/react/icons/index.esm.js';
9
9
  import { useCallback, useEffect, useRef, } from 'react';
10
+ import { useC4DesignSystem } from '../../runtime/c4-console-runtime-context.js';
10
11
  import { Button, Link } from '../../ui/index.js';
11
12
  import { ClusterStatusElement, normalizeClusterStatus, } from '../c4-cluster-overview/applications.js';
12
13
  import { C4IconAndTextElement, getClusterLoadConfig, } from '../c4-cluster-overview/c4-cluster-overview.js';
@@ -14,6 +15,15 @@ import { C4DataTable } from '../c4-data-table/c4-data-table.js';
14
15
  import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
15
16
  import { C4LinkButton } from '../c4-link-button/c4-link-button.js';
16
17
  import { C4PageTemplate } from '../c4-page-template/c4-page-template.js';
18
+ // ds-only column-width hints (see `docs/c4-carbon-compat.md`) so the Status
19
+ // column has room for its icon + label and doesn't wrap on narrower (~14")
20
+ // viewports, while Generation/Region — the widest columns, which can carry
21
+ // long deprecated-version or region strings — wrap instead of stretching the
22
+ // table. Carbon's DataTable already auto-sizes columns to content and must
23
+ // stay byte-for-byte unchanged, so these are only applied in `ds` mode.
24
+ const DS_STATUS_COLUMN_MIN_WIDTH = '11rem';
25
+ const DS_GENERATION_COLUMN_MAX_WIDTH = '10rem';
26
+ const DS_REGION_COLUMN_MAX_WIDTH = '9rem';
17
27
  const DEFAULT_PAGE_SIZE = 10;
18
28
  const PAGE_NUMBER_SELECTOR = '.cds--select__page-number select';
19
29
  const PAGE_SIZE_SELECTOR = '.cds--select__item-count select';
@@ -27,7 +37,9 @@ function isPlainLeftClick(event) {
27
37
  !event.ctrlKey &&
28
38
  !event.shiftKey);
29
39
  }
30
- export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isRunningOnUnsupportedGeneration, }) => {
40
+ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate, onDeleteCluster, onAssignTag, onWakeCluster, onFailoverCluster, trialNotification, encryptionNotification, clusterCapMessage, emptyStateContent, translations, isClusterPaused, isMultiRegionCluster, isFailoverSyncPending, isRunningOnUnsupportedGeneration, }) => {
41
+ const designSystem = useC4DesignSystem();
42
+ const isDsMode = designSystem === 'ds';
31
43
  const tableContainerRef = useRef(null);
32
44
  const stableClustersRef = useRef(clusters.map((cluster) => ({ ...cluster })));
33
45
  const selectedPageRef = useRef(1);
@@ -172,6 +184,9 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
172
184
  position: 'relative',
173
185
  display: 'flex',
174
186
  gap: '8px',
187
+ ...(isDsMode
188
+ ? { maxWidth: DS_GENERATION_COLUMN_MAX_WIDTH }
189
+ : {}),
175
190
  }, children: [isRunningOnUnsupportedGeneration(row.id) && (_jsx("div", { style: {
176
191
  position: 'absolute',
177
192
  top: '50%',
@@ -182,6 +197,20 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
182
197
  paddingInlineStart: isRunningOnUnsupportedGeneration(row.id)
183
198
  ? '1.1rem'
184
199
  : '0rem',
200
+ ...(isDsMode
201
+ ? {
202
+ // Flex items default to `min-width: auto`, which
203
+ // would stop this span from shrinking/wrapping
204
+ // below its content's intrinsic width and defeat
205
+ // maxWidth above. `whiteSpace`/`overflowWrap`
206
+ // make wrapping actually happen, including for
207
+ // long unbroken strings with no natural break
208
+ // points.
209
+ minWidth: 0,
210
+ whiteSpace: 'normal',
211
+ overflowWrap: 'anywhere',
212
+ }
213
+ : {}),
185
214
  }, children: row.generation })] }));
186
215
  },
187
216
  },
@@ -201,6 +230,30 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
201
230
  {
202
231
  label: translations.headers.region,
203
232
  key: 'region',
233
+ type: {
234
+ type: 'wrapper',
235
+ options: {
236
+ wrapperOptions: {
237
+ wrapper: (row) => {
238
+ // Carbon parity: return the raw value unchanged so this
239
+ // matches the previous untyped (`type: undefined`) rendering
240
+ // exactly. Only cap the width in ds mode.
241
+ if (!isDsMode) {
242
+ return row.region;
243
+ }
244
+ return (_jsx("span", { style: {
245
+ display: 'inline-block',
246
+ maxWidth: DS_REGION_COLUMN_MAX_WIDTH,
247
+ // Ensure the maxWidth cap actually forces a wrap rather
248
+ // than overflowing/cutting off region values with no
249
+ // natural break points (e.g. underscore-joined tokens).
250
+ whiteSpace: 'normal',
251
+ overflowWrap: 'anywhere',
252
+ }, children: row.region }));
253
+ },
254
+ },
255
+ },
256
+ },
204
257
  sorting: (a, b) => {
205
258
  return a.region.localeCompare(b.region);
206
259
  },
@@ -216,6 +269,8 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
216
269
  const normalizedStatus = normalizeClusterStatus(row.status);
217
270
  return normalizedStatus ? (_jsx(ClusterStatusElement, { status: normalizedStatus, infoTooltip: row.statusInfoTooltip, onInfoClick: normalizedStatus === 'waitingForInput'
218
271
  ? () => onNavigate(`${urls.clusterDetails(row.id)}/encryption`)
272
+ : undefined, style: isDsMode
273
+ ? { minWidth: DS_STATUS_COLUMN_MIN_WIDTH }
219
274
  : undefined })) : (row.status);
220
275
  },
221
276
  },
@@ -313,9 +368,15 @@ export const C4ClusterList = ({ clusters, loading, urls, permissions, onNavigate
313
368
  ? [
314
369
  {
315
370
  id: 'failover-cluster',
316
- label: translations.overflowMenu.failover ?? 'Failover',
371
+ // While the initial secondary bucket sync is pending the action stays
372
+ // visible but disabled, with the reason in the label (#9141).
373
+ label: (row) => isFailoverSyncPending?.(row.id)
374
+ ? (translations.overflowMenu.failoverSyncPending ??
375
+ 'Failover (unavailable until backup data is synced to the secondary region)')
376
+ : (translations.overflowMenu.failover ?? 'Failover'),
317
377
  kind: 'ghost',
318
378
  onClick: (row) => onFailoverCluster(row.id),
379
+ disabled: (row) => isFailoverSyncPending?.(row.id) ?? false,
319
380
  visible: (row) => (permissions.canFailoverCluster ?? false) &&
320
381
  isMultiRegionCluster(row.id),
321
382
  },
@@ -0,0 +1,4 @@
1
+ import type { C4ClusterListProps, ClusterListItem } from './c4-cluster-list.types';
2
+ export declare const mockClusters: ClusterListItem[];
3
+ export declare const defaultProps: C4ClusterListProps;
4
+ export declare const newCluster: ClusterListItem;
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ export const mockClusters = [
7
+ {
8
+ id: 'cluster-1',
9
+ name: 'Production Cluster',
10
+ generation: 'Camunda 8.5',
11
+ type: 'Production',
12
+ region: 'us-east-1',
13
+ status: 'healthy',
14
+ tags: ['prod'],
15
+ currentClusterLoad: 45.5,
16
+ originalIndex: 0,
17
+ },
18
+ {
19
+ id: 'cluster-2',
20
+ name: 'Development Cluster',
21
+ generation: 'Camunda 8.4 - update available',
22
+ type: 'Development',
23
+ region: 'eu-central-1',
24
+ status: 'creating',
25
+ tags: ['dev'],
26
+ currentClusterLoad: 12.3,
27
+ originalIndex: 1,
28
+ },
29
+ {
30
+ id: 'cluster-3',
31
+ name: 'Test Cluster',
32
+ generation: 'Camunda 8.5',
33
+ type: 'Production - 2x',
34
+ region: 'us-west-2',
35
+ status: 'suspended',
36
+ tags: ['test'],
37
+ originalIndex: 2,
38
+ },
39
+ {
40
+ id: 'cluster-4',
41
+ name: 'Staging Cluster',
42
+ generation: 'Camunda 8.5',
43
+ type: 'Production',
44
+ region: 'ap-southeast-1',
45
+ status: 'healthy',
46
+ tags: [],
47
+ currentClusterLoad: 78.9,
48
+ originalIndex: 3,
49
+ },
50
+ {
51
+ id: 'cluster-5',
52
+ name: 'Encryption Setup Cluster',
53
+ generation: 'Camunda 8.9',
54
+ type: 'Production',
55
+ region: 'eu-west-1',
56
+ status: 'waitingForInput',
57
+ statusInfoTooltip: 'Waiting for external encryption to be configured',
58
+ tags: ['prod'],
59
+ currentClusterLoad: 0,
60
+ originalIndex: 4,
61
+ },
62
+ ];
63
+ export const defaultProps = {
64
+ orgId: 'org-123',
65
+ clusters: mockClusters,
66
+ loading: false,
67
+ urls: {
68
+ clusterDetails: (clusterId) => `/org/org-123/clusters/${clusterId}`,
69
+ createCluster: '/org/org-123/clusters/create',
70
+ },
71
+ permissions: {
72
+ canCreateCluster: true,
73
+ canEditCluster: true,
74
+ canDeleteCluster: true,
75
+ canUpdateTag: true,
76
+ canSeeClusterLoad: true,
77
+ canWakeCluster: true,
78
+ createClusterButtonDisabled: false,
79
+ },
80
+ onNavigate: (url) => console.log('Navigate to:', url),
81
+ onDeleteCluster: (id) => console.log('Delete cluster:', id),
82
+ onAssignTag: (id) => console.log('Assign tag to cluster:', id),
83
+ onWakeCluster: (id) => console.log('Wake cluster:', id),
84
+ translations: {
85
+ title: 'Clusters',
86
+ createButton: 'Create cluster',
87
+ searchLabel: 'Search',
88
+ // Not exercised by any story: `emptyStateContent` is always supplied
89
+ // where `clusters` is empty (see c4-cluster-list.tsx `renderDataTable`),
90
+ // so this fallback copy never renders. Present only to satisfy the
91
+ // (non-optional) `C4ClusterListProps['translations']['emptyState']` type
92
+ // outside the stories file (which TS excludes from typechecking).
93
+ emptyState: {
94
+ noClusters: 'No clusters found.',
95
+ },
96
+ headers: {
97
+ name: 'Name',
98
+ generation: 'Generation',
99
+ type: 'Type',
100
+ region: 'Region',
101
+ status: 'Status',
102
+ tags: 'Tags',
103
+ currentClusterLoad: 'Current cluster load',
104
+ },
105
+ overflowMenu: {
106
+ delete: 'Delete',
107
+ resume: 'Resume',
108
+ },
109
+ tags: {
110
+ addLabel: 'Add tag',
111
+ },
112
+ tooltips: {
113
+ clusterLoad: 'Current cluster load',
114
+ },
115
+ },
116
+ isClusterPaused: (clusterId) => clusterId === 'cluster-3',
117
+ isRunningOnUnsupportedGeneration: (clusterId) => clusterId === 'cluster-2',
118
+ };
119
+ // A single freshly created cluster, isolated (no other rows) - used to
120
+ // document the "just created a cluster" moment in the docs screenshots,
121
+ // once while it's still provisioning and once after it turns healthy.
122
+ export const newCluster = {
123
+ id: 'new-cluster',
124
+ name: 'new-cluster',
125
+ generation: 'Camunda 8.8',
126
+ type: 'Production',
127
+ region: 'us-east-1',
128
+ status: 'creating',
129
+ tags: [],
130
+ currentClusterLoad: 0,
131
+ originalIndex: 0,
132
+ };
@@ -66,6 +66,8 @@ export interface C4ClusterListProps {
66
66
  delete: string;
67
67
  resume: string;
68
68
  failover?: string;
69
+ /** Shown as the action label while the initial secondary bucket sync is pending. */
70
+ failoverSyncPending?: string;
69
71
  };
70
72
  tags: {
71
73
  addLabel: string;
@@ -76,5 +78,10 @@ export interface C4ClusterListProps {
76
78
  };
77
79
  isClusterPaused: (clusterId: string) => boolean;
78
80
  isMultiRegionCluster?: (clusterId: string) => boolean;
81
+ /**
82
+ * True while a failover-eligible cluster's initial primary→secondary bucket
83
+ * sync has not completed — the action is shown disabled with a reason.
84
+ */
85
+ isFailoverSyncPending?: (clusterId: string) => boolean;
79
86
  isRunningOnUnsupportedGeneration: (clusterId: string) => boolean;
80
87
  }
@@ -163,10 +163,24 @@ export const ApplicationTile = (props) => {
163
163
  alignSelf: 'end',
164
164
  cursor: 'pointer',
165
165
  }, onClick: (e) => {
166
- if (normalizedLink?.onClick) {
167
- e.preventDefault();
168
- normalizedLink.onClick();
166
+ if (!normalizedLink?.onClick) {
167
+ return;
169
168
  }
169
+ // Preserve native open-in-new-tab / new-window behaviour:
170
+ // when there's a real href, let the browser handle modifier
171
+ // and non-left clicks (Ctrl/Cmd/Shift/Alt or middle click)
172
+ // instead of routing in-app. Only plain left-clicks are
173
+ // intercepted for client-side navigation.
174
+ if (normalizedLink.url &&
175
+ (e.metaKey ||
176
+ e.ctrlKey ||
177
+ e.shiftKey ||
178
+ e.altKey ||
179
+ e.button !== 0)) {
180
+ return;
181
+ }
182
+ e.preventDefault();
183
+ normalizedLink.onClick();
170
184
  }, children: [normalizedLink.label, ' ', _jsx(ArrowRight, { style: { marginLeft: '0.5rem', marginBottom: '-0.2rem' } })] }))] })] }) }) }));
171
185
  return component;
172
186
  };