@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
@@ -1,11 +1,13 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ConsoleClusterService } from '@camunda/ccma-api';
3
- import { checkVersion, VersionCheckOperator, } from '@camunda/ccma-shared-types';
4
- import { InlineNotification, Link, Modal } from '@carbon/react';
3
+ import { checkVersion, OPTIMIZE_FILTERING_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
5
4
  import { Fragment, useCallback, useMemo, useState, } from 'react';
6
5
  import { C4ClusterSettings } from '../../../components/c4-cluster-settings/c4-cluster-settings.js';
6
+ import { ExternalIdentityProviderModal, } from '../../../components/c4-cluster-settings/elements/external-identity-provider-modal.js';
7
+ import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
7
8
  import { buildClusterSwaggerUrl } from '../../../runtime/build-cluster-swagger-url.js';
8
9
  import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
10
+ import { Link, Modal } from '../../../ui/index.js';
9
11
  import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-paused.js';
10
12
  // Helper to translate with fallback
11
13
  function safeTranslate(translateFn, key, fallback, options) {
@@ -47,12 +49,17 @@ export const C4ClusterDetailsSettingsTab = (props) => {
47
49
  const [isUpdatingSwagger, setIsUpdatingSwagger] = useState(false);
48
50
  const [isUpdatingMcp, setIsUpdatingMcp] = useState(false);
49
51
  const [isUpdatingBusinessIdUniqueness, setIsUpdatingBusinessIdUniqueness] = useState(false);
52
+ const [isUpdatingAppIntegrations, setIsUpdatingAppIntegrations] = useState(false);
50
53
  const [isUpdatingTasklistV2, setIsUpdatingTasklistV2] = useState(false);
51
54
  const [showTasklistV2ConfirmModal, setShowTasklistV2ConfirmModal] = useState(false);
52
55
  const [tasklistV2UpgradeError, setTasklistV2UpgradeError] = useState(undefined);
53
56
  const [isUpdatingRba, setIsUpdatingRba] = useState(false);
54
57
  const [isUpdatingIdentityAuthorizations, setIsUpdatingIdentityAuthorizations,] = useState(false);
55
58
  const [isUpdatingMultiTenancy, setIsUpdatingMultiTenancy] = useState(false);
59
+ // BYOIDP Phase 1 (#3190)
60
+ const [showExternalIdpModal, setShowExternalIdpModal] = useState(false);
61
+ const [isUpdatingExternalIdp, setIsUpdatingExternalIdp] = useState(false);
62
+ const [externalIdpError, setExternalIdpError] = useState(undefined);
56
63
  const [rbaError, setRbaError] = useState(false);
57
64
  const [authorizationsConfirm, setAuthorizationsConfirm] = useState(undefined);
58
65
  const [authorizationsConfirmError, setAuthorizationsConfirmError] = useState(undefined);
@@ -277,6 +284,34 @@ export const C4ClusterDetailsSettingsTab = (props) => {
277
284
  setIsUpdatingBusinessIdUniqueness(false);
278
285
  }
279
286
  }, [props, runtime.telemetry]);
287
+ const toggleAppIntegrations = useCallback(async () => {
288
+ if (!props.cluster)
289
+ return;
290
+ const nextState = !props.cluster.externalMetadata
291
+ ?.appIntegrationsEnabled;
292
+ setIsUpdatingAppIntegrations(true);
293
+ try {
294
+ await ConsoleClusterService.updateCluster({
295
+ config: props.apiConfig,
296
+ params: { orgId: props.orgId, clusterId: props.clusterId },
297
+ body: { appIntegrationsEnabled: nextState },
298
+ });
299
+ await props.onReloadCluster();
300
+ }
301
+ catch (error) {
302
+ runtime.telemetry?.captureException?.(error, {
303
+ eventName: `appIntegrations:${nextState}:confirm`,
304
+ message: `Error while ${nextState ? 'enabling' : 'disabling'} App Integrations`,
305
+ orgId: props.orgId,
306
+ clusterId: props.clusterId,
307
+ state: nextState,
308
+ });
309
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
310
+ }
311
+ finally {
312
+ setIsUpdatingAppIntegrations(false);
313
+ }
314
+ }, [props, runtime.telemetry]);
280
315
  const toggleTasklistV2 = useCallback(async () => {
281
316
  if (!props.cluster)
282
317
  return;
@@ -424,6 +459,79 @@ export const C4ClusterDetailsSettingsTab = (props) => {
424
459
  setIsUpdatingMultiTenancy(false);
425
460
  }
426
461
  }, [props, runtime.telemetry]);
462
+ // BYOIDP Phase 1 (#3190): toggle enable/disable. Config + secret are retained on
463
+ // disable (D4), so re-enabling needs no re-entry.
464
+ const updateExternalIdpEnabled = useCallback(async (nextState) => {
465
+ runtime.telemetry?.track?.(`byoidp:${nextState}:toggle`, {
466
+ orgId: props.orgId,
467
+ clusterId: props.clusterId,
468
+ state: nextState,
469
+ });
470
+ setIsUpdatingExternalIdp(true);
471
+ try {
472
+ await ConsoleClusterService.updateCluster({
473
+ config: props.apiConfig,
474
+ params: { orgId: props.orgId, clusterId: props.clusterId },
475
+ body: { externalIdpEnabled: nextState },
476
+ });
477
+ await props.onReloadCluster();
478
+ }
479
+ catch (error) {
480
+ runtime.telemetry?.captureException?.(error, {
481
+ eventName: `byoidp:${nextState}:toggle`,
482
+ message: 'Error while toggling external identity provider',
483
+ orgId: props.orgId,
484
+ clusterId: props.clusterId,
485
+ state: nextState,
486
+ });
487
+ setOperationError(error instanceof Error ? error.message : settingUpdateFailedFallback);
488
+ }
489
+ finally {
490
+ setIsUpdatingExternalIdp(false);
491
+ }
492
+ }, [props, runtime.telemetry, settingUpdateFailedFallback]);
493
+ // BYOIDP Phase 1 (#3190): save config from the modal. Fail-closed ordering — write
494
+ // the secret FIRST (so the CR never points at a missing Secret), then persist config
495
+ // and enable. secretUpdatedAt is bumped here whenever a new secret was entered, so a
496
+ // rotation changes the CR and rolls the pods (design §3).
497
+ const submitExternalIdp = useCallback(async ({ config, clientSecret, }) => {
498
+ setIsUpdatingExternalIdp(true);
499
+ setExternalIdpError(undefined);
500
+ try {
501
+ if (clientSecret) {
502
+ await ConsoleClusterService.updateExternalIdpSecret({
503
+ config: props.apiConfig,
504
+ params: { orgId: props.orgId, clusterId: props.clusterId },
505
+ body: { name: config.name, clientSecret },
506
+ });
507
+ }
508
+ const nextConfig = {
509
+ ...config,
510
+ secretUpdatedAt: clientSecret
511
+ ? new Date().toISOString()
512
+ : props.cluster?.externalIdpConfig?.secretUpdatedAt,
513
+ };
514
+ await ConsoleClusterService.updateCluster({
515
+ config: props.apiConfig,
516
+ params: { orgId: props.orgId, clusterId: props.clusterId },
517
+ body: { externalIdpEnabled: true, externalIdpConfig: nextConfig },
518
+ });
519
+ await props.onReloadCluster();
520
+ setShowExternalIdpModal(false);
521
+ }
522
+ catch (error) {
523
+ runtime.telemetry?.captureException?.(error, {
524
+ eventName: 'byoidp:save',
525
+ message: 'Error while saving external identity provider',
526
+ orgId: props.orgId,
527
+ clusterId: props.clusterId,
528
+ });
529
+ setExternalIdpError(error instanceof Error ? error.message : settingUpdateFailedFallback);
530
+ }
531
+ finally {
532
+ setIsUpdatingExternalIdp(false);
533
+ }
534
+ }, [props, runtime.telemetry, settingUpdateFailedFallback]);
427
535
  const openIdentityBasedAuthorizationsConfirmation = useCallback(() => {
428
536
  if (!props.cluster)
429
537
  return;
@@ -440,10 +548,38 @@ export const C4ClusterDetailsSettingsTab = (props) => {
440
548
  const shouldShowMultiTenancy = useMemo(() => {
441
549
  return checkClusterVersion('8.8.0-alpha7') && isMultiTenancyFeatureEnabled;
442
550
  }, [checkClusterVersion, isMultiTenancyFeatureEnabled]);
551
+ // BYOIDP Phase 1 (#3190). TODO(byoidp): byoidp remove gate at GA rollout
552
+ const isByoidpFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.byoidp') ?? false;
553
+ const shouldShowExternalIdp = useMemo(() => {
554
+ return checkClusterVersion('8.10.0-alpha3') && isByoidpFeatureEnabled;
555
+ }, [checkClusterVersion, isByoidpFeatureEnabled]);
443
556
  const isOptimizeFilteringFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.optimizeFiltering') ?? false;
444
557
  const shouldShowOptimizeFiltering = useMemo(() => {
445
- return (checkClusterVersion('8.10.0-alpha1') && isOptimizeFilteringFeatureEnabled);
558
+ return (checkClusterVersion(OPTIMIZE_FILTERING_MIN_VERSION) &&
559
+ isOptimizeFilteringFeatureEnabled);
446
560
  }, [checkClusterVersion, isOptimizeFilteringFeatureEnabled]);
561
+ const isAppIntegrationsFeatureEnabled = runtime.featureFlags?.isEnabled?.('console.appIntegrations') ?? false;
562
+ const shouldShowAppIntegrations = useMemo(() => {
563
+ const zeebeVersion = props.cluster?.generation?.versions?.zeebe;
564
+ if (!zeebeVersion || !isAppIntegrationsFeatureEnabled) {
565
+ return false;
566
+ }
567
+ // 8.9 stream needs >=8.9.12; everything else needs >=8.10.0-alpha3.
568
+ // A plain >=8.9.12 would wrongly match 8.10.0-alpha1/2.
569
+ const isIn89Stream = checkVersion({
570
+ possiblyVersionOrDockerPath: zeebeVersion,
571
+ trueForSnapshot: 'compare',
572
+ operator: VersionCheckOperator.SameMinor,
573
+ versionToCompareTo: '8.9.0',
574
+ });
575
+ return isIn89Stream
576
+ ? checkClusterVersion('8.9.12')
577
+ : checkClusterVersion('8.10.0-alpha3');
578
+ }, [
579
+ props.cluster?.generation?.versions?.zeebe,
580
+ isAppIntegrationsFeatureEnabled,
581
+ checkClusterVersion,
582
+ ]);
447
583
  const handleOptimizeFilteringToggle = useCallback(async (enabled) => {
448
584
  try {
449
585
  await ConsoleClusterService.updateCluster({
@@ -551,7 +687,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
551
687
  updateIdentityBasedAuthorizations,
552
688
  updateResourceBasedAuthorizations,
553
689
  ]);
554
- return (_jsxs(_Fragment, { children: [operationError && (_jsx(InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(props.t, 'clusterdetails:settings.operationError.title', 'Setting update failed'), subtitle: operationError, onCloseButtonClick: () => setOperationError(undefined) })), _jsx(C4ClusterSettings, { settings: {
690
+ return (_jsxs(_Fragment, { children: [operationError && (_jsx(C4InlineNotification, { kind: 'error', lowContrast: true, title: safeTranslate(props.t, 'clusterdetails:settings.operationError.title', 'Setting update failed'), subtitle: operationError, onCloseButtonClick: () => setOperationError(undefined) })), _jsx(C4ClusterSettings, { settings: {
555
691
  title: safeTranslate(props.t, 'clusterdetails:settings.clusterSettings.title', 'Cluster settings'),
556
692
  ...(shouldShowResourceBasedAuthorizations && {
557
693
  resourceBasedAuthorizations: {
@@ -624,6 +760,37 @@ export const C4ClusterDetailsSettingsTab = (props) => {
624
760
  docsUrl: props.docsUrls.multiTenancy,
625
761
  },
626
762
  }),
763
+ ...(shouldShowExternalIdp && {
764
+ externalIdentityProvider: {
765
+ enabled: props.cluster.externalIdpEnabled ?? false,
766
+ configured: Boolean(props.cluster.externalIdpConfig),
767
+ displayName: props.cluster.externalIdpConfig?.clientName,
768
+ statusText: props.cluster.externalIdpConfig
769
+ ? `Configured: ${props.cluster.externalIdpConfig.clientName}`
770
+ : 'Not configured',
771
+ action: {
772
+ label: props.cluster.externalIdpConfig ? 'Edit' : 'Configure',
773
+ onClick: () => {
774
+ setExternalIdpError(undefined);
775
+ setShowExternalIdpModal(true);
776
+ },
777
+ },
778
+ onToggle: () => {
779
+ // Can only enable once configured; opening the modal handles first setup.
780
+ if (!props.cluster?.externalIdpConfig) {
781
+ setExternalIdpError(undefined);
782
+ setShowExternalIdpModal(true);
783
+ return;
784
+ }
785
+ void updateExternalIdpEnabled(!(props.cluster?.externalIdpEnabled ?? false));
786
+ },
787
+ permissions: {
788
+ mayToggle: effectiveCanEdit && !isUpdatingExternalIdp,
789
+ mayEdit: effectiveCanEdit && !isUpdatingExternalIdp,
790
+ },
791
+ description: (_jsxs(_Fragment, { children: [_jsx("p", { children: "Register one custom OpenID Connect identity provider for this cluster, alongside the built-in provider. Users can then sign in through your organization's IdP." }), _jsx("br", {}), _jsxs("p", { children: ["Learn more about", ' ', _jsx(Link, { href: props.docsUrls.byoidp, target: '_blank', rel: 'noopener noreferrer', children: "configuring an external identity provider" })] })] })),
792
+ },
793
+ }),
627
794
  autoUpdate: {
628
795
  enabled: props.cluster.autoUpdate ?? false,
629
796
  description: (_jsx(_Fragment, { children: safeTranslate(props.t, 'clusterdetails:settings.autoUpdate.description', 'When enabled, the cluster will be updated to the latest patch release. For entirely new cluster versions, updates will need to be performed manually. Please note that during the update, there may be a brief period of unavailability for the cluster.') })),
@@ -713,6 +880,21 @@ export const C4ClusterDetailsSettingsTab = (props) => {
713
880
  },
714
881
  },
715
882
  }),
883
+ ...(shouldShowAppIntegrations && {
884
+ appIntegrationsToggle: {
885
+ enabled: props.cluster.externalMetadata
886
+ ?.appIntegrationsEnabled ?? false,
887
+ description: (_jsxs(_Fragment, { children: [safeTranslate(props.t, 'clusterdetails:settings.appIntegrations.description', 'When enabled, this cluster exchanges events with App Integrations such as'), ' ', _jsx(Link, { href: props.docsUrls.msTeamsIntegration, target: '_blank', rel: 'noopener noreferrer', children: safeTranslate(props.t, 'clusterdetails:settings.appIntegrations.msTeamsLinkText', 'Microsoft Teams') }), '. ', safeTranslate(props.t, 'clusterdetails:settings.appIntegrations.descriptionDisabled', 'When disabled, you can still use App Integrations, but they work with reduced functionality.')] })),
888
+ permissions: {
889
+ mayChange: effectiveCanEdit,
890
+ },
891
+ action: {
892
+ label: safeTranslate(props.t, 'clusterdetails:settings.appIntegrations.title', 'Enable App Integrations'),
893
+ onClick: toggleAppIntegrations,
894
+ disabled: isUpdatingAppIntegrations,
895
+ },
896
+ },
897
+ }),
716
898
  }, ...(canUpgradeTasklist &&
717
899
  !props.cluster.externalMetadata?.tasklistV2Enabled && {
718
900
  tasklistSettings: {
@@ -763,7 +945,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
763
945
  setTasklistV2UpgradeError(undefined);
764
946
  }, onRequestSubmit: () => {
765
947
  void submitTasklistV2Upgrade();
766
- }, size: 'sm', children: [_jsx("p", { children: safeTranslate(props.t, 'clusterdetails:settings.tasklistMode.modal.description', 'This action cannot be undone. Once upgraded to Tasklist v2, downgrading back to v1 will not be possible.') }), tasklistV2UpgradeError && (_jsx(InlineNotification, { lowContrast: true, kind: 'error', hideCloseButton: true, title: '', subtitle: tasklistV2UpgradeError }))] })), authorizationsConfirm && (_jsxs(Modal, { open: true, modalHeading: authorizationsConfirmTitle, primaryButtonText: authorizationsConfirmPrimaryText, secondaryButtonText: safeTranslate(props.t, 'clusterdetails:settings.authorizations.modal.buttons.cancel', 'Cancel'), primaryButtonDisabled: isUpdatingRba || isUpdatingIdentityAuthorizations, onRequestClose: () => {
948
+ }, size: 'sm', children: [_jsx("p", { children: safeTranslate(props.t, 'clusterdetails:settings.tasklistMode.modal.description', 'This action cannot be undone. Once upgraded to Tasklist v2, downgrading back to v1 will not be possible.') }), tasklistV2UpgradeError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', hideCloseButton: true, title: '', subtitle: tasklistV2UpgradeError }))] })), authorizationsConfirm && (_jsxs(Modal, { open: true, modalHeading: authorizationsConfirmTitle, primaryButtonText: authorizationsConfirmPrimaryText, secondaryButtonText: safeTranslate(props.t, 'clusterdetails:settings.authorizations.modal.buttons.cancel', 'Cancel'), primaryButtonDisabled: isUpdatingRba || isUpdatingIdentityAuthorizations, onRequestClose: () => {
767
949
  if (isUpdatingRba || isUpdatingIdentityAuthorizations) {
768
950
  return;
769
951
  }
@@ -771,5 +953,11 @@ export const C4ClusterDetailsSettingsTab = (props) => {
771
953
  setAuthorizationsConfirmError(undefined);
772
954
  }, onRequestSubmit: () => {
773
955
  void submitAuthorizationsConfirmation();
774
- }, size: 'sm', children: [authorizationsConfirmDescription, authorizationsConfirmError && (_jsx(InlineNotification, { lowContrast: true, kind: 'error', hideCloseButton: true, title: '', subtitle: authorizationsConfirmError }))] }))] }));
956
+ }, size: 'sm', children: [authorizationsConfirmDescription, authorizationsConfirmError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', hideCloseButton: true, title: '', subtitle: authorizationsConfirmError }))] })), shouldShowExternalIdp && (_jsx(ExternalIdentityProviderModal, { open: showExternalIdpModal, initialConfig: props.cluster.externalIdpConfig, saving: isUpdatingExternalIdp, error: externalIdpError, onClose: () => {
957
+ if (isUpdatingExternalIdp)
958
+ return;
959
+ setShowExternalIdpModal(false);
960
+ }, onSubmit: (values) => {
961
+ void submitExternalIdp(values);
962
+ } }))] }));
775
963
  };
@@ -16,8 +16,10 @@ const stubDocsUrls = {
16
16
  identityAuthorization: 'https://docs.example/identity-auth',
17
17
  swagger: 'https://docs.example/swagger',
18
18
  mcpOverview: 'https://docs.example/mcp-overview',
19
+ msTeamsIntegration: 'https://docs.example/ms-teams',
19
20
  tasklistApiVersions: 'https://docs.example/tasklist-api-versions',
20
21
  multiTenancy: 'https://docs.example/multi-tenancy',
22
+ byoidp: 'https://docs.example/byoidp',
21
23
  };
22
24
  const resizeObserverStub = class ResizeObserver {
23
25
  observe() { }
@@ -95,7 +97,7 @@ function renderTab(options) {
95
97
  getAccessToken: async () => 'token',
96
98
  },
97
99
  backendUrls: {},
98
- featureFlags: {
100
+ featureFlags: options.featureFlags ?? {
99
101
  isEnabled: () => true,
100
102
  },
101
103
  }, children: _jsx(C4ClusterDetailsSettingsTab, { cluster: cluster, orgId: 'org-1', clusterId: 'cluster-1', apiConfig: { stage: 'dev' }, canEditCluster: true, canDeleteCluster: false, canManageUsers: false, t: (k) => k, docsUrls: stubDocsUrls, onReloadCluster: async () => undefined, onRequestDelete: () => undefined }) }));
@@ -121,8 +123,10 @@ function renderTasklistTab(options) {
121
123
  identityAuthorization: '',
122
124
  swagger: '',
123
125
  mcpOverview: '',
126
+ msTeamsIntegration: '',
124
127
  tasklistApiVersions: '',
125
128
  multiTenancy: '',
129
+ byoidp: '',
126
130
  } }) }));
