feat(catalog): SSR stats in Visual Manager, honest deletes, newPageParent

Pass DB totals into StatsBar, mirror Catalog Structure delete copy, and open New Page with ?newPageParent= for shop and BC.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-18 21:14:55 +02:00
1 parent b7fd19b6d9
commit 8d1cf86105
7 files changed
+118 -38

No files matched your search

+2 -2
View File
@@ -728,7 +728,7 @@ function TreeItem({
e.stopPropagation();
router.push(
catalogType === "bc"
? `/admin/catalog/builder-club/${node.id}`
? `/admin/catalog?catalog=bc&newPageParent=${node.id}`
: `/admin/catalog?newPageParent=${node.id}`,
);
}}
@@ -872,7 +872,7 @@ function TreeItem({
onClick={() =>
router.push(
catalogType === "bc"
? `/admin/catalog/builder-club/${node.id}`
? `/admin/catalog?catalog=bc&newPageParent=${node.id}`
: `/admin/catalog?newPageParent=${node.id}`,
)
}