@camunda/ccma-saas-frontend 0.0.46 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) 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/elements/cluster-reservations.js +9 -14
  19. package/lib/esm/components/c4-billing-page/elements/current-usage-metrics.js +2 -1
  20. package/lib/esm/components/c4-billing-page/elements/usage-alerts.js +3 -8
  21. package/lib/esm/components/c4-billing-page/elements/value-metric.js +2 -1
  22. package/lib/esm/components/c4-bottom-links/c4-bottom-links.js +1 -6
  23. package/lib/esm/components/c4-breadcrumb/c4-breadcrumb.js +3 -6
  24. package/lib/esm/components/c4-charts-dashboard/c4-charts-dashboard.js +1 -1
  25. package/lib/esm/components/c4-charts-dashboard/elements/alluvial-chart.js +1 -1
  26. package/lib/esm/components/c4-charts-dashboard/elements/bar-chart.js +1 -1
  27. package/lib/esm/components/c4-charts-dashboard/elements/line-chart.js +1 -1
  28. package/lib/esm/components/c4-cluster-byom-clients/c4-cluster-byom-clients.js +6 -10
  29. package/lib/esm/components/c4-cluster-client-credentials/c4-cluster-client-credentials.js +8 -3
  30. package/lib/esm/components/c4-cluster-client-credentials-identity/c4-cluster-client-credentials-identity.js +8 -3
  31. package/lib/esm/components/c4-cluster-details-activity/c4-cluster-details-activity.js +6 -5
  32. package/lib/esm/components/c4-cluster-details-alerts/c4-cluster-details-alerts.js +12 -14
  33. package/lib/esm/components/c4-cluster-details-clients/c4-cluster-details-clients.js +6 -10
  34. package/lib/esm/components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js +8 -11
  35. package/lib/esm/components/c4-cluster-details-encryption/c4-cluster-details-encryption.js +9 -4
  36. package/lib/esm/components/c4-cluster-details-hot-backups/c4-cluster-details-hot-backups.js +12 -8
  37. package/lib/esm/components/c4-cluster-details-hot-backups-restore/c4-cluster-details-hot-backups-restore.js +3 -2
  38. package/lib/esm/components/c4-cluster-details-ip-whitelist/c4-cluster-details-ip-whitelist.js +7 -10
  39. package/lib/esm/components/c4-cluster-details-secure-connectivity/c4-cluster-details-secure-connectivity.js +15 -21
  40. package/lib/esm/components/c4-cluster-list/c4-cluster-list.js +6 -4
  41. package/lib/esm/components/c4-cluster-overview/applications.js +2 -1
  42. package/lib/esm/components/c4-cluster-overview/c4-cluster-overview.js +4 -3
  43. package/lib/esm/components/c4-cluster-overview/cluster-details.js +12 -10
  44. package/lib/esm/components/c4-cluster-overview/cluster-load.js +1 -1
  45. package/lib/esm/components/c4-cluster-settings/c4-cluster-settings.js +1 -6
  46. package/lib/esm/components/c4-cluster-settings/elements/danger-zone.js +1 -6
  47. package/lib/esm/components/c4-cluster-settings/elements/optimize-filtering-settings.js +3 -3
  48. package/lib/esm/components/c4-cluster-settings/elements/resource-based-authorizations.js +2 -7
  49. package/lib/esm/components/c4-cluster-settings/elements/settings-tile.js +1 -6
  50. package/lib/esm/components/c4-cluster-settings/elements/tasklist-mode-toggle.js +1 -1
  51. package/lib/esm/components/c4-cluster-tag-selector/c4-cluster-tag-selector.js +4 -2
  52. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.js +18 -14
  53. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.d.ts +1 -0
  54. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.spec.js +40 -0
  55. package/lib/esm/components/c4-clusters-empty-state/c4-clusters-empty-state.types.d.ts +2 -0
  56. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.js +4 -9
  57. package/lib/esm/components/c4-clusters-trial-notification/c4-clusters-trial-notification.types.d.ts +2 -0
  58. package/lib/esm/components/c4-console-dashboard/c4-console-dashboard.js +11 -7
  59. package/lib/esm/components/c4-console-dashboard/elements/empty-state.js +2 -2
  60. package/lib/esm/components/c4-create-cluster/c4-create-cluster.js +44 -15
  61. package/lib/esm/components/c4-create-cluster-api-client-modal/c4-create-cluster-api-client-modal.js +4 -2
  62. package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +4 -2
  63. package/lib/esm/components/c4-create-console-api-client-modal/c4-create-console-api-client-modal.js +2 -1
  64. package/lib/esm/components/c4-create-trial-organization-modal/c4-create-trial-organization-modal.js +2 -1
  65. package/lib/esm/components/c4-dashboard-first-launch/c4-dashboard-first-launch.js +1 -6
  66. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.d.ts +15 -0
  67. package/lib/esm/components/c4-data-table/c4-data-table-skeleton.js +26 -0
  68. package/lib/esm/components/c4-data-table/c4-data-table.d.ts +3 -0
  69. package/lib/esm/components/c4-data-table/c4-data-table.js +194 -0
  70. package/lib/esm/components/c4-data-table/c4-data-table.spec.d.ts +1 -0
  71. package/lib/esm/components/c4-data-table/c4-data-table.spec.js +71 -0
  72. package/lib/esm/components/c4-delete-organization-modal/c4-delete-organization-modal.js +3 -2
  73. package/lib/esm/components/c4-empty-state/c4-empty-state.d.ts +47 -0
  74. package/lib/esm/components/c4-empty-state/c4-empty-state.js +33 -0
  75. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.d.ts +3 -0
  76. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.js +51 -0
  77. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.d.ts +1 -0
  78. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.spec.js +33 -0
  79. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.d.ts +8 -0
  80. package/lib/esm/components/c4-extend-trial-modal/c4-extend-trial-modal.types.js +1 -0
  81. package/lib/esm/components/c4-external-link/c4-external-link.js +1 -6
  82. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.d.ts +40 -0
  83. package/lib/esm/components/c4-feedback-modal/c4-feedback-modal.js +109 -0
  84. package/lib/esm/components/c4-help-center/c4-help-center.d.ts +50 -0
  85. package/lib/esm/components/c4-help-center/c4-help-center.js +39 -0
  86. package/lib/esm/components/c4-inline-notification/c4-inline-notification.d.ts +15 -0
  87. package/lib/esm/components/c4-inline-notification/c4-inline-notification.js +37 -0
  88. package/lib/esm/components/c4-invite-user-to-organization-modal/c4-invite-user-to-organization-modal.js +4 -3
  89. package/lib/esm/components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js +4 -2
  90. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-chart-heading.js +1 -1
  91. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-error-table.js +3 -8
  92. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-time-chart.js +1 -1
  93. package/lib/esm/components/c4-job-dashboard-details-page/elements/c4-job-dashboard-worker-table.js +3 -3
  94. package/lib/esm/components/c4-job-dashboard-entry-point/c4-job-dashboard-entry-point.js +2 -1
  95. package/lib/esm/components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js +43 -46
  96. package/lib/esm/components/c4-job-dashboard-shared/c4-background-fetching-indicator.js +1 -6
  97. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-error-handler.js +1 -1
  98. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-table-heading-with-tooltip.js +1 -1
  99. package/lib/esm/components/c4-job-dashboard-shared/c4-job-dashboard-time-range-dropdown.js +1 -1
  100. package/lib/esm/components/c4-leave-organization-modal/c4-leave-organization-modal.js +1 -6
  101. package/lib/esm/components/c4-link-button/c4-link-button.js +1 -6
  102. package/lib/esm/components/c4-llm-usage-meter/c4-llm-usage-meter.js +1 -1
  103. package/lib/esm/components/c4-management-activity/c4-management-activity.js +7 -9
  104. package/lib/esm/components/c4-management-api/c4-management-api.js +9 -11
  105. package/lib/esm/components/c4-management-overview/c4-management-overview.js +8 -12
  106. package/lib/esm/components/c4-management-settings/c4-management-settings.js +9 -11
  107. package/lib/esm/components/c4-management-users/c4-management-users.js +4 -9
  108. package/lib/esm/components/c4-multi-step-modal/c4-multi-step-modal.js +4 -2
  109. package/lib/esm/components/c4-multi-step-modal-ugly/c4-multi-step-modal-ugly.js +4 -2
  110. package/lib/esm/components/c4-navigation/c4-navigation.d.ts +55 -0
  111. package/lib/esm/components/c4-navigation/c4-navigation.js +175 -0
  112. package/lib/esm/components/c4-old-dashboard/c4-old-dashboard.js +2 -1
  113. package/lib/esm/components/c4-page-layout/c4-page-layout.d.ts +13 -0
  114. package/lib/esm/components/c4-page-layout/c4-page-layout.js +23 -0
  115. package/lib/esm/components/c4-page-template/c4-page-template.js +14 -3
  116. package/lib/esm/components/c4-permission-error-page/c4-permission-error-page.js +1 -1
  117. package/lib/esm/components/c4-pricing/c4-pricing.js +3 -7
  118. package/lib/esm/components/c4-pricing-card/c4-pricing-card.js +1 -1
  119. package/lib/esm/components/c4-rename-organization-modal/c4-rename-organization-modal.js +1 -1
  120. package/lib/esm/components/c4-search/c4-search-results.js +2 -1
  121. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.d.ts +20 -0
  122. package/lib/esm/components/c4-selectable-tile/c4-selectable-tile.js +41 -0
  123. package/lib/esm/components/c4-sm-cluster-details/automation-components.js +2 -1
  124. package/lib/esm/components/c4-sm-cluster-details/c4-sm-cluster-details.js +1 -6
  125. package/lib/esm/components/c4-sm-cluster-details/custom-properties.js +4 -8
  126. package/lib/esm/components/c4-sm-cluster-details/details.js +5 -4
  127. package/lib/esm/components/c4-sm-cluster-details/zeebe-components.js +2 -1
  128. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.js +1 -1
  129. package/lib/esm/components/c4-sm-dashboard/c4-sm-dashboard.types.d.ts +1 -1
  130. package/lib/esm/components/c4-sm-dashboard/cluster-tile.js +2 -1
  131. package/lib/esm/components/c4-sm-dashboard/component-tile.js +2 -1
  132. package/lib/esm/components/c4-sm-dashboard/explore.js +1 -6
  133. package/lib/esm/components/c4-sm-dashboard/overview.js +1 -1
  134. package/lib/esm/components/c4-sm-dashboard/usage-tile.js +2 -1
  135. package/lib/esm/components/c4-stat/c4-stat.js +1 -6
  136. package/lib/esm/components/c4-stateful-button/c4-stateful-button.js +2 -1
  137. package/lib/esm/components/c4-structured-list/c4-structured-list.d.ts +21 -0
  138. package/lib/esm/components/c4-structured-list/c4-structured-list.js +75 -0
  139. package/lib/esm/components/c4-tabs/c4-tabs.js +2 -1
  140. package/lib/esm/components/c4-telemetry-page/c4-telemetry-page.js +6 -2
  141. package/lib/esm/components/c4-telemetry-page/component-metrics.js +1 -6
  142. package/lib/esm/components/c4-telemetry-page/telemetry-for-component.js +2 -1
  143. package/lib/esm/components/c4-telemetry-teaser-page/c4-telemetry-teaser-page.js +1 -1
  144. package/lib/esm/components/c4-theme-switcher/c4-theme-switcher.js +1 -1
  145. package/lib/esm/components/c4-tile-with-title-and-action/c4-tile-with-title-and-action.js +1 -1
  146. package/lib/esm/components/c4-toast-notification/c4-toast-notification.d.ts +14 -0
  147. package/lib/esm/components/c4-toast-notification/c4-toast-notification.js +27 -0
  148. package/lib/esm/components/c4-toggle/c4-toggle.js +6 -8
  149. package/lib/esm/components/c4-tutorial-tile/c4-tutorial-tile.js +1 -1
  150. package/lib/esm/components/c4-usage-alert-update-modal/c4-usage-alert-update-modal.js +4 -2
  151. package/lib/esm/components/c4-usage-history/c4-usage-history.js +5 -3
  152. package/lib/esm/components/c4-usage-history/elements/usage-history-charts.js +1 -1
  153. package/lib/esm/components/c4-usage-metrics-per-cluster/c4-usage-metrics-per-cluster.js +8 -7
  154. package/lib/esm/components/c4-user-details/c4-user-details.js +2 -2
  155. package/lib/esm/components/c4-user-details/tabs/authorized-resources.js +1 -1
  156. package/lib/esm/components/c4-user-details/tabs/details.js +6 -10
  157. package/lib/esm/components/c4-user-details/tabs/roles.js +3 -8
  158. package/lib/esm/i18n/c4-console-i18n.js +8 -0
  159. package/lib/esm/i18n/en/modals/clusters.json +0 -8
  160. package/lib/esm/i18n/en/pages/clusterdetails.json +5 -1
  161. package/lib/esm/i18n/en/pages/orgmanagement.json +3 -1
  162. package/lib/esm/index.d.ts +17 -0
  163. package/lib/esm/index.js +13 -0
  164. package/lib/esm/runtime/c4-console-authz.js +1 -1
  165. package/lib/esm/runtime/c4-console-authz.spec.js +3 -3
  166. package/lib/esm/runtime/c4-console-runtime-context.d.ts +8 -1
  167. package/lib/esm/runtime/c4-console-runtime-context.js +50 -1
  168. package/lib/esm/runtime/c4-console-runtime.types.d.ts +8 -0
  169. package/lib/esm/ui/c4-modal-dialog.d.ts +14 -0
  170. package/lib/esm/ui/c4-modal-dialog.js +35 -0
  171. package/lib/esm/ui/families.d.ts +42 -0
  172. package/lib/esm/ui/families.js +46 -0
  173. package/lib/esm/ui/index.d.ts +31 -0
  174. package/lib/esm/ui/index.js +94 -0
  175. package/lib/esm/ui/switchable.d.ts +14 -0
  176. package/lib/esm/ui/switchable.js +27 -0
  177. package/lib/esm/ui/tabs.d.ts +21 -0
  178. package/lib/esm/ui/tabs.js +27 -0
  179. package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +7 -5
  180. package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +7 -2
  181. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.js +1 -1
  182. package/lib/esm/widgets/cluster-details/c4-cluster-details-page.spec.js +2 -0
  183. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +10 -6
  184. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +5 -3
  185. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +7 -5
  186. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +10 -6
  187. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +3 -1
  188. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +7 -5
  189. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +54 -21
  190. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.spec.js +96 -5
  191. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +12 -9
  192. package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +5 -4
  193. package/lib/esm/widgets/clusters/c4-clusters-page.d.ts +1 -1
  194. package/lib/esm/widgets/clusters/c4-clusters-page.js +122 -66
  195. package/lib/esm/widgets/clusters/c4-clusters-page.spec.js +133 -0
  196. package/lib/esm/widgets/clusters/c4-clusters-page.types.d.ts +1 -0
  197. package/lib/esm/widgets/connector-management/c4-connector-management-executable-details-page.js +1 -1
  198. package/lib/esm/widgets/connector-management/c4-connector-management-executables-table-page.js +3 -2
  199. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.d.ts +4 -0
  200. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.js +59 -0
  201. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.d.ts +18 -0
  202. package/lib/esm/widgets/connector-management/c4-connector-management-outbound-details-page.types.js +6 -0
  203. package/lib/esm/widgets/connector-management/c4-connector-management-page.d.ts +1 -1
  204. package/lib/esm/widgets/connector-management/c4-connector-management-page.js +38 -5
  205. package/lib/esm/widgets/connector-management/c4-connector-management-page.spec.js +54 -0
  206. package/lib/esm/widgets/connector-management/c4-connector-management-page.types.d.ts +11 -0
  207. package/lib/esm/widgets/connector-management/c4-connector-management.shared.d.ts +1 -0
  208. package/lib/esm/widgets/connector-management/c4-connector-management.shared.js +10 -2
  209. package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +1 -1
  210. package/lib/esm/widgets/management/c4-management-app.d.ts +1 -1
  211. package/lib/esm/widgets/management/c4-management-app.js +57 -4
  212. package/lib/esm/widgets/management/c4-management-app.spec.js +141 -1
  213. package/lib/esm/widgets/management/c4-management-app.types.d.ts +5 -0
  214. package/lib/esm/widgets/management/c4-management-page.js +1 -6
  215. package/lib/esm/widgets/management/tabs/c4-management-api-tab.js +4 -2
  216. package/lib/esm/widgets/management/tabs/c4-management-billing-tab.js +1 -1
  217. package/lib/esm/widgets/management/tabs/c4-management-groups-tab.js +1 -1
  218. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.d.ts +2 -1
  219. package/lib/esm/widgets/management/tabs/c4-management-overview-tab.js +10 -3
  220. package/lib/esm/widgets/management/tabs/c4-management-pricing-tab.js +2 -1
  221. package/lib/esm/widgets/management/tabs/c4-management-settings-tab.js +1 -1
  222. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.d.ts +1 -1
  223. package/lib/esm/widgets/management/tabs/c4-management-usage-tab.js +13 -11
  224. package/lib/esm/widgets/management/tabs/c4-management-users-tab.js +47 -5
  225. package/lib/esm/widgets/management/tabs/c4-management-users-tab.spec.js +98 -0
  226. package/lib/esm/widgets/use-extend-trial.d.ts +8 -0
  227. package/lib/esm/widgets/use-extend-trial.js +36 -0
  228. package/lib/esm/widgets/use-extend-trial.spec.d.ts +1 -0
  229. package/lib/esm/widgets/use-extend-trial.spec.js +79 -0
  230. package/lib/esm/widgets/user-details/c4-user-details-page.js +5 -4
  231. package/package.json +13 -6
