Rebuild organize imports: move furniture between categories, 500-item cap
CI / check (push) Failing after 5m12s
CI / preflight (push) Skipped
CI / deploy (push) Skipped
CI / publish-container (push) Skipped

This commit is contained in:
openhands committed 2026-09-14 18:24:48 +02:00
1 parent 67430e7e9d
commit 644d53ca16
28 files changed
+578 -224

No files matched your search

+8 -7
View File
@@ -210,6 +210,7 @@ export const GET = withAdmin(
// then we can use the extra fields in the returned groups.
const sugItems = items.map((it) => ({
id: it.itemId,
itemId: it.itemId,
itemName: it.itemName,
publicName: it.publicName,
type: it.type,
@@ -217,6 +218,7 @@ export const GET = withAdmin(
interactionType: it.interactionType,
alreadyPlaced: it.alreadyPlaced,
catalogItemId: it.catalogItemId,
sourcePageCaption: it.sourcePageCaption,
})) as SugFurniEntryExtra[];
const groups = groupSuggestedCategories(sugItems).map((g) => {
const moved = g.items.filter((i) => i.alreadyPlaced).length;
@@ -227,17 +229,16 @@ export const GET = withAdmin(
total: g.items.length,
moved,
added: g.items.length - moved,
thumbs: g.items.slice(0, 12).map((i) => ({
itemName: i.itemName,
publicName: i.publicName,
spriteId: i.spriteId,
alreadyPlaced: i.alreadyPlaced,
sourcePageCaption: i.sourcePageCaption,
})),
items: g.items.map((i) => ({
itemId: i.itemId,
catalogItemId: i.catalogItemId,
alreadyPlaced: i.alreadyPlaced,
itemName: i.itemName,
publicName: i.publicName,
spriteId: i.spriteId,
type: i.type,
interactionType: i.interactionType,
sourcePageCaption: i.sourcePageCaption ?? null,
})),
};
});