Remap occupied furniture IDs during Catalog Studio imports

This commit is contained in:
Simo committed 2026-09-05 13:51:29 +02:00
1 parent 9f791ba284
commit 9dc6b8a261
6 files changed
+206 -9

No files matched your search

@@ -143,7 +143,9 @@ export function FurnitureComparison({
</div>
<p className="text-xs text-[var(--admin-text-muted)]">
Source values are compared with local data. Import may remap IDs and
translate names; existing SQL items are skipped by this import flow.
translate names. Existing furniture keeps its local IDs and SQL
settings; new furniture receives a free local ID when the source ID is
occupied.
</p>
<details>
<summary className="cursor-pointer font-medium">
@@ -720,6 +720,8 @@ export function StudioClient({
}
fetchStats();
const parts = [`${item.classname} imported into the catalog`];
if (data.itemId && data.itemId !== item.id)
parts.push(`Local ID: ${data.itemId} (source: ${item.id})`);
if (typeof data.furniDataFixedIds === "number") {
parts.push(
`verified: ${data.offerIdsFixed} offer_id, ${data.furniDataFixedIds} furnidata id`,