@@ -4,7 +4,7 @@ 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 { C4InboundConnectorsTable } from '@camunda/c4-connectors';
7
+ import { C4ConnectorsHome, C4InboundConnectorsTable, } from '@camunda/c4-connectors';
8
8
  import { ErrorBoundary } from '@carbon/react';
9
9
  import { observer } from 'mobx-react-lite';
10
10
  import { useMemo } from 'react';
@@ -23,10 +23,10 @@ function safeTranslate(t, key, fallback) {
23
23
  function sendNavigate(onNavigate, event) {
24
24
  onNavigate?.(event);
25
25
  }
26
- export const C4ConnectorManagementPage = observer(({ orgId, clusterId, onNavigate }) => {
26
+ export const C4ConnectorManagementPage = observer(({ orgId, clusterId, activeTab, onNavigate, }) => {
27
27
  const runtime = useC4ConsoleRuntime();
28
28
  const t = runtime.i18n?.t;
29
- const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider } = useConnectorManagementRuntime({ orgId, clusterId });
29
+ const { isLoading, clusterName, connectorsUrl, isProviderReady, Provider, checkClusterVersion, } = useConnectorManagementRuntime({ orgId, clusterId });
30
30
  const headerTitle = useMemo(() => {
31
31
  // runtime i18n is accessed via the ErrorBoundary fallback, but this page uses a single key.
32
32
  // Keeping translation safe and optional.
@@ -42,15 +42,48 @@ export const C4ConnectorManagementPage = observer(({ orgId, clusterId, onNavigat
42
42
  if (!isProviderReady) {
43
43
  return _jsx("p", { children: "Loading..." });
44
44
  }
45
- return (_jsx(Provider, { children: _jsx(C4InboundConnectorsTable, { onClick: (connectorId) => {
45
+ if (!checkClusterVersion('8.10.0-alpha3')) {
46
+ return (_jsx(Provider, { children: _jsx(C4InboundConnectorsTable, { onClick: (connectorId) => {
47
+ sendNavigate(onNavigate, {
48
+ kind: 'connectorExecutablesTable',
49
+ orgId,
50
+ clusterId,
51
+ connectorId,
52
+ });
53
+ } }) }));
54
+ }
55
+ return (_jsx(Provider, { children: _jsx(C4ConnectorsHome, { selectedIndex: activeTab === 'outbound' ? 1 : 0, onTabChange: (index) => {
56
+ sendNavigate(onNavigate, {
57
+ kind: 'tabChange',
58
+ orgId,
59
+ clusterId,
60
+ tab: index === 1 ? 'outbound' : 'inbound',
61
+ });
62
+ }, onInboundConnectorClick: (connectorId) => {
46
63
  sendNavigate(onNavigate, {
47
64
  kind: 'connectorExecutablesTable',
48
65
  orgId,
49
66
  clusterId,
50
67
  connectorId,
51
68
  });
69
+ }, onOutboundConnectorClick: (connectorType) => {
70
+ sendNavigate(onNavigate, {
71
+ kind: 'outboundConnectorDetails',
72
+ orgId,
73
+ clusterId,
74
+ connectorType,
75
+ });
52
76
  } }) }));
53
- }, [Provider, clusterId, connectorsUrl, isLoading, onNavigate, orgId]);
77
+ }, [
78
+ Provider,
79
+ activeTab,
80
+ checkClusterVersion,
81
+ clusterId,
82
+ connectorsUrl,
83
+ isLoading,
84
+ onNavigate,
85
+ orgId,
86
+ ]);
54
87
  return (_jsx(C4PageTemplate, { header: {
55
88
  title: headerTitle,
56
89
  }, loading: isLoading, breadcrumbs: {
@@ -34,6 +34,9 @@ vi.mock('@camunda/c4-connectors', () => {
34
34
  C4InboundConnectorsTable: ({ onClick }) => {
35
35
  return (_jsx("button", { type: 'button', "data-testid": 'C4InboundConnectorsTable', onClick: () => onClick('connector-1'), children: "inbound" }));
36
36
  },
37
+ C4ConnectorsHome: ({ onInboundConnectorClick, onOutboundConnectorClick, onTabChange, }) => {
38
+ return (_jsxs("div", { "data-testid": 'C4ConnectorsHome', children: [_jsx("button", { type: 'button', "data-testid": 'C4ConnectorsHomeInbound', onClick: () => onInboundConnectorClick('connector-1'), children: "inbound" }), _jsx("button", { type: 'button', "data-testid": 'C4ConnectorsHomeOutbound', onClick: () => onOutboundConnectorClick('webhook'), children: "outbound" }), _jsx("button", { type: 'button', "data-testid": 'C4ConnectorsHomeTabOutbound', onClick: () => onTabChange(1), children: "tab outbound" })] }));
39
+ },
37
40
  C4ExecutablesTable: ({ onClick }) => {
38
41
  return (_jsx("button", { type: 'button', "data-testid": 'C4ExecutablesTable', onClick: () => onClick('instance-1'), children: "executables" }));
39
42
  },
@@ -86,6 +89,57 @@ describe('Connector management pages', () => {
86
89
  connectorId: 'connector-1',
87
90
  });
88
91
  });
92
+ it('C4ConnectorManagementPage shows C4ConnectorsHome for clusters with connectorBridge >= 8.10.0-alpha3', async () => {
93
+ vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
94
+ {
95
+ uuid: 'cluster-1',
96
+ name: 'Cluster One',
97
+ status: {
98
+ connectorsUrl: 'https://connectors.example',
99
+ },
100
+ generation: {
101
+ versions: {
102
+ connectorBridge: 'connector-bridge:8.10.0-alpha3',
103
+ },
104
+ },
105
+ },
106
+ ]);
107
+ const onNavigate = vi.fn();
108
+ render(_jsx(C4ConsoleRuntimeProvider, { config: {
109
+ stage: 'dev',
110
+ auth: {
111
+ getAccessToken: async () => 'token',
112
+ },
113
+ backendUrls: {},
114
+ i18n: {
115
+ t: (key) => key,
116
+ },
117
+ }, children: _jsx(C4ConsoleDataProvider, { children: _jsx(C4ConnectorManagementPage, { orgId: 'org-1', clusterId: 'cluster-1', onNavigate: onNavigate }) }) }));
118
+ await waitFor(() => {
119
+ expect(screen.getByTestId('C4ConnectorsHome')).toBeInTheDocument();
120
+ });
121
+ await userEvent.click(screen.getByTestId('C4ConnectorsHomeInbound'));
122
+ expect(onNavigate).toHaveBeenCalledWith({
123
+ kind: 'connectorExecutablesTable',
124
+ orgId: 'org-1',
125
+ clusterId: 'cluster-1',
126
+ connectorId: 'connector-1',
127
+ });
128
+ await userEvent.click(screen.getByTestId('C4ConnectorsHomeTabOutbound'));
129
+ expect(onNavigate).toHaveBeenCalledWith({
130
+ kind: 'tabChange',
131
+ orgId: 'org-1',
132
+ clusterId: 'cluster-1',
133
+ tab: 'outbound',
134
+ });
135
+ await userEvent.click(screen.getByTestId('C4ConnectorsHomeOutbound'));
136
+ expect(onNavigate).toHaveBeenCalledWith({
137
+ kind: 'outboundConnectorDetails',
138
+ orgId: 'org-1',
139
+ clusterId: 'cluster-1',
140
+ connectorType: 'webhook',
141
+ });
142
+ });
89
143
  it('C4ConnectorManagementExecutablesTablePage navigates on executable click', async () => {
90
144
  vi.mocked(ConsoleClusterService.getClusters).mockResolvedValue([
91
145
  {
@@ -10,9 +10,20 @@ export type C4ConnectorManagementNavigateEvent = {
10
10
  orgId: string;
11
11
  clusterId: string;
12
12
  connectorId: string;
13
+ } | {
14
+ kind: 'outboundConnectorDetails';
15
+ orgId: string;
16
+ clusterId: string;
17
+ connectorType: string;
18
+ } | {
19
+ kind: 'tabChange';
20
+ orgId: string;
21
+ clusterId: string;
22
+ tab: 'inbound' | 'outbound';
13
23
  };
14
24
  export interface C4ConnectorManagementPageProps {
15
25
  orgId: string;
16
26
  clusterId: string;
27
+ activeTab?: 'inbound' | 'outbound';
17
28
  onNavigate?: (event: C4ConnectorManagementNavigateEvent) => void;
18
29
  }
@@ -6,6 +6,7 @@ export declare function useConnectorManagementRuntime(options: {
6
6
  isLoading: boolean;
7
7
  clusterName: string;
8
8
  connectorsUrl: string;
9
+ operateBaseUrl: string | null;
9
10
  isProviderReady: boolean;
10
11
  Provider: React.FC<{
11
12
  children: React.ReactNode;
@@ -5,10 +5,10 @@ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
5
5
  * You may not use this file except in compliance with the commercial license.
6
6
  */
7
7
  import { C4ConnectorsContextProvider } from '@camunda/c4-connectors';
8
- import { C3EmptyState } from '@camunda/camunda-composite-components';
9
8
  import { checkVersion, VersionCheckOperator } from '@camunda/ccma-shared-types';
10
9
  import { useCallback, useEffect, useMemo, useState } from 'react';
11
10
  import { C4_ASSET_URLS } from '../../assetUrls.js';
11
+ import { C4EmptyState } from '../../components/c4-empty-state/c4-empty-state.js';
12
12
  import { C4_EXTERNAL_URLS } from '../../externalUrls.const.js';
13
13
  import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
14
14
  import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
@@ -55,6 +55,13 @@ export function useConnectorManagementRuntime(options) {
55
55
  const value = cluster.status.connectorsUrl;
56
56
  return typeof value === 'string' ? value : '';
57
57
  }, [cluster]);
58
+ const operateBaseUrl = useMemo(() => {
59
+ if (!cluster || !isRecord(cluster.status)) {
60
+ return null;
61
+ }
62
+ const value = cluster.status.operateUrl;
63
+ return typeof value === 'string' ? value : null;
64
+ }, [cluster]);
58
65
  const [accessToken, setAccessToken] = useState(undefined);
59
66
  useEffect(() => {
60
67
  runtime.auth
@@ -96,6 +103,7 @@ export function useConnectorManagementRuntime(options) {
96
103
  isLoading,
97
104
  clusterName,
98
105
  connectorsUrl,
106
+ operateBaseUrl,
99
107
  isProviderReady,
100
108
  Provider,
101
109
  checkClusterVersion,
@@ -104,7 +112,7 @@ export function useConnectorManagementRuntime(options) {
104
112
  export const C4ConnectorManagementErrorBoundaryFallback = () => {
105
113
  const runtime = useC4ConsoleRuntime();
106
114
  const t = runtime.i18n?.t;
107
- return (_jsx(C3EmptyState, { icon: {
115
+ return (_jsx(C4EmptyState, { icon: {
108
116
  path: C4_ASSET_URLS.fatalErrorIcon,
109
117
  altText: 'errorIcon',
110
118
  }, heading: safeTranslate(t, 'connectormanagement:error-boundary-fallback.title', 'Error'), description: safeTranslate(t, 'connectormanagement:error-boundary-fallback.description', 'An error occurred while rendering this page. Please try again later.'), button: {
@@ -6,7 +6,6 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
6
6
  */
7
7
  import { ConsoleClusterParametersService, ConsoleClusterService, OrgsService, } from '@camunda/ccma-api';
8
8
  import { ClusterEncryptionKey, getDisplayedSalesPlan, MAX_HARDWARE_PACKAGE_COUNT, MAX_LENGTH_CLUSTER_NAME, SalesPlanType, sortByAvailabilityClasses, sortGenerationBySemverOfZeebe, } from '@camunda/ccma-shared-types';
9
- import { Link, Stack } from '@carbon/react';
10
9
  import { observer } from 'mobx-react-lite';
11
10
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
12
11
  import { C4CreateCluster } from '../../components/c4-create-cluster/c4-create-cluster.js';
@@ -15,6 +14,7 @@ import { getC4CreateClusterExternalLinks, getC4TalkToAnExpertUrl, } from '../../
15
14
  import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
16
15
  import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
17
16
  import { toApiConfig } from '../../runtime/to-api-config.js';
17
+ import { Link, Stack } from '../../ui/index.js';
18
18
  function mapRegionBackups(region) {
19
19
  const rawBackups = getPathUnknown(region, ['backups']);
20
20
  if (!Array.isArray(rawBackups)) {
@@ -1,5 +1,5 @@
1
1
  import { type JSX } from 'react';
2
2
  import type { C4ManagementAppProps } from './c4-management-app.types';
3
- export declare const C4ManagementApp: (({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, urls, }: C4ManagementAppProps) => JSX.Element) & {
3
+ export declare const C4ManagementApp: (({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, urls, onNeedsReload, }: C4ManagementAppProps) => JSX.Element) & {
4
4
  displayName: string;
5
5
  };
@@ -8,17 +8,19 @@ import { C4GroupsList, C4IdentityContextProvider } from '@camunda/c4-identity';
8
8
  import { useC3Profile } from '@camunda/camunda-composite-components';
9
9
  import { AuditLoggerService, ConsoleApiClientsService, ConsoleValueMetricsService, EarlyAccessFeaturesService, HttpError, OrganizationMembersService, OrgsService, UsageAlertsService, } from '@camunda/ccma-api';
10
10
  import { checkVersion, getDisplayedSalesPlan, getRevisitedSalesPlanName, OrganizationRole, SseEntity, VersionCheckOperator, } from '@camunda/ccma-shared-types';
11
- import { Link, Stack } from '@carbon/react';
12
11
  import { observer } from 'mobx-react-lite';
13
12
  import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
14
13
  import { C4AiUsage } from '../../components/c4-ai-usage/c4-ai-usage.js';
15
14
  import { C4DeleteOrganizationModal } from '../../components/c4-delete-organization-modal/c4-delete-organization-modal.js';
15
+ import { C4ExtendTrialModal } from '../../components/c4-extend-trial-modal/c4-extend-trial-modal.js';
16
16
  import { C4LeaveOrganizationModal } from '../../components/c4-leave-organization-modal/c4-leave-organization-modal.js';
17
17
  import { getC4ManagementUrls } from '../../externalUrls.const.js';
18
18
  import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
19
19
  import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
20
20
  import { toApiConfig } from '../../runtime/to-api-config.js';
21
21
  import { toIdentityApiBaseUrl } from '../../runtime/to-identity-api-base-url.js';
22
+ import { Link, Stack } from '../../ui/index.js';
23
+ import { useExtendTrial } from '../use-extend-trial.js';
22
24
  import { C4ManagementPage } from './c4-management-page.js';
23
25
  import { C4ManagementActivityTab } from './tabs/c4-management-activity-tab.js';
24
26
  import { C4ManagementApiTab } from './tabs/c4-management-api-tab.js';
@@ -472,7 +474,7 @@ function themeNameToClassName(theme) {
472
474
  return 'g10';
473
475
  }
474
476
  }
475
- export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, urls, }) => {
477
+ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onNavigate, legacyTabs, userPersonaRole, isLicensingModel2025: isLicensingModel2025Prop, urls, onNeedsReload, }) => {
476
478
  const runtime = useC4ConsoleRuntime();
477
479
  const data = useC4ConsoleData();
478
480
  const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
@@ -666,6 +668,14 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
666
668
  const [leaveOrganizationOpen, setLeaveOrganizationOpen] = useState(false);
667
669
  const [deleteOrganizationOpen, setDeleteOrganizationOpen] = useState(false);
668
670
  const [deleteOrganizationError, setDeleteOrganizationError] = useState(false);
671
+ const [isExtendModalOpen, setIsExtendModalOpen] = useState(false);
672
+ const { submit: submitExtendTrial, isSubmitting: isExtendSubmitting, error: extendError, } = useExtendTrial(orgId, {
673
+ onSuccess: () => {
674
+ setIsExtendModalOpen(false);
675
+ onNeedsReload?.();
676
+ },
677
+ });
678
+ const openExtendTrialModal = useCallback(() => setIsExtendModalOpen(true), []);
669
679
  const featuresOrgIdRef = useRef(undefined);
670
680
  const orgRef = useRef(undefined);
671
681
  const featuresRef = useRef([]);
@@ -2282,6 +2292,47 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
2282
2292
  externalUrls.aiUsageDocsUrl,
2283
2293
  externalUrls.contactUrl,
2284
2294
  ]);
2295
+ const canSelfExtendForOverview = useMemo(() => {
2296
+ if (!org)
2297
+ return false;
2298
+ const featureEnabled = runtime.featureFlags?.isEnabled?.('accounts.trialSelfExtend') ?? false;
2299
+ if (!featureEnabled)
2300
+ return false;
2301
+ const isTrial = orgHasSalesPlanType(org, 'trial');
2302
+ const trialStateExpired = getNestedBoolean(org, [
2303
+ 'organizationToSalesPlan',
2304
+ 'trialStateExpired',
2305
+ ]);
2306
+ const trialExpirationDateRaw = getNestedValue(org, [
2307
+ 'organizationToSalesPlan',
2308
+ 'trialExpirationDate',
2309
+ ]);
2310
+ const trialExpirationMs = typeof trialExpirationDateRaw === 'string'
2311
+ ? new Date(trialExpirationDateRaw).getTime()
2312
+ : Number.NaN;
2313
+ const deltaMs = Number.isFinite(trialExpirationMs)
2314
+ ? trialExpirationMs - Date.now()
2315
+ : undefined;
2316
+ const sevenDaysMs = 7 * 24 * 60 * 60 * 1000;
2317
+ const extensionsUsedRaw = getNestedValue(org, [
2318
+ 'organizationToSalesPlan',
2319
+ 'trialExtensionsUsed',
2320
+ ]);
2321
+ const extensionsUsed = typeof extensionsUsedRaw === 'number' ? extensionsUsedRaw : 0;
2322
+ const canBillingUpdate = getNestedBoolean(org, [
2323
+ 'permissions',
2324
+ 'org',
2325
+ 'billing',
2326
+ 'update',
2327
+ ]);
2328
+ return (isTrial === true &&
2329
+ trialStateExpired !== true &&
2330
+ typeof deltaMs === 'number' &&
2331
+ deltaMs >= 0 &&
2332
+ deltaMs <= sevenDaysMs &&
2333
+ extensionsUsed < 3 &&
2334
+ canBillingUpdate === true);
2335
+ }, [org, runtime.featureFlags]);
2285
2336
  const mergedTabs = useMemo(() => {
2286
2337
  const canReadMembers = getNestedBoolean(org, [
2287
2338
  'permissions',
@@ -2457,7 +2508,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
2457
2508
  params: { orgId, newOrgName: newName },
2458
2509
  });
2459
2510
  setOrg((current) => current ? { ...current, name: newName } : current);
2460
- } })),
2511
+ }, onExtendTrial: canSelfExtendForOverview ? openExtendTrialModal : undefined })),
2461
2512
  },
2462
2513
  {
2463
2514
  id: 'users',
@@ -2784,6 +2835,8 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
2784
2835
  setFeatures,
2785
2836
  features,
2786
2837
  recentlyAcceptedBeta,
2838
+ canSelfExtendForOverview,
2839
+ openExtendTrialModal,
2787
2840
  ]);
2788
2841
  useEffect(() => {
2789
2842
  if (loading) {
@@ -2876,7 +2929,7 @@ export const C4ManagementApp = observer(({ orgId, desiredTabId, onTabChange, onN
2876
2929
  finally {
2877
2930
  setSettingsLoading(false);
2878
2931
  }
2879
- } }), _jsx(C4ManagementPage, { loading: loading, notFound: notFound, tabs: {
2932
+ } }), isExtendModalOpen && (_jsx(C4ExtendTrialModal, { isOpen: isExtendModalOpen, onClose: () => setIsExtendModalOpen(false), onSubmit: submitExtendTrial, isSubmitting: isExtendSubmitting, error: extendError })), _jsx(C4ManagementPage, { loading: loading, notFound: notFound, tabs: {
2880
2933
  list: mergedTabs,
2881
2934
  desiredTabId: activeTabId,
2882
2935
  onChange: (tabId) => {
@@ -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: ({ onExtendTrial, }) => (_jsx("div", { children: onExtendTrial ? (_jsx("button", { type: 'button', onClick: onExtendTrial, children: "Extend trial" })) : 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, featureEnabled) {
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: (key) => key === 'accounts.trialSelfExtend' ? featureEnabled : 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,29 @@ 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(), true);
474
+ const extendBtn = await screen.findByRole('button', {
475
+ name: 'Extend trial',
476
+ });
477
+ expect(extendBtn).toBeTruthy();
478
+ });
479
+ it('does not show the extend trial button when the feature flag is disabled', async () => {
480
+ mockedOrgsService.getOne.mockResolvedValue(buildTrialOrgInfo());
481
+ mockedEarlyAccessFeaturesService.getForOrg.mockResolvedValue([]);
482
+ renderTrialApp(buildTrialOrgInfo(), false);
483
+ await waitFor(() => {
484
+ expect(screen.queryByRole('button', { name: 'Extend trial' })).toBeNull();
485
+ });
486
+ });
487
+ });
@@ -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);
@@ -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);
@@ -8,5 +8,6 @@ export interface C4ManagementOverviewTabProps {
8
8
  mayRename: boolean;
9
9
  t?: (key: string, options?: Record<string, unknown>) => string;
10
10
  onRenameOrg: (newName: string) => Promise<void>;
11
+ onExtendTrial?: () => void;
11
12
  }
12
- export declare const C4ManagementOverviewTab: ({ orgId, orgName, salesPlan, ownerName, loading, mayRename, t, onRenameOrg, }: C4ManagementOverviewTabProps) => JSX.Element;
13
+ export declare const C4ManagementOverviewTab: ({ orgId, orgName, salesPlan, ownerName, loading, mayRename, t, onRenameOrg, onExtendTrial, }: C4ManagementOverviewTabProps) => JSX.Element;