@finos/legend-application-marketplace 0.0.19 → 0.0.21

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 (248) hide show
  1. package/lib/__lib__/LegendMarketplaceNavigation.d.ts +3 -0
  2. package/lib/__lib__/LegendMarketplaceNavigation.d.ts.map +1 -1
  3. package/lib/__lib__/LegendMarketplaceNavigation.js +11 -1
  4. package/lib/__lib__/LegendMarketplaceNavigation.js.map +1 -1
  5. package/lib/app.css +2 -2
  6. package/lib/app.css.map +1 -1
  7. package/lib/application/LegendMarketplaceApplicationConfig.d.ts +10 -0
  8. package/lib/application/LegendMarketplaceApplicationConfig.d.ts.map +1 -1
  9. package/lib/application/LegendMarketplaceApplicationConfig.js +10 -0
  10. package/lib/application/LegendMarketplaceApplicationConfig.js.map +1 -1
  11. package/lib/application/LegendMarketplaceFrameworkProvider.d.ts.map +1 -1
  12. package/lib/application/LegendMarketplaceFrameworkProvider.js +2 -2
  13. package/lib/application/LegendMarketplaceFrameworkProvider.js.map +1 -1
  14. package/lib/application/LegendMarketplaceWebApplication.d.ts.map +1 -1
  15. package/lib/application/LegendMarketplaceWebApplication.js +18 -8
  16. package/lib/application/LegendMarketplaceWebApplication.js.map +1 -1
  17. package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.d.ts.map +1 -1
  18. package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.js +6 -3
  19. package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.js.map +1 -1
  20. package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.d.ts.map +1 -1
  21. package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.js +9 -6
  22. package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.js.map +1 -1
  23. package/lib/components/{Lakehouse/LakehouseHeader.d.ts → Header/MarketplaceLakehouseHeader.d.ts} +2 -2
  24. package/lib/components/Header/MarketplaceLakehouseHeader.d.ts.map +1 -0
  25. package/lib/components/{Lakehouse/LakehouseHeader.js → Header/MarketplaceLakehouseHeader.js} +8 -4
  26. package/lib/components/Header/MarketplaceLakehouseHeader.js.map +1 -0
  27. package/lib/components/MarketplaceCard/LegendMarketplaceCard.d.ts +25 -0
  28. package/lib/components/MarketplaceCard/LegendMarketplaceCard.d.ts.map +1 -0
  29. package/lib/components/MarketplaceCard/LegendMarketplaceCard.js +32 -0
  30. package/lib/components/MarketplaceCard/LegendMarketplaceCard.js.map +1 -0
  31. package/lib/components/ProviderCard/LegendMarketplaceProviderCard.d.ts.map +1 -1
  32. package/lib/components/ProviderCard/LegendMarketplaceProviderCard.js +6 -3
  33. package/lib/components/ProviderCard/LegendMarketplaceProviderCard.js.map +1 -1
  34. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.d.ts.map +1 -1
  35. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js +3 -6
  36. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js.map +1 -1
  37. package/lib/index.css +2 -2
  38. package/lib/index.css.map +1 -1
  39. package/lib/package.json +2 -1
  40. package/lib/pages/Home/LegendMarketplaceHome.d.ts.map +1 -1
  41. package/lib/pages/Home/LegendMarketplaceHome.js +4 -4
  42. package/lib/pages/Home/LegendMarketplaceHome.js.map +1 -1
  43. package/lib/pages/Lakehouse/DataProductDataAccess.d.ts.map +1 -0
  44. package/lib/{components → pages}/Lakehouse/DataProductDataAccess.js +41 -9
  45. package/lib/pages/Lakehouse/DataProductDataAccess.js.map +1 -0
  46. package/lib/pages/Lakehouse/DataProductHolder.d.ts.map +1 -0
  47. package/lib/pages/Lakehouse/DataProductHolder.js.map +1 -0
  48. package/lib/pages/Lakehouse/DataProductViewer.d.ts.map +1 -0
  49. package/lib/pages/Lakehouse/DataProductViewer.js.map +1 -0
  50. package/lib/pages/Lakehouse/DataProductViewerActivityBar.d.ts.map +1 -0
  51. package/lib/pages/Lakehouse/DataProductViewerActivityBar.js.map +1 -0
  52. package/lib/pages/Lakehouse/DataProductWiki.d.ts.map +1 -0
  53. package/lib/pages/Lakehouse/DataProductWiki.js.map +1 -0
  54. package/lib/pages/Lakehouse/LakehouseDataProduct.d.ts.map +1 -0
  55. package/lib/{components → pages}/Lakehouse/LakehouseDataProduct.js +3 -3
  56. package/lib/pages/Lakehouse/LakehouseDataProduct.js.map +1 -0
  57. package/lib/{components/Lakehouse/LakehouseMarketplace.d.ts → pages/Lakehouse/MarketplaceLakehouseHome.d.ts} +2 -2
  58. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.d.ts.map +1 -0
  59. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js +54 -0
  60. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js.map +1 -0
  61. package/lib/{components/Lakehouse/MarketLakehouseStoreProvider.d.ts → pages/Lakehouse/MarketplaceLakehouseStoreProvider.d.ts} +1 -1
  62. package/lib/pages/Lakehouse/MarketplaceLakehouseStoreProvider.d.ts.map +1 -0
  63. package/lib/{components/Lakehouse/MarketLakehouseStoreProvider.js → pages/Lakehouse/MarketplaceLakehouseStoreProvider.js} +1 -1
  64. package/lib/pages/Lakehouse/MarketplaceLakehouseStoreProvider.js.map +1 -0
  65. package/lib/{components/Lakehouse/entitlements/LakehouseEntitlements.d.ts → pages/Lakehouse/entitlements/EntitlementsDashboard.d.ts} +6 -5
  66. package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.d.ts.map +1 -0
  67. package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.js +194 -0
  68. package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.js.map +1 -0
  69. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.d.ts +24 -0
  70. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.d.ts.map +1 -0
  71. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js +38 -0
  72. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js.map +1 -0
  73. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.d.ts +22 -0
  74. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.d.ts.map +1 -0
  75. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.js +23 -0
  76. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.js.map +1 -0
  77. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.d.ts +21 -0
  78. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.d.ts.map +1 -0
  79. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.js +32 -0
  80. package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.js.map +1 -0
  81. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.d.ts +17 -0
  82. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.d.ts.map +1 -0
  83. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.js +55 -0
  84. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.js.map +1 -0
  85. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts.map +1 -0
  86. package/lib/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js.map +1 -0
  87. package/lib/pages/Lakehouse/shared/GridItemViewer.d.ts +21 -0
  88. package/lib/pages/Lakehouse/shared/GridItemViewer.d.ts.map +1 -0
  89. package/lib/pages/Lakehouse/shared/GridItemViewer.js +46 -0
  90. package/lib/pages/Lakehouse/shared/GridItemViewer.js.map +1 -0
  91. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.d.ts +29 -0
  92. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.d.ts.map +1 -0
  93. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.js +152 -0
  94. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.js.map +1 -0
  95. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.d.ts +22 -0
  96. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.d.ts.map +1 -0
  97. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.js +34 -0
  98. package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.js.map +1 -0
  99. package/lib/pages/LegendMarketplacePage.d.ts +23 -0
  100. package/lib/pages/LegendMarketplacePage.d.ts.map +1 -0
  101. package/lib/pages/LegendMarketplacePage.js +23 -0
  102. package/lib/pages/LegendMarketplacePage.js.map +1 -0
  103. package/lib/pages/SearchResults/LegendMarketplaceSearchResults.d.ts.map +1 -1
  104. package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js +13 -13
  105. package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js.map +1 -1
  106. package/lib/pages/VendorData/LegendMarketplaceVendorData.d.ts.map +1 -1
  107. package/lib/pages/VendorData/LegendMarketplaceVendorData.js +6 -6
  108. package/lib/pages/VendorData/LegendMarketplaceVendorData.js.map +1 -1
  109. package/lib/stores/LakehouseContractServerClient.d.ts +11 -4
  110. package/lib/stores/LakehouseContractServerClient.d.ts.map +1 -1
  111. package/lib/stores/LakehouseContractServerClient.js +21 -3
  112. package/lib/stores/LakehouseContractServerClient.js.map +1 -1
  113. package/lib/stores/LegendMarketplaceBaseStore.d.ts +3 -0
  114. package/lib/stores/LegendMarketplaceBaseStore.d.ts.map +1 -1
  115. package/lib/stores/LegendMarketplaceBaseStore.js +8 -1
  116. package/lib/stores/LegendMarketplaceBaseStore.js.map +1 -1
  117. package/lib/stores/lakehouse/DataProductDataAccessState.d.ts +6 -7
  118. package/lib/stores/lakehouse/DataProductDataAccessState.d.ts.map +1 -1
  119. package/lib/stores/lakehouse/DataProductDataAccessState.js +47 -48
  120. package/lib/stores/lakehouse/DataProductDataAccessState.js.map +1 -1
  121. package/lib/stores/lakehouse/DataProductViewerState.d.ts +7 -3
  122. package/lib/stores/lakehouse/DataProductViewerState.d.ts.map +1 -1
  123. package/lib/stores/lakehouse/DataProductViewerState.js +51 -22
  124. package/lib/stores/lakehouse/DataProductViewerState.js.map +1 -1
  125. package/lib/stores/lakehouse/LakehouseUtils.d.ts +50 -0
  126. package/lib/stores/lakehouse/LakehouseUtils.d.ts.map +1 -0
  127. package/lib/stores/lakehouse/LakehouseUtils.js +267 -0
  128. package/lib/stores/lakehouse/LakehouseUtils.js.map +1 -0
  129. package/lib/stores/lakehouse/MarketplaceLakehouseStore.d.ts.map +1 -1
  130. package/lib/stores/lakehouse/MarketplaceLakehouseStore.js +9 -4
  131. package/lib/stores/lakehouse/MarketplaceLakehouseStore.js.map +1 -1
  132. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts +31 -0
  133. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts.map +1 -0
  134. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js +110 -0
  135. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js.map +1 -0
  136. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.d.ts +30 -0
  137. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.d.ts.map +1 -0
  138. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js +65 -0
  139. package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js.map +1 -0
  140. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.d.ts +41 -0
  141. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.d.ts.map +1 -0
  142. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.js +146 -0
  143. package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.js.map +1 -0
  144. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.d.ts +10 -32
  145. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.d.ts.map +1 -1
  146. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.js +49 -163
  147. package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.js.map +1 -1
  148. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.d.ts +23 -0
  149. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.d.ts.map +1 -0
  150. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.js +24 -0
  151. package/lib/stores/lakehouse/entitlements/LakehouseViewerState.js.map +1 -0
  152. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.d.ts +30 -0
  153. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.d.ts.map +1 -0
  154. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js +63 -0
  155. package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js.map +1 -0
  156. package/package.json +5 -4
  157. package/src/__lib__/LegendMarketplaceNavigation.ts +16 -1
  158. package/src/application/LegendMarketplaceApplicationConfig.ts +25 -0
  159. package/src/application/LegendMarketplaceFrameworkProvider.tsx +2 -0
  160. package/src/application/LegendMarketplaceWebApplication.tsx +50 -12
  161. package/src/components/DataProductCard/LegendMarketplaceDataProductSearchCard.tsx +41 -33
  162. package/src/components/DataProductCard/LegendMarketplaceLightDataProductCard.tsx +33 -36
  163. package/src/components/{Lakehouse/LakehouseHeader.tsx → Header/MarketplaceLakehouseHeader.tsx} +7 -3
  164. package/src/components/MarketplaceCard/LegendMarketplaceCard.tsx +98 -0
  165. package/src/components/ProviderCard/LegendMarketplaceProviderCard.tsx +47 -39
  166. package/src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx +2 -14
  167. package/src/pages/Home/LegendMarketplaceHome.tsx +42 -51
  168. package/src/{components → pages}/Lakehouse/DataProductDataAccess.tsx +91 -12
  169. package/src/{components → pages}/Lakehouse/LakehouseDataProduct.tsx +14 -23
  170. package/src/pages/Lakehouse/MarketplaceLakehouseHome.tsx +167 -0
  171. package/src/pages/Lakehouse/entitlements/EntitlementsDashboard.tsx +390 -0
  172. package/src/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.tsx +99 -0
  173. package/src/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.tsx +33 -0
  174. package/src/pages/Lakehouse/entitlements/EntitlementsTaskViewer.tsx +73 -0
  175. package/src/pages/Lakehouse/entitlements/LakehouseEntitlements.tsx +82 -0
  176. package/src/pages/Lakehouse/shared/GridItemViewer.tsx +105 -0
  177. package/src/pages/Lakehouse/subscriptions/LakehouseSubscriptions.tsx +358 -0
  178. package/src/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.tsx +65 -0
  179. package/src/pages/LegendMarketplacePage.tsx +26 -0
  180. package/src/pages/SearchResults/LegendMarketplaceSearchResults.tsx +58 -65
  181. package/src/pages/VendorData/LegendMarketplaceVendorData.tsx +44 -42
  182. package/src/stores/LakehouseContractServerClient.ts +78 -10
  183. package/src/stores/LegendMarketplaceBaseStore.ts +16 -1
  184. package/src/stores/lakehouse/DataProductDataAccessState.ts +67 -63
  185. package/src/stores/lakehouse/DataProductViewerState.ts +86 -29
  186. package/src/stores/lakehouse/LakehouseUtils.ts +345 -0
  187. package/src/stores/lakehouse/MarketplaceLakehouseStore.ts +10 -6
  188. package/src/stores/lakehouse/entitlements/EntitlementsDashboardState.ts +167 -0
  189. package/src/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.ts +101 -0
  190. package/src/stores/lakehouse/entitlements/EntitlementsTaskViewerState.ts +227 -0
  191. package/src/stores/lakehouse/entitlements/LakehouseEntitlementsStore.ts +69 -231
  192. package/src/stores/lakehouse/entitlements/LakehouseViewerState.ts +27 -0
  193. package/src/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.ts +100 -0
  194. package/tsconfig.json +26 -13
  195. package/lib/components/Lakehouse/DataProductDataAccess.d.ts.map +0 -1
  196. package/lib/components/Lakehouse/DataProductDataAccess.js.map +0 -1
  197. package/lib/components/Lakehouse/DataProductHolder.d.ts.map +0 -1
  198. package/lib/components/Lakehouse/DataProductHolder.js.map +0 -1
  199. package/lib/components/Lakehouse/DataProductViewer.d.ts.map +0 -1
  200. package/lib/components/Lakehouse/DataProductViewer.js.map +0 -1
  201. package/lib/components/Lakehouse/DataProductViewerActivityBar.d.ts.map +0 -1
  202. package/lib/components/Lakehouse/DataProductViewerActivityBar.js.map +0 -1
  203. package/lib/components/Lakehouse/DataProductWiki.d.ts.map +0 -1
  204. package/lib/components/Lakehouse/DataProductWiki.js.map +0 -1
  205. package/lib/components/Lakehouse/LakehouseDataProduct.d.ts.map +0 -1
  206. package/lib/components/Lakehouse/LakehouseDataProduct.js.map +0 -1
  207. package/lib/components/Lakehouse/LakehouseHeader.d.ts.map +0 -1
  208. package/lib/components/Lakehouse/LakehouseHeader.js.map +0 -1
  209. package/lib/components/Lakehouse/LakehouseMarketplace.d.ts.map +0 -1
  210. package/lib/components/Lakehouse/LakehouseMarketplace.js +0 -57
  211. package/lib/components/Lakehouse/LakehouseMarketplace.js.map +0 -1
  212. package/lib/components/Lakehouse/MarketLakehouseStoreProvider.d.ts.map +0 -1
  213. package/lib/components/Lakehouse/MarketLakehouseStoreProvider.js.map +0 -1
  214. package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.d.ts.map +0 -1
  215. package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.js +0 -147
  216. package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.js.map +0 -1
  217. package/lib/components/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts.map +0 -1
  218. package/lib/components/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js.map +0 -1
  219. package/lib/stores/MarketplaceLakehouseServerClient.d.ts +0 -25
  220. package/lib/stores/MarketplaceLakehouseServerClient.d.ts.map +0 -1
  221. package/lib/stores/MarketplaceLakehouseServerClient.js +0 -27
  222. package/lib/stores/MarketplaceLakehouseServerClient.js.map +0 -1
  223. package/lib/stores/lakehouse/entitlements/DataContractState.d.ts +0 -27
  224. package/lib/stores/lakehouse/entitlements/DataContractState.d.ts.map +0 -1
  225. package/lib/stores/lakehouse/entitlements/DataContractState.js +0 -115
  226. package/lib/stores/lakehouse/entitlements/DataContractState.js.map +0 -1
  227. package/src/components/Lakehouse/LakehouseMarketplace.tsx +0 -193
  228. package/src/components/Lakehouse/entitlements/LakehouseEntitlements.tsx +0 -332
  229. package/src/stores/MarketplaceLakehouseServerClient.ts +0 -40
  230. package/src/stores/lakehouse/entitlements/DataContractState.ts +0 -131
  231. /package/lib/{components → pages}/Lakehouse/DataProductDataAccess.d.ts +0 -0
  232. /package/lib/{components → pages}/Lakehouse/DataProductHolder.d.ts +0 -0
  233. /package/lib/{components → pages}/Lakehouse/DataProductHolder.js +0 -0
  234. /package/lib/{components → pages}/Lakehouse/DataProductViewer.d.ts +0 -0
  235. /package/lib/{components → pages}/Lakehouse/DataProductViewer.js +0 -0
  236. /package/lib/{components → pages}/Lakehouse/DataProductViewerActivityBar.d.ts +0 -0
  237. /package/lib/{components → pages}/Lakehouse/DataProductViewerActivityBar.js +0 -0
  238. /package/lib/{components → pages}/Lakehouse/DataProductWiki.d.ts +0 -0
  239. /package/lib/{components → pages}/Lakehouse/DataProductWiki.js +0 -0
  240. /package/lib/{components → pages}/Lakehouse/LakehouseDataProduct.d.ts +0 -0
  241. /package/lib/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts +0 -0
  242. /package/lib/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js +0 -0
  243. /package/src/{components → pages}/Lakehouse/DataProductHolder.tsx +0 -0
  244. /package/src/{components → pages}/Lakehouse/DataProductViewer.tsx +0 -0
  245. /package/src/{components → pages}/Lakehouse/DataProductViewerActivityBar.tsx +0 -0
  246. /package/src/{components → pages}/Lakehouse/DataProductWiki.tsx +0 -0
  247. /package/src/{components/Lakehouse/MarketLakehouseStoreProvider.tsx → pages/Lakehouse/MarketplaceLakehouseStoreProvider.tsx} +0 -0
  248. /package/src/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.tsx +0 -0
