feat(furni-editor): 'Import from Habbo' button to fetch official texts

useFurniEditor gains importText(id) + importResult (10049 round-trip); the
edit view shows an 'Import from Habbo' button that fills Display Name/
Description with the official text for review before Save (nonce-guarded,
classname-matched), with an inline result note.
This commit is contained in:
simoleo89
2026-06-06 15:26:24 +02:00
parent 08976f0ab4
commit 3d1f1103a3
3 changed files with 69 additions and 5 deletions
@@ -19,7 +19,7 @@ export const FurniEditorView: FC<{}> = () =>
selectedItem, setSelectedItem, furniDataEntry,
interactions,
searchItems, loadDetail, loadBySpriteId, updateItem, deleteItem, loadInteractions,
updateFurnidata, revertFurnidata
updateFurnidata, revertFurnidata, importText, importResult
} = useFurniEditor();
const isMod = useHasPermission('acc_catalogfurni');
@@ -158,6 +158,8 @@ export const FurniEditorView: FC<{}> = () =>
onBack={ handleBack }
onUpdateFurnidata={ updateFurnidata }
onRevertFurnidata={ revertFurnidata }
onImportText={ importText }
importResult={ importResult }
/>
}