@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
@@ -44,6 +44,11 @@ vi.mock('../../components/c4-leave-organization-modal/c4-leave-organization-moda
44
44
  C4LeaveOrganizationModal: () => null,
45
45
  };
46
46
  });
47
+ vi.mock('../../components/c4-extend-trial-modal/c4-extend-trial-modal', () => {
48
+ return {
49
+ C4ExtendTrialModal: ({ isOpen, onClose, }) => isOpen ? (_jsxs("div", { children: [_jsx("span", { children: "Extend trial modal" }), _jsx("button", { type: 'button', onClick: onClose, children: "Close extend modal" })] })) : null,
50
+ };
51
+ });
47
52
  const mockedOrgsService = OrgsService;
48
53
  const mockedEarlyAccessFeaturesService = EarlyAccessFeaturesService;
49
54
  vi.mock('./c4-management-page', () => {
@@ -72,7 +77,7 @@ vi.mock('./tabs/c4-management-billing-tab', () => ({
72
77
  C4ManagementBillingTab: () => _jsx("div", {}),
73
78
  }));
74
79
  vi.mock('./tabs/c4-management-overview-tab', () => ({
75
- C4ManagementOverviewTab: () => _jsx("div", {}),
80
+ C4ManagementOverviewTab: ({ orgName, onExtendTrial, trialExpirationLabel, }) => (_jsxs("div", { children: [_jsx("span", { children: orgName }), onExtendTrial ? (_jsx("button", { type: 'button', onClick: onExtendTrial, children: "Extend trial" })) : null, trialExpirationLabel ? _jsx("span", { children: trialExpirationLabel }) : null] })),
76
81
  }));
77
82
  vi.mock('./tabs/c4-management-pricing-tab', () => ({
78
83
  C4ManagementPricingTab: () => _jsx("div", {}),
@@ -114,6 +119,37 @@ function buildOrgInfo(hasAcceptedBetaTerms) {
114
119
  },
115
120
  };
116
121
  }
122
+ function buildTrialOrgInfo({ trialStateExpired = false, daysUntilExpiry = 3, extensionsUsed = 0, canBillingUpdate = true, } = {}) {
123
+ const trialExpirationDate = new Date(Date.now() + daysUntilExpiry * 24 * 60 * 60 * 1000).toISOString();
124
+ return {
125
+ uuid: 'org-1',
126
+ name: 'Trial Org',
127
+ hasAcceptedBetaTerms: false,
128
+ permissions: {
129
+ org: {
130
+ earlyAccessFeatures: {
131
+ read: false,
132
+ update: false,
133
+ },
134
+ settings: {
135
+ delete: false,
136
+ },
137
+ billing: {
138
+ update: canBillingUpdate,
139
+ },
140
+ },
141
+ },
142
+ organizationToSalesPlan: {
143
+ salesPlan: {
144
+ salesPlanType: 'trial',
145
+ },
146
+ trialStateExpired,
147
+ trialExpirationDate,
148
+ trialExtensionsUsed: extensionsUsed,
149
+ limits: {},
150
+ },
151
+ };
152
+ }
117
153
  function buildEarlyAccessFeature() {
118
154
  return {
119
155
  feature: {
@@ -224,6 +260,84 @@ function renderManagementApp(props = {}) {
224
260
  identityDocsUrl: '',
225
261
  }, orgId: 'org-1', desiredTabId: 'settings', ...props }) }) }));
226
262
  }
