Rename the Scenes panel to Authoring and lay it out in steps

The panel reads AUTHORING and groups its controls under SCENE, SHOTS,
PREVIEW and SAVE & SHARE headings, with the EDIT DETAILS / SHARE SCENE
row moved beside EXPORT / IMPORT. Text is larger with more contrast,
shots are numbered, every action has a tooltip and the status line is a
live region. Outside playback, buttons that would do nothing are
disabled. New labels are translated in every shipped language; PLAY
uses its own catalog context apart from the radio's PLAY.
This commit is contained in:
Said Turksever committed 2026-10-29 11:31:53 +00:00
1 parent aaa3ff46cf
commit 2b1129c10e
13 files changed
+336 -95

No files matched your search

+19 -2
View File
@@ -172,7 +172,24 @@ export function presentSceneSelection(element, selectedShotId) {
}
}
export function presentSceneButtons(elements, running, hasRun) {
/**
* Everything but STOP is off while a scene plays. Otherwise a button is off
* when it would do nothing: DELETE and CAPTURE SHOT without a scene, UPDATE
* SHOT without a selected shot, PLAY and NEXT on a scene with no shots.
*/
export function presentSceneButtons(
elements,
running,
hasRun,
{ hasScene = true, shotCount = 1, hasSelectedShot = true } = {},
) {
const idleOff = {
delete: !hasScene,
capture: !hasScene,
update: !hasSelectedShot,
start: shotCount === 0,
next: shotCount === 0,
};
for (const name of [
'start',
'next',
@@ -184,7 +201,7 @@ export function presentSceneButtons(elements, running, hasRun) {
'export',
'import',
]) {
if (elements[name]) elements[name].disabled = running;
if (elements[name]) elements[name].disabled = running || !!idleOff[name];
}
if (elements.stop) elements.stop.disabled = !running;
if (elements.download) elements.download.disabled = !hasRun;