diff --git a/.github/workflows/p1-windows.yml b/.github/workflows/p1-windows.yml index b7ea6f60b..67a8e860a 100644 --- a/.github/workflows/p1-windows.yml +++ b/.github/workflows/p1-windows.yml @@ -129,7 +129,7 @@ jobs: node scripts/check_console_puzzle.mjs node --check web/approved-native-bridge.js node --check web/approved-native-contract.js - node --test tests/workstream_coordination_contract.test.mjs tests/ci_workflow_efficiency_test.mjs tests/chat_ci_dispatch_contract.test.mjs tests/approved_native_m2_contract.test.cjs tests/native_artifact_packaging_contract_test.mjs tests/windows_installer_contract_test.mjs tests/live_graph_contract_test.mjs + node --test tests/workstream_coordination_contract.test.mjs tests/ci_workflow_efficiency_test.mjs tests/chat_ci_dispatch_contract.test.mjs tests/approved_native_m2_contract.test.cjs tests/native_artifact_packaging_contract_test.mjs tests/windows_installer_contract_test.mjs tests/live_graph_contract_test.mjs tests/native_caption_wire_geometry_contract.test.cjs python -m unittest discover -s tests -p approved_native_gui_bundle_test.py -v python -m unittest discover -s scripts/tests -p test_factoryfx_release_bundle.py -v - name: Compressor exact-source native CPU A/B (same runner, non-gating timing) diff --git a/.github/workflows/ui-smoke.yml b/.github/workflows/ui-smoke.yml index a57b32e9e..59a728d12 100644 --- a/.github/workflows/ui-smoke.yml +++ b/.github/workflows/ui-smoke.yml @@ -268,6 +268,8 @@ jobs: run: python tests/approved_native_harmony_smoke.py - name: Cold start first WIRE and original-channel VST3 picker editor run: python tests/approved_native_cold_start_smoke.py + - name: Native desktop titlebar toolbar measured in Chromium at four viewport widths + run: python tests/native_header_toolbar_chromium_smoke.py - name: Native WIRE gain and OUT share accepted PCM identity (real Chromium) run: python tests/approved_native_wire_gain_smoke.py - name: Stage D one runtime CSSOM and actual stylesheet network count @@ -278,6 +280,8 @@ jobs: run: python tests/pages_wire_first_canonical_main_smoke.py - name: Verify V49 direct WIRE, gain wheel, connected status, replug and scoped undo run: python tests/pages_wire_v49_direct_controls_smoke.py + - name: Desktop titlebar WIRE geometry across resize and cancelled pointer capture + run: python tests/desktop_wire_resize_chromium_smoke.py - name: Verify V53 handle-free FX row drag, keyboard and rack reorder run: python tests/pages_fx_rail_v53_smoke.py - name: Qualify public /preview/ floating Channel Editor with zero mixer reflow (five real Chromium viewports) @@ -479,7 +483,7 @@ jobs: done git diff --exit-code -- site/preview-v2/index.html site/preview-v2/assets/mixer-chrome-material.css site/preview-v2/assets/mixer-plugin-browser.css site/preview-v2/assets/mixer-pan-controls.css site/preview-v2/assets/mixer-fader-assembly.css site/preview-v2/assets/mixer-meter-display.css site/preview-v2/assets/mixer-utility-controls.css - name: Verify V28 exact approved /preview/ source and interactive browser parity - if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && (startsWith(github.head_ref, 'css/v28-') || startsWith(github.head_ref, 'integration/product-'))) }} + if: ${{ (github.event_name == 'workflow_dispatch' && inputs.historical_css == true) || (github.event_name == 'pull_request' && (startsWith(github.head_ref, 'css/v28-') || startsWith(github.head_ref, 'integration/product-'))) }} run: python tests/pages_css_architecture_v28_smoke.py - name: Verify embedded Inter font and contextual V7 micro-controls if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && startsWith(github.head_ref, 'integration/product-')) }} diff --git a/site/preview-v2/assets/mixer-chrome-material.css b/site/preview-v2/assets/mixer-chrome-material.css index 4e6cddea4..2f4e22f54 100644 --- a/site/preview-v2/assets/mixer-chrome-material.css +++ b/site/preview-v2/assets/mixer-chrome-material.css @@ -1489,3 +1489,70 @@ html :where(.app, .app *),html :where(.app, .app *)::before,html :where(.app, .a .routing-wire-overlay path{filter:none!important;pointer-events:none} + +/* Desktop JUCE titlebar: one real OS window caption, no doubled WebView header. + The public interactive browser reference keeps its own top identity bar. */ +html.armix-native-desktop .app > .window-title{display:none!important} +.window-title .logo{display:inline-flex!important;align-items:center;gap:0;letter-spacing:.015em} +.window-title .logo .armix-brand-ar{color:#48d5f3} +.window-title .logo .armix-brand-son{color:#eff8fa} +.window-title .logo .armix-brand-mix{color:#ffad59} +/* Compact consistent operator toolbar spacing, preserving existing BTN-180 skin. */ +.app .command-bar{ + min-height:34px!important;align-items:center!important;column-gap:5px!important; + padding-left:9px!important;padding-right:9px!important; +} +.app .command-bar>.sep{margin-left:2px!important;margin-right:2px!important} +.app .command-bar .toolbar-label{font-size:9px!important;letter-spacing:.06em} +@media(max-width:1220px){ + .app .command-bar{column-gap:3px!important;padding-left:5px!important;padding-right:5px!important} +} + +/* Native desktop toolbar V2 — functional hardware keys stay 29px high. + Separate command groups visually; keep the bank and More fully usable. + The public /preview/ layout and historical fixture are untouched. */ +html.armix-native-desktop .app .command-bar{ + height:43px!important;min-height:43px!important;max-height:43px!important; + flex:0 0 43px!important; + align-items:center!important;column-gap:8px!important; + padding-inline:12px!important; + background:linear-gradient(180deg,#1b3340 0%,#172d39 100%)!important; + border-top:1px solid #5f7b864c!important; + border-bottom:1px solid #081922!important; +} +html.armix-native-desktop .app .command-bar>.armix-toolbar-divider, +html.armix-native-desktop .app .command-bar>.sep{ + display:block!important;flex:0 0 1px!important;width:1px!important; + height:21px!important;padding:0!important; + margin:0 4px!important;align-self:center!important;pointer-events:none!important; + background:linear-gradient(180deg,transparent,#7799a27d 30%,#7799a27d 70%,transparent)!important; + border:0!important; +} +html.armix-native-desktop .app .command-bar>.tool:not(.bank-arrow), +html.armix-native-desktop .app .command-bar>.more-tools>summary.tool{ + padding-inline:10px!important; +} +html.armix-native-desktop .app .command-bar>.mixer-file-tool{ + gap:6px!important; +} +html.armix-native-desktop .app .command-bar>.mixer-file-tool img{ + display:block;width:16px;height:16px;flex:none; +} +html.armix-native-desktop .app .command-bar>.toolbar-label{ + font-size:9px!important;letter-spacing:.09em!important; +} +@media(max-width:1360px){ + html.armix-native-desktop .app .command-bar{ + column-gap:5px!important;padding-inline:7px!important; + } + html.armix-native-desktop .app .command-bar>.armix-toolbar-divider{display:none!important} + html.armix-native-desktop .app .command-bar>.tool:not(.bank-arrow), + html.armix-native-desktop .app .command-bar>.more-tools>summary.tool{ + padding-inline:7px!important; + } +} +@media(max-width:1150px){ + html.armix-native-desktop .app .command-bar{ + column-gap:4px!important;padding-inline:5px!important; + } +} diff --git a/site/preview-v2/assets/mixer-contextual-buttons.js b/site/preview-v2/assets/mixer-contextual-buttons.js index 54a05ea26..da0466b2b 100644 --- a/site/preview-v2/assets/mixer-contextual-buttons.js +++ b/site/preview-v2/assets/mixer-contextual-buttons.js @@ -71,3 +71,18 @@ script.src=new URL('arson-player.js',base).href; document.body.appendChild(script); })(); + +/* ArSonMiX owner wordmark; original source HTML/assembler anchor is immutable. */ +(()=>{ + 'use strict'; + const logo=document.querySelector('.app > .window-title .logo'); + if(!logo||logo.textContent!=='ArSonMix'||typeof logo.replaceChildren!=='function')return; + logo.replaceChildren(...[ + ['armix-brand-ar','Ar'],['armix-brand-son','Son'],['armix-brand-mix','MiX'] + ].map(([cls,value])=>{ + const span=document.createElement('span'); + span.className=cls;span.textContent=value; + return span; + })); + logo.setAttribute('aria-label','ArSonMiX'); +})(); diff --git a/site/preview-v2/index.html b/site/preview-v2/index.html index c2fa7648b..8d6bf0221 100644 --- a/site/preview-v2/index.html +++ b/site/preview-v2/index.html @@ -1284,6 +1284,9 @@ /* One accepted CH→MAIN edge is represented by two local cable fragments. Physical coordinates are measured from actual sockets; never connect strips with a long SVG crossing banks or alter the audio graph. */ +// MAIN mini cables use a separate one-shot dirty flag; ordinary pointer moves +// must not force layout reads on a stable native viewport. +let wireFragmentGeometryDirty=false; function paintMainWireFragment(strip,edge,isMain){ const section=strip?.querySelector('.send-section.wire-section'); if(!section)return; @@ -1292,9 +1295,9 @@ layer?.remove();return; } // Pointer-motion repaint must not synchronously remeasure every channel. - // Structural render, bank, density and resize remount the section; a - // changed accepted edgeId invalidates this tiny projection automatically. - if(layer?.dataset.edgeId===String(edge.id))return; + // A stable edgeId can still move when the host window is resized. + // Refresh the physical anchor only on a geometry event (or edge edit). + if(layer?.dataset.edgeId===String(edge.id)&&!wireFragmentGeometryDirty)return; const jack=section.querySelector(isMain?'.wire-node-in .wire-arrow':'.wire-node-out .wire-pin'); const sectionRect=section.getBoundingClientRect(),pin=jack?.getBoundingClientRect(); if(!pin||!sectionRect.width||!sectionRect.height)return; @@ -1355,6 +1358,7 @@ } function renderWireRouting(){ syncMainWireFragments(); + wireFragmentGeometryDirty=false; if(wireWsOpen&&!wireGesture?.active)renderWireWorkspace(); document.querySelector('.console-body')?.classList.toggle('wire-intent',!!wireIntent); const svg=document.getElementById('wireLayer'),viewport=document.getElementById('viewport'); @@ -2879,10 +2883,68 @@ document.getElementById(e.key==='ArrowRight'?'bankNext':'bankPrev').click(); } }); -let resizeQueued=false; -window.addEventListener('resize',()=>{ - if(resizeQueued)return;resizeQueued=true; - requestAnimationFrame(()=>{resizeQueued=false;render();}); +// Desktop maximise, restore, DPI changes and normal resizing are layout events, +// not mixer/PCM edits. Read the true socket bounds AFTER layout and coalesce +// concurrent ResizeObserver + viewport events into one animation frame. +let wireGeometryFrame=0,wireGeometryDirty=false; +function scheduleWireGeometryReflow(){ + wireGeometryDirty=true; + if(wireGeometryFrame||document.hidden)return; + wireGeometryFrame=requestAnimationFrame(()=>{ + wireGeometryFrame=0; + if(document.hidden)return; + const viewport=document.getElementById('viewport'); + if(!viewport||viewport.clientWidth<=0||viewport.clientHeight<=0)return; + wireGeometryDirty=false; + const root=document.querySelector('.console-body'); + const drawn=Number(root?.style.getPropertyValue('--bank-capacity')); + const required=bankCapacity(); + if(drawn&&required!==drawn){ + // A bank rebuild destroys pointer-capture owners. Retire only in-flight + // UI gestures BEFORE the strips are replaced; the committed WIRE graph, + // route identities and accepted fader level never change on resize. + if(wireGesture){ + const g=wireGesture;wireGesture=null;wireSuppressClick=true; + setWireSnapTarget(null); + root?.classList.remove('wire-dragging'); + root?.querySelectorAll('.is-replug-origin,.is-drag-origin').forEach(el=> + el.classList.remove('is-replug-origin','is-drag-origin')); + const owner=root?.querySelector('.strip[data-id="'+(g.originDestId??g.sourceId)+'"] '+ + (g.originDestId!=null?'.wire-node-in':'.wire-node-out')); + if(owner?.hasPointerCapture?.(g.pointerId))owner.releasePointerCapture?.(g.pointerId); + } + if(faderGesture){ + const g=faderGesture;faderGesture=null; + if(g.box?.hasPointerCapture?.(g.pointerId))g.box.releasePointerCapture?.(g.pointerId); + } + // Kill any RAF that still closes over the pre-resize cable coordinates. + ++wireMotion.token;wireMotion.key=null;wireMotion.offset=0; + render(); // structural bank change only + }else{ + // Stop a still-running cable spring (its animation closes over old pixels). + ++wireMotion.token;wireMotion.key=null;wireMotion.offset=0; + wireFragmentGeometryDirty=true; + renderWireRouting(); // geometry-only; no native graph/strip edits + } + }); +} +// WebView2 can resize its child compositor one event AFTER the parent HWND. +// Observe stable mixer boxes rather than polling or assuming old viewport width. +if(typeof ResizeObserver==='function'){ + const wireGeometryObserver=new ResizeObserver(scheduleWireGeometryReflow); + for(const id of ['viewport','tracks','master']){ + const el=document.getElementById(id); + if(el)wireGeometryObserver.observe(el); + } + wireGeometryObserver.observe(document.querySelector('.console-body')); +} +window.addEventListener('resize',scheduleWireGeometryReflow,{passive:true}); +window.visualViewport?.addEventListener?.('resize',scheduleWireGeometryReflow,{passive:true}); +document.getElementById('viewport')?.addEventListener?.('scroll',scheduleWireGeometryReflow,{passive:true}); +window.addEventListener('focus',scheduleWireGeometryReflow,{passive:true}); +window.addEventListener('pageshow',scheduleWireGeometryReflow,{passive:true}); +document.addEventListener('visibilitychange',()=>{ + if(!document.hidden)scheduleWireGeometryReflow(); }); restorePluginPreferences();init(); })(); diff --git a/src/ArSonWindowChrome.h b/src/ArSonWindowChrome.h new file mode 100644 index 000000000..657c56e97 --- /dev/null +++ b/src/ArSonWindowChrome.h @@ -0,0 +1,152 @@ +// SPDX-License-Identifier: AGPL-3.0-only +#pragma once +#include + +namespace armix::ui +{ +// Only the main JUCE mixer window uses this caption. No WebView2 command +// round trips for minimise, maximise, close, drag or OS window resizing. +class MixerCaptionButton final : public juce::Button +{ +public: + explicit MixerCaptionButton (int kind) : Button ("ArSonMiX window control"), kind_ (kind) + { + // Exact operator-provided SVG path geometry, in its native 24x24 coordinates. + icon_ = load (kind == juce::DocumentWindow::closeButton + ? "M6.4,19L5,17.6L10.6,12L5,6.4L6.4,5L12,10.6L17.6,5L19,6.4L13.4,12L19,17.6L17.6,19L12,13.4L6.4,19Z" + : kind == juce::DocumentWindow::minimiseButton + ? "M6,21V19H18v2H6Z" + : "M3,21V3H21V21H3Zm2-2H19V5H5V19Zm0,0V5V19Z"); + if (kind == juce::DocumentWindow::maximiseButton) + restoreIcon_ = load ("M8,3H21V16H18V6H8V3ZM3,8H16V21H3V8ZM6,11V18H13V11H6Z"); + setTooltip (kind == juce::DocumentWindow::closeButton ? "Close" : + kind == juce::DocumentWindow::minimiseButton ? "Minimise" : "Maximise / restore"); + setMouseCursor (juce::MouseCursor::PointingHandCursor); + } + + void paintButton (juce::Graphics& g, bool over, bool down) override + { + const bool close = kind_ == juce::DocumentWindow::closeButton; + // Compact 34 px hit area; only the 30x25 interior lights on hover. + // No timers, interpolated animations, allocation or WebView2 messaging. + // A pressed command is immediately visible: teal minimise, blue + // maximise/restore, and intentionally red close. + if (over || down) + { + // Clear chromatic outline on hover; solid pressed state. + // The native JUCE Button repaints only on its mouse-state change. + const bool minimise = kind_ == juce::DocumentWindow::minimiseButton; + const auto accent = close ? juce::Colour (0xffff6874) + : minimise ? juce::Colour (0xff50d4e7) + : juce::Colour (0xff67b9ff); + const auto pressed = close ? juce::Colour (0xffdc3549) + : minimise ? juce::Colour (0xff168fa7) + : juce::Colour (0xff287abd); + const auto face = getLocalBounds().toFloat().reduced (2.0f, 3.0f); + g.setColour (down ? pressed : accent.withAlpha ((juce::uint8) 27)); + g.fillRoundedRectangle (face, 3.0f); + g.setColour (accent); + g.drawRoundedRectangle (face.reduced (0.5f), 3.0f, 1.0f); + } + if (hasKeyboardFocus (true)) + { + g.setColour (juce::Colour (0xff68d9f2)); + g.drawRoundedRectangle (getLocalBounds().toFloat().reduced (1.5f, 2.5f), 3.0f, 1.0f); + } + auto* parent = findParentComponentOfClass(); + auto* image = kind_ == juce::DocumentWindow::maximiseButton && + parent != nullptr && parent->isFullScreen() + ? restoreIcon_.get() : icon_.get(); + if (image != nullptr) + { + const auto b = getLocalBounds().toFloat(); + image->drawWithin (g, { b.getCentreX() - 6.0f, b.getCentreY() - 6.0f, 12.0f, 12.0f }, + juce::RectanglePlacement::centred, isEnabled() ? 1.0f : 0.45f); + } + } + +private: + static std::unique_ptr load (const char* path) + { + juce::String source (""; + if (auto xml = juce::XmlDocument::parse (source)) + return juce::Drawable::createFromSVG (*xml); + return {}; + } + int kind_; + std::unique_ptr icon_, restoreIcon_; +}; + +class MixerCaptionLookAndFeel final : public juce::LookAndFeel_V4 +{ +public: + juce::Button* createDocumentWindowButton (int kind) override + { + return new MixerCaptionButton (kind); + } + + void positionDocumentWindowButtons (juce::DocumentWindow&, int x, int y, int w, int h, + juce::Button* minimise, juce::Button* maximise, + juce::Button* close, bool onLeft) override + { + constexpr int buttonWidth = 34; + if (onLeft) + { + for (auto* button : { close, minimise, maximise }) + if (button != nullptr) { button->setBounds (x, y, buttonWidth, h); x += buttonWidth; } + } + else + { + x += w; + for (auto* button : { close, maximise, minimise }) + if (button != nullptr) { x -= buttonWidth; button->setBounds (x, y, buttonWidth, h); } + } + } + + void drawDocumentWindowTitleBar (juce::DocumentWindow& window, juce::Graphics& g, + int w, int h, int titleX, int titleW, + const juce::Image* icon, bool) override + { + g.fillAll (juce::Colour (0xff112632)); + g.setColour (juce::Colour (0xff365b6b)); + g.drawHorizontalLine (h - 1, 0.0f, static_cast (w)); + int x = juce::jmax (10, titleX + 9); + if (icon != nullptr && icon->isValid()) + { + g.drawImageWithin (*icon, x, (h - 16) / 2, 16, 16, + juce::RectanglePlacement::centred, false); + x += 23; + } + const auto brandFont = juce::Font (juce::FontOptions { 13.0f }); + g.setFont (brandFont); + const auto alpha = window.isActiveWindow() ? 1.0f : 0.72f; + auto paintPart = [&] (const juce::String& word, juce::Colour colour) + { + // Real glyph advances: "ArSonMiX" is one continuous wordmark. + const auto advance = juce::GlyphArrangement::getStringWidthInt (brandFont, word); + g.setColour (colour.withMultipliedAlpha (alpha)); + g.drawText (word, x, 0, advance + 2, h, juce::Justification::centredLeft, false); + x += advance; + }; + paintPart ("Ar", juce::Colour (0xff48d5f3)); + paintPart ("Son", juce::Colour (0xffeff8fa)); + paintPart ("MiX", juce::Colour (0xffffad59)); + x += 15; + const auto remaining = juce::jmax (0, titleX + titleW - x - 9); + if (remaining > 80) + { + // Explicit Unicode code point prevents mojibake in MSVC builds. + const auto separator = juce::String (" ") + + juce::String::charToString ((juce::juce_wchar) 0x00b7) + " "; + const auto subtitle = juce::String ("Open Source Premium Digital Mixer") + + separator + "Version 01.00" + separator + + juce::String::charToString ((juce::juce_wchar) 0x00a9) + " 2026 SonKuPik"; + g.setColour (juce::Colour (0xff96b3bf).withMultipliedAlpha (alpha)); + g.setFont (juce::Font (juce::FontOptions { 10.5f })); + g.drawText (subtitle, x, 0, remaining, h, + juce::Justification::centredLeft, true); + } + } +}; +} // namespace armix::ui diff --git a/src/Main.cpp b/src/Main.cpp index d6391cc08..eb08d6d27 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -11,6 +11,7 @@ #include "LiveAudioEngine.h" #include "NativeSessionToken.h" #include "ArSonMixStartupSplash.h" +#include "ArSonWindowChrome.h" #include "VstOrbitController.h" #include "../engine/core/OrbitDistanceMapping.h" #include "../engine/core/DearVrPolarPolicy.h" @@ -217,7 +218,7 @@ class ConsoleWindow final : public juce::DocumentWindow, private juce::Timer, pr { public: explicit ConsoleWindow (std::function onStartupStage) - : DocumentWindow ("AR MIX Studio — Native VST3 FX Host", + : DocumentWindow ("ArSonMiX — Native Mixer", juce::Colour (0xff101921), allButtons), catalog_ (settingsDirectory()), diagnostics_ (settingsDirectory().getChildFile ("diagnostics")), @@ -280,9 +281,16 @@ class ConsoleWindow final : public juce::DocumentWindow, private juce::Timer, pr restorePlayerLibrary(); // portable, local song paths only; NEVER autoplay on launch catalog_.onChanged = [this] { emitCatalog(); emitScanProgress(); }; catalog_.scanFactoryIfPresent(); // Only the signed-off local manifest; never global VST scans. +#if defined(_WIN32) + // JUCE owns the physical titlebar; no WebView2 control roundtrip. + setLookAndFeel (&mixerCaption_); + setUsingNativeTitleBar (false); + setTitleBarHeight (31); +#else setUsingNativeTitleBar (true); +#endif setIcon (approvedAppIcon()); - setResizable (true, true); + setResizable (true, false); setResizeLimits (1100, 650, 3840, 2160); setContentNonOwned (&browser_, false); // A fixed 1650x930 initial HWND exceeds the *logical* Windows work @@ -343,11 +351,13 @@ class ConsoleWindow final : public juce::DocumentWindow, private juce::Timer, pr } engine_.stop(); browser_.setVisible (false); + setLookAndFeel (nullptr); // the owned LookAndFeel must not dangle } void closeButtonPressed() override { juce::JUCEApplication::getInstance()->systemRequestedQuit(); } private: + armix::ui::MixerCaptionLookAndFeel mixerCaption_; LiveAudioEngine engine_; VstOrbitController orbit_; // The exact native ChannelId/insert identity retains its VST3 owner diff --git a/tests/approved_native_cold_start_smoke.py b/tests/approved_native_cold_start_smoke.py index d4053e2c0..a9288bce6 100644 --- a/tests/approved_native_cold_start_smoke.py +++ b/tests/approved_native_cold_start_smoke.py @@ -70,7 +70,7 @@ def show_click(text): }""",[show_panel,text]) def show_select(value): return page.evaluate("""([selector,value])=>{ - const node=document.querySelector(selector+' select[aria-label="Saved native Show"]'); + const node=document.querySelector(selector+' select[aria-label="Saved session"]'); if(!node)throw Error('Native Show selector absent'); node.value=value;node.dispatchEvent(new Event('change')); const buttons=[...document.querySelectorAll(selector+' button')]; @@ -110,7 +110,8 @@ def show_select(value): recalled=page.evaluate("()=>window.__events.at(-1).payload") assert recalled=={"action":"routingDryShowRecall","value":corrupt_id} emit(page,"arMixNativeShowRecallAck",{"ok":False,"error":"DEVICE_REBIND_REQUIRED"}) - assert "DEVICE_REBIND_REQUIRED" in page.locator(show_panel).text_content() + assert "Unable to open session · Mixer settings unchanged" in page.locator(show_panel).text_content() + assert "DEVICE_REBIND_REQUIRED" not in page.locator(show_panel).text_content() show_click("Save New Version") assert page.evaluate("()=>window.__events.at(-1).payload")=={ "action":"routingDryShowSave","value":corrupt_id} @@ -209,16 +210,16 @@ def show_select(value): channels=copy.deepcopy(retained['graph']['channels'])) emit(page,'arMixConsoleSnapshot',retained) page.wait_for_function('()=>window.__ARMIX_NATIVE_M2__.state().current?.retained') - assert page.locator('.status-bar .warning').inner_text().startswith('NEEDS REMAP') + assert page.locator('.status-bar .warning').inner_text().startswith('RECONNECT AUDIO OUTPUT') assert page.locator('[data-native-monitor]').is_disabled() assert add_track.is_disabled() assert page.locator('#tracks .strip').count()==4 - assert 'OUT NEEDS REMAP' in page.locator('#transport').inner_text() + assert 'Output disconnected · Open Audio I/O' in page.locator('#transport').inner_text() page.locator('#tracks .strip[data-id="1"] .wire-node-out').click() emit(page,'arMixConsoleSnapshot',retained) assert page.locator('#tracks .strip[data-id="2"] .wire-gain').is_disabled() strip=page.locator('#tracks .strip[data-id="1"]') - assert strip.locator('select[data-field="input"]').input_value()=='NEEDS REMAP' + assert strip.locator('select[data-field="input"]').input_value()=='Audio connection lost' assert strip.locator('.fx-section [data-action="openPlugin"]').first.inner_text()=='Latency VST' before=page.evaluate('()=>window.__events.filter(e=>e.payload?.action==="routingFxEditor").length') strip.locator('.fx-section [data-action="openPlugin"]').first.click() diff --git a/tests/approved_native_m2_contract.test.cjs b/tests/approved_native_m2_contract.test.cjs index 31f2539ef..ea0371de9 100644 --- a/tests/approved_native_m2_contract.test.cjs +++ b/tests/approved_native_m2_contract.test.cjs @@ -112,7 +112,10 @@ test("native signal evidence is produced from measured engine fields, never JS s assert.match(header,/directRouteAuthorized/); assert.match(transport,/projectFirstSoundSignalEvidence/); assert.doesNotMatch(transport,/setProperty \("rawCapturePeak", 0\.0\)/); - assert.match(bridge,/protocol\.diagnoseFirstSound/); + // Evidence still belongs to the native producer and protocol, not its footer. + const protocolSrc=read("web/approved-native-contract.js"); + assert.match(protocolSrc,/diagnoseFirstSound/); + assert.doesNotMatch(bridge,/evidence\.readout\+" · "\+evidence\.nextAction/); }); test("P0 DAW approved Windows GUI directly binds every IN to current JUCE ports, never Pages demo",()=>{ const bridge=read("web/approved-native-bridge.js"); @@ -718,7 +721,7 @@ test("single /preview/ GUI: channel IN, actual OUT and correlated device safety assert.match(bridge,/nativeUiSourcePending=null;[\s\S]*?INPUT timeout/); assert.match(bridge,/ack\?\.requestId!==devicePanel.dataset.pendingRequest/); assert.match(native,/requestAutomaticMain\(\);\s*send\(true,engine_\.isMonitorEnabled\(\)\?"ACCEPTED_LIVE":"ACCEPTED_MUTED"/); - assert.match(bridge,/VIRTUAL \/ NO SPEAKERS/); + assert.match(bridge,/Virtual output/); assert.match(bridge,/Advanced driver recovery/); assert.match(native,/ack->setProperty\("requestId",[\s\S]*?args\.getProperty\("requestId",juce::var\(\)\)/); assert.doesNotMatch(bridge,/AudioContext|AudioWorklet/); @@ -1240,9 +1243,10 @@ test("P0 native FX rack and per-slot readback update mounted strip without repla test("P0 startup banner never demands legacy Patch CH1 / Arm wizard",()=>{ const bridge=read("web/approved-native-bridge.js"); - assert.match(bridge,/SELECT CHANNEL IN · NATIVE MONITOR AFTER ACK/); - assert.match(bridge,/NO CAPTURE INPUT · OPEN AUDIO I\/O/); - assert.match(bridge,/NO VERIFIED INPUT ROUTE · OPEN AUDIO I\/O/); + assert.match(bridge,/SELECT A CHANNEL INPUT/); + assert.match(bridge,/CHOOSE AN INPUT/); + assert.match(bridge,/OPEN AUDIO I\/O TO CONNECT/); + assert.doesNotMatch(bridge,/FAT PENDING/); assert.doesNotMatch(bridge,/NO AUDIBLE OUTPUT · PATCH INPUT \+ ARM/); assert.match(bridge,/const preparedFirstSound=session\?\.authority==="NONE"/); assert.match(bridge,/const deviceReady=\(\)=>/); @@ -1439,9 +1443,10 @@ test("native Windows operator can explicitly patch first physical input, arm and assert.match(js,/arMixAudioArmAck/); assert.match(js,/if\(ack\.ok===true\)/); assert.match(js,/NATIVE PATCH REJECTED:/); - assert.match(js,/NO VERIFIED AUDIO DEVICE/); - assert.match(js,/NATIVE PCM · HARDWARE FAT PENDING/); - assert.match(js,/MAIN MONITOR ON · PCM ADMISSION NOT VERIFIED/); + assert.match(js,/OPEN AUDIO I\/O TO CONNECT/); + assert.match(js,/OUTPUT ENABLED/); + assert.match(js,/CHECK CHANNEL ROUTING/); + assert.doesNotMatch(js,/FAT PENDING/); assert.match(main,/action=="routingSourceSwitch"/); assert.match(main,/engine_\.liveOutputArmFault\(\)/); assert.match(main,/safe->emitApprovedNativeSnapshot\(\)/); diff --git a/tests/css_v28_restore.py b/tests/css_v28_restore.py index 8982363b4..ed2f27546 100644 --- a/tests/css_v28_restore.py +++ b/tests/css_v28_restore.py @@ -44,7 +44,50 @@ def reconstruct(): for link in brand_head_links: assert html.count(link)<=1, "Duplicate approved favicon metadata" html=html.replace(link,"",1) + # V28 is a HISTORICAL CSS-transfer proof. Reconstruct that unchanged + # checkpoint from today's later, explicitly bounded desktop enhancement. + # Do not rewrite V28's immutable fixture or pretend subsequent features + # were part of its original no-visual-change CSS relocation. + desktop_resize="// Desktop maximise, restore, DPI changes and normal resizing are layout events," + assert html.count(desktop_resize)==1,"Desktop WIRE geometry hook missing or duplicated" + end_marker="restorePluginPreferences();init();" + start=html.index(desktop_resize) + end=html.index(end_marker,start) + legacy_resize=("let resizeQueued=false;\n" + "window.addEventListener('resize',()=>{\n" + " if(resizeQueued)return;resizeQueued=true;\n" + " requestAnimationFrame(()=>{resizeQueued=false;render();});\n" + "});\n") + html=html[:start]+legacy_resize+html[end:] + # MAIN pin-fragment caching and stale-RAF cancellation were introduced + # after V28; invert only those explicit, uniquely anchored edits here. + # The historical fixture itself must remain immutable. + for changed, prior in ( + ("// MAIN mini cables use a separate one-shot dirty flag; ordinary pointer moves\n// must not force layout reads on a stable native viewport.\nlet wireFragmentGeometryDirty=false;\n", + ""), + (" // A stable edgeId can still move when the host window is resized.\n // Refresh the physical anchor only on a geometry event (or edge edit).\n if(layer?.dataset.edgeId===String(edge.id)&&!wireFragmentGeometryDirty)return;", + " // Structural render, bank, density and resize remount the section; a\n // changed accepted edgeId invalidates this tiny projection automatically.\n if(layer?.dataset.edgeId===String(edge.id))return;"), + ("function renderWireRouting(){\n syncMainWireFragments();\n wireFragmentGeometryDirty=false;", + "function renderWireRouting(){\n syncMainWireFragments();") + ): + assert html.count(changed)==1,"Desktop WIRE checkpoint fragment drift" + html=html.replace(changed,prior,1) chrome=OWNER.read_text(encoding="utf-8") + # Owner V2 adds a native-ONLY toolbar after the original desktop caption. + # Strip that uniquely anchored addition first, preserving the strict V28 + # byte-for-byte historical CSS migration and the old 1600-byte caption gate. + desktop_toolbar_css="\n/* Native desktop toolbar V2 — functional hardware keys stay 29px high." + assert chrome.count(desktop_toolbar_css)==1,"Native toolbar CSS owner missing or duplicated" + toolbar_tail=chrome[chrome.index(desktop_toolbar_css):] + assert 1200 .window-title" in extra_css + assert len(extra_css)<1600,"Desktop caption CSS unexpectedly includes unrelated rules" + chrome=chrome[:chrome.index(desktop_css)] assert meta(html)==d["current"]["html"],"V28 HTML changed after checkpoint" assert meta(chrome)==d["current"]["chrome"],"V28 Chrome CSS changed after checkpoint" moved=d["movedCss"] diff --git a/tests/desktop_wire_resize_chromium_smoke.py b/tests/desktop_wire_resize_chromium_smoke.py new file mode 100644 index 000000000..3f3ccef27 --- /dev/null +++ b/tests/desktop_wire_resize_chromium_smoke.py @@ -0,0 +1,145 @@ +#!/usr/bin/env python3 +"""Physical WIRE endpoint accuracy across Windows-like viewport resize sequences. + +The exact generated /preview/ page is exercised in real Chromium. No mocked +routing or PCM authority, no screenshot-only judgement and no idle polling. +""" +from __future__ import annotations + +import re +import subprocess +import sys +import tempfile +from pathlib import Path + +from playwright.sync_api import sync_playwright +from approved_publication_fixture import published_console + +ROOT = Path(__file__).resolve().parents[1] +NUMBER = re.compile(r"-?\d+(?:\.\d+)?") + + +def center(locator): + b = locator.bounding_box() + assert b and b["width"] > 0 and b["height"] > 0, ("missing socket", b) + return b["x"] + b["width"] / 2, b["y"] + b["height"] / 2 + + +def path_points(locator): + d = locator.get_attribute("d") or "" + numbers = [float(v) for v in NUMBER.findall(d)] + assert len(numbers) >= 4 and d.startswith("M") and (" C" in d or " L" in d), ("no committed WIRE path", d) + return (numbers[0], numbers[1]), (numbers[-2], numbers[-1]) + + +def assert_pinned(page, width): + vp = page.locator("#viewport").bounding_box() + assert vp and vp["width"] > 0, (width, "viewport missing", vp) + src = page.locator('#tracks .strip[data-id="5"] .wire-node-out .wire-pin') + dst = page.locator('#tracks .strip[data-id="3"] .wire-node-in .wire-arrow') + cable = page.locator('#wireLayer path.wire-outgoing-line[data-from="5"][data-to="3"]') + assert cable.count() == 1, (width, "committed WIRE disappeared", cable.count()) + source, dest = path_points(cable) + pin = center(src) + socket = center(dst) + actual = ((pin[0] - vp["x"], pin[1] - vp["y"]), + (socket[0] - vp["x"], socket[1] - vp["y"])) + for label, got, expect in zip(("OUT", "IN"), (source, dest), actual): + assert abs(got[0] - expect[0]) < .6 and abs(got[1] - expect[1]) < .6, ( + width, label, "stale cable endpoint after resize", got, expect) + assert page.locator('#tracks .strip[data-id="3"] .wire-node-in').get_attribute( + "data-wire-arrival") == "true", (width, "accepted WIRE arrival lost") + + # A MAIN fragment is a local SVG drawn in its own send-section coordinate + # system. It must follow the real pin after height changes without + # depending on an edge-ID change. + main = page.locator('#tracks .strip[data-id="5"] .wire-main-fragment path.wire-main-jacket') + if main.count(): + p0, _ = path_points(main) + section = page.locator('#tracks .strip[data-id="5"] .send-section.wire-section') + pin = center(section.locator('.wire-node-out .wire-pin')) + rect = section.bounding_box() + assert abs(p0[0] - (pin[0] - rect["x"])) < .65 and abs( + p0[1] - (pin[1] - rect["y"])) < .65, ( + width, "MAIN mini cable detached from physical pin", p0, pin, rect) + + +def main(): + with tempfile.TemporaryDirectory(prefix="arsonmix-caption-wire-") as td: + dist = Path(td) / "dist" + subprocess.run([sys.executable, str(ROOT / "scripts/build_pages.py"), + "--out", str(dist), "--sha", "caption-wire-resize", + "--branch", "native-caption"], cwd=ROOT, + text=True, capture_output=True, check=True) + public = published_console(dist) + with sync_playwright() as pw: + browser = pw.chromium.launch(headless=True) + page = browser.new_page(viewport={"width": 1680, "height": 900}) + errors = [] + page.on("pageerror", lambda error: errors.append(str(error))) + page.goto(public.as_uri()) + page.locator('#tracks .strip[data-id="5"] .strip-identity-top').click() + body = page.locator(".console-body") + if "collapsed-send" in (body.get_attribute("class") or ""): + page.locator('.section-rail [data-section="send"]').click() + + src = page.locator('#tracks .strip[data-id="5"] .wire-node-out .wire-pin') + dst = page.locator('#tracks .strip[data-id="3"] .wire-node-in .wire-arrow') + x0, y0 = center(src) + x1, y1 = center(dst) + page.mouse.move(x0, y0) + page.mouse.down() + page.mouse.move((x0+x1)/2, y0+52, steps=7) + page.mouse.move(x1, y1, steps=7) + page.mouse.up() + page.mouse.move(x0, y0-65) + page.wait_for_function("""()=>!!document.querySelector( + '#wireLayer path.wire-outgoing-line[data-from="5"][data-to="3"]')""") + # Exercise both within-bank resize and actual bank-capacity change. + for width, height in ((1680, 900), (1366, 900), (1920, 1080), + (1280, 760), (1680, 820)): + page.set_viewport_size({"width": width, "height": height}) + page.wait_for_function("""()=> { + const svg=document.querySelector('#wireLayer'); + const vp=document.querySelector('#viewport'); + return !!svg&&!!vp&&svg.viewBox.baseVal.width===vp.getBoundingClientRect().width; + }""") + assert_pinned(page, width) + + # Start an OUT gesture, then force a bank remount via narrow resize. + # The pointer-capture owner gets detached; the gesture must be + # cancelled fail-closed, not turned into an unintended route. + before = page.locator('#tracks .strip[data-id="2"] .wire-node-in').get_attribute( + "data-wire-arrival") + loose = page.locator('#tracks .strip[data-id="6"] .wire-node-out .wire-pin') + x, y = center(loose) + page.mouse.move(x, y) + page.mouse.down() + page.mouse.move(x+35, y+32, steps=5) + assert "wire-dragging" in (body.get_attribute("class") or ""), ( + "test never activated a cable drag") + prior_capacity = page.evaluate("""()=>Number(document.querySelector('.console-body') + ?.style.getPropertyValue('--bank-capacity'))""") + assert prior_capacity >= 7, ("test needs an expanded bank", prior_capacity) + page.set_viewport_size({"width": 1200, "height": 760}) + page.wait_for_function("""prior => { + const root=document.querySelector('.console-body'); + const next=Number(root?.style.getPropertyValue('--bank-capacity')); + return next>0&&next fs.readFileSync(path.join(root, p), 'utf8'); +const main = read('src/Main.cpp'), chrome = read('src/ArSonWindowChrome.h'); +const page = read('site/preview-v2/index.html'); +const css = read('site/preview-v2/assets/mixer-chrome-material.css'); +const bridge = read('web/approved-native-bridge.js'); +assert.match(main, /setLookAndFeel \(&mixerCaption_\)/); +assert.match(main, /setUsingNativeTitleBar \(false\)/); +assert.match(main, /setTitleBarHeight \(31\)/); +assert.match(main, /setLookAndFeel \(nullptr\)/); +assert.match(chrome, /M6\.4,19L5,17\.6L10\.6,12/); +assert.match(chrome, /M6,21V19H18v2H6Z/); +assert.match(chrome, /M3,21V3H21V21H3Z/); +assert.match(chrome, /constexpr int buttonWidth = 34/); +assert.match(chrome, /12\.0f, 12\.0f/); +assert.match(chrome, /0xffdc3549/); +assert.match(chrome, /0xff168fa7/); +assert.match(chrome, /0xff287abd/); +assert.match(chrome, /drawRoundedRectangle/); +assert.match(chrome, /GlyphArrangement::getStringWidthInt \(brandFont, word\)/); +assert.match(chrome, /paintPart \("Ar", juce::Colour/); +assert.match(chrome, /paintPart \("Son", juce::Colour/); +assert.match(chrome, /paintPart \("MiX", juce::Colour/); +assert.match(chrome, /Open Source Premium Digital Mixer/); +assert.match(chrome, /Version 01\.00/); +assert.match(chrome, /charToString \(\(juce::juce_wchar\) 0x00a9\)/); +assert.match(chrome, /charToString \(\(juce::juce_wchar\) 0x00b7\)/); +assert.match(chrome, /const auto advance = juce::GlyphArrangement::getStringWidthInt/); +assert.match(chrome, /2026 SonKuPik/); +assert.doesNotMatch(chrome, /NATIVE SESSION/); +assert.ok(bridge.includes('classList?.add?.("armix-native-desktop")')); +assert.match(bridge, /const operatorMessage = message =>/); +assert.match(bridge, /const NEEDS_REMAP="Audio connection lost"/); +assert.match(bridge, /MutationObserver\(sanitize\)/); +assert.match(bridge, /const nodes=\[transport,info,warning\]\.filter\(Boolean\)/); +assert.match(bridge, /const operatorTransport=operatorMessage\(transport\)/); +assert.match(bridge, /return "Mixer ready"/); +assert.doesNotMatch(bridge, /FAT PENDING/); +assert.doesNotMatch(bridge, /HARDWARE FAT PENDING/); +assert.match(bridge, /"OUTPUT ENABLED"/); +assert.match(bridge, /status\("Mixer settings updated"\)/); +assert.match(bridge, /element\.textContent=operatorMessage\(message\)/); +assert.match(bridge, /nativeToolbarGroup=name/); +assert.match(bridge, /toolbar\.insertBefore\(divider,element\)/); +assert.match(css, /html\.armix-native-desktop \.app \.command-bar\{\s*height:43px!important/); +assert.match(css, /\.armix-toolbar-divider\{display:none!important\}/); +assert.match(css, /html\.armix-native-desktop \.app > \.window-title\{display:none!important\}/); +assert.match(page, /function scheduleWireGeometryReflow\(\)/); +assert.match(page, /let wireFragmentGeometryDirty=false/); +assert.match(page, /wireMotion\.token;wireMotion\.key=null/); +assert.match(page, /if\(layer\?\.dataset\.edgeId===String\(edge\.id\)&&!wireFragmentGeometryDirty\)return/); +assert.match(page, /new ResizeObserver\(scheduleWireGeometryReflow\)/); +assert.match(page, /if\(drawn&&required!==drawn\)\{/); +assert.match(page, /if\(wireGesture\)\{/); +assert.match(page, /wireGesture=null;wireSuppressClick=true/); +assert.match(page, /if\(faderGesture\)\{/); +assert.match(page, /render\(\); \/\/ structural bank change only/); +assert.match(page, /renderWireRouting\(\); \/\/ geometry-only/); +assert.match(page, /document\.addEventListener\('visibilitychange'/); +assert.doesNotMatch(page, /resizeQueued=false;render\(\)/); +// Reconciled main Player M3 controls must survive the native caption branch. +const playerHtml = read('site/preview-v2/assets/mixer-contextual-buttons.js'); +assert.match(main, /struct PlayerTrackSettings/); +assert.match(main, /action=="playerKeyStep" \|\| action=="playerTempoStep"/); +assert.match(main, /setPlayerPitchTempo\(next\.key,next\.tempo\)/); +assert.match(playerHtml, /id="playerKeyMinus"/); +assert.match(playerHtml, /id="playerTempoPlus"/); +assert.match(playerHtml, /armix-brand-mix/); +console.log('Native titlebar + supplied SVG + WIRE geometry contract PASS'); + +// Runtime scheduler test with fake DOM; no WebView2, no sound engine and no timer. +const vm = require('node:vm'); +// User-visible status copy must never expose internal admission/QA or revision +// codes even if the preview or native error path emits one later. +const messageStart=bridge.indexOf('const operatorMessage = message => {'); +const messageEnd=bridge.indexOf('\n const status = message => {',messageStart); +assert.ok(messageStart>0&&messageEnd>messageStart,'operator copy adapter missing'); +const operatorCopy=vm.runInNewContext( + bridge.slice(messageStart,messageEnd).replace('const operatorMessage','var operatorMessage')+ + '\noperatorMessage;',{}, {filename:'native-operator-copy.js'}); +for(const raw of [ + 'NATIVE PCM · HARDWARE FAT PENDING', + 'NATIVE PCM GRAPH ACCEPTED · FAT PENDING · device 3 · graph 3 · roster 94', + 'NATIVE PENDING_ACCEPTED_SNAPSHOT · awaiting authoritative readback', + 'WIRE not applied · native admission timed out; previous audio preserved', + 'NATIVE: STALE_NATIVE_WIRE_GRAPH · previous controls unchanged', + 'SIMULATED METERS · NO REAL AUDIO', + 'DEVICE_INIT_FAILED', + 'STALE_NATIVE_GRAPH_REVISION', + 'JUCE_CALLBACK_DIAGNOSTIC_FAT_PENDING', + 'HARDWARE FAT PENDING', + 'FAT PENDING', + 'NATIVE PCM GRAPH ACCEPTED · FAT PENDING · device 1', + 'MONITOR ON · OUT Headphones · NATIVE PCM · HARDWARE FAT PENDING' +]){ + const shown=operatorCopy(raw); + assert.ok(shown.length>0); + assert.doesNotMatch(shown,/\b(FAT|PCM|ACK|readback|graph|roster|epoch|revision|native|simulated|demo|admission)\b|NATIVE_/i); +} +assert.equal(operatorCopy('Mixer saved as .smix'),'Mixer saved as .smix'); +assert.equal(operatorCopy('HARDWARE FAT PENDING'),'Mixer ready'); +assert.equal(operatorCopy('MONITOR ON · NATIVE PCM · FAT PENDING'),'Output enabled'); +console.log('Operator-facing footer and toast copy isolation PASS'); +const begin=page.indexOf('// Desktop maximise, restore, DPI changes'); +const end=page.indexOf('restorePluginPreferences();init();',begin); +assert.ok(begin>=0&&end>begin,'geometry scheduler source must exist'); +let drawn=9, required=9, width=800, hidden=false; +let renderCount=0, wireCount=0; +const raf=[], events=new Map(), docEvents=new Map(); +const node={clientWidth:width,clientHeight:600}; +const dom={ + get hidden(){return hidden;}, + getElementById:()=>{node.clientWidth=width;return node;}, + querySelector:()=>({style:{getPropertyValue:()=>String(drawn)}}), + addEventListener:(name,handler)=>docEvents.set(name,handler) +}; +const browser={addEventListener:(name,handler)=>events.set(name,handler)}; +const motion={token:7,key:'stale-edge',offset:3}; +const changed={graph:0,cancelled:0,captureReleased:0}; +class FakeResizeObserver{constructor(handler){this.handler=handler}observe(){}} +const sandbox={ + document:dom,window:browser,ResizeObserver:FakeResizeObserver, + wireGesture:null,faderGesture:null,wireSuppressClick:false, + setWireSnapTarget:()=>changed.cancelled++, + wireMotion:motion,wireFragmentGeometryDirty:false, + requestAnimationFrame:fn=>{raf.push(fn);return raf.length;}, + bankCapacity:()=>required,render:()=>{renderCount++}, + renderWireRouting:()=>{wireCount++;assert.equal(sandbox.wireFragmentGeometryDirty,true);sandbox.wireFragmentGeometryDirty=false;} +}; +vm.runInNewContext(page.slice(begin,end),sandbox,{filename:'wire-reflow-runtime.js'}); +const frame=()=>{assert.equal(raf.length,1);raf.shift()();}; +events.get('resize')();events.get('resize')(); +frame(); +assert.equal(wireCount,1,'two resize events need just one geometry pass'); +assert.equal(motion.token,8,'in-flight wire animation cancels once'); +assert.equal(motion.key,null,'stale wire coordinates are retired'); +assert.equal(renderCount,0,'no full mixer rebuild within a bank'); +required=8;events.get('resize')();frame(); +assert.equal(renderCount,1,'bank boundary requires structural render'); +assert.equal(motion.token,9,'structural resize must also cancel old WIRE motion'); +assert.equal(changed.graph,0,'resize must never commit graph operations'); +// A captured WIRE drag must be retired before a bank's DOM is replaced. +const oldRoot=dom.querySelector; +dom.querySelector=()=>({ + style:{getPropertyValue:()=>String(drawn)}, + classList:{remove:()=>{}}, + querySelectorAll:()=>[{classList:{remove:()=>{}}}], + querySelector:()=>({hasPointerCapture:()=>true,releasePointerCapture:()=>changed.captureReleased++}) +}); +sandbox.wireGesture={pointerId:88,sourceId:5,originDestId:null,active:true}; +required=7;events.get('resize')();frame(); +assert.equal(renderCount,2,'second bank change must still redraw'); +assert.equal(sandbox.wireGesture,null,'detached WIRE drag must be cancelled'); +assert.equal(sandbox.wireSuppressClick,true,'late click must not create a route'); +assert.equal(changed.cancelled,1,'snap outline must be cleared once'); +assert.equal(changed.captureReleased,1,'native pointer capture must be released'); +dom.querySelector=oldRoot; +drawn=7; // simulate the structural render committing its new bank geometry +hidden=true;events.get('resize')(); +assert.equal(raf.length,0,'hidden window must not repaint'); +hidden=false;docEvents.get('visibilitychange')();frame(); +assert.equal(wireCount,2,'restore repaints live pin geometry'); +width=0;events.get('focus')();frame(); +assert.equal(wireCount,2,'zero viewport must not paint stale SVG'); +width=800;events.get('pageshow')();frame(); +assert.equal(wireCount,3,'recovered WebView viewport repaints'); +console.log('Coalesced runtime WIRE resize / restore scheduler PASS'); diff --git a/tests/native_header_toolbar_chromium_smoke.py b/tests/native_header_toolbar_chromium_smoke.py new file mode 100644 index 000000000..27b562693 --- /dev/null +++ b/tests/native_header_toolbar_chromium_smoke.py @@ -0,0 +1,116 @@ +#!/usr/bin/env python3 +"""Native-only desktop toolbar: real assembled WebView DOM, no DSP simulation. + +Verify breathing room, semantic group separators, no overlapped controls and +the original file/menu actions at ordinary and minimum Windows widths. +""" +import importlib.util +import tempfile +from pathlib import Path + +from playwright.sync_api import sync_playwright + +ROOT = Path(__file__).resolve().parents[1] + + +def main(): + spec = importlib.util.spec_from_file_location( + "native_bundle", ROOT / "scripts/build_approved_native_gui.py") + bundle = importlib.util.module_from_spec(spec) + spec.loader.exec_module(bundle) + with tempfile.TemporaryDirectory(prefix="arsonmix-toolbar-") as folder, sync_playwright() as pw: + dst = Path(folder) + bundle.stage(dst) + browser = pw.chromium.launch(headless=True) + for width, height in ((1680, 900), (1366, 768), (1200, 740), (1100, 650)): + page = browser.new_page(viewport={"width": width, "height": height}) + errors = [] + page.on("pageerror", lambda err: errors.append(str(err))) + page.add_init_script("""window.__nativeListeners=new Map();window.__events=[]; + window.__JUCE__={backend:{ + emitEvent(name,payload){window.__events.push({name,payload});}, + addEventListener(name,callback){window.__nativeListeners.set(name,callback);} + }};""") + page.goto((dst / "index.html").as_uri()) + page.wait_for_function("""()=>document.documentElement.classList.contains('armix-native-desktop') && + document.querySelectorAll('.command-bar .mixer-file-tool').length===2 && + document.querySelectorAll('.command-bar .armix-toolbar-divider').length===4 && + !!document.getElementById('playerToggle')""") + metrics = page.evaluate("""()=>{ + const bar=document.querySelector('.command-bar'); + const b=bar.getBoundingClientRect(); + const more=document.querySelector('#moreTools').getBoundingClientRect(); + const visible=[...bar.children].filter(el=>{ + const r=el.getBoundingClientRect(),cs=getComputedStyle(el); + return r.width>0 && r.height>0 && cs.display!=='none' && + !el.classList.contains('armix-toolbar-divider') && + !el.classList.contains('sep'); + }).map(el=>({id:el.id||el.textContent.trim().slice(0,12), + left:el.getBoundingClientRect().left, + right:el.getBoundingClientRect().right})); + return {bar:{height:b.height,left:b.left,right:b.right}, + more:{left:more.left,right:more.right}, + visible,dividers:[...bar.querySelectorAll('.armix-toolbar-divider')] + .map(el=>({hidden:getComputedStyle(el).display==='none', + height:el.getBoundingClientRect().height}))}; + }""") + assert metrics["bar"]["height"] == 43, (width, "incorrect native toolbar height", metrics) + assert metrics["more"]["right"] <= width + 1, ( + width, "overflow More menu outside window", metrics) + assert metrics["dividers"][0]["height"] in (0, 21), ( + width, "divider layout changed", metrics) + visible = metrics["visible"] + for a, b in zip(visible, visible[1:]): + # More can be pushed to the far right, never overlaid on controls. + assert a["right"] <= b["left"] + 1, ( + width, "toolbar controls overlap", a, b) + for item in visible: + assert item["left"] >= -1 and item["right"] <= width+1, ( + width, "toolbar control outside viewport", item) + for caption in ("Save", "Open"): + button = page.locator('.command-bar .mixer-file-tool').filter(has_text=caption) + assert button.count() == 1 and button.is_visible(), ( + width, "native file control not usable", caption) + button.click() + assert page.evaluate("()=>window.__events.at(-1).payload.action") == ( + "nativeMixerFile"+caption), (width, "file action disconnected", caption) + # Native-only status presenter must not expose internal FAT, + # PCM graph revision counters, or simulation copy in the UI. + operator_footer = page.evaluate("""async()=>{ + document.getElementById('info').textContent = + 'NATIVE PCM GRAPH ACCEPTED · FAT PENDING · device 1 · graph 3 · roster 94'; + document.querySelector('.status-bar .warning').textContent = + 'NATIVE PCM · HARDWARE FAT PENDING'; + document.getElementById('transport').textContent = + 'MONITOR ON · OUT Headphones · NATIVE PCM GRAPH ACCEPTED · FAT PENDING'; + // MutationObserver reactions run at the microtask checkpoint; + // a frame guarantees presentation has completed. + await Promise.resolve(); + await new Promise(requestAnimationFrame); + return { + info: document.getElementById('info').textContent, + warning: document.querySelector('.status-bar .warning').textContent, + transport: document.getElementById('transport').textContent + }; + }""") + visible_footer = " ".join(str(v) for v in operator_footer.values()) + assert operator_footer["info"] == "Mixer ready", (width,operator_footer) + assert operator_footer["warning"] == "Mixer ready", (width,operator_footer) + assert operator_footer["transport"] == "Output enabled", (width,operator_footer) + assert not __import__("re").search( + r"FAT|PCM|NATIVE|GRAPH|ROSTER|SIMULATED|MOCKUP", + visible_footer,__import__("re").IGNORECASE), (width,operator_footer) + more = page.locator("#moreTools>summary") + more.click() + assert page.locator("#moreTools").get_attribute("open") is not None, ( + width, "More menu did not open") + more.click() + assert not errors, (width, "native JavaScript errors", errors) + print("NATIVE_TOOLBAR", width, metrics["bar"], len(visible), flush=True) + page.close() + browser.close() + print("PASS native toolbar: spacing, group borders, actions, four viewports") + + +if __name__ == "__main__": + main() diff --git a/web/approved-native-bridge.js b/web/approved-native-bridge.js index b202f8c60..fb29b9717 100644 --- a/web/approved-native-bridge.js +++ b/web/approved-native-bridge.js @@ -8,6 +8,9 @@ // reference to that SAME model; never reconstruct a parallel DOM/DSP. const scope = window.__ARMIX_NATIVE_SCOPE__ || null; const connected = Boolean(backend?.emitEvent && backend?.addEventListener && protocol); + // Public browser preview keeps its header; the native JUCE caption replaces it. + if (backend?.emitEvent && backend?.addEventListener) + document.documentElement?.classList?.add?.("armix-native-desktop"); // The old M1 wording is retained as an explicit boot-time fallback for // release-train compatibility, NOT a claim that a demo graph is audio. const fallback = "M1_VISUAL_BUNDLE_ONLY__NOT_AUDIO_READY"; @@ -244,11 +247,79 @@ let nativeFxPowerSerial=0,pendingNativeFxPower=null; const pendingM4RackPowers=new Map(); let controller = null; + // Human-facing presentation is isolated from native diagnostic state. + // Internal identifiers remain in engine logs, never footer, dialog or toast. + const operatorMessage = message => { + const raw=String(message??"").trim(); + if(!raw)return ""; + // A product never advertises unfinished internal QA/FAT certification to + // operators. This is a display-only adapter, not an audio-state override. + if(/\b(?:HARDWARE\s+)?FAT\s+(?:PENDING|PASSED|FAILED)\b|\b(?:NATIVE\s+)?PCM\s+(?:GRAPH|HARDWARE|FAT)\b|\b(?:PENDING_ACCEPTED_SNAPSHOT|HARDWARE_FAT_PENDING)\b/i.test(raw)){ + if(/\b(?:output muted|monitor off)\b/i.test(raw))return "Output muted"; + if(/\b(?:monitor on|output enabled|output active)\b/i.test(raw))return "Output enabled"; + return "Mixer ready"; + } + const internalCode=/\b[A-Z][A-Z0-9]{2,}(?:_[A-Z0-9]+)+\b/.test(raw); + if(internalCode || + /\b(FAT|PCM|ACK|readback|admission|admitted|graph|roster|epoch|revision|M[0-9]|JUCE|callback|worker|fixture|reference|mockup|simulated|demo|legacy|native|authoritative)\b/i.test(raw)){ + if(/\b(device|driver|audio interface)\b|DEVICE_/i.test(raw) && + /\b(disconnect|unavailable|not ready|not open|not found|failed)\b|_(FAILED|ERROR|DISCONNECTED|UNAVAILABLE)/i.test(raw)) + return "Audio device unavailable · Open Audio I/O"; + if(/\b(WIRE|route|routing)\b/i.test(raw)){ + if(/\b(reject|fail|error|timed out|not applied|unavailable)\b/i.test(raw)) + return "Routing not changed · Check the connection and try again"; + if(/\b(pending|await|verif|applying|completing)\w*/i.test(raw)) + return "Updating channel routing…"; + return "Channel routing updated"; + } + if(/\b(VST3|plugin|effect|FX)\b/i.test(raw)){ + if(/\b(reject|fail|error|timed out)\b/i.test(raw)) + return "Effect change failed · Previous settings kept"; + if(/\b(pending|await|verif|loading|applying)\w*/i.test(raw)) + return "Applying effect…"; + return "Effect settings updated"; + } + if(/\b(error|failed|rejected|timed out|invalid|unavailable|not applied)\b|_(FAILED|ERROR|REJECTED|STALE|INVALID|TIMEOUT|MISSING)(?:\b|_)/i.test(raw)) + return "Change not applied · Previous mixer settings kept"; + if(/\b(pending|awaiting|verifying|saving|processing|applying|loading|deleting)\b|_PENDING\b|PENDING_/i.test(raw)) + return "Applying mixer changes…"; + return "Mixer settings updated"; + } + return raw; + }; const status = message => { - lastNativeError = message; + lastNativeError = message; // raw engine state remains inspectable internally + const text = operatorMessage(message); const info = document.getElementById("info"); - if (info && info.textContent !== message) info.textContent = message; + if (info && info.textContent !== text) info.textContent = text; }; + // The original preview's say() may still populate this footer. + // Observe two text nodes only, no polling, audio callback or DOM-wide scans. + if(connected){ + const transport=document.getElementById?.("transport"); + const info=document.getElementById?.("info"); + const warning=document.querySelector?.(".status-bar .warning"); + if(transport)transport.textContent="Opening mixer…"; + if(info)info.textContent="Opening mixer…"; + if(warning)warning.textContent="CONNECTING AUDIO…"; + if(typeof MutationObserver==="function"){ + // The preview, legacy host and new bridge can all write into the + // transport/last-action/warning footer. Guard *all three* output nodes. + // Native only; public browser preview retains its instructional copy. + const nodes=[transport,info,warning].filter(Boolean); + const sanitize=()=>{ + for(const node of nodes){ + const clean=operatorMessage(node.textContent); + if(node.textContent!==clean)node.textContent=clean; + } + }; + const observer=new MutationObserver(sanitize); + for(const node of nodes) + observer.observe(node,{childList:true,characterData:true,subtree:true}); + } + const demoFoot=document.querySelector?.(".route-choice-foot"); + if(demoFoot)demoFoot.textContent="Your routing changes take effect after you confirm."; + } const stopDemo = () => { // The public Pages demo remains unchanged. In native, DEMO meters and // reference-only physical operations are never passed off as live audio. @@ -598,7 +669,7 @@ Number.isInteger(p.port) && hardware.device.enabledInputs.includes(p.port)):[]; // BUS is verified engine state, not an available hardware input choice. const INTERNAL_BUS="Internal BUS (read-only)"; - const NEEDS_REMAP="NEEDS REMAP"; + const NEEDS_REMAP="Audio connection lost"; const monoLabel=p=>"Mono · "+p.label+" [IN "+(p.port+1)+"]"; const stereoLabel=(a,b)=>"Stereo · IN "+(a.port+1)+" + "+(b.port+1); const inputChoicesFor=()=>{ @@ -1498,25 +1569,24 @@ scope.master.output=mainOutput; if(!next?.admitted && !next?.retained)scope.render?.(); } - const transport=next?.retained?"MONITOR OFF · OUT NEEDS REMAP": - !deviceOpen?"Audio device not ready": - (d.outputArmed?"MONITOR ON":"MONITOR OFF")+" · OUT "+playback+ - (virtualOut?" · VIRTUAL / NO SPEAKERS":""); - if(label && label.textContent!==transport)label.textContent=transport; + const transport=next?.retained?"Output disconnected · Open Audio I/O": + !deviceOpen?"Audio device unavailable · Open Audio I/O": + (d.outputArmed?"Output enabled":"Output muted")+" · "+playback+ + (virtualOut?" · Virtual output":""); + const operatorTransport=operatorMessage(transport); + if(label && label.textContent!==operatorTransport)label.textContent=operatorTransport; const warning=document.querySelector?.(".status-bar .warning"); // A silent first-sound session is not an operator failure and does // not require Patch CH1 / Arm / Start controls. The real IN dropdown // initiates native source publication; only its correlated ACK may // request a safe first MONITOR. If the driver exposes no physical IN, // guide the operator to the existing Audio I/O panel instead. - const warningText=next?.retained?"NEEDS REMAP · MIXER RETAINED · OUTPUT MUTED": - !deviceOpen?"NO VERIFIED AUDIO DEVICE": - d.outputArmed?(next.admitted?"NATIVE PCM · HARDWARE FAT PENDING": - "MAIN MONITOR ON · PCM ADMISSION NOT VERIFIED"): - !d.enabledInputs?.length?"NO CAPTURE INPUT · OPEN AUDIO I/O": - legacy()?.routeAccepted?"NATIVE INPUT ROUTED · MONITOR OFF": - deviceReady()?"SELECT CHANNEL IN · NATIVE MONITOR AFTER ACK": - "NO VERIFIED INPUT ROUTE · OPEN AUDIO I/O"; + const warningText=next?.retained?"RECONNECT AUDIO OUTPUT": + !deviceOpen?"OPEN AUDIO I/O TO CONNECT": + d.outputArmed?(next.admitted?"OUTPUT ENABLED":"CHECK CHANNEL ROUTING"): + !d.enabledInputs?.length?"CHOOSE AN INPUT": + legacy()?.routeAccepted?"OUTPUT MUTED": + deviceReady()?"SELECT A CHANNEL INPUT":"OPEN AUDIO I/O TO CONNECT"; if(warning && warning.textContent!==warningText)warning.textContent=warningText; if(!inputSelect)return; const pins=deviceOpen?d.inputEndpoints.filter(p=> @@ -1547,12 +1617,12 @@ const muteDisabled=!deviceOpen || !d.outputArmed; if(muteBtn && muteBtn.disabled!==muteDisabled)muteBtn.disabled=muteDisabled; if(hardwareNote) { - const evidence=protocol.diagnoseFirstSound?.(next,inputSelect.value); - // Human-readable PCM stages from the ORIGINAL native callback only. - // These values are NOT evidence that the DAC or speaker is audible. - const note=evidence? - evidence.readout+" · "+evidence.nextAction: - "No verified hardware PCM readback available."; + // Device guidance only. Detailed PCM readback is an internal diagnostic. + const note=next?.retained?"Reconnect the audio output in Audio I/O.": + !deviceOpen?"Choose an audio device in Audio I/O.": + !d.enabledInputs?.length?"Choose an audio input for your channels.": + d.outputArmed?"Output is enabled. Check channel inputs and levels.": + "Output is muted. Select Unmute Output to listen."; if(hardwareNote.textContent!==note)hardwareNote.textContent=note; } } @@ -1575,7 +1645,7 @@ "font:12px system-ui,sans-serif;box-shadow:0 9px 28px #0008"; document.body.appendChild(element); } - element.textContent=message;element.hidden=false; + element.textContent=operatorMessage(message);element.hidden=false; window.clearTimeout(toastTimer); toastTimer=window.setTimeout(()=>{element.hidden=true;},3400); } @@ -1688,7 +1758,7 @@ const active=devicePanel.querySelector("[data-audio-active]"); deviceResult=""; offeredPinRemap=null; - if(active)active.textContent="Reading verified audio devices…"; + if(active)active.textContent="Looking for audio devices…"; backend.emitEvent("arMixAction",{action:"audioDeviceInventory"}); } function fillAudioSelect(name,values,current){ @@ -1762,9 +1832,9 @@ }else pins.textContent="Apply this device first to inspect its real enabled pins."; } const activeText=devicePanel.querySelector("[data-audio-active]"); - if(activeText && !deviceBusy)activeText.textContent=deviceResult||(active.open? + if(activeText && !deviceBusy)activeText.textContent=operatorMessage(deviceResult||(active.open? "ACTIVE · "+active.backend+" · "+active.rate+" Hz / "+active.buffer+" samples": - "No verified audio device. Select a supported input and output."); + "No audio device connected. Select an input and output.")); devicePanel.querySelector("[data-audio-apply]").disabled=deviceBusy|| !deviceChoice.backend||!deviceChoice.capture|| !deviceChoice.playback; @@ -1783,7 +1853,7 @@ const requestId="approved-io-"+(++deviceRequest); devicePanel.dataset.pendingRequest=requestId; devicePanel.querySelector("[data-audio-active]").textContent= - "Applying audio device; verifying native readback…"; + "Applying audio device…"; backend.emitEvent("arMixAction",{action:"audioDeviceApply", requestId,expectedDeviceGeneration:Number(a.deviceGeneration), config:{backend:c.backend,captureDevice:c.capture, @@ -1820,8 +1890,8 @@ (outputReady?"Mixer ready · Output live": ack.mixerBound?"Mixer ready · Verify channel IN and output":"Audio device ready · choose a channel IN"): ack.state==="NEEDS_REMAP"? - "NEEDS REMAP · "+ack.error: - "Device rejected · "+(ack.error||"native hardware readback failed"); + "Device connection changed · Review audio inputs and outputs": + "Unable to use the selected device · Check Audio I/O"; deviceChoice=null; if(accepted){ devicePanel.hidden=true; @@ -1911,7 +1981,7 @@ mark.addEventListener("click",()=>{ backend.emitEvent("arMixAction",{action:"diagnosticMark"}); nativeToast("Audio glitch marked · pre-event counters and RAM saved"); - status("Crackle marker sent to JUCE diagnostics"); + status("Audio issue recorded"); }); const report=item("button","tool","Copy Audio Report"); report.title="Copy real JUCE timing / driver / memory evidence to clipboard"; @@ -1937,7 +2007,7 @@ const showNote=item("span","more-tools-caption", "Verified Shows only · full dynamic-session autosave is not yet available"); showNote.style.whiteSpace="normal"; - showSelect.setAttribute("aria-label","Saved native Show"); + showSelect.setAttribute("aria-label","Saved session"); showSelect.style.maxWidth="210px";showSelect.style.fontSize="11px"; showSelect.hidden=true;showUpdate.hidden=true; showRecall.hidden=true;showRecover.hidden=true; @@ -1960,7 +2030,7 @@ } function showRefresh(){ showBusy=true;showControls(); - showNote.textContent="Browsing verified native Shows…"; + showNote.textContent="Loading saved sessions…"; backend.emitEvent("arMixAction",{action:"routingDryShowList"}); } showSave.addEventListener("click",()=>{ @@ -1969,7 +2039,7 @@ status("SHOW SAVE requires MUTED output");return; } showBusy=true;showControls(); - showNote.textContent="Capturing accepted routing and VST3 state…"; + showNote.textContent="Saving mixer settings…"; backend.emitEvent("arMixAction",{action:"routingDryShowSave"}); }); showUpdate.addEventListener("click",()=>{ @@ -1977,7 +2047,7 @@ if(showBusy||!entry||entry.needsRecovery||!showUuid.test(id)|| hardware?.device?.outputArmed!==false)return; showBusy=true;showControls(); - showNote.textContent="Saving verified next generation · previous Show retained…"; + showNote.textContent="Updating saved session…"; backend.emitEvent("arMixAction",{action:"routingDryShowSave",value:id}); }); showBrowse.addEventListener("click",()=>{if(!showBusy)showRefresh();}); @@ -1987,7 +2057,7 @@ if(showBusy||!entry||entry.needsRecovery||!showUuid.test(id)|| hardware?.device?.outputArmed!==false)return; showBusy=true;showControls(); - showNote.textContent="Verifying Show / preparing native FX · output stays MUTED…"; + showNote.textContent="Opening saved session · Output remains muted…"; backend.emitEvent("arMixAction",{action:"routingDryShowRecall",value:id}); }); showRecover.addEventListener("click",()=>{ @@ -1995,22 +2065,22 @@ if(showBusy||!entry?.hasPrevious||!showUuid.test(id)|| hardware?.device?.outputArmed!==false)return; showBusy=true;showControls(); - showNote.textContent="Verifying previous generation · valid latest will NOT be overwritten…"; + showNote.textContent="Checking the previous saved session…"; backend.emitEvent("arMixAction",{action:"routingDryShowRecover",value:id}); }); backend.addEventListener("arMixNativeShowSaveAck",ack=>{ showBusy=false;showControls(); if(ack?.ok===true){ - status("SHOW SAVED · native verified state · OUTPUT MUTED"); + status("Session saved · Output remains muted"); showRefresh(); }else{ - showNote.textContent="Save rejected: "+String(ack?.error||"Native capture rejected"); + showNote.textContent="Unable to save session · Previous settings preserved"; status(showNote.textContent); } }); backend.addEventListener("arMixNativeShowListAck",ack=>{ showBusy=false;showEntries.clear(); - showSelect.replaceChildren(showOption("Choose verified Show…","")); + showSelect.replaceChildren(showOption("Choose a saved session…","")); if(ack?.ok===true&&Array.isArray(ack.items)){ for(const entry of ack.items.slice(0,64)){ if(!showUuid.test(entry?.id))continue; @@ -2027,24 +2097,24 @@ showRecall.hidden=false;showRecover.hidden=false; showNote.textContent=ack?.ok===true ?showEntries.size+" saved Shows · mute output before recall/recovery" - :"Browse rejected: "+String(ack?.error||"Native storage unavailable"); + :"Unable to load saved sessions"; showControls(); }); backend.addEventListener("arMixNativeShowRecallAck",ack=>{ showBusy=false;showControls(); showNote.textContent=ack?.ok===true - ?"SHOW RESTORED · OUTPUT MUTED; verify physical pins before MONITOR ON" - :"Recall rejected: "+String(ack?.error||"Native route unchanged"); + ?"Session opened · Check audio connections before listening" + :"Unable to open session · Mixer settings unchanged"; if(ack?.ok===true)controller?.subscribe(); status(showNote.textContent); }); backend.addEventListener("arMixNativeShowRecoverAck",ack=>{ showBusy=false;showControls(); if(ack?.ok===true){ - status("Last verified Show restored on disk · muted; recall explicitly"); + status("Previous saved session restored · Output remains muted"); showRefresh(); }else{ - showNote.textContent="Recovery rejected: "+String(ack?.error||"Previous generation invalid"); + showNote.textContent="Unable to restore the previous session"; status(showNote.textContent); } }); @@ -2115,6 +2185,21 @@ status(armed?"Hardware MUTE requested":"MAIN monitor verifying hardware route"); }); toolbar.insertBefore(monitor,io); + // Fixed groups, not extra controls. Placement is DOM-only at startup; + // no resize listeners, repaint loops or menu reparenting. + for(const [name,element] of [ + ["files",document.getElementById("pluginsButton")], + ["routing",document.getElementById("wireNavigatorToggle")], + ["channels",addTrack], + ["monitor",monitor] + ]){ + if(!element || element.parentElement!==toolbar)continue; + const divider=document.createElement("span"); + divider.className="armix-toolbar-divider"; + divider.dataset.nativeToolbarGroup=name; + divider.setAttribute("aria-hidden","true"); + toolbar.insertBefore(divider,element); + } } updateHardwarePanel(hardware); } @@ -2256,9 +2341,8 @@ if(actual===p.bypassed)pendingNativeFxPower=null; } if(startupWire)window.queueMicrotask(flushStartupWire); - status((next.productLive?"NATIVE PRODUCT LIVE":"NATIVE PCM GRAPH ACCEPTED · FAT PENDING")+ - " · device "+next.device.epoch+ - " · graph "+next.graph.revision+" · roster "+next.graph.rosterRevision); + // No device epochs, graph revisions or release qualification text on UI. + status("Mixer settings updated"); } if (connected) { controller = protocol.createController({