263
+ function renderTrialApp(orgData) {
264
+ return render(_jsx(C4ConsoleRuntimeProvider, { config: {
265
+ stage: 'dev',
266
+ auth: {
267
+ getAccessToken: async () => 'token',
268
+ },
269
+ backendUrls: {},
270
+ clickwrap: {
271
+ accessId: 'access-id',
272
+ betaGroupKey: 'beta-group-key',
273
+ },
274
+ user: {
275
+ email: 'owner@example.com',
276
+ name: 'Owner Name',
277
+ sub: 'user-1',
278
+ },
279
+ i18n: {
280
+ t: (key) => key,
281
+ },
282
+ featureFlags: {
283
+ isEnabled: () => false,
284
+ },
285
+ }, children: _jsx(C4ConsoleDataProvider, { initialState: {
286
+ orgInfo: {
287
+ 'org-1': {
288
+ data: orgData,
289
+ isLoading: false,
290
+ error: null,
291
+ lastFetched: new Date(),
292
+ },
293
+ },
294
+ members: {
295
+ 'org-1': {
296
+ data: [
297
+ {
298
+ name: 'Owner Name',
299
+ email: 'owner@example.com',
300
+ roles: ['owner'],
301
+ userId: 'user-1',
302
+ },
303
+ ],
304
+ isLoading: false,
305
+ error: null,
306
+ lastFetched: new Date(),
307
+ },
308
+ },
309
+ clusters: {
310
+ 'org-1': {
311
+ data: [],
312
+ isLoading: false,
313
+ error: null,
314
+ lastFetched: new Date(),
315
+ },
316
+ },
317
+ earlyAccessFeatures: {
318
+ 'org-1': {
319
+ data: [],
320
+ isLoading: false,
321
+ error: null,
322
+ lastFetched: new Date(),
323
+ },
324
+ },
325
+ }, children: _jsx(C4ManagementApp, { urls: {
326
+ earlyAccessDocsUrl: '',
327
+ apiClientsDocsUrl: '',
328
+ activityDocsUrl: '',
329
+ aiUsageDocsUrl: '',
330
+ aiBlueprintsUrl: '',
331
+ contactUrl: '',
332
+ contactEnterprisePlanUrl: '',
333
+ trustCenterUrl: '',
334
+ talkToAnExpertUrl: '',
335
+ requestCelpLicenceUrl: '',
336
+ introToIdentityDocsUrl: '',
337
+ identityAuthorizationsDocsUrl: '',
338
+ identityDocsUrl: '',
339
+ }, orgId: 'org-1', desiredTabId: 'overview' }) }) }));
340
+ }
227
341
  describe('C4ManagementApp early access settings', () => {
228
342
  afterEach(() => {
229
343
  cleanup();
@@ -345,3 +459,51 @@ describe('C4ManagementApp early access settings', () => {
345
459
  });
346
460
  });
347
461
  });
462
+ describe('C4ManagementApp extend trial', () => {
463
+ afterEach(() => {
464
+ cleanup();
465
+ });
466
+ beforeEach(() => {
467
+ mockedOrgsService.getOne.mockReset();
468
+ mockedEarlyAccessFeaturesService.getForOrg.mockReset();
469
+ });
470
+ it('shows the extend trial button in the overview tab when all canSelfExtend conditions are met', async () => {
471
+ mockedOrgsService.getOne.mockResolvedValue(buildTrialOrgInfo());
472
+ mockedEarlyAccessFeaturesService.getForOrg.mockResolvedValue([]);
473
+ renderTrialApp(buildTrialOrgInfo());
474
+ const extendBtn = await screen.findByRole('button', {
475
+ name: 'Extend trial',
476
+ });
477
+ expect(extendBtn).toBeTruthy();
478
+ });
479
+ it('shows the trial expiration date in the overview tab while the trial is active', async () => {
480
+ const orgData = buildTrialOrgInfo({ daysUntilExpiry: 20 });
481
+ mockedOrgsService.getOne.mockResolvedValue(orgData);
482
+ mockedEarlyAccessFeaturesService.getForOrg.mockResolvedValue([]);
483
+ renderTrialApp(orgData);
484
+ const expectedLabel = `Trial expires ${new Intl.DateTimeFormat('en-GB', {
485
+ hour12: false,
486
+ day: '2-digit',
487
+ month: 'short',
488
+ year: 'numeric',
489
+ }).format(new Date(orgData.organizationToSalesPlan.trialExpirationDate))}`;
490
+ expect(await screen.findByText(expectedLabel)).toBeTruthy();
491
+ });
492
+ it('does not show the trial expiration date once the trial has expired', async () => {
493
+ const orgData = buildTrialOrgInfo({ trialStateExpired: true });
494
+ mockedOrgsService.getOne.mockResolvedValue(orgData);
495
+ mockedEarlyAccessFeaturesService.getForOrg.mockResolvedValue([]);
496
+ renderTrialApp(orgData);
497
+ await screen.findByText('Trial Org');
498
+ expect(screen.queryByText(/Trial expires/)).toBeNull();
499
+ });
500
+ it('does not show the trial expiration date for non-trial organizations', async () => {
501
+ mockedOrgsService.getOne.mockResolvedValue(buildOrgInfo(true));
502
+ mockedEarlyAccessFeaturesService.getForOrg.mockResolvedValue([
503
+ buildEarlyAccessFeature(),
504
+ ]);
505
+ renderManagementApp({ desiredTabId: 'overview' });
506
+ await screen.findByText('Org One');
507
+ expect(screen.queryByText(/Trial expires/)).toBeNull();
508
+ });
509
+ });
@@ -62,6 +62,11 @@ export interface C4ManagementAppProps {
62
62
  */
63
63
  isLicensingModel2025?: boolean;
64
64
  urls?: C4ManagementUrls;
65
+ /**
66
+ * Called when the component needs the host to reload org data (e.g. after a
67
+ * trial extension succeeds so the new expiry date is reflected immediately).
68
+ */
69
+ onNeedsReload?: () => void;
65
70
  }
