feat(medusa, admin-ui): increase tree depth + scope categories on store + allow categories relation in products API (#3450)

What:
- increase tree depth in react nestable
- scope categories on store queries
- allow categories relation in products API

RESOLVES CORE-1238
RESOLVES CORE-1237
RESOLVES CORE-1236
This commit is contained in:
Riqwan Thamir
2023-03-13 18:30:21 +01:00
committed by GitHub
parent 85640475e5
commit 2f42ed35d6
22 changed files with 720 additions and 432 deletions

View File

@@ -78,6 +78,10 @@ function ProductCategoriesList(props: ProductCategoriesListProps) {
items={categories}
onChange={onItemDrop}
childrenProp="category_children"
// Adding an unreasonably high number here to prevent us from
// setting a hard limit on category depth. This should be decided upon
// by consumers of medusa after considering the pros and cons to the approach
maxDepth={99}
renderItem={({ item, depth, handler, collapseIcon }) => (
<ProductCategoryListItemDetails
item={item}