@@ -0,0 +1,390 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { withAuth, type AuthContextProps } from 'react-oidc-context';
18
+ import type { EntitlementsDashboardState } from '../../../stores/lakehouse/entitlements/EntitlementsDashboardState.js';
19
+ import { observer } from 'mobx-react-lite';
20
+ import { useState } from 'react';
21
+ import {
22
+ V1_UserApprovalStatus,
23
+ type V1_ContractUserEventRecord,
24
+ type V1_UserPendingContractsRecord,
25
+ } from '@finos/legend-graph';
26
+ import { flowResult } from 'mobx';
27
+ import {
28
+ DataGrid,
29
+ type DataGridCellRendererParams,
30
+ } from '@finos/legend-lego/data-grid';
31
+ import {
32
+ generateLakehouseContractPath,
33
+ generateLakehouseTaskPath,
34
+ } from '../../../__lib__/LegendMarketplaceNavigation.js';
35
+ import { Box, Button, Stack, Tab, Tabs, Typography } from '@mui/material';
36
+ import { clsx } from '@finos/legend-art';
37
+
38
+ const TDSColumnApprovalCellRenderer = (
39
+ params: DataGridCellRendererParams<V1_ContractUserEventRecord>,
40
+ handleApprove: (task: V1_ContractUserEventRecord) => void,
41
+ handleDeny: (task: V1_ContractUserEventRecord) => void,
42
+ ): React.ReactNode => {
43
+ const data = params.data;
44
+ if (!data) {
45
+ return null;
46
+ }
47
+ const onApprove = () => {
48
+ handleApprove(data);
49
+ };
50
+ const onDeny = () => {
51
+ handleDeny(data);
52
+ };
53
+ return (
54
+ <Stack direction={'row'} spacing={1} justifyContent={'center'}>
55
+ <Button
56
+ variant="contained"
57
+ size="small"
58
+ onClick={onApprove}
59
+ disabled={data.status !== V1_UserApprovalStatus.PENDING}
60
+ color="success"
61
+ >
62
+ Approve
63
+ </Button>
64
+ <Button
65
+ disabled={data.status !== V1_UserApprovalStatus.PENDING}
66
+ color="error"
67
+ variant="contained"
68
+ size="small"
69
+ onClick={onDeny}
70
+ >
71
+ Deny
72
+ </Button>
73
+ </Stack>
74
+ );
75
+ };
76
+
77
+ const Task_IdColumnClickableCellRenderer = (
78
+ params: DataGridCellRendererParams<V1_ContractUserEventRecord>,
79
+ onHandleClick: (id: string) => void,
80
+ ): React.ReactNode => {
81
+ const data = params.data;
82
+ if (!data) {
83
+ return null;
84
+ }
85
+ const handleClick = () => {
86
+ onHandleClick(data.taskId);
87
+ };
88
+ return (
89
+ <span
90
+ className="entitlements-tasks__grid-taskid-cell"
91
+ onClick={handleClick}
92
+ >
93
+ {data.taskId}
94
+ </span>
95
+ );
96
+ };
97
+
98
+ const Task_ContractClickableCellRenderer = (
99
+ params: DataGridCellRendererParams<V1_ContractUserEventRecord>,
100
+ onHandleClick: (id: string) => void,
101
+ ): React.ReactNode => {
102
+ const data = params.data;
103
+ if (!data) {
104
+ return null;
105
+ }
106
+ const handleClick = () => {
107
+ onHandleClick(data.dataContractId);
108
+ };
109
+ return (
110
+ <span
111
+ className="entitlements-tasks__grid-taskid-cell"
112
+ onClick={handleClick}
113
+ >
114
+ {data.dataContractId}
115
+ </span>
116
+ );
117
+ };
118
+
119
+ const PendingContract_IdColumnClickableCellRenderer = (
120
+ params: DataGridCellRendererParams<V1_UserPendingContractsRecord>,
121
+ onHandleClick: (id: string) => void,
122
+ ): React.ReactNode => {
123
+ const data = params.data;
124
+ if (!data) {
125
+ return null;
126
+ }
127
+ const handleClick = () => {
128
+ onHandleClick(data.contractId);
129
+ };
130
+ return (
131
+ <span
132
+ className="entitlements-tasks__grid-taskid-cell"
133
+ onClick={handleClick}
134
+ >
135
+ {data.contractId}
136
+ </span>
137
+ );
138
+ };
139
+
140
+ const PendingContract_TaskIdColumnClickableCellRenderer = (
141
+ params: DataGridCellRendererParams<V1_UserPendingContractsRecord>,
142
+ onHandleClick: (id: string) => void,
143
+ ): React.ReactNode => {
144
+ const data = params.data;
145
+ if (!data) {
146
+ return null;
147
+ }
148
+ const handleClick = () => {
149
+ onHandleClick(data.pendingTaskWithAssignees.taskId);
150
+ };
151
+ return (
152
+ <span
153
+ className="entitlements-tasks__grid-taskid-cell"
154
+ onClick={handleClick}
155
+ >
156
+ {data.pendingTaskWithAssignees.taskId}
157
+ </span>
158
+ );
159
+ };
160
+
161
+ type TaksProps = {
162
+ currentViewer: EntitlementsDashboardState;
163
+ };
164
+
165
+ export const EntitlementsDashboard = withAuth(
166
+ observer((props: TaksProps) => {
167
+ const { currentViewer } = props;
168
+ const state = currentViewer.state;
169
+ const tasks = currentViewer.pendingTasks;
170
+ const pendingConctracts = currentViewer.pendingContracts;
171
+ const auth = (props as unknown as { auth: AuthContextProps }).auth;
172
+ const enum EntitlementsTabs {
173
+ PENDING_TASKS = 'pendingTasks',
174
+ PENDING_CONTRACTS = 'pendingContracts',
175
+ }
176
+
177
+ const [value, setValue] = useState(EntitlementsTabs.PENDING_TASKS);
178
+
179
+ const handleTabChange = (
180
+ event: React.SyntheticEvent,
181
+ newValue: EntitlementsTabs,
182
+ ) => {
183
+ setValue(newValue);
184
+ };
185
+ const handleApprove = (task: V1_ContractUserEventRecord) => {
186
+ flowResult(currentViewer.approve(task, auth.user?.access_token)).catch(
187
+ state.applicationStore.alertUnhandledError,
188
+ );
189
+ };
190
+ const handleDeny = (task: V1_ContractUserEventRecord) => {
191
+ flowResult(currentViewer.deny(task, auth.user?.access_token)).catch(
192
+ state.applicationStore.alertUnhandledError,
193
+ );
194
+ };
195
+ return (
196
+ <>
197
+ <Tabs value={value} onChange={handleTabChange}>
198
+ <Tab
199
+ label={
200
+ <Typography variant="h4" gutterBottom={true}>
201
+ PENDING TASKS
202
+ </Typography>
203
+ }
204
+ value={EntitlementsTabs.PENDING_TASKS}
205
+ />
206
+ <Tab
207
+ label={
208
+ <Typography variant="h4" gutterBottom={true}>
209
+ PENDING CONTRACTS
210
+ </Typography>
211
+ }
212
+ value={EntitlementsTabs.PENDING_CONTRACTS}
213
+ />
214
+ </Tabs>
215
+ {value === EntitlementsTabs.PENDING_TASKS && (
216
+ <Box className="entitlements-tasks">
217
+ <div
218
+ className={clsx(
219
+ 'entitlements-tasks__grid data-access-overview__grid',
220
+ {
221
+ 'ag-theme-balham': true,
222
+ },
223
+ )}
224
+ >
225
+ {tasks && (
226
+ <DataGrid
227
+ rowData={tasks}
228
+ onRowDataUpdated={(params) => {
229
+ params.api.refreshCells({ force: true });
230
+ }}
231
+ suppressFieldDotNotation={true}
232
+ suppressContextMenu={false}
233
+ columnDefs={[
234
+ {
235
+ minWidth: 50,
236
+ sortable: true,
237
+ resizable: true,
238
+ headerName: 'Task Id',
239
+ cellRenderer: (
240
+ params: DataGridCellRendererParams<V1_ContractUserEventRecord>,
241
+ ) => {
242
+ return Task_IdColumnClickableCellRenderer(
243
+ params,
244
+ (taskId) =>
245
+ state.applicationStore.navigationService.navigator.updateCurrentLocation(
246
+ generateLakehouseTaskPath(taskId),
247
+ ),
248
+ );
249
+ },
250
+ flex: 1,
251
+ },
252
+ {
253
+ minWidth: 50,
254
+ sortable: true,
255
+ resizable: true,
256
+ headerName: 'Contract Id',
257
+ cellRenderer: (
258
+ params: DataGridCellRendererParams<V1_ContractUserEventRecord>,
259
+ ) => {
260
+ return Task_ContractClickableCellRenderer(
261
+ params,
262
+ (taskId) =>
263
+ state.applicationStore.navigationService.navigator.updateCurrentLocation(
264
+ generateLakehouseContractPath(taskId),
265
+ ),
266
+ );
267
+ },
268
+ flex: 1,
269
+ },
270
+ {
271
+ minWidth: 50,
272
+ sortable: true,
273
+ resizable: true,
274
+ headerName: 'Consumer',
275
+ valueGetter: (p) => p.data?.consumer,
276
+ flex: 1,
277
+ },
278
+ {
279
+ minWidth: 50,
280
+ sortable: true,
281
+ resizable: true,
282
+ headerName: 'Status',
283
+ valueGetter: (p) => p.data?.status,
284
+ flex: 1,
285
+ },
286
+ {
287
+ minWidth: 50,
288
+ sortable: true,
289
+ resizable: true,
290
+ headerName: 'Approve/Deny',
291
+ flex: 1,
292
+ cellRenderer: (
293
+ params: DataGridCellRendererParams<V1_ContractUserEventRecord>,
294
+ ) => {
295
+ return TDSColumnApprovalCellRenderer(
296
+ params,
297
+ handleApprove,
298
+ handleDeny,
299
+ );
300
+ },
301
+ },
302
+ ]}
303
+ />
304
+ )}
305
+ </div>
306
+ </Box>
307
+ )}
308
+ {value === EntitlementsTabs.PENDING_CONTRACTS && (
309
+ <Box className="entitlements-tasks">
310
+ <div
311
+ className={clsx(
312
+ 'entitlements-tasks__grid data-access-overview__grid',
313
+ {
314
+ 'ag-theme-balham': true,
315
+ },
316
+ )}
317
+ >
318
+ {pendingConctracts && (
319
+ <DataGrid
320
+ rowData={pendingConctracts}
321
+ onRowDataUpdated={(params) => {
322
+ params.api.refreshCells({ force: true });
323
+ }}
324
+ suppressFieldDotNotation={true}
325
+ suppressContextMenu={false}
326
+ columnDefs={[
327
+ {
328
+ minWidth: 50,
329
+ sortable: true,
330
+ resizable: true,
331
+ headerName: 'Contract Id',
332
+ cellRenderer: (
333
+ params: DataGridCellRendererParams<V1_UserPendingContractsRecord>,
334
+ ) => {
335
+ return PendingContract_IdColumnClickableCellRenderer(
336
+ params,
337
+ (taskId) =>
338
+ state.applicationStore.navigationService.navigator.updateCurrentLocation(
339
+ generateLakehouseContractPath(taskId),
340
+ ),
341
+ );
342
+ },
343
+ flex: 1,
344
+ },
345
+
346
+ {
347
+ minWidth: 50,
348
+ sortable: true,
349
+ resizable: true,
350
+ headerName: 'Contract Description',
351
+ valueGetter: (p) => p.data?.contractDescription,
352
+ flex: 1,
353
+ },
354
+ {
355
+ minWidth: 50,
356
+ sortable: true,
357
+ resizable: true,
358
+ headerName: 'Pending Task ID',
359
+ cellRenderer: (
360
+ params: DataGridCellRendererParams<V1_UserPendingContractsRecord>,
361
+ ) => {
362
+ return PendingContract_TaskIdColumnClickableCellRenderer(
363
+ params,
364
+ (taskId) =>
365
+ state.applicationStore.navigationService.navigator.updateCurrentLocation(
366
+ generateLakehouseTaskPath(taskId),
367
+ ),
368
+ );
369
+ },
370
+ flex: 1,
371
+ },
372
+ {
373
+ minWidth: 50,
374
+ sortable: true,
375
+ resizable: true,
376
+ headerName: 'Pending Task Assignes',
377
+ valueGetter: (p) =>
378
+ p.data?.pendingTaskWithAssignees.assignee.join(','),
379
+ flex: 1,
380
+ },
381
+ ]}
382
+ />
383
+ )}
384
+ </div>
385
+ </Box>
386
+ )}
387
+ </>
388
+ );
389
+ }),
390
+ );
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import {
18
+ ModalBody,
19
+ ModalFooter,
20
+ ModalHeader,
21
+ Dialog,
22
+ Modal,
23
+ PanelForm,
24
+ PanelFormValidatedTextField,
25
+ ModalFooterButton,
26
+ PanelLoadingIndicator,
27
+ } from '@finos/legend-art';
28
+ import type { V1_AccessPointGroup } from '@finos/legend-graph';
29
+ import { observer } from 'mobx-react-lite';
30
+ import { useRef, useState } from 'react';
31
+ import type { DataProductViewerState } from '../../../stores/lakehouse/DataProductViewerState.js';
32
+ import { withAuth, type AuthContextProps } from 'react-oidc-context';
33
+ import { flowResult } from 'mobx';
34
+
35
+ export const DataContractCreator = withAuth(
36
+ observer(
37
+ (props: {
38
+ onClose: () => void;
39
+ accessGroupPoint: V1_AccessPointGroup;
40
+ viewerState: DataProductViewerState;
41
+ }) => {
42
+ const { onClose, viewerState, accessGroupPoint } = props;
43
+ const [description, setDescription] = useState<string | undefined>(
44
+ undefined,
45
+ );
46
+ const auth = (props as unknown as { auth: AuthContextProps }).auth;
47
+ const onCreate = (): void => {
48
+ if (description) {
49
+ flowResult(
50
+ props.viewerState.create(
51
+ description,
52
+ accessGroupPoint,
53
+ auth.user?.access_token,
54
+ ),
55
+ ).catch(viewerState.applicationStore.alertUnhandledError);
56
+ }
57
+ };
58
+
59
+ const patternRef = useRef<HTMLInputElement>(null);
60
+ return (
61
+ <Dialog
62
+ open={true}
63
+ onClose={onClose}
64
+ classes={{ container: 'dataContract-creator-modal__container' }}
65
+ PaperProps={{
66
+ classes: { root: 'dataContract-creator-modal__inner-container' },
67
+ }}
68
+ >
69
+ <Modal>
70
+ <PanelLoadingIndicator
71
+ isLoading={viewerState.creatingContractState.isInProgress}
72
+ />
73
+ <ModalHeader>Create Data Contract</ModalHeader>
74
+ <ModalBody>
75
+ <PanelForm>
76
+ <PanelFormValidatedTextField
77
+ ref={patternRef}
78
+ name="Description"
79
+ className="service-editor__pattern__input"
80
+ errorMessageClassName="service-editor__pattern__input"
81
+ prompt={'Description for the data contract'}
82
+ update={(value: string | undefined): void => {
83
+ setDescription(value ?? '');
84
+ }}
85
+ validate={undefined}
86
+ value={description}
87
+ />
88
+ </PanelForm>
89
+ </ModalBody>
90
+
91
+ <ModalFooter>
92
+ <ModalFooterButton onClick={onCreate}>Create</ModalFooterButton>
93
+ </ModalFooter>
94
+ </Modal>
95
+ </Dialog>
96
+ );
97
+ },
98
+ ),
99
+ );
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { observer } from 'mobx-react-lite';
18
+ import { GridItemsViewer } from '../shared/GridItemViewer.js';
19
+ import type { EntitlementsDataContractViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js';
20
+
21
+ export const EntitlementsDataContractViewer = observer(
22
+ (props: { currentViewer: EntitlementsDataContractViewerState }) => {
23
+ const { currentViewer } = props;
24
+ return (
25
+ <div className="entitlements-grid-viewer">
26
+ <GridItemsViewer
27
+ details={currentViewer.contractDetails}
28
+ title="Contract Metadata"
29
+ />
30
+ </div>
31
+ );
32
+ },
33
+ );
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { withAuth, type AuthContextProps } from 'react-oidc-context';
18
+ import type { EntitlementsTaskViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsTaskViewerState.js';
19
+ import { observer } from 'mobx-react-lite';
20
+ import { GridItemsViewer } from '../shared/GridItemViewer.js';
21
+ import { Button, Divider, Stack } from '@mui/material';
22
+
23
+ export const EntitlementsTaskViewer = withAuth(
24
+ observer((props: { currentViewer: EntitlementsTaskViewerState }) => {
25
+ const auth = (props as unknown as { auth: AuthContextProps }).auth;
26
+ const { currentViewer } = props;
27
+ const handleApprove = (): void => {
28
+ currentViewer.approve(auth.user?.access_token);
29
+ };
30
+
31
+ const handleDeny = (): void => {
32
+ currentViewer.deny(auth.user?.access_token);
33
+ };
34
+
35
+ return (
36
+ <div className="entitlements-grid-viewer">
37
+ {currentViewer.canApprove && (
38
+ <div className="entitlements-grid-viewer__action-header">
39
+ <Stack
40
+ className="entitlements-grid-viewer__action"
41
+ direction={'row'}
42
+ spacing={1}
43
+ >
44
+ <Button
45
+ variant="contained"
46
+ size="small"
47
+ onClick={handleApprove}
48
+ color="success"
49
+ sx={{ fontSize: '10px' }}
50
+ >
51
+ Approve
52
+ </Button>
53
+ <Button
54
+ color="error"
55
+ variant="contained"
56
+ size="small"
57
+ onClick={handleDeny}
58
+ sx={{ fontSize: '10px' }}
59
+ >
60
+ Deny
61
+ </Button>
62
+ </Stack>
63
+ <Divider />
64
+ </div>
65
+ )}
66
+ <GridItemsViewer
67
+ details={currentViewer.taskDetails}
68
+ title="Task Metadata"
69
+ />
70
+ </div>
71
+ );
72
+ }),
73
+ );
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { observer } from 'mobx-react-lite';
18
+ import {
19
+ useLakehouseEntitlementsStore,
20
+ withLakehouseEntitlementsStore,
21
+ } from './LakehouseEntitlementsStoreProvider.js';
22
+ import { useAuth } from 'react-oidc-context';
23
+ import { useEffect } from 'react';
24
+ import {
25
+ CubesLoadingIndicator,
26
+ CubesLoadingIndicatorIcon,
27
+ } from '@finos/legend-art';
28
+ import {} from '@finos/legend-lego/data-grid';
29
+ import { useParams } from '@finos/legend-application/browser';
30
+ import {
31
+ LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN,
32
+ type LakehouseEntitlementsTasksParam,
33
+ } from '../../../__lib__/LegendMarketplaceNavigation.js';
34
+ import { EntitlementsDashboardState } from '../../../stores/lakehouse/entitlements/EntitlementsDashboardState.js';
35
+ import { EntitlementsTaskViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsTaskViewerState.js';
36
+ import { LegendMarketplacePage } from '../../LegendMarketplacePage.js';
37
+ import { EntitlementsDataContractViewer } from './EntitlementsDataContractViewer.js';
38
+ import { EntitlementsTaskViewer } from './EntitlementsTaskViewer.js';
39
+ import { EntitlementsDashboard } from './EntitlementsDashboard.js';
40
+ import { EntitlementsDataContractViewerState } from '../../../stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js';
41
+
42
+ export const LakehouseEntitlements = withLakehouseEntitlementsStore(
43
+ observer(() => {
44
+ const entitlementsStore = useLakehouseEntitlementsStore();
45
+ const auth = useAuth();
46
+ const params = useParams<LakehouseEntitlementsTasksParam>();
47
+
48
+ useEffect(() => {
49
+ entitlementsStore.init(
50
+ params[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.TASK_ID],
51
+ params[LEGEND_MARKETPLACE_ROUTE_PATTERN_TOKEN.CONTRACT_ID],
52
+ auth.user?.access_token,
53
+ );
54
+ }, [auth.user?.access_token, entitlementsStore, params]);
55
+
56
+ const renderCurrentViewer = (): React.ReactNode => {
57
+ const currentViewer = entitlementsStore.currentViewer;
58
+ if (currentViewer instanceof EntitlementsDashboardState) {
59
+ return <EntitlementsDashboard currentViewer={currentViewer} />;
60
+ } else if (currentViewer instanceof EntitlementsTaskViewerState) {
61
+ return <EntitlementsTaskViewer currentViewer={currentViewer} />;
62
+ } else if (currentViewer instanceof EntitlementsDataContractViewerState) {
63
+ return <EntitlementsDataContractViewer currentViewer={currentViewer} />;
64
+ }
65
+
66
+ return null;
67
+ };
68
+ return (
69
+ <LegendMarketplacePage className="legend-marketplace-lakehouse-entitlements">
70
+ <CubesLoadingIndicator
71
+ isLoading={Boolean(
72
+ entitlementsStore.initializationState.isInProgress ||
73
+ entitlementsStore.currentViewer?.initializationState.isInProgress,
74
+ )}
75
+ >
76
+ <CubesLoadingIndicatorIcon />
77
+ </CubesLoadingIndicator>
78
+ {renderCurrentViewer()}
79
+ </LegendMarketplacePage>
80
+ );
81
+ }),
82
+ );