diff --git a/quest/m0/ux/README.md b/quest/m0/ux/README.md index d591fe6e..76e171b0 100644 --- a/quest/m0/ux/README.md +++ b/quest/m0/ux/README.md @@ -152,6 +152,28 @@ reference mock-ups live in [`mock/overhaul.html`](/quest/m0/ux/mock/overhaul.htm ![Unified Studio](/quest/m0/ux/mock/overhaul-studio.webp) +### 2026-11-27 Try Add findings + +Decided 2026-11-27 with the maintainer (/quest-plan) after trying Add on a +real desktop. These supersede the overhaul's lines above where they differ: + +- **Inspector:** ✅ always shown, with an empty state when nothing is + selected (rejected: opening only while a layer is selected). Owned by + [Layers and the inspector stay put](/quest/m0/ux/layers-polish.md). +- **Add:** ✅ a row of buttons, each opening one picker, the system's where it + is the only way and the studio's own elsewhere; one source per device + (rejected: tabs of cards; the system picker beside the studio's list). + Owned by [Add is a row of buttons](/quest/m0/ux/add-buttons.md). +- **Mods:** ✅ a MODS page in the title bar, always shown, with a picture of + each mod and **Show me**; guest rooms become a mod, off by default; the + scene graph becomes a page (rejected: Settings > Mods). Owned by + [Mods is a page in the title bar](/quest/m0/ux/mods-page.md). +- **Audio:** ✅ sound is layers, and the Layers column is the mixer; the MIX + page, audio scenes, routes, and the bottom sound strip go, and a "Separate + recording mix" mod keeps split mixes (rejected: Audio Scenes & Routes as a + mod; the bottom dock's sound rows). Owned by + [Audio is layers](/quest/m0/ux/audio-layers.md). + ### What is where The default window holds one directly editable canvas, a collapsible Layers diff --git a/quest/m0/ux/add-buttons.md b/quest/m0/ux/add-buttons.md new file mode 100644 index 00000000..d2063efe --- /dev/null +++ b/quest/m0/ux/add-buttons.md @@ -0,0 +1,64 @@ +# [M] Add is a row of buttons + +## Goal + +Add opens as one row of plain buttons, with no tabs: Camera, Screen, Window, +File, Web page, Text, Color, Microphone, From the show, and Guest when guests +are on. A button that needs a choice opens one picker, then adds the pick and +closes: + +- Screen and Window use the system's picker where it is the only way to + capture (a Wayland desktop), and the studio's own list everywhere else, + never both side by side. +- Camera and Microphone open the studio's list of devices. +- File opens the system's file dialog. +- From the show lists what Add's "From the show" section offers today: the + program, the show's other scenes (a lower third built as a scene), and, + behind their mods as now, the replay and a role. + +Layers are named for what they show ("Screen", "Window", or the picked name), +never "Picked …". Adding a device the show already has, known by a stable +identity such as a camera's or microphone's device id, reuses its source; each +portal pick of a screen or window stays a source of its own, since the scene +stores no window id and its saved grant belongs to the first source. Deleting a +layer also deletes its source once nothing else uses it, so the "Not in any +scene" section goes away. + +## Plan + +Found trying Add on 2026-11-27 (maintainer, [Try Add](/quest/m1/try-add.md)): +three "ZV-E10 (V4L2)" copies under "Not in any scene", and a "Picked display" +card beside an "HDMI-1" display that a Wayland desktop cannot capture. + +Decided 2026-11-27 (maintainer, /quest-plan): + +- ✅ Buttons, each opening one picker: the system's where it is the only way, + the studio's own elsewhere (rejected: the system picker on every platform + that has one, which loses the studio's own thumbnails; today's tabs). +- ✅ Fix the copies at the root: one source per device, and deleting the last + layer that uses a source deletes it, which undo restores (rejected: only + hiding "Not in any scene" and leaving copies in the show file). +- ✅ Drop the word "Picked". + +Today: tabs in `rs/moq-studio/src/ui/add.rs`; "Not in any scene" is +`unused()` there, and its right-click "remove for good" goes with it. A device +card always makes a new, numbered source, and deleting a layer leaves its +source (`rs/moq-studio/src/ui/build.rs`). The picker card sits beside the X11 +display list (`with_picker` in `rs/moq-studio/src/devices.rs`, +[moq-dev/studio#172](https://github.com/moq-dev/studio/pull/172)), whose +comment already says X11 cannot capture a Wayland desktop's screens. Decide +the platform's picker at setup from what the desktop offers, not by trying one +at runtime. + +A Microphone button replaces the Audio tab, adding a layer (see +[Audio is layers](/quest/m0/ux/audio-layers.md)); until that lands, it adds +the sound as the Audio tab does today. Keep the placement rules Add already +has (a display first fills the picture, a camera over it goes to a corner). + +Draw the new Add in [`mock/add.html`](/quest/m0/ux/mock/add.html) first, and +show its frame beside the `just shots` view in the PR. + +## Related + +- [Add shows pictures](/quest/m0/ux/add-pictures.md) - thumbnails in the studio's own pickers +- [A new layer takes its picture's own shape](/quest/m0/ux/source-size.md) - the size a picked layer lands at diff --git a/quest/m0/ux/add-pictures.md b/quest/m0/ux/add-pictures.md index 1db59287..989d617f 100644 --- a/quest/m0/ux/add-pictures.md +++ b/quest/m0/ux/add-pictures.md @@ -16,6 +16,12 @@ reports device changes. ## Plan +Decided 2026-11-27 (maintainer, /quest-plan): Add becomes a row of buttons +([Add is a row of buttons](/quest/m0/ux/add-buttons.md)), so these pictures +go in the studio's own Camera, Screen, and Window pickers rather than on cards +in a tab. On a Wayland desktop the system's picker shows screens and windows, +so only cameras get pictures there. + Split from Add's quest on 2026-11-25 (maintainer, /quest-run), so Add could land on today's capture listing ([moq-dev/studio#262](https://github.com/moq-dev/studio/pull/262)) while diff --git a/quest/m0/ux/audio-layers.md b/quest/m0/ux/audio-layers.md new file mode 100644 index 00000000..946fd7fc --- /dev/null +++ b/quest/m0/ux/audio-layers.md @@ -0,0 +1,70 @@ +# [L] Audio is layers + +## Goal + +Sound is layers. The Layers column is the mixer: each layer with sound shows +a live level meter, mute, and a volume slider in its row, and a sound-only +layer (a microphone, the computer's sound) can be added and deleted like any +other layer. A scene's sound is its layers' sounds. + +- Every new show has a Microphone layer, and a Computer sound layer where the + platform can capture it, each linked across every scene so it never cuts + out on a scene switch. The quick start stays on an empty picture until the + scene has a picture layer: sound layers do not count. +- The MIX page, audio scenes, and routes go away, and so does the sound strip + at the bottom of the Studio page. +- A "Separate recording mix" mod adds per-layer Stream and Recording toggles + to the inspector, for keeping something such as music out of the recording. + +## Plan + +Found trying Add on 2026-11-27 (maintainer, [Try Add](/quest/m1/try-add.md)): +a sound added from Add has no layer and cannot be deleted, and audio living +on its own in the mixer is confusing. + +Decided 2026-11-27 (maintainer, /quest-plan): + +- ✅ Combine Layers and the mixer in the Layers column (rejected: audio layers + with the MIX page kept as a mod; deleting split mixes too). +- ✅ Volume stays per source, so one camera in two scenes keeps one level + (proposed with the split-mix question, which the maintainer took). +- ✅ Split mixes survive only as the "Separate recording mix" mod's per-layer + Stream and Recording toggles (rejected: dropping split mixes). +- ✅ A Microphone layer in every new show, and Computer sound where moq can + capture it, linked across scenes. + +Today: each source carries volume, mute, pan, and delay +(`rs/moq-scene/src/collection.rs`); audio scenes are sets of sources, and +adding a source with sound puts it in the program's audio scene +(`rs/moq-scene/src/edit.rs`). The bottom strip is `rs/moq-studio/src/ui/sound.rs`, +and MIX with Routes is `rs/moq-studio/src/ui/mixer.rs` behind the Audio +scenes & routes mod. Add's Audio tab adds a sound with no layer +(`rs/moq-studio/src/ui.rs`). The per-source gear (monitor, delay, pan, +filters) moves to the layer row or the inspector. + +Recommendations: + +- A scene file with audio scenes or routes loads as layers, its program audio + scene's sources becoming sound layers in each scene that heard them, and + routes to the recording becoming the mod's toggles. Say in the PR what + cannot carry over. +- Draw the Layers column with meters in [`mock/overhaul.html`](/quest/m0/ux/mock/overhaul.html) + first; keep the row height that [Layers and the inspector stay put](/quest/m0/ux/layers-polish.md) + sets. +- Listen (monitoring a mix on headphones) moves with the mixer; carry + [Listen warns on speakers](/quest/m0/ux/listen-speakers.md) to wherever it + lands. +- Computer sound: macOS is offered today; Linux and Windows wait on moq's + [capture-linux](https://github.com/moq-dev/moq/blob/main/quest/m3/capture-linux.md) + and [capture-windows](https://github.com/moq-dev/moq/blob/main/quest/m3/capture-windows.md), + and per-app sound on those and + [capture-app-audio-macos](https://github.com/moq-dev/moq/blob/main/quest/m4/capture-app-audio-macos.md). + Offer the layer only where it works. + +Update the README's flags, panels, and scene file sections, and +[the epic's decisions](/quest/m0/ux/README.md) on the bottom dock and the +Audio Scenes & Routes mod. + +## Required + +- [Layers and the inspector stay put](/quest/m0/ux/layers-polish.md) - the row spacing the meters fit in diff --git a/quest/m0/ux/layers-polish.md b/quest/m0/ux/layers-polish.md new file mode 100644 index 00000000..2074d3fc --- /dev/null +++ b/quest/m0/ux/layers-polish.md @@ -0,0 +1,46 @@ +# [S] Layers and the inspector stay put + +## Goal + +Editing layers never jumps the picture or garbles the list: + +- The right-hand inspector is always shown. With nothing selected it says + no layer is selected, so selecting, deleting, or clicking away never + resizes the picture. +- The Layers column's rows have breathing room: padded, rounded rows whose + name and subtitle sit inside them at any font size, as + [`mock/overhaul.html`](/quest/m0/ux/mock/overhaul.html) draws them. +- Every layer can be hidden with its eye, a screen capture included, and + hiding takes effect at once rather than shrinking the layer to nothing. + +## Plan + +Found trying Add on 2026-11-27 (maintainer, [Try Add](/quest/m1/try-add.md)). + +Decided 2026-11-27 (maintainer, /quest-plan): ✅ the inspector is always +shown, with an empty state when nothing is selected (rejected: keeping it +contextual, which [moq-dev/studio#256](https://github.com/moq-dev/studio/pull/256) +built; overlaying it on the picture). The picture moving on every select or +delete is worse than a slightly narrower picture. This reverses #256's +"opens only while a layer is selected", so update that line of +[the epic's decisions](/quest/m0/ux/README.md). + +- Inspector: `inspects()` in `rs/moq-studio/src/ui/build.rs` shows the column + only while a layer is selected or a mod needs it. An empty state already + exists (`scene_inspector`, `rs/moq-studio/src/ui/inspector.rs`) behind + Smart layout and Published scenes; show one with no mod on. +- Rows: `rs/moq-studio/src/ui/layers.rs` draws fixed 46 px rows with no + spacing and paints text at fixed offsets + ([moq-dev/studio#174](https://github.com/moq-dev/studio/pull/174), + [moq-dev/studio#253](https://github.com/moq-dev/studio/pull/253)). +- Hide: the maintainer saw a picked display that would not hide, and a hidden + image animate down to zero. The eye only sets `visible`, and no hide + animation is in the studio's code, so reproduce both first, on a real + desktop for the picked display (the Smart layout slot reflow in + `rs/moq-scene/src/compositor.rs` is the one box animation to rule out). + +Update `just shots` views for the inspector's empty state and the rows. + +## Related + +- [Try the Studio workspace](/quest/m1/try-studio.md) - the maintainer's try of the workspace these change diff --git a/quest/m0/ux/listen-speakers.md b/quest/m0/ux/listen-speakers.md index 14ef3a8e..183bab79 100644 --- a/quest/m0/ux/listen-speakers.md +++ b/quest/m0/ux/listen-speakers.md @@ -23,3 +23,7 @@ but cannot tell headphones from speakers yet. ## Required - [moq-audio's output kind is pinned](/quest/m0/pin-output-kind.md) - whether an output is headphones, where the system can tell + +## Related + +- [Audio is layers](/quest/m0/ux/audio-layers.md) - removes the MIX page; Listen moves with the mixer into the Layers column diff --git a/quest/m0/ux/mods-page.md b/quest/m0/ux/mods-page.md new file mode 100644 index 00000000..f7d86c05 --- /dev/null +++ b/quest/m0/ux/mods-page.md @@ -0,0 +1,56 @@ +# [M] Mods is a page in the title bar + +## Goal + +Mods is a top-level MODS page beside STUDIO in the title bar, always there +and not something a user can turn off; Settings no longer holds it. The page +sells each mod: a card with its name, one line on who it is for, and a +picture of what it adds, laid out to look dramatically better than a list of +switches, since it is how streamers find what the studio can do. An enabled +mod's card has a **Show me** button that goes to where the mod appears and +highlights what it added for a moment. + +With it: + +- Guest rooms become a mod, off by default: the Guests pane and Add's Guest + button appear only when it is on. +- The Scene graph mod adds a GRAPH page beside STUDIO, instead of its own + window. +- Audio scenes & routes is no longer a mod: [Audio is layers](/quest/m0/ux/audio-layers.md) + replaces it with a "Separate recording mix" mod. + +## Plan + +Found trying Add on 2026-11-27 (maintainer, [Try Add](/quest/m1/try-add.md)). + +Decided 2026-11-27 (maintainer, /quest-plan): + +- ✅ A MODS tab in the title bar, always shown (rejected: a "Show Mods" mod + putting a button under Layers or beside the gear; staying in Settings). + The maintainer: "This is the difference maker." +- ✅ **Show me** on an enabled mod's card navigates there and highlights it + briefly (rejected: an accent dot on each new thing until first used; a + where-to-look line alone). +- ✅ Guest rooms are a mod, off by default, switching itself on for a show + that already has a room, as the other mods do (rejected: on by default). + Most streamers stream solo. +- ✅ The scene graph is a page beside STUDIO. + +Today: ten mods, all off by default (`rs/moq-studio/src/mods.rs`), drawn in +Settings (`rs/moq-studio/src/ui/mods.rs`, +[moq-dev/studio#235](https://github.com/moq-dev/studio/pull/235)); the scene +graph opens a window (`ui/mods.rs`). The command palette and a blocked +hotkey's message point at "Settings, Mods": point them at the page. + +Recommendation for the pictures: one `just shots` view per mod showing what +it adds, saved as small checked-in images the page embeds, and a test that +every mod has one. Measure what they add to the binary's size and say it in +the PR. + +Draw the page in [`mock/overhaul.html`](/quest/m0/ux/mock/overhaul.html) +(its `mods` frame shows today's Settings pane) before building it, and update +[the epic's decisions](/quest/m0/ux/README.md), which put Mods in Settings. + +## Related + +- [Try the Settings window](/quest/m1/try-settings.md) - the maintainer's try of Settings, which loses its Mods pane diff --git a/quest/m0/ux/source-size.md b/quest/m0/ux/source-size.md new file mode 100644 index 00000000..97746285 --- /dev/null +++ b/quest/m0/ux/source-size.md @@ -0,0 +1,39 @@ +# [S] A new layer takes its picture's own shape + +## Goal + +A layer added from Add, by a click or a drag, takes its source's own aspect +ratio instead of the canvas's: an image file, a video, a camera, and a +picked screen or window. Where the size is not known until the first frame, +the layer adopts it when that frame arrives, once, before anyone resizes it. +A picked window shows the window, with no black band around it. + +## Plan + +Found trying Add on 2026-11-27 (maintainer, [Try Add](/quest/m1/try-add.md)): +a screenshot added as a layer came out 16:9, and a picked window's layer +showed mostly black. + +- A file dropped or picked through the file dialog already keeps its shape + (`rs/moq-studio/src/ui/drop.rs`, + [moq-dev/studio#193](https://github.com/moq-dev/studio/pull/193)). Add's + cards build the picture with no size, so it falls back to the canvas shape + and stretches (`shape` and `place` in `rs/moq-studio/src/ui/add.rs`, + [moq-dev/studio#262](https://github.com/moq-dev/studio/pull/262)). Read the + file's size as `drop.rs` does. +- Picked screens and windows have no size until frames arrive + (`rs/moq-studio/src/devices.rs`). Only **Fit** and **Fill** read the live + frame size (`rs/moq-studio/src/ui/build.rs`); reuse that once, on the first + frame, for a layer nobody has resized. Record that it was adopted in the + layer, so a reload does not adopt it again. +- The compositor stretches a picture over its box, so black inside the box + is probably inside the frames. moq-video's PipeWire capture + (`moq/rs/moq-video/src/capture/pipewire.rs`) requests no crop metadata, + and some desktops send a window as a larger buffer with a crop region. + Reproduce on the maintainer's GNOME desktop first. If the frames carry the + black, the fix lands in moq-dev/moq with a moq-side test, then a pin quest + here. + +## Hosts + +- linux - the picked-window black needs a real Wayland desktop and its portal diff --git a/quest/m1/try-add.md b/quest/m1/try-add.md index 68059a30..9122a7a6 100644 --- a/quest/m1/try-add.md +++ b/quest/m1/try-add.md @@ -61,6 +61,16 @@ owns that part, and deletes this one. in both, whichever picture is edited. Check it feels right with **Both at once** on. +Tried 2026-11-27 on the maintainer's GNOME desktop, real devices and a few +adds. Its findings are quests: +[Layers and the inspector stay put](/quest/m0/ux/layers-polish.md), +[A new layer takes its picture's own shape](/quest/m0/ux/source-size.md), +[Add is a row of buttons](/quest/m0/ux/add-buttons.md), +[Mods is a page in the title bar](/quest/m0/ux/mods-page.md), and +[Audio is layers](/quest/m0/ux/audio-layers.md). Add is being redone as +buttons, so the rest of this list waits for that: try it on the new Add, and +read the Real devices and Microphones items above in terms of its pickers. + ## Waiting - Maintainer (PC): try Add as the Plan lists and report what to change, or @@ -68,3 +78,7 @@ owns that part, and deletes this one. no camera, microphone, capture card, or permission prompts; a kittest run already covers the clicks, the placement, and a drag onto the picture, and `just shots` the layout. Check: a comment or quest records the result. + +## Required + +- [Add is a row of buttons](/quest/m0/ux/add-buttons.md) - the Add this try is for diff --git a/quest/m1/try-mix.md b/quest/m1/try-mix.md deleted file mode 100644 index ff6151c1..00000000 --- a/quest/m1/try-mix.md +++ /dev/null @@ -1,38 +0,0 @@ -# [XS] Try the MIX page - -## Goal - -The maintainer tries the MIX page on their own machines and either signs it -off or files what they find as quests: what the epic's -[What a person must check](/quest/m0/ux/README.md) asks of it, which no -headless run exercises. - -## Plan - -The MIX page (its strips, the audio scenes as master strips, the opened -strip, and Routes) is on `main` (`cargo run -p moq-studio --features -capture`; Listen and its output picker are disabled without `capture`). -What to try, beside the [mock-up](/quest/m0/ux/mock/mix-mix.webp): - -- **Real devices:** a real microphone and headphones. **Listen** on an audio - scene, then pick the output from its **On …** tag; the meters moving with - real sound, the peak held, red only at a clip. -- **Feel:** riding a fader with a mouse and a trackpad, whether the taper is - fine enough near unity, a double click returning to it; mute and unmute - during a show; opening a strip while the others narrow. -- **Readability:** whether the send dots (filled, ringed when heard only - through another audio scene, faint when not heard) read at a glance to - someone who has never seen an audio scene. If they do not, **Routes** is - the fallback to point people at, and the legend's wording is the cheapest - thing to change. - -An agent then turns each finding into a quest, or an edit to the quest that -owns that page, and deletes this one. - -## Waiting - -- Maintainer: try the MIX page as the Plan lists and report what to change, - or that nothing needs to. An agent cannot judge feel or taste, and the - agent hosts have no microphone or headphones; a kittest run already covers - the clicks (`shots::mix_sends_and_mutes`), and `just shots` the layout. - Check: a comment or quest records the result.