You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the resource editor's JSON pane, all three header buttons are currently bunched together on the right. Split them: Collapse all and Expand all belong next to the "JSON" heading on the left, and Edit raw should sit alone on the right.
Current markup
crates/ui/templates/partials/editor-body.html:31-38 puts all three in one .card-head__tools container:
.card-head is display: flex; justify-content: space-between (crates/ui/assets/app.css:2948-2955), so the heading pins left and the single tools group pins right.
The two fold controls read as operations on the JSON view and belong with it; "Edit raw" is a mode switch and deserves the visual separation.
Notes for whoever picks this up
No JS changes needed. Both click handlers are delegated from the editor body container — crates/ui/assets/resources.js:93-97 (modal) and crates/ui/assets/editor.js:233-262 (standalone page) — and match on [data-json-fold] / #editor-json-edit, not on DOM position. Moving the buttons inside the same container is safe.
.card-head is shared. It's also used by the Guided form header in the same fragment (editor-body.html:66), by pages/batch.html:33,77, and by pages/editor.html:56. Prefer a modifier or an extra wrapper over changing .card-head's own flex rules, so the other four headers don't shift.
The fragment renders in two places — the standalone /ui/editor page and the Resources edit modal — so check both; the modal pane is narrower and is where crowding shows first.
Summary
In the resource editor's JSON pane, all three header buttons are currently bunched together on the right. Split them: Collapse all and Expand all belong next to the "JSON" heading on the left, and Edit raw should sit alone on the right.
Current markup
crates/ui/templates/partials/editor-body.html:31-38puts all three in one.card-head__toolscontainer:.card-headisdisplay: flex; justify-content: space-between(crates/ui/assets/app.css:2948-2955), so the heading pins left and the single tools group pins right.Wanted
[ <> JSON ] [Collapse all] [Expand all] ……………………… [Edit raw]The two fold controls read as operations on the JSON view and belong with it; "Edit raw" is a mode switch and deserves the visual separation.
Notes for whoever picks this up
crates/ui/assets/resources.js:93-97(modal) andcrates/ui/assets/editor.js:233-262(standalone page) — and match on[data-json-fold]/#editor-json-edit, not on DOM position. Moving the buttons inside the same container is safe..card-headis shared. It's also used by the Guided form header in the same fragment (editor-body.html:66), bypages/batch.html:33,77, and bypages/editor.html:56. Prefer a modifier or an extra wrapper over changing.card-head's own flex rules, so the other four headers don't shift./ui/editorpage and the Resources edit modal — so check both; the modal pane is narrower and is where crowding shows first.Acceptance criteria
/ui/editorand in the Resources modal.batch.html, andeditor.htmlheaders are visually unchanged.Pointers
crates/ui/templates/partials/editor-body.html:31-38crates/ui/assets/app.css:2948-2971(.card-head,.card-head__tools),:2972-2984(.editor-json__act)crates/ui/assets/resources.js:93-97,crates/ui/assets/editor.js:233-262