feat(catalog): add auto-category wizard with live preview and smart suggestions
- Add AutoCategoryDialog: pick furni (or empty page), suggest caption/icon/layout, live preview - Add createAutoCategory server action (page + offers in one export) with CatalogKind - Extend furni search API with interactionType - Share ShopTile and refactor inline-editor/items-shop-preview to use it - Add suggestion heuristics (suggestCategoryName/dIcon/layout) with tests - Add autoCategory translations (en/nl)
This commit is contained in:
1 parent
baeb54aeb5
commit
f832479e52
14 files changed
+2577
-567
No files matched your search
@@ -43,6 +43,7 @@ export const GET = withAdmin(
|
||||
publicName: ItemsBase.publicName,
|
||||
type: ItemsBase.type,
|
||||
spriteId: ItemsBase.spriteId,
|
||||
interactionType: ItemsBase.interactionType,
|
||||
})
|
||||
.from(ItemsBase)
|
||||
.where(or(...conditions))
|
||||
@@ -56,6 +57,7 @@ export const GET = withAdmin(
|
||||
publicName: r.publicName ?? "",
|
||||
type: r.type ?? "s",
|
||||
spriteId: r.spriteId ?? 0,
|
||||
interactionType: r.interactionType ?? "default",
|
||||
})),
|
||||
});
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user