-
Notifications
You must be signed in to change notification settings - Fork 392
upcoming: [UIE-9814] - Implement the main product grid with category grouping and load more functionality #13267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
…grouping and load more functionality
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/MarketplaceLanding.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/MarketplaceLanding.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/MarketplaceLanding.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/MarketplaceLanding.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/MarketplaceLanding.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySectionView.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/MarketplaceLanding.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Outdated
Show resolved
Hide resolved
|
Hi guys @harsh-akamai @tvijay-akamai A few comments from my side:
|
dwiley-akamai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const LOAD_MORE_INCREMENT = 6; | ||
|
|
||
| export interface GlobalFilters { | ||
| categortId?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| categortId?: number; | |
| categoryId?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Addressed this. I've also added the unit tests 🚀
|
Hey @harsh-akamai, @tvijay-akamai Looks much, much better - thank you! I think from my comments above, only points 3 (type tag typography) and 4 (hover shadow) are left. I’m really glad to see margins on tablet and mobile! Please just check the card height on tablet and mobile. In Figma, we have 320px height on tablet and 300px on mobile. |
|
Addressed the remanining points in 9e5c270 |
packages/manager/src/features/Marketplace/MarketplaceLanding/MarketplaceLanding.tsx
Show resolved
Hide resolved
packages/manager/src/features/Marketplace/MarketplaceLanding/CategorySection.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Purvesh Makode <[email protected]>
pmakode-akamai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good to me. thank you!
| const shouldFetchMore = | ||
| !isFetchingNextPage && | ||
| products.length > 0 && | ||
| displayCount >= products.length && | ||
| products.length < category.products_count; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering if we should also add a hasNextPage check from useInfiniteMarketplaceProductsQuery
Cloud Manager UI test results🔺 1 failing test on test run #16 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: pnpm cy:run -s "cypress/e2e/core/linodes/clone-linode.spec.ts" |
|||||||||||||||||
| data: categories, | ||
| error, | ||
| isLoading, | ||
| } = useAllMarketplaceCategoriesQuery({}, {}, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } = useAllMarketplaceCategoriesQuery({}, {}, true); | |
| } = useAllMarketplaceCategoriesQuery({}, {}, isMarketplaceV2FeatureEnabled); |
Let's pass a flag instead of a hardcoded value here before merging this PR






Description 📝
Implement the main product grid with category grouping and load more functionality
Changes 🔄
Scope 🚢
Upon production release, changes in this PR will be visible to:
Preview 📷
How to test 🧪
Prerequisites
MarketplaceV2feature flagVerification steps
(How to verify changes)
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