From 752badd361408b26b622a84be648088a367a8a4b Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sat, 6 Jun 2026 14:21:43 +0200 Subject: [PATCH] feat(furni-editor): compact permissions + upgraded meta chips - Merge the lone Inventory permission (allowInventoryStack) into the Gameplay group, dropping the separate Inventory header+row to save vertical space. - Rework the header meta row: ID/Sprite as label+monospace-value pills, 'in use' tinted green with a dot when placed instances exist (grey at 0), 'Unsaved' as an amber pill with a dot. --- .../views/FurniEditorEditView.tsx | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/components/furni-editor/views/FurniEditorEditView.tsx b/src/components/furni-editor/views/FurniEditorEditView.tsx index ca434e0..636afd2 100644 --- a/src/components/furni-editor/views/FurniEditorEditView.tsx +++ b/src/components/furni-editor/views/FurniEditorEditView.tsx @@ -23,9 +23,8 @@ const FIELD_TIPS: Record = { }; const PERM_GROUPS = [ - { label: 'Gameplay', keys: [ 'allowStack', 'allowWalk', 'allowSit', 'allowLay' ] }, + { label: 'Gameplay', keys: [ 'allowStack', 'allowWalk', 'allowSit', 'allowLay', 'allowInventoryStack' ] }, { label: 'Trading', keys: [ 'allowGift', 'allowTrade', 'allowRecycle', 'allowMarketplaceSell' ] }, - { label: 'Inventory', keys: [ 'allowInventoryStack' ] }, ]; interface SectionProps { title: string; children: React.ReactNode; defaultOpen?: boolean } @@ -267,10 +266,22 @@ export const FurniEditorEditView: FC = props => { furniName || form.publicName || form.itemName } { form.itemName } - ID { item.id } - Sprite { item.spriteId } - { item.usageCount } in use - { isDirty && Unsaved } + + ID + { item.id } + + + Sprite + { item.spriteId } + + 0 ? 'border-[#a7f3d0] bg-[#ecfdf5] text-[#047857]' : 'border-slate-200 bg-slate-50 text-slate-500' }` }> + 0 ? 'bg-[#10b981]' : 'bg-slate-300' }` } /> + { item.usageCount } in use + + { isDirty && + + Unsaved + }