@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.
Files changed (371) hide show
  1. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.d.ts +20 -3
  2. package/lib/esm/components/c4-actionable-notification/c4-actionable-notification.js +50 -17
  3. package/lib/esm/components/c4-advanced-search-filters/ArrayFieldContainer.js +2 -1
  4. package/lib/esm/components/c4-advanced-search-filters/AutosuggestInput.js +1 -6
  5. package/lib/esm/components/c4-advanced-search-filters/FieldRow.js +4 -1
  6. package/lib/esm/components/c4-advanced-search-filters/FiltersSection.js +1 -6
  7. package/lib/esm/components/c4-advanced-search-filters/OrSection.js +3 -1
  8. package/lib/esm/components/c4-advanced-search-filters/c4-advanced-search-filters.js +3 -1
  9. package/lib/esm/components/c4-ai-usage/c4-ai-usage.js +2 -7
  10. package/lib/esm/components/c4-alpha-cluster-at-checkout/c4-alpha-cluster-at-checkout.js +7 -7
  11. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.js +1 -6
  12. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.d.ts +1 -0
  13. package/lib/esm/components/c4-app-teaser-card/c4-app-teaster-card.spec.js +43 -0
  14. package/lib/esm/components/c4-app-teaser-cards/c4-app-teaser-cards.js +1 -1
  15. package/lib/esm/components/c4-async-modal/c4-async-modal.js +3 -2
  16. package/lib/esm/components/c4-audit-log/c4-audit-log.js +4 -3
  17. package/lib/esm/components/c4-billing-page/c4-billing-page.js +8 -6
  18. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.d.ts +3 -0
  19. package/lib/esm/components/c4-billing-page/c4-billing-page.mocks.js +154 -0
  20. package/lib/esm/components/c4-billing-page/elements/cluster-reservations.js +9 -14
  21. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  22. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  23. package/lib/esm/components/c4-billing-page/elements/value-metric.d.ts +2 -0
  24. package/lib/esm/components/c4-billing-page/elements/value-metric.js +15 -3
  25. package/lib/esm/components/c4-billing-page/elements/value-metric.spec.js +18 -0
  26. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  27. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  28. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  29. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +59 -2
  30. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +41 -7
  31. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +7 -1
  32. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  33. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  34. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  35. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  36. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  37. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.d.ts +5 -0
  38. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.mocks.js +83 -0
  39. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  40. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.d.ts +6 -0
  41. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.mocks.js +79 -0
  42. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  43. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.d.ts +3 -0
  44. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.mocks.js +65 -0
  45. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  46. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  47. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.d.ts +60 -0
  48. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.mocks.js +143 -0
  49. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  50. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  51. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.d.ts +6 -0
  52. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.mocks.js +51 -0
  53. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  54. package/lib/esm/components/c4-cluster-list/c4-cluster-list.d.ts +1 -1
  55. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +69 -6
  56. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.d.ts +4 -0
  57. package/lib/esm/components/c4-cluster-list/c4-cluster-list.mocks.js +132 -0
  58. package/lib/esm/components/c4-cluster-list/c4-cluster-list.types.d.ts +7 -0
  59. package/lib/esm/components/c4-cluster-overview/applications.js +19 -4
  60. package/lib/esm/components/c4-cluster-overview/applications.spec.js +27 -1
  61. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  62. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.d.ts +8 -0
  63. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.mocks.js +203 -0
  64. package/lib/esm/components/c4-cluster-overview/cluster-details.d.ts +2 -0
  65. package/lib/esm/components/c4-cluster-overview/cluster-details.js +68 -16
  66. package/lib/esm/components/c4-cluster-overview/cluster-load.js +39 -4
  67. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
  68. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.d.ts +16 -0
  69. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.mocks.js +104 -0
  70. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.d.ts +14 -0
  71. package/lib/esm/components/c4-cluster-settings/elements/app-integrations-toggle.js +12 -0
  72. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.d.ts +5 -1
  73. package/lib/esm/components/c4-cluster-settings/elements/cluster-settings.js +10 -3
  74. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  75. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.d.ts +20 -0
  76. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +85 -0
  77. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.d.ts +1 -0
  78. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.spec.js +93 -0
  79. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.d.ts +20 -0
  80. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.js +15 -0
  81. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.d.ts +1 -0
  82. package/lib/esm/components/c4-cluster-settings/elements/external-identity-provider.spec.js +50 -0
  83. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.d.ts +10 -4
  84. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +117 -25
  85. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.d.ts +1 -0
  86. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.spec.js +120 -0
  87. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  88. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  89. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  90. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +23 -3
  91. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  92. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  93. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  94. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  95. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  96. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  97. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  98. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.d.ts +2 -0
  99. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.mocks.js +186 -0
  100. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  101. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.d.ts +2 -0
  102. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +132 -0
  103. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.d.ts +2 -0
  104. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.mocks.js +20 -0
  105. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.d.ts +22 -0
  106. package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.types.js +6 -0
  107. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.d.ts +32 -0
  108. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.js +71 -0
  109. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.d.ts +1 -0
  110. package/lib/esm/components/c4-create-cluster/c4-create-cluster-tile-grid.spec.js +83 -0
  111. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +56 -54
  112. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.d.ts +64 -0
  113. package/lib/esm/components/c4-create-cluster/c4-create-cluster.mocks.js +298 -0
  114. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +51 -31
  115. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.d.ts +2 -0
  116. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.mocks.js +23 -0
  117. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.types.d.ts +2 -0
  118. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  119. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.d.ts +2 -0
  120. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.mocks.js +15 -0
  121. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +6 -5
  122. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.d.ts +2 -0
  123. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.mocks.js +13 -0
  124. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.types.d.ts +1 -0
  125. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.d.ts +2 -0
  126. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.js +77 -0
  127. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.d.ts +2 -0
  128. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.mocks.js +11 -0
  129. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.d.ts +14 -0
  130. package/lib/esm/components/c4-create-ip-whitelist-modal/c4-create-ip-whitelist-modal.types.js +6 -0
  131. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  132. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  133. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  134. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  135. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  136. package/lib/esm/components/c4-data-table/c4-data-table.js +277 -0
  137. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  138. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  139. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.d.ts +1 -0
  140. package/lib/esm/components/c4-data-table/c4-data-table.stability.spec.js +151 -0
  141. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  142. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  143. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  144. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  145. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  146. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  147. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  148. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  149. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  150. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  151. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  152. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  153. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  154. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  155. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  156. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  157. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  158. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  159. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.d.ts +2 -0
  160. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.mocks.js +231 -0
  161. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  162. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  163. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-piechart.js +56 -2
  164. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +37 -2
  165. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  166. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  167. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  168. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.d.ts +2 -0
  169. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.mocks.js +102 -0
  170. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  171. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.d.ts +10 -0
  172. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-ds-colors.js +16 -0
  173. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  174. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  175. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  176. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  177. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  178. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  179. package/lib/esm/components/c4-management-activity/c4-management-activity.d.ts +1 -1
  180. package/lib/esm/components/c4-management-activity/c4-management-activity.js +109 -9
  181. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.d.ts +4 -0
  182. package/lib/esm/components/c4-management-activity/c4-management-activity.mocks.js +63 -0
  183. package/lib/esm/components/c4-management-activity/c4-management-activity.types.d.ts +11 -0
  184. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  185. package/lib/esm/components/c4-management-api/c4-management-api.mocks.d.ts +43 -0
  186. package/lib/esm/components/c4-management-api/c4-management-api.mocks.js +118 -0
  187. package/lib/esm/components/c4-management-overview/c4-management-overview.js +12 -14
  188. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  189. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  190. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  191. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  192. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  193. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  194. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +3 -2
  195. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.types.d.ts +1 -0
  196. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  197. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  198. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  199. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  200. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  201. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  202. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  203. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  204. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  205. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +44 -0
  206. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  207. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  208. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  209. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  210. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  211. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  212. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  213. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  214. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  215. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  216. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  217. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  218. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  219. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  220. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  221. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  222. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  223. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  224. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  225. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +60 -37
  226. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  227. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  228. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  229. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  230. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  231. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  232. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  233. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  234. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  235. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +7 -1
  236. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  237. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  238. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +4 -2
  239. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  240. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  241. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.d.ts +1 -0
  242. package/lib/esm/components/shared-charts/ds-charts.smoke.spec.js +47 -0
  243. package/lib/esm/components/shared-charts/ds-line-chart.d.ts +33 -0
  244. package/lib/esm/components/shared-charts/ds-line-chart.js +55 -0
  245. package/lib/esm/components/shared-charts/ds-meter-chart.d.ts +22 -0
  246. package/lib/esm/components/shared-charts/ds-meter-chart.js +48 -0
  247. package/lib/esm/components/shared-charts/recharts-tokens.d.ts +24 -0
  248. package/lib/esm/components/shared-charts/recharts-tokens.js +51 -0
  249. package/lib/esm/externalUrls.const.d.ts +2 -0
  250. package/lib/esm/externalUrls.const.js +7 -0
  251. package/lib/esm/externalUrls.const.spec.js +2 -0
  252. package/lib/esm/i18n/c4-console-i18n.js +8 -0
  253. package/lib/esm/i18n/en/entities/orgroles.json +0 -16
  254. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  255. package/lib/esm/i18n/en/pages/clusterdetails.json +14 -2
  256. package/lib/esm/i18n/en/pages/orgmanagement.json +12 -3
  257. package/lib/esm/index.d.ts +33 -1
  258. package/lib/esm/index.js +23 -1
  259. package/lib/esm/runtime/c4-console-authz.d.ts +26 -0
  260. package/lib/esm/runtime/c4-console-authz.js +59 -29
  261. package/lib/esm/runtime/c4-console-authz.spec.js +87 -20
  262. package/lib/esm/runtime/c4-console-data-context.js +40 -0
  263. package/lib/esm/runtime/c4-console-data-context.types.d.ts +19 -1
  264. package/lib/esm/runtime/c4-console-data-store.d.ts +25 -1
  265. package/lib/esm/runtime/c4-console-data-store.js +145 -31
  266. package/lib/esm/runtime/c4-console-data-store.nav.spec.d.ts +1 -0
  267. package/lib/esm/runtime/c4-console-data-store.nav.spec.js +121 -0
  268. package/lib/esm/runtime/c4-console-data-store.spec.js +35 -6
  269. package/lib/esm/runtime/c4-console-events-context.d.ts +18 -0
  270. package/lib/esm/runtime/c4-console-events-context.js +62 -0
  271. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  272. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  273. package/lib/esm/runtime/c4-console-runtime.types.d.ts +20 -0
  274. package/lib/esm/runtime/c4-user-notifications-context.d.ts +19 -0
  275. package/lib/esm/runtime/c4-user-notifications-context.js +201 -0
  276. package/lib/esm/runtime/c4-user-notifications-context.spec.d.ts +1 -0
  277. package/lib/esm/runtime/c4-user-notifications-context.spec.js +80 -0
  278. package/lib/esm/runtime/c4-user-notifications-context.types.d.ts +31 -0
  279. package/lib/esm/runtime/c4-user-notifications-context.types.js +6 -0
  280. package/lib/esm/runtime/c4-user-theme.d.ts +27 -0
  281. package/lib/esm/runtime/c4-user-theme.js +106 -0
  282. package/lib/esm/runtime/decode-access-token.d.ts +12 -0
  283. package/lib/esm/runtime/decode-access-token.js +39 -0
  284. package/lib/esm/runtime/nav/camunda-apps.d.ts +45 -0
  285. package/lib/esm/runtime/nav/camunda-apps.js +100 -0
  286. package/lib/esm/runtime/nav/camunda-apps.spec.d.ts +1 -0
  287. package/lib/esm/runtime/nav/camunda-apps.spec.js +90 -0
  288. package/lib/esm/runtime/nav/use-webapp-nav-data.d.ts +75 -0
  289. package/lib/esm/runtime/nav/use-webapp-nav-data.js +211 -0
  290. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.d.ts +1 -0
  291. package/lib/esm/runtime/nav/use-webapp-nav-data.spec.js +91 -0
  292. package/lib/esm/runtime/to-api-config.js +4 -0
  293. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  294. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  295. package/lib/esm/ui/families.d.ts +42 -0
  296. package/lib/esm/ui/families.js +46 -0
  297. package/lib/esm/ui/index.d.ts +32 -0
  298. package/lib/esm/ui/index.js +95 -0
  299. package/lib/esm/ui/switchable.d.ts +14 -0
  300. package/lib/esm/ui/switchable.js +27 -0
  301. package/lib/esm/ui/tabs.d.ts +21 -0
  302. package/lib/esm/ui/tabs.js +27 -0
  303. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  304. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.d.ts +1 -0
  305. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +39 -15
  306. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.d.ts +1 -0
  307. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.merge.spec.js +49 -0
  308. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.types.d.ts +8 -0
  309. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  310. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  311. package/lib/esm/widgets/cluster-details/cluster-details-tabs.d.ts +23 -0
  312. package/lib/esm/widgets/cluster-details/cluster-details-tabs.js +83 -0
  313. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.d.ts +1 -0
  314. package/lib/esm/widgets/cluster-details/cluster-details-tabs.spec.js +33 -0
  315. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +25 -88
  316. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  317. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  318. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  319. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
  320. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +25 -39
  321. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +88 -35
  322. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +134 -19
  323. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  324. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.d.ts +2 -0
  325. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +194 -6
  326. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.spec.js +60 -1
  327. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  328. package/lib/esm/widgets/clusters/c4-clusters-page.js +173 -81
  329. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +146 -13
  330. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +3 -0
  331. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  332. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  333. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  334. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  335. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  336. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  337. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  338. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  339. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +86 -0
  340. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  341. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  342. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +14 -5
  343. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  344. package/lib/esm/widgets/dashboard/c4-dashboard-app.js +21 -2
  345. package/lib/esm/widgets/group-details/c4-group-details-page.js +3 -2
  346. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  347. package/lib/esm/widgets/management/c4-management-app.js +132 -23
  348. package/lib/esm/widgets/management/c4-management-app.spec.js +163 -1
  349. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  350. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  351. package/lib/esm/widgets/management/management-tabs.d.ts +22 -0
  352. package/lib/esm/widgets/management/management-tabs.js +76 -0
  353. package/lib/esm/widgets/management/management-tabs.spec.d.ts +1 -0
  354. package/lib/esm/widgets/management/management-tabs.spec.js +28 -0
  355. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  356. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  357. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  358. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +3 -1
  359. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +19 -3
  360. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  361. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  362. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  363. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  364. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +37 -5
  365. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  366. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  367. package/lib/esm/widgets/use-extend-trial.js +36 -0
  368. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  369. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  370. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -14
  371. package/package.json +16 -7
