@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.
- package/lib/__lib__/LegendMarketplaceNavigation.d.ts +3 -0
- package/lib/__lib__/LegendMarketplaceNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendMarketplaceNavigation.js +11 -1
- package/lib/__lib__/LegendMarketplaceNavigation.js.map +1 -1
- package/lib/app.css +2 -2
- package/lib/app.css.map +1 -1
- package/lib/application/LegendMarketplaceApplicationConfig.d.ts +10 -0
- package/lib/application/LegendMarketplaceApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendMarketplaceApplicationConfig.js +10 -0
- package/lib/application/LegendMarketplaceApplicationConfig.js.map +1 -1
- package/lib/application/LegendMarketplaceFrameworkProvider.d.ts.map +1 -1
- package/lib/application/LegendMarketplaceFrameworkProvider.js +2 -2
- package/lib/application/LegendMarketplaceFrameworkProvider.js.map +1 -1
- package/lib/application/LegendMarketplaceWebApplication.d.ts.map +1 -1
- package/lib/application/LegendMarketplaceWebApplication.js +18 -8
- package/lib/application/LegendMarketplaceWebApplication.js.map +1 -1
- package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.d.ts.map +1 -1
- package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.js +6 -3
- package/lib/components/DataProductCard/LegendMarketplaceDataProductSearchCard.js.map +1 -1
- package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.d.ts.map +1 -1
- package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.js +9 -6
- package/lib/components/DataProductCard/LegendMarketplaceLightDataProductCard.js.map +1 -1
- package/lib/components/{Lakehouse/LakehouseHeader.d.ts → Header/MarketplaceLakehouseHeader.d.ts} +2 -2
- package/lib/components/Header/MarketplaceLakehouseHeader.d.ts.map +1 -0
- package/lib/components/{Lakehouse/LakehouseHeader.js → Header/MarketplaceLakehouseHeader.js} +8 -4
- package/lib/components/Header/MarketplaceLakehouseHeader.js.map +1 -0
- package/lib/components/MarketplaceCard/LegendMarketplaceCard.d.ts +25 -0
- package/lib/components/MarketplaceCard/LegendMarketplaceCard.d.ts.map +1 -0
- package/lib/components/MarketplaceCard/LegendMarketplaceCard.js +32 -0
- package/lib/components/MarketplaceCard/LegendMarketplaceCard.js.map +1 -0
- package/lib/components/ProviderCard/LegendMarketplaceProviderCard.d.ts.map +1 -1
- package/lib/components/ProviderCard/LegendMarketplaceProviderCard.js +6 -3
- package/lib/components/ProviderCard/LegendMarketplaceProviderCard.js.map +1 -1
- package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js +3 -6
- package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +2 -1
- package/lib/pages/Home/LegendMarketplaceHome.d.ts.map +1 -1
- package/lib/pages/Home/LegendMarketplaceHome.js +4 -4
- package/lib/pages/Home/LegendMarketplaceHome.js.map +1 -1
- package/lib/pages/Lakehouse/DataProductDataAccess.d.ts.map +1 -0
- package/lib/{components → pages}/Lakehouse/DataProductDataAccess.js +41 -9
- package/lib/pages/Lakehouse/DataProductDataAccess.js.map +1 -0
- package/lib/pages/Lakehouse/DataProductHolder.d.ts.map +1 -0
- package/lib/pages/Lakehouse/DataProductHolder.js.map +1 -0
- package/lib/pages/Lakehouse/DataProductViewer.d.ts.map +1 -0
- package/lib/pages/Lakehouse/DataProductViewer.js.map +1 -0
- package/lib/pages/Lakehouse/DataProductViewerActivityBar.d.ts.map +1 -0
- package/lib/pages/Lakehouse/DataProductViewerActivityBar.js.map +1 -0
- package/lib/pages/Lakehouse/DataProductWiki.d.ts.map +1 -0
- package/lib/pages/Lakehouse/DataProductWiki.js.map +1 -0
- package/lib/pages/Lakehouse/LakehouseDataProduct.d.ts.map +1 -0
- package/lib/{components → pages}/Lakehouse/LakehouseDataProduct.js +3 -3
- package/lib/pages/Lakehouse/LakehouseDataProduct.js.map +1 -0
- package/lib/{components/Lakehouse/LakehouseMarketplace.d.ts → pages/Lakehouse/MarketplaceLakehouseHome.d.ts} +2 -2
- package/lib/pages/Lakehouse/MarketplaceLakehouseHome.d.ts.map +1 -0
- package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js +54 -0
- package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js.map +1 -0
- package/lib/{components/Lakehouse/MarketLakehouseStoreProvider.d.ts → pages/Lakehouse/MarketplaceLakehouseStoreProvider.d.ts} +1 -1
- package/lib/pages/Lakehouse/MarketplaceLakehouseStoreProvider.d.ts.map +1 -0
- package/lib/{components/Lakehouse/MarketLakehouseStoreProvider.js → pages/Lakehouse/MarketplaceLakehouseStoreProvider.js} +1 -1
- package/lib/pages/Lakehouse/MarketplaceLakehouseStoreProvider.js.map +1 -0
- package/lib/{components/Lakehouse/entitlements/LakehouseEntitlements.d.ts → pages/Lakehouse/entitlements/EntitlementsDashboard.d.ts} +6 -5
- package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.d.ts.map +1 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.js +194 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDashboard.js.map +1 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.d.ts +24 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.d.ts.map +1 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js +38 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js.map +1 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.d.ts +22 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.d.ts.map +1 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.js +23 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.js.map +1 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.d.ts +21 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.d.ts.map +1 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.js +32 -0
- package/lib/pages/Lakehouse/entitlements/EntitlementsTaskViewer.js.map +1 -0
- package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.d.ts +17 -0
- package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.d.ts.map +1 -0
- package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.js +55 -0
- package/lib/pages/Lakehouse/entitlements/LakehouseEntitlements.js.map +1 -0
- package/lib/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts.map +1 -0
- package/lib/pages/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js.map +1 -0
- package/lib/pages/Lakehouse/shared/GridItemViewer.d.ts +21 -0
- package/lib/pages/Lakehouse/shared/GridItemViewer.d.ts.map +1 -0
- package/lib/pages/Lakehouse/shared/GridItemViewer.js +46 -0
- package/lib/pages/Lakehouse/shared/GridItemViewer.js.map +1 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.d.ts +29 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.d.ts.map +1 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.js +152 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptions.js.map +1 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.d.ts +22 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.d.ts.map +1 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.js +34 -0
- package/lib/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.js.map +1 -0
- package/lib/pages/LegendMarketplacePage.d.ts +23 -0
- package/lib/pages/LegendMarketplacePage.d.ts.map +1 -0
- package/lib/pages/LegendMarketplacePage.js +23 -0
- package/lib/pages/LegendMarketplacePage.js.map +1 -0
- package/lib/pages/SearchResults/LegendMarketplaceSearchResults.d.ts.map +1 -1
- package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js +13 -13
- package/lib/pages/SearchResults/LegendMarketplaceSearchResults.js.map +1 -1
- package/lib/pages/VendorData/LegendMarketplaceVendorData.d.ts.map +1 -1
- package/lib/pages/VendorData/LegendMarketplaceVendorData.js +6 -6
- package/lib/pages/VendorData/LegendMarketplaceVendorData.js.map +1 -1
- package/lib/stores/LakehouseContractServerClient.d.ts +11 -4
- package/lib/stores/LakehouseContractServerClient.d.ts.map +1 -1
- package/lib/stores/LakehouseContractServerClient.js +21 -3
- package/lib/stores/LakehouseContractServerClient.js.map +1 -1
- package/lib/stores/LegendMarketplaceBaseStore.d.ts +3 -0
- package/lib/stores/LegendMarketplaceBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendMarketplaceBaseStore.js +8 -1
- package/lib/stores/LegendMarketplaceBaseStore.js.map +1 -1
- package/lib/stores/lakehouse/DataProductDataAccessState.d.ts +6 -7
- package/lib/stores/lakehouse/DataProductDataAccessState.d.ts.map +1 -1
- package/lib/stores/lakehouse/DataProductDataAccessState.js +47 -48
- package/lib/stores/lakehouse/DataProductDataAccessState.js.map +1 -1
- package/lib/stores/lakehouse/DataProductViewerState.d.ts +7 -3
- package/lib/stores/lakehouse/DataProductViewerState.d.ts.map +1 -1
- package/lib/stores/lakehouse/DataProductViewerState.js +51 -22
- package/lib/stores/lakehouse/DataProductViewerState.js.map +1 -1
- package/lib/stores/lakehouse/LakehouseUtils.d.ts +50 -0
- package/lib/stores/lakehouse/LakehouseUtils.d.ts.map +1 -0
- package/lib/stores/lakehouse/LakehouseUtils.js +267 -0
- package/lib/stores/lakehouse/LakehouseUtils.js.map +1 -0
- package/lib/stores/lakehouse/MarketplaceLakehouseStore.d.ts.map +1 -1
- package/lib/stores/lakehouse/MarketplaceLakehouseStore.js +9 -4
- package/lib/stores/lakehouse/MarketplaceLakehouseStore.js.map +1 -1
- package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts +31 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts.map +1 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js +110 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js.map +1 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.d.ts +30 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.d.ts.map +1 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js +65 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.js.map +1 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.d.ts +41 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.d.ts.map +1 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.js +146 -0
- package/lib/stores/lakehouse/entitlements/EntitlementsTaskViewerState.js.map +1 -0
- package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.d.ts +10 -32
- package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.d.ts.map +1 -1
- package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.js +49 -163
- package/lib/stores/lakehouse/entitlements/LakehouseEntitlementsStore.js.map +1 -1
- package/lib/stores/lakehouse/entitlements/LakehouseViewerState.d.ts +23 -0
- package/lib/stores/lakehouse/entitlements/LakehouseViewerState.d.ts.map +1 -0
- package/lib/stores/lakehouse/entitlements/LakehouseViewerState.js +24 -0
- package/lib/stores/lakehouse/entitlements/LakehouseViewerState.js.map +1 -0
- package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.d.ts +30 -0
- package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.d.ts.map +1 -0
- package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js +63 -0
- package/lib/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.js.map +1 -0
- package/package.json +5 -4
- package/src/__lib__/LegendMarketplaceNavigation.ts +16 -1
- package/src/application/LegendMarketplaceApplicationConfig.ts +25 -0
- package/src/application/LegendMarketplaceFrameworkProvider.tsx +2 -0
- package/src/application/LegendMarketplaceWebApplication.tsx +50 -12
- package/src/components/DataProductCard/LegendMarketplaceDataProductSearchCard.tsx +41 -33
- package/src/components/DataProductCard/LegendMarketplaceLightDataProductCard.tsx +33 -36
- package/src/components/{Lakehouse/LakehouseHeader.tsx → Header/MarketplaceLakehouseHeader.tsx} +7 -3
- package/src/components/MarketplaceCard/LegendMarketplaceCard.tsx +98 -0
- package/src/components/ProviderCard/LegendMarketplaceProviderCard.tsx +47 -39
- package/src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx +2 -14
- package/src/pages/Home/LegendMarketplaceHome.tsx +42 -51
- package/src/{components → pages}/Lakehouse/DataProductDataAccess.tsx +91 -12
- package/src/{components → pages}/Lakehouse/LakehouseDataProduct.tsx +14 -23
- package/src/pages/Lakehouse/MarketplaceLakehouseHome.tsx +167 -0
- package/src/pages/Lakehouse/entitlements/EntitlementsDashboard.tsx +390 -0
- package/src/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.tsx +99 -0
- package/src/pages/Lakehouse/entitlements/EntitlementsDataContractViewer.tsx +33 -0
- package/src/pages/Lakehouse/entitlements/EntitlementsTaskViewer.tsx +73 -0
- package/src/pages/Lakehouse/entitlements/LakehouseEntitlements.tsx +82 -0
- package/src/pages/Lakehouse/shared/GridItemViewer.tsx +105 -0
- package/src/pages/Lakehouse/subscriptions/LakehouseSubscriptions.tsx +358 -0
- package/src/pages/Lakehouse/subscriptions/LakehouseSubscriptionsStoreProvider.tsx +65 -0
- package/src/pages/LegendMarketplacePage.tsx +26 -0
- package/src/pages/SearchResults/LegendMarketplaceSearchResults.tsx +58 -65
- package/src/pages/VendorData/LegendMarketplaceVendorData.tsx +44 -42
- package/src/stores/LakehouseContractServerClient.ts +78 -10
- package/src/stores/LegendMarketplaceBaseStore.ts +16 -1
- package/src/stores/lakehouse/DataProductDataAccessState.ts +67 -63
- package/src/stores/lakehouse/DataProductViewerState.ts +86 -29
- package/src/stores/lakehouse/LakehouseUtils.ts +345 -0
- package/src/stores/lakehouse/MarketplaceLakehouseStore.ts +10 -6
- package/src/stores/lakehouse/entitlements/EntitlementsDashboardState.ts +167 -0
- package/src/stores/lakehouse/entitlements/EntitlementsDataContractViewerState.ts +101 -0
- package/src/stores/lakehouse/entitlements/EntitlementsTaskViewerState.ts +227 -0
- package/src/stores/lakehouse/entitlements/LakehouseEntitlementsStore.ts +69 -231
- package/src/stores/lakehouse/entitlements/LakehouseViewerState.ts +27 -0
- package/src/stores/lakehouse/subscriptions/LakehouseSubscriptionsStore.ts +100 -0
- package/tsconfig.json +26 -13
- package/lib/components/Lakehouse/DataProductDataAccess.d.ts.map +0 -1
- package/lib/components/Lakehouse/DataProductDataAccess.js.map +0 -1
- package/lib/components/Lakehouse/DataProductHolder.d.ts.map +0 -1
- package/lib/components/Lakehouse/DataProductHolder.js.map +0 -1
- package/lib/components/Lakehouse/DataProductViewer.d.ts.map +0 -1
- package/lib/components/Lakehouse/DataProductViewer.js.map +0 -1
- package/lib/components/Lakehouse/DataProductViewerActivityBar.d.ts.map +0 -1
- package/lib/components/Lakehouse/DataProductViewerActivityBar.js.map +0 -1
- package/lib/components/Lakehouse/DataProductWiki.d.ts.map +0 -1
- package/lib/components/Lakehouse/DataProductWiki.js.map +0 -1
- package/lib/components/Lakehouse/LakehouseDataProduct.d.ts.map +0 -1
- package/lib/components/Lakehouse/LakehouseDataProduct.js.map +0 -1
- package/lib/components/Lakehouse/LakehouseHeader.d.ts.map +0 -1
- package/lib/components/Lakehouse/LakehouseHeader.js.map +0 -1
- package/lib/components/Lakehouse/LakehouseMarketplace.d.ts.map +0 -1
- package/lib/components/Lakehouse/LakehouseMarketplace.js +0 -57
- package/lib/components/Lakehouse/LakehouseMarketplace.js.map +0 -1
- package/lib/components/Lakehouse/MarketLakehouseStoreProvider.d.ts.map +0 -1
- package/lib/components/Lakehouse/MarketLakehouseStoreProvider.js.map +0 -1
- package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.d.ts.map +0 -1
- package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.js +0 -147
- package/lib/components/Lakehouse/entitlements/LakehouseEntitlements.js.map +0 -1
- package/lib/components/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts.map +0 -1
- package/lib/components/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js.map +0 -1
- package/lib/stores/MarketplaceLakehouseServerClient.d.ts +0 -25
- package/lib/stores/MarketplaceLakehouseServerClient.d.ts.map +0 -1
- package/lib/stores/MarketplaceLakehouseServerClient.js +0 -27
- package/lib/stores/MarketplaceLakehouseServerClient.js.map +0 -1
- package/lib/stores/lakehouse/entitlements/DataContractState.d.ts +0 -27
- package/lib/stores/lakehouse/entitlements/DataContractState.d.ts.map +0 -1
- package/lib/stores/lakehouse/entitlements/DataContractState.js +0 -115
- package/lib/stores/lakehouse/entitlements/DataContractState.js.map +0 -1
- package/src/components/Lakehouse/LakehouseMarketplace.tsx +0 -193
- package/src/components/Lakehouse/entitlements/LakehouseEntitlements.tsx +0 -332
- package/src/stores/MarketplaceLakehouseServerClient.ts +0 -40
- package/src/stores/lakehouse/entitlements/DataContractState.ts +0 -131
- /package/lib/{components → pages}/Lakehouse/DataProductDataAccess.d.ts +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductHolder.d.ts +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductHolder.js +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductViewer.d.ts +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductViewer.js +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductViewerActivityBar.d.ts +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductViewerActivityBar.js +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductWiki.d.ts +0 -0
- /package/lib/{components → pages}/Lakehouse/DataProductWiki.js +0 -0
- /package/lib/{components → pages}/Lakehouse/LakehouseDataProduct.d.ts +0 -0
- /package/lib/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.d.ts +0 -0
- /package/lib/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.js +0 -0
- /package/src/{components → pages}/Lakehouse/DataProductHolder.tsx +0 -0
- /package/src/{components → pages}/Lakehouse/DataProductViewer.tsx +0 -0
- /package/src/{components → pages}/Lakehouse/DataProductViewerActivityBar.tsx +0 -0
- /package/src/{components → pages}/Lakehouse/DataProductWiki.tsx +0 -0
- /package/src/{components/Lakehouse/MarketLakehouseStoreProvider.tsx → pages/Lakehouse/MarketplaceLakehouseStoreProvider.tsx} +0 -0
- /package/src/{components → pages}/Lakehouse/entitlements/LakehouseEntitlementsStoreProvider.tsx +0 -0
|
@@ -25,6 +25,7 @@ import { flowResult } from 'mobx';
|
|
|
25
25
|
import { useApplicationStore } from '@finos/legend-application';
|
|
26
26
|
import {
|
|
27
27
|
BrowserEnvironmentProvider,
|
|
28
|
+
Outlet,
|
|
28
29
|
Route,
|
|
29
30
|
Routes,
|
|
30
31
|
} from '@finos/legend-application/browser';
|
|
@@ -33,8 +34,11 @@ import {
|
|
|
33
34
|
useLegendMarketplaceApplicationStore,
|
|
34
35
|
useLegendMarketplaceBaseStore,
|
|
35
36
|
} from './LegendMarketplaceFrameworkProvider.js';
|
|
36
|
-
import {
|
|
37
|
-
|
|
37
|
+
import {
|
|
38
|
+
isLakehouseRoute,
|
|
39
|
+
LEGEND_MARKETPLACE_ROUTE_PATTERN,
|
|
40
|
+
} from '../__lib__/LegendMarketplaceNavigation.js';
|
|
41
|
+
import { MarketplaceLakehouseHome } from '../pages/Lakehouse/MarketplaceLakehouseHome.js';
|
|
38
42
|
import { LegendMarketplaceHome } from '../pages/Home/LegendMarketplaceHome.js';
|
|
39
43
|
import { LegendMarketplaceSearchResults } from '../pages/SearchResults/LegendMarketplaceSearchResults.js';
|
|
40
44
|
import {
|
|
@@ -44,9 +48,13 @@ import {
|
|
|
44
48
|
} from 'react-oidc-context';
|
|
45
49
|
import type { User } from 'oidc-client-ts';
|
|
46
50
|
import type { LegendMarketplaceOidcConfig } from './LegendMarketplaceApplicationConfig.js';
|
|
47
|
-
import { LakehouseDataProduct } from '../
|
|
51
|
+
import { LakehouseDataProduct } from '../pages/Lakehouse/LakehouseDataProduct.js';
|
|
48
52
|
import { LegendMarketPlaceVendorData } from '../pages/VendorData/LegendMarketplaceVendorData.js';
|
|
49
|
-
import { LakehouseEntitlements } from '../
|
|
53
|
+
import { LakehouseEntitlements } from '../pages/Lakehouse/entitlements/LakehouseEntitlements.js';
|
|
54
|
+
import { LakehouseSubscriptions } from '../pages/Lakehouse/subscriptions/LakehouseSubscriptions.js';
|
|
55
|
+
import { LegendMarketplaceHeader } from '../components/Header/LegendMarketplaceHeader.js';
|
|
56
|
+
import { MarketplaceLakehouseHeader } from '../components/Header/MarketplaceLakehouseHeader.js';
|
|
57
|
+
import { LegendMarketplacePage } from '../pages/LegendMarketplacePage.js';
|
|
50
58
|
|
|
51
59
|
const NotFoundPage = observer(() => {
|
|
52
60
|
const applicationStore = useApplicationStore();
|
|
@@ -55,7 +63,7 @@ const NotFoundPage = observer(() => {
|
|
|
55
63
|
applicationStore.navigationService.navigator.getCurrentLocation();
|
|
56
64
|
|
|
57
65
|
return (
|
|
58
|
-
<
|
|
66
|
+
<LegendMarketplacePage className="legend-marketplace__not-found">
|
|
59
67
|
<div className="not-found-screen not-found-screen--no-documentation">
|
|
60
68
|
<div className="not-found-screen__icon">
|
|
61
69
|
<div className="not-found-screen__icon__ghost">
|
|
@@ -88,7 +96,7 @@ const NotFoundPage = observer(() => {
|
|
|
88
96
|
</div>
|
|
89
97
|
</div>
|
|
90
98
|
</div>
|
|
91
|
-
</
|
|
99
|
+
</LegendMarketplacePage>
|
|
92
100
|
);
|
|
93
101
|
});
|
|
94
102
|
|
|
@@ -103,7 +111,7 @@ export const LegendMarketplaceWebApplicationRouter = observer(() => {
|
|
|
103
111
|
}, [applicationStore, baseStore]);
|
|
104
112
|
|
|
105
113
|
const ProtectedLakehouseMarketplace = withAuthenticationRequired(
|
|
106
|
-
|
|
114
|
+
MarketplaceLakehouseHome,
|
|
107
115
|
{
|
|
108
116
|
OnRedirecting: () => (
|
|
109
117
|
<CubesLoadingIndicator isLoading={true}>
|
|
@@ -144,11 +152,38 @@ export const LegendMarketplaceWebApplicationRouter = observer(() => {
|
|
|
144
152
|
},
|
|
145
153
|
);
|
|
146
154
|
|
|
155
|
+
const ProtectedLakehouseSubscriptions = withAuthenticationRequired(
|
|
156
|
+
LakehouseSubscriptions,
|
|
157
|
+
{
|
|
158
|
+
OnRedirecting: () => (
|
|
159
|
+
<CubesLoadingIndicator isLoading={true}>
|
|
160
|
+
<CubesLoadingIndicatorIcon />
|
|
161
|
+
</CubesLoadingIndicator>
|
|
162
|
+
),
|
|
163
|
+
signinRedirectArgs: {
|
|
164
|
+
state: window.location.pathname,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
);
|
|
168
|
+
|
|
147
169
|
return (
|
|
148
170
|
<div className="app">
|
|
149
171
|
{baseStore.initState.hasCompleted && (
|
|
150
|
-
|
|
151
|
-
<
|
|
172
|
+
<Routes>
|
|
173
|
+
<Route
|
|
174
|
+
element={
|
|
175
|
+
<>
|
|
176
|
+
{isLakehouseRoute(
|
|
177
|
+
baseStore.applicationStore.navigationService.navigator.getCurrentLocation(),
|
|
178
|
+
) ? (
|
|
179
|
+
<MarketplaceLakehouseHeader />
|
|
180
|
+
) : (
|
|
181
|
+
<LegendMarketplaceHeader />
|
|
182
|
+
)}
|
|
183
|
+
<Outlet />
|
|
184
|
+
</>
|
|
185
|
+
}
|
|
186
|
+
>
|
|
152
187
|
<Route
|
|
153
188
|
path={LEGEND_MARKETPLACE_ROUTE_PATTERN.LAKEHOUSE_PRODUCT}
|
|
154
189
|
element={<ProtectedLakehouseDataProduct />}
|
|
@@ -169,7 +204,6 @@ export const LegendMarketplaceWebApplicationRouter = observer(() => {
|
|
|
169
204
|
path={LEGEND_MARKETPLACE_ROUTE_PATTERN.LAKEHOUSE_ENTITLEMENTS}
|
|
170
205
|
element={<ProtectedLakehouseEntitlements />}
|
|
171
206
|
/>
|
|
172
|
-
|
|
173
207
|
<Route
|
|
174
208
|
path={LEGEND_MARKETPLACE_ROUTE_PATTERN.LAKEHOUSE}
|
|
175
209
|
element={<ProtectedLakehouseMarketplace />}
|
|
@@ -186,9 +220,13 @@ export const LegendMarketplaceWebApplicationRouter = observer(() => {
|
|
|
186
220
|
path={LEGEND_MARKETPLACE_ROUTE_PATTERN.VENDOR_DATA}
|
|
187
221
|
element={<LegendMarketPlaceVendorData />}
|
|
188
222
|
/>
|
|
223
|
+
<Route
|
|
224
|
+
path={LEGEND_MARKETPLACE_ROUTE_PATTERN.LAKEHOUSE_SUBSCRIPTIONS}
|
|
225
|
+
element={<ProtectedLakehouseSubscriptions />}
|
|
226
|
+
/>
|
|
189
227
|
<Route path="*" element={<NotFoundPage />} />
|
|
190
|
-
</
|
|
191
|
-
|
|
228
|
+
</Route>
|
|
229
|
+
</Routes>
|
|
192
230
|
)}
|
|
193
231
|
</div>
|
|
194
232
|
);
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { type JSX } from 'react';
|
|
18
|
-
import { Button
|
|
18
|
+
import { Button } from '@mui/material';
|
|
19
19
|
import type { DataProductSearchResult } from '@finos/legend-server-marketplace';
|
|
20
20
|
import DOMPurify from 'dompurify';
|
|
21
|
+
import { LegendMarketplaceCard } from '../MarketplaceCard/LegendMarketplaceCard.js';
|
|
21
22
|
|
|
22
23
|
const MAX_DESCRIPTION_LENGTH = 250;
|
|
23
24
|
|
|
@@ -42,40 +43,47 @@ export const LegendMarketplaceProductSearchCard = (props: {
|
|
|
42
43
|
: DOMPurify.sanitize(productSearchResult.data_product_description),
|
|
43
44
|
};
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<
|
|
46
|
+
const content = (
|
|
47
|
+
<>
|
|
48
|
+
<div className="legend-marketplace-product-search-result-card__vendor-name">
|
|
49
|
+
{productSearchResult.vendor_name}
|
|
50
|
+
</div>
|
|
51
|
+
<div className="legend-marketplace-product-search-result-card__data-product-name">
|
|
52
|
+
{productSearchResult.data_product_name}
|
|
53
|
+
</div>
|
|
54
|
+
<div className="legend-marketplace-product-search-result-card__data-product-description">
|
|
55
|
+
{productSearchResult.data_product_description.length > 0 && (
|
|
56
|
+
<div dangerouslySetInnerHTML={descriptionHTML} />
|
|
57
|
+
)}
|
|
58
|
+
</div>
|
|
59
|
+
</>
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
const actions = (
|
|
63
|
+
<>
|
|
64
|
+
<Button
|
|
65
|
+
variant="outlined"
|
|
66
|
+
onClick={() => onPreviewClick(productSearchResult)}
|
|
67
|
+
>
|
|
68
|
+
Preview
|
|
69
|
+
</Button>
|
|
70
|
+
{productSearchResult.data_product_link && (
|
|
64
71
|
<Button
|
|
65
|
-
variant="
|
|
66
|
-
onClick={() =>
|
|
72
|
+
variant="contained"
|
|
73
|
+
onClick={() => onLearnMoreClick(productSearchResult)}
|
|
67
74
|
>
|
|
68
|
-
|
|
75
|
+
Learn More
|
|
69
76
|
</Button>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
)}
|
|
78
|
+
</>
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<LegendMarketplaceCard
|
|
83
|
+
size="large"
|
|
84
|
+
content={content}
|
|
85
|
+
actions={actions}
|
|
86
|
+
className="legend-marketplace-product-search-result-card"
|
|
87
|
+
/>
|
|
80
88
|
);
|
|
81
89
|
};
|
|
@@ -15,50 +15,47 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { type JSX } from 'react';
|
|
18
|
-
import {
|
|
18
|
+
import { Chip } from '@mui/material';
|
|
19
19
|
import { clsx } from '@finos/legend-art';
|
|
20
20
|
import type { LightDataProduct } from '@finos/legend-server-marketplace';
|
|
21
|
+
import { LegendMarketplaceCard } from '../MarketplaceCard/LegendMarketplaceCard.js';
|
|
21
22
|
|
|
22
23
|
export const LegendMarketplaceLightDataProductCard = (props: {
|
|
23
24
|
dataAsset: LightDataProduct;
|
|
24
25
|
onClick: (dataAsset: LightDataProduct) => void;
|
|
25
26
|
}): JSX.Element => {
|
|
26
27
|
const { dataAsset, onClick } = props;
|
|
28
|
+
|
|
29
|
+
const content = (
|
|
30
|
+
<>
|
|
31
|
+
<Chip
|
|
32
|
+
label={dataAsset.type}
|
|
33
|
+
className={clsx('legend-marketplace-light-data-product-card__type', {
|
|
34
|
+
'legend-marketplace-light-data-product-card__type--vendor':
|
|
35
|
+
dataAsset.type === 'vendor',
|
|
36
|
+
'legend-marketplace-light-data-product-card__type--curated':
|
|
37
|
+
dataAsset.type === 'curated',
|
|
38
|
+
})}
|
|
39
|
+
/>
|
|
40
|
+
<div className="legend-marketplace-light-data-product-card__name">
|
|
41
|
+
{dataAsset.provider}
|
|
42
|
+
</div>
|
|
43
|
+
<div className="legend-marketplace-light-data-product-card__description">
|
|
44
|
+
{dataAsset.description}
|
|
45
|
+
</div>
|
|
46
|
+
</>
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
const moreInfo = dataAsset.moreInfo ? (
|
|
50
|
+
<div>{dataAsset.moreInfo}</div>
|
|
51
|
+
) : undefined;
|
|
52
|
+
|
|
27
53
|
return (
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
sx={{ height: '100%' }}
|
|
35
|
-
>
|
|
36
|
-
<CardContent className="legend-marketplace-light-data-product-card__content">
|
|
37
|
-
<Chip
|
|
38
|
-
label={dataAsset.type}
|
|
39
|
-
className={clsx(
|
|
40
|
-
'legend-marketplace-light-data-product-card__type',
|
|
41
|
-
{
|
|
42
|
-
'legend-marketplace-light-data-product-card__type--vendor':
|
|
43
|
-
dataAsset.type === 'vendor',
|
|
44
|
-
'legend-marketplace-light-data-product-card__type--curated':
|
|
45
|
-
dataAsset.type === 'curated',
|
|
46
|
-
},
|
|
47
|
-
)}
|
|
48
|
-
/>
|
|
49
|
-
<div className="legend-marketplace-light-data-product-card__name">
|
|
50
|
-
{dataAsset.provider}
|
|
51
|
-
</div>
|
|
52
|
-
<div className="legend-marketplace-light-data-product-card__description">
|
|
53
|
-
{dataAsset.description}
|
|
54
|
-
</div>
|
|
55
|
-
</CardContent>
|
|
56
|
-
{dataAsset.moreInfo.length > 0 && (
|
|
57
|
-
<CardContent className="legend-marketplace-light-data-product-card__more-info">
|
|
58
|
-
<div>{dataAsset.moreInfo}</div>
|
|
59
|
-
</CardContent>
|
|
60
|
-
)}
|
|
61
|
-
</CardActionArea>
|
|
62
|
-
</Card>
|
|
54
|
+
<LegendMarketplaceCard
|
|
55
|
+
size="small"
|
|
56
|
+
content={content}
|
|
57
|
+
onClick={() => onClick(dataAsset)}
|
|
58
|
+
moreInfo={moreInfo}
|
|
59
|
+
/>
|
|
63
60
|
);
|
|
64
61
|
};
|
package/src/components/{Lakehouse/LakehouseHeader.tsx → Header/MarketplaceLakehouseHeader.tsx}
RENAMED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
MenuContentItem,
|
|
24
24
|
MenuIcon,
|
|
25
25
|
} from '@finos/legend-art';
|
|
26
|
-
import { LegendMarketplaceAppInfo } from '
|
|
26
|
+
import { LegendMarketplaceAppInfo } from '../../components/Header/LegendMarketplaceAppInfo.js';
|
|
27
27
|
import { useState } from 'react';
|
|
28
28
|
|
|
29
29
|
const LakehouseHeaderMenu = observer(() => {
|
|
@@ -63,6 +63,10 @@ const LakehousePlaceHeaderTabs = observer(() => {
|
|
|
63
63
|
title: 'Entitlements',
|
|
64
64
|
urlRoute: LEGEND_MARKETPLACE_ROUTE_PATTERN.LAKEHOUSE_ENTITLEMENTS,
|
|
65
65
|
},
|
|
66
|
+
{
|
|
67
|
+
title: 'Subscriptions',
|
|
68
|
+
urlRoute: LEGEND_MARKETPLACE_ROUTE_PATTERN.LAKEHOUSE_SUBSCRIPTIONS,
|
|
69
|
+
},
|
|
66
70
|
];
|
|
67
71
|
const navigateToPage = (route: string): void => {
|
|
68
72
|
applicationStore.navigationService.navigator.goToLocation(route);
|
|
@@ -83,7 +87,7 @@ const LakehousePlaceHeaderTabs = observer(() => {
|
|
|
83
87
|
);
|
|
84
88
|
});
|
|
85
89
|
|
|
86
|
-
export const
|
|
90
|
+
export const MarketplaceLakehouseHeader = observer(() => {
|
|
87
91
|
const applicationStore = useApplicationStore();
|
|
88
92
|
|
|
89
93
|
const navigateToHome = (): void => {
|
|
@@ -99,7 +103,7 @@ export const LakehouseMarketplaceHeader = observer(() => {
|
|
|
99
103
|
className="legend-marketplace-header__name"
|
|
100
104
|
onClick={() => navigateToHome()}
|
|
101
105
|
>
|
|
102
|
-
Legend
|
|
106
|
+
Legend Lakehouse
|
|
103
107
|
</div>
|
|
104
108
|
<LakehousePlaceHeaderTabs />
|
|
105
109
|
</div>
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { useRef, useState, type JSX } from 'react';
|
|
18
|
+
import {
|
|
19
|
+
Card,
|
|
20
|
+
CardActionArea,
|
|
21
|
+
CardActions,
|
|
22
|
+
CardContent,
|
|
23
|
+
Slide,
|
|
24
|
+
} from '@mui/material';
|
|
25
|
+
import { clsx } from '@finos/legend-art';
|
|
26
|
+
|
|
27
|
+
export const LegendMarketplaceCard = (props: {
|
|
28
|
+
content: JSX.Element;
|
|
29
|
+
size: 'small' | 'large';
|
|
30
|
+
actions?: JSX.Element;
|
|
31
|
+
onClick?: () => void;
|
|
32
|
+
moreInfo?: JSX.Element | undefined;
|
|
33
|
+
className?: string;
|
|
34
|
+
}): JSX.Element => {
|
|
35
|
+
const { content, size, actions, onClick, moreInfo, className } = props;
|
|
36
|
+
|
|
37
|
+
const [isMouseOver, setIsMouseOver] = useState(false);
|
|
38
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
39
|
+
|
|
40
|
+
const CardContentComponent = (
|
|
41
|
+
<>
|
|
42
|
+
<CardContent
|
|
43
|
+
className={clsx('legend-marketplace-card__content', {
|
|
44
|
+
'legend-marketplace-card__content--with-actions':
|
|
45
|
+
actions !== undefined,
|
|
46
|
+
})}
|
|
47
|
+
>
|
|
48
|
+
{content}
|
|
49
|
+
</CardContent>
|
|
50
|
+
{actions && (
|
|
51
|
+
<CardActions className="legend-marketplace-card__actions">
|
|
52
|
+
{actions}
|
|
53
|
+
</CardActions>
|
|
54
|
+
)}
|
|
55
|
+
{moreInfo && (
|
|
56
|
+
<Slide direction="up" in={isMouseOver} container={containerRef.current}>
|
|
57
|
+
<CardContent className="legend-marketplace-card__more-info">
|
|
58
|
+
{moreInfo}
|
|
59
|
+
</CardContent>
|
|
60
|
+
</Slide>
|
|
61
|
+
)}
|
|
62
|
+
</>
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<Card
|
|
67
|
+
variant="outlined"
|
|
68
|
+
className={clsx(
|
|
69
|
+
'legend-marketplace-card',
|
|
70
|
+
{
|
|
71
|
+
'legend-marketplace-card--small': size === 'small',
|
|
72
|
+
'legend-marketplace-card--large': size === 'large',
|
|
73
|
+
},
|
|
74
|
+
className,
|
|
75
|
+
)}
|
|
76
|
+
ref={containerRef}
|
|
77
|
+
>
|
|
78
|
+
{onClick ? (
|
|
79
|
+
<CardActionArea
|
|
80
|
+
onClick={onClick}
|
|
81
|
+
onMouseEnter={() => setIsMouseOver(true)}
|
|
82
|
+
onMouseLeave={() => setIsMouseOver(false)}
|
|
83
|
+
className="legend-marketplace-card__content-container"
|
|
84
|
+
>
|
|
85
|
+
{CardContentComponent}
|
|
86
|
+
</CardActionArea>
|
|
87
|
+
) : (
|
|
88
|
+
<div
|
|
89
|
+
onMouseEnter={() => setIsMouseOver(true)}
|
|
90
|
+
onMouseLeave={() => setIsMouseOver(false)}
|
|
91
|
+
className="legend-marketplace-card__content-container"
|
|
92
|
+
>
|
|
93
|
+
{CardContentComponent}
|
|
94
|
+
</div>
|
|
95
|
+
)}
|
|
96
|
+
</Card>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
@@ -15,53 +15,61 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { type JSX } from 'react';
|
|
18
|
-
import { Button,
|
|
18
|
+
import { Button, Chip } from '@mui/material';
|
|
19
19
|
import type { ProviderResult } from '@finos/legend-server-marketplace';
|
|
20
20
|
import { CheckCircleIcon, ShoppingCartIcon } from '@finos/legend-art';
|
|
21
|
+
import { LegendMarketplaceCard } from '../MarketplaceCard/LegendMarketplaceCard.js';
|
|
21
22
|
|
|
22
23
|
export const LegendMarketplaceProviderCard = (props: {
|
|
23
24
|
providerResult: ProviderResult;
|
|
24
25
|
onAddToCartClick: (providerResult: ProviderResult) => void;
|
|
25
26
|
}): JSX.Element => {
|
|
26
27
|
const { providerResult, onAddToCartClick } = props;
|
|
28
|
+
|
|
29
|
+
const content = (
|
|
30
|
+
<>
|
|
31
|
+
<div className="legend-marketplace-vendor-data-card__vendor-name">
|
|
32
|
+
{providerResult.providerName}
|
|
33
|
+
</div>
|
|
34
|
+
<div className="legend-marketplace-vendor-data-card__product-name">
|
|
35
|
+
{providerResult.productName || 'N/A'}
|
|
36
|
+
</div>
|
|
37
|
+
<div className="legend-marketplace-vendor-data-card__vendor-name__description">
|
|
38
|
+
{providerResult.description}
|
|
39
|
+
</div>
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
const actions = providerResult.isOwned ? (
|
|
44
|
+
<div className="legend-marketplace-vendor-data-card__vendor-name__owned">
|
|
45
|
+
Already have access <CheckCircleIcon />
|
|
46
|
+
</div>
|
|
47
|
+
) : (
|
|
48
|
+
<>
|
|
49
|
+
<Button
|
|
50
|
+
variant="outlined"
|
|
51
|
+
className="legend-marketplace-vendor-data-card__add-to-cart-button"
|
|
52
|
+
onClick={() => onAddToCartClick(providerResult)}
|
|
53
|
+
>
|
|
54
|
+
Add to cart
|
|
55
|
+
<ShoppingCartIcon />
|
|
56
|
+
</Button>
|
|
57
|
+
{typeof providerResult.price === 'number' && (
|
|
58
|
+
<Chip
|
|
59
|
+
label={`$${providerResult.price.toFixed(2)} per month`}
|
|
60
|
+
className="legend-marketplace-vendor-data-card__price"
|
|
61
|
+
sx={{ color: 'white', backgroundColor: '#077d55' }}
|
|
62
|
+
/>
|
|
63
|
+
)}
|
|
64
|
+
</>
|
|
65
|
+
);
|
|
66
|
+
|
|
27
67
|
return (
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{providerResult.productName || 'N/A'}
|
|
35
|
-
</div>
|
|
36
|
-
<div className="legend-marketplace-vendor-data-card__vendor-name__description">
|
|
37
|
-
{providerResult.description}
|
|
38
|
-
</div>
|
|
39
|
-
</CardContent>
|
|
40
|
-
<CardActions className="legend-marketplace-vendor-data-card-button-group">
|
|
41
|
-
{providerResult.isOwned ? (
|
|
42
|
-
<div className="legend-marketplace-vendor-data-card__vendor-name__owned">
|
|
43
|
-
Already have access <CheckCircleIcon />
|
|
44
|
-
</div>
|
|
45
|
-
) : (
|
|
46
|
-
<>
|
|
47
|
-
<Button
|
|
48
|
-
variant="outlined"
|
|
49
|
-
className="vendor-data-card-add-to-cart-button"
|
|
50
|
-
onClick={() => onAddToCartClick(providerResult)}
|
|
51
|
-
>
|
|
52
|
-
Add to cart
|
|
53
|
-
<ShoppingCartIcon />
|
|
54
|
-
</Button>
|
|
55
|
-
{typeof providerResult.price === 'number' && (
|
|
56
|
-
<Chip
|
|
57
|
-
label={`$${providerResult.price.toFixed(2)} per month`}
|
|
58
|
-
className="legend-marketplace-vendor-data-card-button-group__price"
|
|
59
|
-
sx={{ color: 'white', backgroundColor: '#077d55' }}
|
|
60
|
-
/>
|
|
61
|
-
)}
|
|
62
|
-
</>
|
|
63
|
-
)}
|
|
64
|
-
</CardActions>
|
|
65
|
-
</Card>
|
|
68
|
+
<LegendMarketplaceCard
|
|
69
|
+
size="large"
|
|
70
|
+
content={content}
|
|
71
|
+
actions={actions}
|
|
72
|
+
className="legend-marketplace-vendor-data-card"
|
|
73
|
+
/>
|
|
66
74
|
);
|
|
67
75
|
};
|
|
@@ -22,20 +22,17 @@ import {
|
|
|
22
22
|
ApplicationStoreProvider,
|
|
23
23
|
} from '@finos/legend-application';
|
|
24
24
|
import { TEST__BrowserEnvironmentProvider } from '@finos/legend-application/test';
|
|
25
|
-
import { Route, Routes } from '@finos/legend-application/browser';
|
|
26
25
|
import {
|
|
27
26
|
type LegendMarketplaceApplicationStore,
|
|
28
27
|
LegendMarketplaceBaseStore,
|
|
29
28
|
} from '../../stores/LegendMarketplaceBaseStore.js';
|
|
30
|
-
import { LEGEND_MARKETPLACE_ROUTE_PATTERN } from '../../__lib__/LegendMarketplaceNavigation.js';
|
|
31
|
-
import { LegendMarketplaceHome } from '../../pages/Home/LegendMarketplaceHome.js';
|
|
32
29
|
import { LEGEND_MARKETPLACE_TEST_ID } from '../../__lib__/LegendMarketplaceTesting.js';
|
|
33
30
|
import { LegendMarketplacePluginManager } from '../../application/LegendMarketplacePluginManager.js';
|
|
34
31
|
import { Core_LegendMarketplaceApplicationPlugin } from '../../application/extensions/Core_LegendMarketplaceApplicationPlugin.js';
|
|
35
32
|
import { TEST__getTestLegendMarketplaceApplicationConfig } from '../../application/__test-utils__/LegendMarketplaceApplicationTestUtils.js';
|
|
36
33
|
import { LegendMarketplaceFrameworkProvider } from '../../application/LegendMarketplaceFrameworkProvider.js';
|
|
37
34
|
import searchResults from './TEST_DATA__SearchResults.json' with { type: 'json' };
|
|
38
|
-
import {
|
|
35
|
+
import { LegendMarketplaceWebApplicationRouter } from '../../application/LegendMarketplaceWebApplication.js';
|
|
39
36
|
|
|
40
37
|
export const TEST__provideMockedLegendMarketplaceBaseStore =
|
|
41
38
|
async (customization?: {
|
|
@@ -86,16 +83,7 @@ export const TEST__setUpMarketplace = async (
|
|
|
86
83
|
<ApplicationStoreProvider store={MOCK__store.applicationStore}>
|
|
87
84
|
<TEST__BrowserEnvironmentProvider initialEntries={[route ?? '/']}>
|
|
88
85
|
<LegendMarketplaceFrameworkProvider>
|
|
89
|
-
<
|
|
90
|
-
<Route
|
|
91
|
-
path={LEGEND_MARKETPLACE_ROUTE_PATTERN.DEFAULT}
|
|
92
|
-
element={<LegendMarketplaceHome />}
|
|
93
|
-
/>
|
|
94
|
-
<Route
|
|
95
|
-
path={LEGEND_MARKETPLACE_ROUTE_PATTERN.SEARCH_RESULTS}
|
|
96
|
-
element={<LegendMarketplaceSearchResults />}
|
|
97
|
-
/>
|
|
98
|
-
</Routes>
|
|
86
|
+
<LegendMarketplaceWebApplicationRouter />
|
|
99
87
|
</LegendMarketplaceFrameworkProvider>
|
|
100
88
|
</TEST__BrowserEnvironmentProvider>
|
|
101
89
|
</ApplicationStoreProvider>,
|