127
131
  }
128
132
  describe('C4ClusterDetailsSettingsTab version gating', () => {
@@ -427,3 +431,58 @@ describe('C4ClusterDetailsSettingsTab swagger URL', () => {
427
431
  })).not.toBeInTheDocument();
428
432
  });
429
433
  });
434
+ describe('app integrations toggle', () => {
435
+ beforeAll(() => {
436
+ globalThis.ResizeObserver = resizeObserverStub;
437
+ });
438
+ beforeEach(() => {
439
+ vi.mocked(ConsoleClusterService.updateCluster).mockReset();
440
+ });
441
+ afterEach(() => {
442
+ cleanup();
443
+ });
444
+ afterAll(() => {
445
+ globalThis.ResizeObserver = originalResizeObserver;
446
+ });
447
+ it('is visible for an 8.9 stream cluster at 8.9.12', () => {
448
+ const settings = renderTab({ zeebeVersion: '8.9.12' });
449
+ expect(settings.appIntegrationsToggle).toBeDefined();
450
+ });
451
+ it('is hidden for an 8.9 stream cluster below 8.9.12', () => {
452
+ const settings = renderTab({ zeebeVersion: '8.9.11' });
453
+ expect(settings.appIntegrationsToggle).toBeUndefined();
454
+ });
455
+ it('is hidden for 8.10.0-alpha2', () => {
456
+ const settings = renderTab({ zeebeVersion: '8.10.0-alpha2' });
457
+ expect(settings.appIntegrationsToggle).toBeUndefined();
458
+ });
459
+ it('is visible for 8.10.0-alpha3', () => {
460
+ const settings = renderTab({ zeebeVersion: '8.10.0-alpha3' });
461
+ expect(settings.appIntegrationsToggle).toBeDefined();
462
+ });
463
+ it('is visible for an 8.10 snapshot version', () => {
464
+ const settings = renderTab({ zeebeVersion: '8.10-SNAPSHOT' });
465
+ expect(settings.appIntegrationsToggle).toBeDefined();
466
+ });
467
+ it('is visible for an 8.10.0 snapshot version', () => {
468
+ const settings = renderTab({ zeebeVersion: '8.10.0-SNAPSHOT' });
469
+ expect(settings.appIntegrationsToggle).toBeDefined();
470
+ });
471
+ it('is hidden when the feature flag is off', () => {
472
+ const settings = renderTab({
473
+ zeebeVersion: '8.10.0-alpha3',
474
+ featureFlags: { isEnabled: () => false },
475
+ });
476
+ expect(settings.appIntegrationsToggle).toBeUndefined();
477
+ });
478
+ it('calls updateCluster with the flipped flag', async () => {
479
+ const settings = renderTab({ zeebeVersion: '8.9.12' });
480
+ vi.mocked(ConsoleClusterService.updateCluster).mockResolvedValue({});
481
+ settings.appIntegrationsToggle?.action.onClick();
482
+ await waitFor(() => {
483
+ expect(ConsoleClusterService.updateCluster).toHaveBeenCalledWith(expect.objectContaining({
484
+ body: { appIntegrationsEnabled: true },
485
+ }));
486
+ });
487
+ });
488
+ });
@@ -1,4 +1,4 @@
1
1
  import type { C4ClustersPageProps } from './c4-clusters-page.types';
2
- export declare const C4ClustersPage: (({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, onRequestFailoverCluster, }: C4ClustersPageProps) => import("react").JSX.Element) & {
2
+ export declare const C4ClustersPage: (({ orgId, gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, onRequestFailoverCluster, onNeedsReload, }: C4ClustersPageProps) => import("react").JSX.Element) & {
3
3
  displayName: string;
4
4
  };