@@ -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,21 +261,63 @@ describe('C4ClusterDetailsOverviewTab job statistics fetching', () => {
257
261
  linkVisible: true,
258
262
  }));
259
263
  });
260
- it('hides the connectors link when connectors visibility is missing', async () => {
264
+ it('routes the connectors Manage link in-app via onNavigate instead of a full page load', async () => {
265
+ const onNavigate = vi.fn();
261
266
  renderTab({
262
- canViewConnectorsLink: false,
267
+ onNavigate,
263
268
  cluster: buildCluster('Healthy', {
264
269
  zeebeVersion: 'zeebe:8.8.8',
265
270
  connectorBridgeVersion: 'connector-bridge:8.8.8',
266
271
  }),
267
272
  });
268
273
  await screen.findByTestId('cluster-overview');
274
+ const connectors = lastOverviewProps?.applications?.applications?.connectors;
275
+ // The href is preserved for accessibility / open-in-new-tab, but the click
276
+ // is intercepted for in-app routing.
277
+ expect(connectors?.link).toEqual(expect.objectContaining({
278
+ url: '/org/org-1/cluster/cluster-1/connectors/management',
279
+ label: 'Manage',
280
+ visible: true,
281
+ }));
282
+ act(() => {
283
+ connectors?.link?.onClick?.();
284
+ });
285
+ expect(onNavigate).toHaveBeenCalledWith({
286
+ kind: 'connectorManagement',
287
+ orgId: 'org-1',
288
+ clusterId: 'cluster-1',
289
+ });
290
+ });
291
+ it('hides the connectors link for pre-8.8 clusters when canViewConnectorsLink is false', async () => {
292
+ renderTab({
293
+ canViewConnectorsLink: false,
294
+ cluster: buildCluster('Healthy', {
295
+ zeebeVersion: 'zeebe:8.6.12',
296
+ connectorBridgeVersion: 'connector-bridge:8.6.12',
297
+ }),
298
+ });
299
+ await screen.findByTestId('cluster-overview');
269
300
  expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
270
301
  linkLabel: 'Manage',
271
302
  linkVisible: false,
272
303
  }));
273
304
  });