66
71
  export interface C4ManagementUrls {
67
72
  earlyAccessDocsUrl?: string;
@@ -1,12 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { TabsSkeleton } from '@carbon/react';
8
2
  import { C4PageTemplate } from '../../components/c4-page-template/c4-page-template.js';
9
3
  import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
4
+ import { TabsSkeleton } from '../../ui/index.js';
10
5
  function safeTranslate(t, key, fallback) {
11
6
  try {
12
7
  const translated = t?.(key);
@@ -0,0 +1,22 @@
1
+ export type ManagementTabId = 'overview' | 'users' | 'groups' | 'activity' | 'usage' | 'aiUsage' | 'billing' | 'pricing' | 'api' | 'settings';
2
+ export interface ManagementTabDescriptor {
3
+ id: ManagementTabId;
4
+ /** i18n key (namespaced, e.g. `orgmanagement:tabs.overview.title`). */
5
+ titleKey: string;
6
+ /** English fallback used when the key can't be resolved. */
7
+ titleFallback: string;
8
+ }
9
+ /**
10
+ * Canonical id + label-key + display order for the org-management tabs.
11
+ *
12
+ * Single source of truth: `c4-management-app.tsx` builds its tab bar from this
13
+ * list (attaching each tab's live component / visibility by id), and the docs
14
+ * screenshot shell (screenshot-tooling-storybook) imports it so its tab bar
15
+ * can't drift from the real page. Runtime visibility is NOT encoded here.
16
+ *
17
+ * `billing` and `pricing` are mutually exclusive at runtime (enterprise orgs see
18
+ * billing, others see pricing); both are listed and the consumer picks one.
19
+ */
20
+ export declare const MANAGEMENT_TABS: readonly ManagementTabDescriptor[];
21
+ /** Look up a tab descriptor by id. */
22
+ export declare function managementTab(id: ManagementTabId): ManagementTabDescriptor;
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ /**
7
+ * Canonical id + label-key + display order for the org-management tabs.
8
+ *
9
+ * Single source of truth: `c4-management-app.tsx` builds its tab bar from this
10
+ * list (attaching each tab's live component / visibility by id), and the docs
11
+ * screenshot shell (screenshot-tooling-storybook) imports it so its tab bar
12
+ * can't drift from the real page. Runtime visibility is NOT encoded here.
13
+ *
14
+ * `billing` and `pricing` are mutually exclusive at runtime (enterprise orgs see
15
+ * billing, others see pricing); both are listed and the consumer picks one.
16
+ */
17
+ export const MANAGEMENT_TABS = [
18
+ {
19
+ id: 'overview',
20
+ titleKey: 'orgmanagement:tabs.overview.title',
21
+ titleFallback: 'Overview',
22
+ },
23
+ {
24
+ id: 'users',
25
+ titleKey: 'orgmanagement:tabs.users.title',
26
+ titleFallback: 'Users',
27
+ },
28
+ {
29
+ id: 'groups',
30
+ titleKey: 'orgmanagement:tabs.groups.title',
31
+ titleFallback: 'Groups',
32
+ },
33
+ {
34
+ id: 'activity',
35
+ titleKey: 'orgmanagement:tabs.activity.title',
36
+ titleFallback: 'Activity',
37
+ },
38
+ {
39
+ id: 'usage',
40
+ titleKey: 'orgmanagement:tabs.usage.title',
41
+ titleFallback: 'Usage',
42
+ },
43
+ {
44
+ id: 'aiUsage',
45
+ titleKey: 'orgmanagement:tabs.aiUsage.title',
46
+ titleFallback: 'AI usage',
47
+ },
48
+ {
49
+ id: 'billing',
50
+ titleKey: 'orgmanagement:tabs.billing.title',
51
+ titleFallback: 'Billing',
52
+ },
53
+ {
54
+ id: 'pricing',
55
+ titleKey: 'orgmanagement:tabs.pricing.title',
56
+ titleFallback: 'Plans and pricing',
57
+ },
58
+ {
59
+ id: 'api',
60
+ titleKey: 'orgmanagement:tabs.api.title',
61
+ titleFallback: 'Administration API',
62
+ },
63
+ {
64
+ id: 'settings',
65
+ titleKey: 'orgmanagement:tabs.settings.title',
66
+ titleFallback: 'Settings',
67
+ },
68
+ ];
69
+ /** Look up a tab descriptor by id. */
70
+ export function managementTab(id) {
71
+ const descriptor = MANAGEMENT_TABS.find((tab) => tab.id === id);
72
+ if (!descriptor) {
73
+ throw new Error(`Unknown management tab id: ${id}`);
74
+ }
75
+ return descriptor;
76
+ }
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
3
+ * under one or more contributor license agreements. Licensed under a commercial license.
4
+ * You may not use this file except in compliance with the commercial license.
5
+ */
6
+ import { describe, expect, it } from 'vitest';
7
+ import orgmanagement from '../../i18n/en/pages/orgmanagement.json';
8
+ import { MANAGEMENT_TABS } from './management-tabs.js';
9
+ function resolve(json, path) {
10
+ return path
11
+ .split('.')
12
+ .reduce((node, key) => node && typeof node === 'object'
13
+ ? node[key]
14
+ : undefined, json);
15
+ }
16
+ describe('MANAGEMENT_TABS', () => {
17
+ it('has unique ids', () => {
18
+ const ids = MANAGEMENT_TABS.map((tab) => tab.id);
19
+ expect(new Set(ids).size).toBe(ids.length);
20
+ });
21
+ it('every titleKey targets the orgmanagement bundle and resolves to a string', () => {
22
+ for (const { titleKey } of MANAGEMENT_TABS) {
23
+ const [namespace, path] = titleKey.split(':');
24
+ expect(namespace).toBe('orgmanagement');
25
+ expect(typeof resolve(orgmanagement, path)).toBe('string');
26
+ }
27
+ });
28
+ });
@@ -4,10 +4,12 @@ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Checkbox, Form, FormGroup, Link, Modal, Stack, StructuredListBody, StructuredListCell, StructuredListRow, StructuredListWrapper, TextInput, } from '@carbon/react';
7
+ import { Form, FormGroup } from '@carbon/react';
8
8
  import { useMemo, useState } from 'react';
9
9
  import { C4ClusterClientCredentialsModal } from '../../../components/c4-cluster-client-credentials/c4-cluster-client-credentials.js';
10
10
  import { C4ManagementApi } from '../../../components/c4-management-api/c4-management-api.js';
11
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListRow, C4StructuredListWrapper, } from '../../../components/c4-structured-list/c4-structured-list.js';
12
+ import { Checkbox, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
11
13
  // Helper functions
12
14
  function isApiClientNameValid(name) {
13
15
  if (!name.trim()) {
@@ -657,6 +659,6 @@ export const C4ManagementApiTab = (props) => {
657
659
  const filtered = details
658
660
  .filter((d) => showIpWhitelistColumn ? true : d.id !== 'whitelist-scopes')
659
661
  .filter((d) => showHotBackupColumn ? true : d.id !== 'hotBackups-scopes');
660
- return (_jsx(StructuredListWrapper, { isCondensed: true, children: _jsx(StructuredListBody, { children: filtered.map((detail) => (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { head: true, children: detail.label }), _jsx(StructuredListCell, { children: detail.value })] }, detail.id))) }) }));
662
+ return (_jsx(C4StructuredListWrapper, { isCondensed: true, children: _jsx(C4StructuredListBody, { children: filtered.map((detail) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { head: true, children: detail.label }), _jsx(C4StructuredListCell, { children: detail.value })] }, detail.id))) }) }));
661
663
  })() })) : null] }));
