feat(ui): add measured level buttons and suspend modal hosts during scene editing

This commit is contained in:
Codex
2026-11-04 17:13:43 +03:00
parent bbbfa8912f
commit 8ff33a6a17
11 changed files with 130 additions and 14 deletions
+23 -2
View File
@@ -412,7 +412,8 @@
"backdrop close policy",
"modal-only body scroll lock",
"optional bounded dragging for modeless inspectors",
"move toggle: preserve mounted contents and current size; remove dimming, backdrop close, scroll lock and focus trap; header drag and eight invisible resize regions"
"move toggle: preserve mounted contents and current size; remove dimming, backdrop close, scroll lock and focus trap; header drag and eight invisible resize regions",
"Escape and Tab belong to the focused or topmost visible modal; parent windows do not dismiss behind nested settings."
],
"rules": [
"WindowFooterActions aligns modal actions to the trailing edge, including a footer with only one action group; actions wrap within narrow windows.",
@@ -1357,8 +1358,28 @@
"Header Enter/Space starts keyboard docking; arrows select edges, Shift+arrows the whole workspace, Tab cycles tools, Home floats, Escape cancels. Floating headers also support arrows and Shift+arrows for move/resize.",
"Hidden tools retain their docking placement and remembered floating rectangle. Viewport clamps never overwrite preferred geometry.",
"EditorWorkspace keeps one mounted portal host, moves it atomically when supported, and restores its original slot on return. It never changes the source-view layout.",
"The fixed editor header is outside docking bounds. Back, edit completion and close return to the original view."
"The fixed editor header is outside docking bounds. Back, edit completion and close return to the original view.",
"When opened inside Window, the editor suspends that overlay, backdrop and focus trap without unmounting; returning restores the same window."
]
},
{
"id": "level-button",
"status": "baseline",
"package": "@nodedc/ui-react",
"exports": [
"LevelButton",
"LevelButtonProps"
],
"domContract": [
"nodedc-level-button"
],
"summary": "Compact measured resource level inside a canonical pill button opening details.",
"rules": [
"Consumer supplies a measured fraction and freshness; unknown is not zero.",
"Stale retains the last number and accessible stale text; explicit user fill colours are retained.",
"Keyboard, focus, disabled and pointer behavior come from Button. Explicit fillColor uses contrast-correct text on the filled portion."
],
"documentation": "../docs/LEVEL_BUTTON.md"
}
]
}