274
- it('uses the external connectors url and Launch label for pre-8.8 clusters', async () => {
305
+ it('shows the connectors link for 8.8+ clusters even when canViewConnectorsLink is false', async () => {
306
+ renderTab({
307
+ canViewConnectorsLink: false,
308
+ cluster: buildCluster('Healthy', {
309
+ zeebeVersion: 'zeebe:8.8.8',
310
+ connectorBridgeVersion: 'connector-bridge:8.8.8',
311
+ }),
312
+ });
313
+ await screen.findByTestId('cluster-overview');
314
+ expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
315
+ url: '/org/org-1/cluster/cluster-1/connectors/management',
316
+ linkLabel: 'Manage',
317
+ linkVisible: true,
318
+ }));
319
+ });
320
+ it('hides the connectors link for pre-8.7 clusters even when canViewConnectorsLink is true', async () => {
275
321
  renderTab({
276
322
  cluster: buildCluster('Healthy', {
277
323
  zeebeVersion: 'zeebe:8.6.12',
@@ -280,8 +326,40 @@ describe('C4ClusterDetailsOverviewTab job statistics fetching', () => {
280
326
  });
281
327
  await screen.findByTestId('cluster-overview');
282
328
  expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
283
- url: 'https://lpp-1.connectors.dev.ultrawombat.com/cluster-1/',
284
- linkLabel: 'Launch',
329
+ linkLabel: 'Manage',
330
+ linkVisible: false,
331
+ }));
332
+ });
333
+ it('hides the connectors link for pre-8.7 clusters without a connectors url even when canViewConnectorsLink is true', async () => {
334
+ const cluster = buildCluster('Healthy', {
335
+ zeebeVersion: 'zeebe:8.6.12',
336
+ connectorBridgeVersion: 'connector-bridge:8.6.12',
337
+ });
338
+ const clusterWithoutConnectorsUrl = {
339
+ ...cluster,
340
+ status: {
341
+ ...cluster.status,
342
+ connectorsUrl: undefined,
343
+ },
344
+ };
345
+ renderTab({ cluster: clusterWithoutConnectorsUrl });
346
+ await screen.findByTestId('cluster-overview');
347
+ expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
348
+ linkLabel: 'Manage',
349
+ linkVisible: false,
350
+ }));
351
+ });
352
+ it('shows the internal connectors link for 8.7 clusters when canViewConnectorsLink is true', async () => {
353
+ renderTab({
354
+ cluster: buildCluster('Healthy', {
355
+ zeebeVersion: 'zeebe:8.7.3',
356
+ connectorBridgeVersion: 'connector-bridge:8.7.3',
357
+ }),
358
+ });
359
+ await screen.findByTestId('cluster-overview');
360
+ expect(lastOverviewProps?.applications?.applications?.connectors).toEqual(expect.objectContaining({
361
+ url: '/org/org-1/cluster/cluster-1/connectors/management',
362
+ linkLabel: 'Manage',
285
363
  linkVisible: true,
286
364
  }));
287
365
  });