662
664
  };
@@ -5,10 +5,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { UsageAlertInitValues, UsageAlertMetric, UsageAlertThresholdLimits, } from '@camunda/ccma-shared-types';
8
- import { Modal, Stack } from '@carbon/react';
9
8
  import { useState } from 'react';
10
9
  import { C4BillingPage } from '../../../components/c4-billing-page/c4-billing-page.js';
11
10
  import { C4UsageAlertUpdateModal } from '../../../components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js';
11
+ import { Modal, Stack } from '../../../ui/index.js';
12
12
  function safeTranslate(t, key, fallback, options) {
13
13
  try {
14
14
  const translated = t?.(key, options);
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C4GroupsList } from '@camunda/c4-identity';
8
- import { Stack } from '@carbon/react';
8
+ import { Stack } from '../../../ui/index.js';
9
9
  export const C4ManagementGroupsTab = (props) => {
10
10
  return (_jsx(Stack, { gap: 3, children: _jsx(C4GroupsList, { docsPath: '/next/components/console/manage-organization/manage-user-groups/', onGroupClick: (groupId) => {
11
11
  props.onGroupClick(groupId);
@@ -5,8 +5,10 @@ export interface C4ManagementOverviewTabProps {
5
5
  salesPlan?: string;
6
6
  ownerName?: string;
7
7
  loading: boolean;
8
+ trialExpirationLabel?: string;
8
9
  mayRename: boolean;
9
10
  t?: (key: string, options?: Record<string, unknown>) => string;
10
11
  onRenameOrg: (newName: string) => Promise<void>;
12
+ onExtendTrial?: () => void;
11
13
  }
12
- export declare const C4ManagementOverviewTab: ({ orgId, orgName, salesPlan, ownerName, loading, mayRename, t, onRenameOrg, }: C4ManagementOverviewTabProps) => JSX.Element;
14
+ export declare const C4ManagementOverviewTab: ({ orgId, orgName, salesPlan, ownerName, loading, trialExpirationLabel, mayRename, t, onRenameOrg, onExtendTrial, }: C4ManagementOverviewTabProps) => JSX.Element;
@@ -4,10 +4,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Modal, Stack, TextInput } from '@carbon/react';
8
7
  import { Edit } from '@carbon/react/icons/index.esm.js';
9
8
  import { useMemo, useState } from 'react';
10
9
  import { C4ManagementOverview } from '../../../components/c4-management-overview/c4-management-overview.js';
10
+ import { Modal, Stack, TextInput } from '../../../ui/index.js';
11
11
  function safeTranslate(t, key, defaultValue,
12
12
  // biome-ignore lint/suspicious/noExplicitAny: legacy compatibility
13
13
  opts) {
@@ -21,7 +21,7 @@ opts) {
21
21
  return defaultValue;
22
22
  }
23
23
  }
24
- export const C4ManagementOverviewTab = ({ orgId, orgName, salesPlan, ownerName, loading, mayRename, t, onRenameOrg, }) => {
24
+ export const C4ManagementOverviewTab = ({ orgId, orgName, salesPlan, ownerName, loading, trialExpirationLabel, mayRename, t, onRenameOrg, onExtendTrial, }) => {
25
25
  const [renameModalOpen, setRenameModalOpen] = useState(false);
26
26
  const [renameValue, setRenameValue] = useState('');
27
27
  const [renameSaving, setRenameSaving] = useState(false);
@@ -50,6 +50,14 @@ export const C4ManagementOverviewTab = ({ orgId, orgName, salesPlan, ownerName,
50
50
  id: 'organization-plan',
51
51
  label: safeTranslate(t, 'orgmanagement:tabs.overview.tableitems.plan', 'Plan'),
52
52
  value: salesPlan,
53
+ additionalValue: trialExpirationLabel,
54
+ action: onExtendTrial
55
+ ? {
56
+ kind: 'primary',
57
+ iconDescription: safeTranslate(t, 'orgmanagement:tabs.overview.actions.extendTrial', 'Extend trial'),
58
+ action: onExtendTrial,
59
+ }
60
+ : undefined,
53
61
  });
54
62
  }
55
63
  if (ownerName) {
@@ -60,7 +68,15 @@ export const C4ManagementOverviewTab = ({ orgId, orgName, salesPlan, ownerName,
60
68
  });
61
69
  }
62
70
  return items;
63
- }, [orgName, salesPlan, ownerName, mayRename, t]);
71
+ }, [
72
+ orgName,
73
+ salesPlan,
74
+ ownerName,
75
+ trialExpirationLabel,
76
+ mayRename,
77
+ t,
78
+ onExtendTrial,
79
+ ]);
64
80
  return (_jsxs(_Fragment, { children: [_jsx(C4ManagementOverview, { orgId: orgId, overviewItems: overviewItems, loading: loading }), renameModalOpen && (_jsx(Modal, { open: renameModalOpen, modalHeading: safeTranslate(t, 'orgmanagement:tabs.overview.actions.rename', 'Rename'), primaryButtonText: safeTranslate(t, 'orgmanagement:common.save', 'Save'), secondaryButtonText: safeTranslate(t, 'orgmanagement:common.cancel', 'Cancel'), onRequestClose: () => setRenameModalOpen(false), onRequestSubmit: () => {
65
81
  void (async () => {
66
82
  setRenameSaving(true);
@@ -5,9 +5,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { getDisplayedSalesPlan, } from '@camunda/ccma-shared-types';
8
- import { DefinitionTooltip, Link } from '@carbon/react';
8
+ import { DefinitionTooltip } from '@carbon/react';
9
9
  import { useMemo } from 'react';
10
10
  import { C4Pricing } from '../../../components/c4-pricing/c4-pricing.js';
11
+ import { Link } from '../../../ui/index.js';
11
12
  function safeTranslate(t, key, fallback, options) {
12
13
  try {
13
14
  return t ? t(key, options) : fallback;
@@ -4,10 +4,10 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
4
4
  * under one or more contributor license agreements. Licensed under a commercial license.
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
- import { Modal, Stack } from '@carbon/react';
8
7
  import { PSClickWrap } from '@pactsafe/pactsafe-react-sdk';
9
8
  import { useState } from 'react';
10
9
  import { C4ManagementSettings } from '../../../components/c4-management-settings/c4-management-settings.js';
10
+ import { Modal, Stack } from '../../../ui/index.js';
11
11
  function safeTranslate(t, key, defaultValue,
12
12
  // biome-ignore lint/suspicious/noExplicitAny: legacy compatibility
13
13
  opts) {
@@ -1,4 +1,4 @@
1
- import { type RowBaseProps } from '@camunda/camunda-composite-components';
1
+ import type { RowBaseProps } from '@camunda/camunda-composite-components';
2
2
  import type { JSX } from 'react';
3
3
  import type { UsageHistoryChartsProps } from '../../../components/c4-usage-history/elements/usage-history-charts';
4
4
  export interface UsageHistoryEntryPerCluster {
@@ -1,17 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /*
3
- * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
4
- * under one or more contributor license agreements. Licensed under a commercial license.
5
- * You may not use this file except in compliance with the commercial license.
6
- */
7
- import { C3DataTable, } from '@camunda/camunda-composite-components';
8
- import { DataTableSkeleton, Stack, StructuredListBody, StructuredListCell, StructuredListHead, StructuredListRow, StructuredListWrapper, } from '@carbon/react';
2
+ import { C4DataTable } from '../../../components/c4-data-table/c4-data-table.js';
3
+ import { C4DataTableSkeleton } from '../../../components/c4-data-table/c4-data-table-skeleton.js';
4
+ import { C4StructuredListBody, C4StructuredListCell, C4StructuredListHead, C4StructuredListRow, C4StructuredListWrapper, } from '../../../components/c4-structured-list/c4-structured-list.js';
9
5
  import { C4UsageHistory } from '../../../components/c4-usage-history/c4-usage-history.js';
6
+ import { useC4DesignSystem } from '../../../runtime/c4-console-runtime-context.js';
7
+ import { Stack } from '../../../ui/index.js';
10
8
  function ExpandedRow({ clusters, text, isLicensingModel2025, }) {
11
- const headerRow = (_jsxs(StructuredListRow, { head: true, children: [_jsx(StructuredListCell, { head: true, children: text.perCluster.clusterName }), _jsx(StructuredListCell, { head: true, children: text.perCluster.processInstances }), !isLicensingModel2025 && (_jsx(StructuredListCell, { head: true, children: text.perCluster.decisionInstances })), !isLicensingModel2025 && (_jsx(StructuredListCell, { head: true, children: text.perCluster.taskUsers }))] }));
12
- return (_jsxs(StructuredListWrapper, { children: [_jsx(StructuredListHead, { children: headerRow }), _jsx(StructuredListBody, { children: clusters.map((cluster) => (_jsxs(StructuredListRow, { children: [_jsx(StructuredListCell, { noWrap: true, children: cluster.clusterName }), _jsx(StructuredListCell, { children: cluster.processInstances }), !isLicensingModel2025 && (_jsx(StructuredListCell, { children: cluster.decisionInstances })), !isLicensingModel2025 && (_jsx(StructuredListCell, { children: cluster.taskUsers }))] }, cluster.clusterId))) })] }));
9
+ const headerRow = (_jsxs(C4StructuredListRow, { head: true, children: [_jsx(C4StructuredListCell, { head: true, children: text.perCluster.clusterName }), _jsx(C4StructuredListCell, { head: true, children: text.perCluster.processInstances }), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { head: true, children: text.perCluster.decisionInstances })), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { head: true, children: text.perCluster.taskUsers }))] }));
10
+ return (_jsxs(C4StructuredListWrapper, { children: [_jsx(C4StructuredListHead, { children: headerRow }), _jsx(C4StructuredListBody, { children: clusters.map((cluster) => (_jsxs(C4StructuredListRow, { children: [_jsx(C4StructuredListCell, { noWrap: true, children: cluster.clusterName }), _jsx(C4StructuredListCell, { children: cluster.processInstances }), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { children: cluster.decisionInstances })), !isLicensingModel2025 && (_jsx(C4StructuredListCell, { children: cluster.taskUsers }))] }, cluster.clusterId))) })] }));
13
11
  }
14
12
  export const C4ManagementUsageTab = ({ loading, groupBy, onGroupByChange, perClusterAvailable, history, charts, text, isLicensingModel2025 = false, }) => {
13
+ const designSystem = useC4DesignSystem();
15
14
  const headers = [
16
15
  {
17
16
  label: text.headers.period,
@@ -57,14 +56,17 @@ export const C4ManagementUsageTab = ({ loading, groupBy, onGroupByChange, perClu
57
56
  },
58
57
  },
59
58
  ];
60
- const tableComponent = loading ? (_jsx(DataTableSkeleton, { columnCount: headers.length, headers: headers.map((item) => ({ key: item.key, header: item.label })), showHeader: false, showToolbar: false })) : (_jsx(Stack, { gap: 3, children: _jsx(C3DataTable, { headers: headers, data: history.map((item) => {
59
+ const tableComponent = loading ? (_jsx(C4DataTableSkeleton, { columnCount: headers.length, headers: headers.map((item) => ({ key: item.key, header: item.label })), showHeader: false, showToolbar: false })) : (_jsx(Stack, { gap: 3, children: _jsx(C4DataTable, { headers: headers, data: history.map((item) => {
61
60
  const hasPerCluster = perClusterAvailable && (item.perCluster?.length ?? 0) > 0;
62
61
  return {
63
62
  ...item,
64
63
  expansion: hasPerCluster ? (_jsx(ExpandedRow, { clusters: item.perCluster, text: text, isLicensingModel2025: isLicensingModel2025 })) : null,
65
64
  };
66
65
  }), toolbar: toolbar, title: undefined }, `usage-history-${groupBy}`) }));
67
- return (_jsx("div", { style: { width: '100%', overflowX: 'auto' }, children: _jsx(Stack, { gap: 8, children: _jsx(C4UsageHistory, { title: '', description: '', descriptionTooltip: '', loading: loading, data: {
66
+ return (_jsx("div", { style: {
67
+ width: '100%',
68
+ overflowX: designSystem === 'ds' ? 'visible' : 'auto',
69
+ }, children: _jsx(Stack, { gap: 8, children: _jsx(C4UsageHistory, { title: '', description: '', descriptionTooltip: '', loading: loading, data: {
68
70
  titles: {
69
71
  table: text.tableTabTitle,
70
72
  charts: text.chartsTabTitle,
@@ -5,10 +5,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { OrganizationRole } from '@camunda/ccma-shared-types';
8
- import { Checkbox, InlineNotification, Link, Modal, Stack, TextInput, } from '@carbon/react';
9
8
  import { useMemo, useRef, useState } from 'react';
9
+ import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
10
10
  import { C4InviteUserToOrganizationModal } from '../../../components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js';
11
11
  import { C4ManagementUsers } from '../../../components/c4-management-users/c4-management-users.js';
12
+ import { Checkbox, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
12
13
  function safeTranslate(t, key, defaultValue, opts) {
13
14
  if (!t)
14
15
  return defaultValue;
@@ -29,6 +30,16 @@ function roleLabelDescription(t, role) {
29
30
  label: safeTranslate(t, 'orgroles:admin.label', 'Admin'),
30
31
  description: safeTranslate(t, 'orgroles:admin.description', ''),
31
32
  };
33
+ case OrganizationRole.OWNER:
34
+ return {
35
+ label: safeTranslate(t, 'orgroles:owner.label', 'Owner'),
36
+ description: safeTranslate(t, 'orgroles:owner.description', ''),
37
+ };
38
+ case OrganizationRole.SUPPORTAGENT:
39
+ return {
40
+ label: safeTranslate(t, 'orgroles:supportagent.label', 'Support agent'),
41
+ description: safeTranslate(t, 'orgroles:supportagent.description', ''),
42
+ };
32
43
  case OrganizationRole.MEMBER:
33
44
  return {
34
45
  label: safeTranslate(t, 'orgroles:member.label', 'Member'),
@@ -64,8 +75,10 @@ function roleLabelDescription(t, role) {
64
75
  label: safeTranslate(t, 'orgroles:modeler.label', 'Modeler'),
65
76
  description: safeTranslate(t, 'orgroles:modeler.description', ''),
66
77
  };
67
- default:
68
- return { label: role, description: '' };
78
+ default: {
79
+ const label = role ? role.charAt(0).toUpperCase() + role.slice(1) : role;
80
+ return { label, description: '' };
81
+ }
69
82
  }
70
83
  }
71
84
  export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersActions, mayInviteUsers, mayAssignNewOwner, inviteModal, changeRolesModal, assignOwnerModal, currentUserEmail, onNavigateToUser, t, telemetry, onRemoveUser, onInviteUser, onResendInvite, onCancelInvite, onAssignNewOwner, onUpdateUserRoles, }) => {
@@ -123,6 +136,13 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
123
136
  }
124
137
  return row.email.trim().toLowerCase() === normalizedCurrentEmail;
125
138
  };
139
+ // Derive the role filter item set from the roles actually present in the
140
+ // loaded member data, so the dropdown only offers roles the user could
141
+ // pick — and so unusual roles (e.g. owner) appear automatically when they
142
+ // exist in the org.
143
+ const presentRoles = [
144
+ ...new Set(members.flatMap((row) => row.rolesArray)),
145
+ ].sort();
126
146
  const headers = [
127
147
  {
128
148
  label: safeTranslate(t, 'orgmanagement:tabs.users.table.name', 'Name'),
@@ -268,6 +288,18 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
268
288
  return [name, email].some((value) => value.includes(term));
269
289
  },
270
290
  },
291
+ {
292
+ id: 'role-filter',
293
+ type: 'multiSelect',
294
+ label: safeTranslate(t, 'orgmanagement:tabs.users.roleFilter', 'Filter by role'),
295
+ queryName: 'roles',
296
+ items: presentRoles.map((role) => ({
297
+ id: role,
298
+ label: roleLabelDescription(t, role).label,
299
+ })),
300
+ filter: (filter) => !filter.selectedItems?.length ||
301
+ filter.selectedItems.some((id) => filter.row.rolesArray.includes(id)),
302
+ },
271
303
  {
272
304
  id: 'create',
273
305
  type: 'button',
@@ -440,7 +472,7 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
440
472
  setAssignOwnerSaving(false);
441
473
  }
442
474
  })();
443
- }, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [assignOwnerError && (_jsx(InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: assignOwnerError })), _jsx(InlineNotification, { lowContrast: true, kind: 'warning', hideCloseButton: true, title: '', subtitle: safeTranslate(t, 'users:assignNewOwner.warning', 'By assigning a new owner, you will no longer be the owner of this organization.') }), _jsx(TextInput, { id: 'c4-assign-new-owner-email', labelText: safeTranslate(t, 'users:assignNewOwner.form.email', 'New owner'), value: assignOwnerTarget.email, readOnly: true }), _jsxs("fieldset", { className: 'cds--fieldset', children: [_jsx("legend", { className: 'cds--label', children: safeTranslate(t, 'users:assignNewOwner.form.rolesDescription', 'Select your new role(s) for this organization:') }), assignOwnerPrimaryRoles.map((role) => {
475
+ }, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [assignOwnerError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: assignOwnerError })), _jsx(C4InlineNotification, { lowContrast: true, kind: 'warning', hideCloseButton: true, title: '', subtitle: safeTranslate(t, 'users:assignNewOwner.warning', 'By assigning a new owner, you will no longer be the owner of this organization.') }), _jsx(TextInput, { id: 'c4-assign-new-owner-email', labelText: safeTranslate(t, 'users:assignNewOwner.form.email', 'New owner'), value: assignOwnerTarget.email, readOnly: true }), _jsxs("fieldset", { className: 'cds--fieldset', children: [_jsx("legend", { className: 'cds--label', children: safeTranslate(t, 'users:assignNewOwner.form.rolesDescription', 'Select your new role(s) for this organization:') }), assignOwnerPrimaryRoles.map((role) => {
444
476
  const enriched = roleLabelDescription(t, role);
445
477
  return (_jsxs("span", { children: [_jsx(Checkbox, { labelText: enriched.label, id: `c4-assign-new-owner-role-${role}`, checked: oldOwnerNewRoles.has(role), disabled: assignOwnerSaving, onChange: (_, { checked }) => {
446
478
  setOldOwnerNewRoles((current) => {
@@ -502,7 +534,7 @@ export const C4ManagementUsersTab = ({ orgId, members, loading, mayManageUsersAc
502
534
  setChangeRolesSaving(false);
503
535
  }
504
536
  })();
505
- }, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-management-change-org-roles-email', labelText: safeTranslate(t, 'users:changeOrgRoles.form.email', 'Email'), value: changeRolesTarget.email, readOnly: true }), changeRolesError && (_jsx(InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: changeRolesError })), _jsxs("fieldset", { className: 'cds--fieldset', children: [_jsx("legend", { className: 'cds--label', children: safeTranslate(t, 'users:changeOrgRoles.form.roles', 'Roles') }), changeRolesModal.editableRoles.primary.map((role) => {
537
+ }, size: 'sm', children: _jsxs(Stack, { gap: 5, children: [_jsx(TextInput, { id: 'c4-management-change-org-roles-email', labelText: safeTranslate(t, 'users:changeOrgRoles.form.email', 'Email'), value: changeRolesTarget.email, readOnly: true }), changeRolesError && (_jsx(C4InlineNotification, { lowContrast: true, kind: 'error', title: '', subtitle: changeRolesError })), _jsxs("fieldset", { className: 'cds--fieldset', children: [_jsx("legend", { className: 'cds--label', children: safeTranslate(t, 'users:changeOrgRoles.form.roles', 'Roles') }), changeRolesModal.editableRoles.primary.map((role) => {
506
538
  const enriched = roleLabelDescription(t, role);
507
539
  return (_jsxs("span", { children: [_jsx(Checkbox, { labelText: enriched.label, id: `c4-management-change-org-roles-${role}`, checked: selectedRoles.has(role), disabled: changeRolesSaving, onChange: (_, data) => {
508
540
  setSelectedRoles((current) => {