diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index 554555f..c934644 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -303,18 +303,22 @@ a named invariant that the native runtime cannot protect yet. commands, and grab/rotate/resize gizmo intent. `MimirRuntime` renders derived spline outlines and handle markers from that state, and the `Mimir Editor` panel exposes hierarchy, visibility, transform, creation, and reset controls. - The center preview now asks Fensalir's CultUI preview contract to blit the - current renderer output buffer behind Mimir's normalized placement overlays, - so the app preview is a live program-surface witness rather than a symbolic - rectangle diagram. Placement commits keep video layers inside the program - frame, snap near edges/center, and preserve the source aspect ratio while - resizing through direct preview handles, sliders, or the scale gizmo. Explicit - transform/source controls are inspector-only and only appear while a program - source is selected; the compositor canvas handles are the primary edit path. - Empty-canvas clicks clear source selection, hover/active handles and snap - guides are visible through the Fensalir CultUI preview state, keyboard arrows - nudge selected layers, PageUp/PageDown reorder layers, and the inspector owns - the selected source's contain/cover/stretch fit mode. + The center preview now emits an Eve-style retained dashboard document through + the C# CultUI-shaped reference API. Fensalir's Direct2D native lowering blits + the current renderer output buffer behind Mimir's normalized placement + overlays, and the D3D12 hit-test path lowers the same tree into preview + gestures. Eve is the portable dashboard authority; CultUI is only the original + C# API shape used here so the same document can be lowered by native, web, + Android, or iOS backends without making Direct2D the owner. Placement commits + keep video layers inside the program frame, snap near edges/center, and + preserve the source aspect ratio while resizing through direct preview + handles, sliders, or the scale gizmo. Explicit transform/source controls are + inspector-only and only appear while a program source is selected; the + compositor canvas handles are the primary edit path. Empty-canvas clicks clear + source selection, hover/active handles and snap guides are visible through the + shared preview state, keyboard arrows nudge selected layers, PageUp/PageDown + reorder layers, and the inspector owns the selected source's + contain/cover/stretch fit mode. See [[scene-editor-control-surface|Mimir Scene Editor Control Surface]]. `Mimir.BufferSmoke --scene-editor-smoke` proves the graph/control/gizmo owner path. World SDF text glyph rendering, ASSIMP-style mesh import/upload, and diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 4bf2f76..9b3e32c 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -555,9 +555,11 @@ aspect while resizing through direct preview handles, sliders, or the scale gizmo. Explicit transform/source controls are inspector-only and gated to a selected program source; the center canvas handles are the primary compositor edit path. Empty-canvas clicks clear source selection; hover/active handles and -snap guides come from the Fensalir CultUI preview state; arrows nudge the -selected layer, PageUp/PageDown reorder layers, and the inspector owns the -selected source contain/cover/stretch fit mode. World SDF glyph rendering, ASSIMP-style +snap guides come from the shared Eve dashboard document state that Fensalir's +Direct2D and D3D12 paths lower locally; arrows nudge the selected layer, +PageUp/PageDown reorder layers, and the inspector owns the selected source +contain/cover/stretch fit mode. Eve is the portable dashboard authority, while +CultUI is only the C# reference API shape for the document. World SDF glyph rendering, ASSIMP-style mesh decoding/upload, and pixel-accurate gizmo hit-testing are explicit Fensalir renderer cuts, mapped in [[docs/scene-editor-control-surface|Mimir Scene Editor Control Surface]]. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index ebf29e2..a15ea6e 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -175,9 +175,13 @@ Get-Content .\state\evidence.jsonl -Tail 8 Fresh run `20260601-051044` measured cardioid delay 359.398 samples (7487.452 us) at 48 kHz and applied holdback 359.398/0.000 to shotgun/cardioid before cleanup. -- The right rail `Output` panel now exposes OBS-like program controls below the - inspector. `MimirProgramRecorder` owns `Record` / `Stop`, status text, and - timestamped receipts under `C:\Users\Meta\Videos\Mimir` by default +- The edge-to-edge Mimir editor shell now uses headerless retained dashboard + panels. The inspector expands vertically; the right rail `Output` panel is a + fixed-height OBS-like control block below it. Eve is the portable dashboard + authority; the C# CultUI-shaped Aquarium contract is only the reference API + shape, and Fensalir Direct2D/D3D12 are native lowerings of the same document. + `MimirProgramRecorder` owns `Record` / `Stop`, status text, and timestamped + receipts under `C:\Users\Meta\Videos\Mimir` by default (`MIMIR_RECORD_OUTPUT_DIR` overrides). It delegates to `scripts/record-stream-proof-output.ps1`, so the app records the same Raven + Kiyo PIP + Starfire Scarlett NVENC/AAC composite intended for diff --git a/src/Mimir.Runtime/MimirRuntime.cs b/src/Mimir.Runtime/MimirRuntime.cs index 2c4e55d..f1dabae 100644 --- a/src/Mimir.Runtime/MimirRuntime.cs +++ b/src/Mimir.Runtime/MimirRuntime.cs @@ -867,11 +867,11 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec private AquariumUiDocument CreateUi() { return new AquariumUiDocument() - .Surface("mimir.editor.surface", "", 18.0f, 56.0f, 1220.0f, 660.0f, surface => + .Surface("mimir.editor.surface", "", 0.0f, 0.0f, 1280.0f, 720.0f, contentPadding: 0.0f, rootGap: 8.0f, rootPadding: 0.0f, compose: surface => { surface.Horizontal("mimir.editor.shell", shell => { - shell.Pane("mimir.video-sources", "Video Sources", graph => + shell.Pane("mimir.video-sources", "", graph => { graph.Text("video.program-summary", DescribeProgramVideo, "caption", weight: 0.75f); graph.Text("video.source-list-title", "Program Sources", "strong", weight: 0.55f); @@ -899,8 +899,9 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec handleInteraction: sceneEditor.HandlePreviewInteraction, readState: () => sceneEditor.PreviewState, readGuides: () => sceneEditor.PreviewGuides); - center.Pane("mimir.audio-mixer", "Audio Mixer", mixer => + center.Pane("mimir.audio-mixer", "", mixer => { + mixer.Text("audio.mixer-title", "Audio Mixer", "strong", weight: 0.55f); mixer.Horizontal("audio.channel-bank", bank => { for (var slot = 0; slot < AudioMixerChannelSlotCount; slot++) @@ -925,7 +926,7 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec shell.Vertical("mimir.right-rail", right => { - right.Pane("mimir.inspector", "Inspector", inspector => + right.Pane("mimir.inspector", "", inspector => { inspector.Text("inspector.selection", sceneEditor.DescribeSelection, "strong"); inspector.Options("inspector.video-feed", "Feed", () => presentationControls.SelectedVideoIndex, SelectVideoLayer, VideoFeedOptions()); @@ -953,10 +954,11 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec order.Button("program.layer-down", "Layer Down", () => MoveSelectedVideoLayer(1)); }); }, isVisible: () => sceneEditor.HasSelectedProgramSource); - }, weight: 1.05f); + }, weight: 1.0f); - right.Pane("mimir.output", "Output", output => + right.Pane("mimir.output", "", output => { + output.Text("output.title", "Output", "strong", weight: 0.55f); output.Text("output.program-summary", DescribeProgramOutput, "caption", weight: 0.6f); output.Row("output.recording", row => { @@ -972,7 +974,7 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec row.Text("program.stream-status", programStreamer.Describe, "caption", weight: 1.75f); }, weight: 0.7f); output.Text("output.stream-target", () => $"target {programStreamer.TargetUrl}", "caption", weight: 0.7f); - }, weight: 0.95f); + }, fixedExtent: 172.0f); }, weight: 0.95f); }); }); diff --git a/state/evidence.jsonl b/state/evidence.jsonl index fc33219..2c2000d 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -332,3 +332,4 @@ {"ts": "2026-06-01T13:37:34+01:00", "type": "implementation", "status": "ok", "note": "Gated explicit Mimir inspector source/transform controls behind HasSelectedProgramSource. Direct compositor preview handles remain the primary edit path; inspector sliders/buttons are selected-source precision/fallback controls only. Scene-editor smoke now proves the editor camera is not a program source."} {"ts": "2026-06-01T14:26:12+01:00", "type": "implementation", "status": "ok", "note": "Picked the compositor UX low-hanging fruit: hover/active preview state, snap guides, empty-canvas deselect, selected-source contain/cover/stretch fit mode, arrow-key nudging that bypasses snap for precision, and PageUp/PageDown layer ordering. Scene-editor smoke now asserts hover, guide, fit, nudge, empty-deselect, direct move/resize handles, aspect lock, snap, and non-source inspector gating."} {"ts": "2026-06-01T14:39:51+01:00", "type": "decision", "status": "ok", "note": "2026-06-01: Mimir editor output authority moved to a right-rail Output panel below Inspector. MimirProgramRecorder now writes timestamped receipts to the user Videos\\\\Mimir folder by default, while MimirProgramStreamer owns Live/Stop for the configured Broadcast RTMP path and refuses to publish without MIMIR_STREAM_INPUT unless a synthetic smoke is explicitly enabled."} +{"ts": "2026-06-01T14:51:58+01:00", "type": "decision", "status": "ok", "note": "2026-06-01: Eve is the portable dashboard authority. The C# CultUI-shaped Aquarium UI contract is a reference API for retained dashboard documents; Fensalir Direct2D/D3D12 are native lowerings of that document, not the owner. The Mimir editor now uses edge-to-edge headerless panels with fixed output controls and an expanding inspector through that shared document model."} diff --git a/state/map.yaml b/state/map.yaml index d681c7e..0d2b65c 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -61,13 +61,16 @@ invariants: the preview observes the program surface without becoming composition authority. Placement commits keep layers inside the frame, snap near edges/center, and preserve source aspect while resizing through sliders or - the scale gizmo. The center preview now has direct Fensalir CultUI - body/corner-handle gestures wired to the same placement owner; sliders are - fallback/precision controls, not the primary compositor surface. Explicit + the scale gizmo. The center preview now has direct preview + body/corner-handle gestures wired to the same placement owner through an + Eve-style retained dashboard document; sliders are fallback/precision + controls, not the primary compositor surface. Explicit source/transform controls are inspector-only and visible only while a program source is selected. Empty-canvas clicks clear source selection; - hover/active handle state and snap guides are supplied through Fensalir's - CultUI preview state; keyboard arrows nudge selected layers without + hover/active handle state and snap guides are supplied through the shared + document state lowered by Fensalir's Direct2D/D3D12 paths; Eve is the + portable dashboard authority and CultUI is only the original C# reference + API shape. Keyboard arrows nudge selected layers without snapping, PageUp/PageDown reorder layers, and the inspector owns the selected source contain/cover/stretch fit mode. - The right rail `Output` panel owns OBS-like program actions below the