@@ -603,13 +681,13 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
603
681
  afterEach(() => {
604
682
  cleanup();
605
683
  });
606
- function renderWithVersionPickerFlag(props) {
684
+ function renderVersionPicker(props) {
607
685
  return render(_jsx(C4ConsoleRuntimeProvider, { config: {
608
686
  stage: 'dev',
609
687
  auth: { getAccessToken: async () => 'token' },
610
688
  backendUrls: {},
611
689
  featureFlags: {
612
- isEnabled: (key) => key === 'console.upgradeVersionSelection',
690
+ isEnabled: () => false,
613
691
  },
614
692
  }, children: _jsx(C4ClusterDetailsOverviewTab, { ...defaultProps, ...props }) }));
615
693
  }
@@ -628,7 +706,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
628
706
  },
629
707
  },
630
708
  ];
631
- renderWithVersionPickerFlag({ cluster, canEditCluster: true });
709
+ renderVersionPicker({ cluster, canEditCluster: true });
632
710
  await screen.findByTestId('cluster-overview');
633
711
  act(() => {
634
712
  lastOverviewProps?.details.generation.update.updateStates.updateAvailable.action?.();
@@ -636,7 +714,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
636
714
  await screen.findByText(/Update cluster generation from/i);
637
715
  expect(screen.queryByText('Select target version')).toBeNull();
638
716
  });
639
- it('shows the version picker when flag is on and multiple options exist', async () => {
717
+ it('shows the version picker when multiple options exist', async () => {
640
718
  const user = userEvent.setup();
641
719
  const cluster = buildCluster('Healthy', { zeebeVersion: 'zeebe:8.9.0' });
642
720
  hoisted.upgradableGenerations = [
@@ -663,7 +741,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
663
741
  },
664
742
  },
665
743
  ];
666
- renderWithVersionPickerFlag({ cluster, canEditCluster: true });
744
+ renderVersionPicker({ cluster, canEditCluster: true });
667
745
  await screen.findByTestId('cluster-overview');
668
746
  act(() => {
669
747
  lastOverviewProps?.details.generation.update.updateStates.updateAvailable.action?.();
@@ -708,7 +786,7 @@ describe('C4ClusterDetailsOverviewTab version picker', () => {
708
786
  },
709
787
  },
710
788
  ];
711
- renderWithVersionPickerFlag({ cluster, canEditCluster: true });
789
+ renderVersionPicker({ cluster, canEditCluster: true });
712
790
  await screen.findByTestId('cluster-overview');
713
791
  act(() => {
714
792
  lastOverviewProps?.details.generation.update.updateStates.updateAvailable.action?.();
@@ -1078,18 +1156,15 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
1078
1156
  ...buildCluster('Healthy'),
1079
1157
  externalMetadata: { optimizeEnabled: false },
1080
1158
  };
1081
- function renderWithFlag(canEditCluster) {
1159
+ function renderWithDisabledOptimize(canEditCluster) {
1082
1160
  return render(_jsx(C4ConsoleRuntimeProvider, { config: {
1083
1161
  stage: 'dev',
1084
1162
  auth: { getAccessToken: async () => 'token' },
1085
1163
  backendUrls: {},
1086
- featureFlags: {
1087
- isEnabled: (key) => key === 'console.optimizeScalingForTrials',
1088
- },
1089
1164
  }, children: _jsx(C4ClusterDetailsOverviewTab, { ...defaultProps, cluster: disabledOptimizeCluster, canEditCluster: canEditCluster }) }));
1090
1165
  }
1091
1166
  it('shows "Enable Optimize" CTA with onClick when canEditCluster=true', async () => {
1092
- renderWithFlag(true);
1167
+ renderWithDisabledOptimize(true);
1093
1168
  await screen.findByTestId('cluster-overview');
1094
1169
  const optimize = lastOverviewProps?.applications?.applications?.optimize;
1095
1170
  expect(optimize?.description).toContain('Optimize is not active for this cluster');
@@ -1100,7 +1175,7 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
1100
1175
  expect(optimize?.status).toBeUndefined();
1101
1176
  });
1102
1177
  it('shows "Ask an admin" message with no link when canEditCluster=false', async () => {
1103
- renderWithFlag(false);
1178
+ renderWithDisabledOptimize(false);
1104
1179
  await screen.findByTestId('cluster-overview');
1105
1180
  const optimize = lastOverviewProps?.applications?.applications?.optimize;
1106
1181
  expect(optimize?.description).toContain('Ask an admin to enable it');
@@ -1108,7 +1183,7 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
1108
1183
  expect(optimize?.status).toBeUndefined();
1109
1184
  });
1110
1185
  it('clicking Enable Optimize link opens the activation modal', async () => {
1111
- renderWithFlag(true);
1186
+ renderWithDisabledOptimize(true);
1112
1187
  await screen.findByTestId('cluster-overview');
1113
1188
  expect(screen.queryByRole('dialog', { name: /Enable Optimize/i })).toBeNull();
1114
1189
  const optimize = lastOverviewProps?.applications?.applications?.optimize;
@@ -1120,7 +1195,7 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
1120
1195
  });
1121
1196
  it('confirming in the activation modal calls updateCluster with optimizeEnabled: true', async () => {
1122
1197
  vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue(undefined);
1123
- renderWithFlag(true);
1198
+ renderWithDisabledOptimize(true);
1124
1199
  await screen.findByTestId('cluster-overview');
1125
1200
  const optimize = lastOverviewProps?.applications?.applications?.optimize;
1126
1201
  act(() => {
@@ -1138,3 +1213,43 @@ describe('C4ClusterDetailsOverviewTab disabled Optimize tile', () => {
1138
1213
  });
1139
1214
  });
1140
1215
  });
1216
+ describe('C4ClusterDetailsOverviewTab Resume cluster', () => {
1217
+ beforeEach(() => {
1218
+ lastOverviewProps = undefined;
1219
+ vi.mocked(ConsoleClusterService.wakeCluster).mockReset();
1220
+ vi.mocked(SaaSJobsService.getJobStatisticsGlobal).mockResolvedValue(undefined);
1221
+ });
1222
+ afterEach(() => {
1223
+ cleanup();
1224
+ });
1225
+ it('calls wakeCluster API when wakeAction is invoked', async () => {
1226
+ vi.mocked(ConsoleClusterService.wakeCluster).mockResolvedValue(undefined);
1227
+ const onReloadCluster = vi.fn().mockResolvedValue(undefined);
1228
+ renderTab({
1229
+ cluster: buildCluster('Suspended'),
1230
+ canWakeCluster: true,
1231
+ onReloadCluster,
1232
+ });
1233
+ await screen.findByTestId('cluster-overview');
1234
+ await act(async () => {
1235
+ await lastOverviewProps?.details?.status?.wakeAction?.();
1236
+ });
1237
+ expect(ConsoleClusterService.wakeCluster).toHaveBeenCalledWith(expect.objectContaining({
1238
+ params: { orgId: 'org-1', clusterId: 'cluster-1' },
1239
+ }));
1240
+ expect(onReloadCluster).toHaveBeenCalled();
1241
+ });
1242
+ it('shows error notification when wakeCluster fails', async () => {
1243
+ vi.mocked(ConsoleClusterService.wakeCluster).mockRejectedValue(new Error('wake failed'));
1244
+ const { addC4ConsoleNotification } = await import('../../../notifications/c4-console-notifications-handle');
1245
+ renderTab({ cluster: buildCluster('Suspended'), canWakeCluster: true });
1246
+ await screen.findByTestId('cluster-overview');
1247
+ await act(async () => {
1248
+ await lastOverviewProps?.details?.status?.wakeAction?.();
1249
+ });
1250
+ expect(addC4ConsoleNotification).toHaveBeenCalledWith(expect.objectContaining({
1251
+ kind: 'error',
1252
+ title: 'Failed to resume cluster',
1253
+ }));
1254
+ });
1255
+ });
@@ -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 { Button, ButtonSet, ComposedModal, FilterableMultiSelect, InlineLoading, InlineNotification, Modal, ModalBody, ModalFooter, ModalHeader, ProgressIndicator, ProgressStep, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, TextInput, Tile, } from '@carbon/react';
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(StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(StructuredListBody, { children: allowedPrincipals.length > 0 ? (allowedPrincipals.map((principal) => (_jsx(StructuredListRow, { children: _jsx(StructuredListCell, { children: _jsxs("div", { style: {
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(StructuredListRow, { children: _jsx(StructuredListCell, { children: _jsx("div", { style: {
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(StructuredListWrapper, { isCondensed: true, isFlush: true, children: _jsx(StructuredListBody, { children: allowedRegions.length > 0 ? (allowedRegions.map((region) => (_jsx(StructuredListRow, { children: _jsx(StructuredListCell, { children: _jsxs("div", { style: {
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(StructuredListRow, { children: _jsx(StructuredListCell, { children: _jsx("div", { style: {
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(InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle, style: {
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(InlineNotification, { kind: 'warning', lowContrast: true, hideCloseButton: true, title: ipAllowlistConflictTitle, subtitle: ipAllowlistConflictSubtitle })), secureConnectivityMutationError && (_jsx(InlineNotification, { 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')] }), (() => {
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(InlineNotification, { kind: 'error', lowContrast: true, title: updateModalErrorTitle, subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })), secureConnectivityEditMode === 'regions'
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(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(t, 'clusterdetails:secureConnectivity.deactivateModalErrorTitle', 'Deactivation failed'), subtitle: secureConnectivityMutationError, onCloseButtonClick: () => setSecureConnectivityMutationError('') })) : undefined] }) })] }));
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
  };
@@ -21,8 +21,10 @@ interface C4ClusterDetailsSettingsTabProps {
21
21
  identityAuthorization: string;
22
22
  swagger: string;
23
23
  mcpOverview: string;
24
+ msTeamsIntegration: string;
24
25
  tasklistApiVersions: string;
25
26
  multiTenancy: string;
27
+ byoidp: string;
26
28
  };
27
29
  }
28
30
  export declare const C4ClusterDetailsSettingsTab: (props: C4ClusterDetailsSettingsTabProps) => JSX.Element;