From ec6b128e3f7866ec2c2ce29e4752fa6e6a75c71d Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:03:16 +0700 Subject: [PATCH 01/26] GUI V57: selected-channel wire display, OUT excludes default MAIN, full-span damped impact --- site/preview-v2/index.html | 80 +++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 45 deletions(-) diff --git a/site/preview-v2/index.html b/site/preview-v2/index.html index d1e064bc5..b3b4bcab0 100644 --- a/site/preview-v2/index.html +++ b/site/preview-v2/index.html @@ -384,7 +384,7 @@
- +
SELECTED ROUTES & QUICK PATCH
Select a channel for IN / OUT
Mode affects new wires only · View never changes audio · GUI reference, no PCM
@@ -609,7 +609,7 @@ } function wireFor(src,dst){return wireEdges.find(e=>e.enabled&&e.sourceId===src&&e.destId===dst);} function outgoingWires(id){return wireEdges.filter(e=>e.enabled&&e.sourceId===id);} -function wireOutgoingCount(id){return outgoingWires(id).length;} +function wireOutgoingCount(id){return outgoingWires(id).filter(e=>e.destId!==master.id).length;} function wireIsCycle(src,dst){ if(src===dst)return true; const candidate={id:nextWireId,sourceId:src,destId:dst,kind:'send',mode:'send',levelDb:0,enabled:true}; @@ -803,14 +803,14 @@ // CH→MAIN is also an actual graph route, not hidden OUT metadata. return { incoming:wireEdges.filter(e=>e.enabled&&e.destId===t.id).length, - outgoing:wireEdges.filter(e=>e.enabled&&e.sourceId===t.id).length + outgoing:wireEdges.filter(e=>e.enabled&&e.sourceId===t.id&&e.destId!==master.id).length }; } function compactWireSummary(t){ const {incoming,outgoing}=compactWireActivity(t); - const activeIn=incoming>0,activeOut=outgoing>0,connected=activeIn||activeOut; + const activeIn=t.kind!=='master'&&incoming>0,activeOut=outgoing>0,connected=activeIn||activeOut; const title='Expand WIRE · '+t.name+' · '+incoming+' incoming, '+outgoing+ - ' outgoing canonical edges (including MAIN)'; + ' outgoing custom wires · MAIN uses its focused plug'; // 1:1 physical order with the expanded patch: // solid OUT dot LEFT, larger recessed IN circle RIGHT (with small center dot). // Both muted while unused. A channel-hue indicator lights independently @@ -1148,20 +1148,19 @@ const span=Math.abs(x1-x0),ceiling=Math.max(12,Math.min(100,Number(limit)||72)); const sag=Math.max(10,Math.min(ceiling,Math.min(ceiling-5,28+Math.sqrt(span)*1.55))); const c=sag*4/3,progress=Math.max(0,Math.min(1,elapsedMs/1600)); - // V44 geometric witness: 10.5px produced only 4.17px broad visible jolt - // against the approved >5px gate. 13.4 restores a gentle >5px packet, - // still below the retired 13.8px short/fast impulse; 1600ms remains. - const center=.99-progress*.98,amp=13.4*Math.exp(-progress*3.5); + // Stronger pulse travels from receiver IN all the way to source OUT. + // Attenuate continuously towards OUT, while pinning the physical endpoints. + const center=.97-progress*.92,amp=22*Math.exp(-progress*.72); let d='M '+x0.toFixed(1)+' '+y0.toFixed(1); - // Smooth curve samples; zero displacement at both anchored ends. for(let i=1;i<=56;i++){ const t=i/56,u=1-t; const x=u*u*u*x0+3*u*u*t*x0+3*u*t*t*x1+t*t*t*x1; const y=u*u*u*y0+3*u*u*t*(y0+c)+3*u*t*t*(y1+c)+t*t*t*y1; const dx=6*u*t*(x1-x0),dy=3*u*u*c+6*u*t*(y1-y0)+3*t*t*(-c); - const norm=Math.hypot(dx,dy)||1,delta=t-center; - const pulse=amp*Math.exp(-(delta*delta)/(.30*.30))* - Math.sin(delta*10-progress*6)*Math.sin(Math.PI*t); + const delta=t-center,norm=Math.hypot(dx,dy)||1; + const attenuation=.22+.78*t; + const pinned=Math.max(0,Math.min(1,t/.10,(1-t)/.10)); + const pulse=amp*attenuation*pinned*Math.exp(-(delta*delta)/(.19*.19))*Math.cos(delta*11); d+=' L '+(x-dy/norm*pulse).toFixed(1)+' '+(y+dx/norm*pulse).toFixed(1); } return d; @@ -1530,8 +1529,10 @@ } /* One pair of short MAIN-colored stubs is a projection of ONE real edgeId. */ function syncMainWireFragments(){ - const selectedSources=selection().filter(t=>t.kind!=='master'); - const focus=armedWireSource()||(selectedSources.length===1?selectedSources[0]:null); + // Keep default CH→MAIN as a real edge, but paint its stub ONLY when one + // channel is selected. A pinned patch source alone cannot reveal a cable. + const chosen=selection().filter(t=>t.kind!=='master'); + const focus=chosen.length===1?chosen[0]:null; const selected=focus&&wireFor(focus.id,master.id); for(const t of tracks){ const edge=wireFor(t.id,master.id); @@ -1540,6 +1541,8 @@ if(!el)continue; if(edge)el.setAttribute('data-wire-main-edge',String(edge.id)); else el.removeAttribute('data-wire-main-edge'); + if(edge&&focus?.id===t.id)el.setAttribute('data-wire-display-focus','true'); + else el.removeAttribute('data-wire-display-focus'); el.style.setProperty('--main-wire-hue',master.color); } } @@ -1560,8 +1563,9 @@ // Display focus must NOT depend on an armed OUT. A mixer channel being // inspected always reveals its existing INCOMING and OUTGOING cables. // The separate 'focus' remains the only authority for making new routes. + const selectedChannels=selection().filter(t=>t.kind!=='master'); const source=dragging?wireSourceTrack(wireGesture.sourceId): - (focus||selection().find(t=>t.kind!=='master')||null); + (selectedChannels.length===1?selectedChannels[0]:null); const legend=document.getElementById('wireLegend'),main=document.getElementById('wireMaster'); if(legend){ const filter=document.getElementById('viewFilter').value; @@ -1622,32 +1626,12 @@ const sagLimit=wireSagClearance(anchor,well); const paths=[]; wireMotionGeometry=new Map(); - // V30 optional ALL: draw non-focused, currently visible paths in the back. - // Never simulate a cable across hidden banks; the compact legend retains - // the selected channel's complete routing status across those banks. - if(wireView==='all'&&!dragging){ - for(const edge of routes){ - if(edge.sourceId===source.id||edge.destId===source.id)continue; - const sender=wireSourceTrack(edge.sourceId); - const fromNode=viewport.querySelector?.('.strip[data-id="'+edge.sourceId+'"] .wire-node-out'); - const toNode=viewport.querySelector?.('.strip[data-id="'+edge.destId+'"] .wire-node-in'); - const a=wireJackRect(fromNode),b=wireJackRect(toNode); - if(!sender||!a?.width||!b?.width)continue; - const bay=fromNode.closest?.('.send-section')?.getBoundingClientRect?.(); - const lift=wireSagClearance(a,bay); - const d=wirePathFor(edge,a.left-vp.left+a.width*.5,a.top-vp.top+a.height*.5, - b.left-vp.left+b.width*.5,b.top-vp.top+b.height*.5,lift); - paths.push(''); - } - } + // Only the selected channel's paths are drawn. Unrelated edges remain + // inspectable in the canonical Navigator/Matrix, never drawn as clutter. // Physical incoming cables remain visible even when OUT is unarmed. // If patch source is pinned, also show inputs of the inspected channel. - const inspected=selection().find(t=>t.kind!=='master'); - const receiverIds=new Set([source.id,inspected?.id].filter(Number.isFinite)); - const incoming=routes.filter(e=>receiverIds.has(e.destId)&&e.sourceId!==e.destId); + const incoming=wireView==='out'?[]: + routes.filter(e=>e.destId===source.id&&e.sourceId!==e.destId&&e.sourceId!==master.id); let offBankIncoming=0; for(const edge of incoming){ const sender=wireSourceTrack(edge.sourceId); @@ -1747,8 +1731,14 @@ // Physical WIRE material follows accepted edges only; legacy SEND/OUT/split // metadata remains in Navigator but cannot light an unplugged WIRE jack. const committed=wireEdges.filter(e=>e.enabled); - const arrivals=new Set(committed.map(e=>String(e.destId))); - const sends=new Set(committed.map(e=>String(e.sourceId))); + const custom=committed.filter(e=>e.destId!==master.id); + const selectedChannels=selection().filter(t=>t.kind!=='master'); + const mainFocus=selectedChannels.length===1?wireFor(selectedChannels[0].id,master.id):null; + const arrivals=new Set(custom.map(e=>String(e.destId))); + if(mainFocus)arrivals.add(String(master.id)); + // MAIN is default output, not a custom send and never a lit OUT node. + const sends=new Set(custom.map(e=>String(e.sourceId))); + if(mainFocus)visible.set(String(master.id)+':in',{color:master.color,opacity:1}); for(const path of svg.querySelectorAll('path.wire-incoming-line,path.wire-outgoing-line,path.wire-context-line')){ // A hover hint is not a plugged-in cable. Keep snap/hover illumination // independent of physical connection state and endpoint paint. @@ -1766,7 +1756,7 @@ const isInput=node.classList.contains('wire-node-in'); const trackId=node.closest('.strip')?.dataset.id; const key=trackId+':'+(isInput?'in':'out'); - const connected=isInput?arrivals.has(trackId):sends.has(trackId); + const connected=isInput?committed.some(e=>String(e.destId)===trackId):sends.has(trackId); if(connected)node.setAttribute('data-wire-connected','true'); else node.removeAttribute('data-wire-connected'); // Connected paint follows committed model; cable display focus never changes it. @@ -2687,9 +2677,9 @@ }); document.getElementById('wireView').addEventListener('change',()=>{ const next=document.getElementById('wireView').value; - wireView=['focus','out','all'].includes(next)?next:'focus'; + wireView=['focus','out'].includes(next)?next:'focus'; renderWireRouting(); // Visualization only: never touch wireEdges or DSP state - say('WIRE VIEW '+(wireView==='focus'?'FOCUS · incoming behind outgoing':wireView==='out'?'OUT ONLY · selected sends':'ALL VISIBLE ROUTES · selected channel highlighted')+' · display only'); + say('WIRE VIEW '+(wireView==='focus'?'SELECTED · incoming behind outgoing':'SELECTED OUT ONLY')+' · display only'); }); function toggleDirectMain(){ const t=armedWireSource()||selection().find(x=>x.kind!=='master'); From e1ef48e9b127f1ac98dfef417034f77e4773d8c5 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:04:26 +0700 Subject: [PATCH 02/26] GUI V57: snap MAIN cable to input dot and gate default cable paint by selection --- site/preview-v2/assets/mixer-wire-dots.css | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/site/preview-v2/assets/mixer-wire-dots.css b/site/preview-v2/assets/mixer-wire-dots.css index 598c6c9ee..28f1c34c6 100644 --- a/site/preview-v2/assets/mixer-wire-dots.css +++ b/site/preview-v2/assets/mixer-wire-dots.css @@ -919,7 +919,7 @@ /* V55: physically painted WIRE endpoints require a displayed accepted edge. data-wire-connected remains independent graph truth for hidden/off-bank inspection. Hover, magnet and deliberate patch intent remain transient. */ -.console-body.wire-routing-v15 .strip .wire-tray .wire-node-out[data-wire-paint="idle"]:not(.is-source):not(.is-drag-origin):not(.is-near):not(:hover):not(:focus-visible) .wire-pin, +.console-body.wire-routing-v15 .strip .wire-tray .wire-node-out[data-wire-paint="idle"]:not([data-wire-connected="true"]):not(.is-source):not(.is-drag-origin):not(.is-near):not(:hover):not(:focus-visible) .wire-pin, .console-body.wire-routing-v15 .strip .wire-tray .wire-node-in[data-wire-paint="idle"]:not(.is-snap-target):not(.is-replug-origin):not(:hover):not(:focus-visible) .wire-arrow{ background:#4b535b!important;border-color:#657681!important; box-shadow:inset 0 1px 2px #061017!important;opacity:1!important; @@ -936,33 +936,33 @@ box-shadow:inset 0 1px 2px #07141c!important; } -/* WIRE A2: MAIN-color cable stubs. Source and pinned MAIN consume the SAME - data-wire-main-edge identity. Scoped to the existing WIRE CSS owner. - No new layout box, no cross-bank SVG, no hit area or compositor animation. */ +/* V57: MAIN remains a canonical edge while physical fragments are revealed + only for ONE selected channel. MAIN wire docks at the INNER IN dot. */ /* Position source stub on the actual 12px OUT PIN, not the wider caption-bearing button: accurate at every density and browser width. */ .console-body.wire-routing-v15 .strip .wire-tray .wire-node-out[data-wire-main-edge] .wire-pin{position:relative;overflow:visible} .console-body.wire-routing-v15 .strip .wire-tray - .wire-node-out[data-wire-main-edge] .wire-pin::after, + .wire-node-out[data-wire-main-edge][data-wire-display-focus="true"] .wire-pin::after, .console-body.wire-routing-v15 #master .wire-tray - .wire-node-in[data-wire-main-edge]::before{ + .wire-node-in[data-wire-main-edge] .wire-arrow::after{ content:"";position:absolute;left:calc(50% - 1.25px);width:2.5px; height:12px;background:var(--main-wire-hue,#a04b65); border-radius:0 0 4px 4px;box-shadow:1px 0 #09121f,0 0 0 1px #111e29; pointer-events:none;z-index:1; } .console-body.wire-routing-v15 .strip .wire-tray - .wire-node-out[data-wire-main-edge] .wire-pin::after{top:10px;transform:rotate(-8deg);transform-origin:top center} + .wire-node-out[data-wire-main-edge][data-wire-display-focus="true"] .wire-pin::after{top:10px;transform:rotate(-8deg);transform-origin:top center} .console-body.wire-routing-v15 #master .wire-tray - .wire-node-in[data-wire-main-edge]::before{ - top:23px;transform:rotate(8deg);transform-origin:top center; - border-radius:4px 4px 0 0; + .wire-node-in[data-wire-main-edge] .wire-arrow::after{ + top:calc(50% + 2px);height:15px; + transform:rotate(8deg);transform-origin:top center; + border-radius:4px 4px 0 0;z-index:-1; } /* Folded 23px WIRE retains two discreet color fragments tied to exact graph IDs. The accepted V52 fader, V51 meter and V54 jack material remain unchanged. */ .console-body.wire-routing-v15.collapsed-send .strip - .wire-fold-summary[data-wire-main-edge]::after{ + .wire-fold-summary[data-wire-main-edge][data-wire-display-focus="true"]::after{ content:"";position:absolute;left:22%;bottom:1px;width:2px;height:8px; border-radius:2px;background:var(--main-wire-hue,#a04b65); transform:rotate(-9deg);pointer-events:none;opacity:.85; From ad02887bb49d3e096c9fa553f94c7797f312d7fe Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:07:33 +0700 Subject: [PATCH 03/26] GUI V57: verify MAIN graph without default OUT illumination --- tests/pages_v54_wire_fx_context_smoke.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/pages_v54_wire_fx_context_smoke.py b/tests/pages_v54_wire_fx_context_smoke.py index 24fd14db3..5ef1ab34a 100644 --- a/tests/pages_v54_wire_fx_context_smoke.py +++ b/tests/pages_v54_wire_fx_context_smoke.py @@ -35,15 +35,17 @@ def scenario(page,w,density): if "collapsed-send" in (page.locator(".console-body").get_attribute("class") or ""): page.locator('.section-rail [data-section="send"]').click() # In WIRE-first sessions every CH has one *real* default MAIN edge. - # IN stays unoccupied and graphite; OUT must stay attached to MAIN regardless - # of focus, not falsely simulated by the old legacy SEND slot metadata. + # IN remains idle. Default MAIN is a real graph edge but never a + # custom OUT indicator, even before a channel is selected. for ch in (1,2): incoming=wire(page,ch,"in") outgoing=wire(page,ch,"out") assert incoming["connected"] is None and incoming["arrival"] is None and not incoming["stale"],( w,density,"phantom incoming graph route",ch,incoming) assert incoming["color"]=="rgb(75, 83, 91)",(w,density,"idle IN dot isn't graphite",ch,incoming) - assert outgoing["connected"]=="true",(w,density,"default MAIN edge missing",ch,outgoing) + assert outgoing["connected"] is None,(w,density,"default MAIN falsely lit OUT",ch,outgoing) + assert page.locator(f'#tracks .strip[data-id="{ch}"] .wire-node-out').get_attribute( + "data-wire-main-edge"),(w,density,"MAIN graph edge absent",ch) assert outgoing["stale"]=="",(w,density,"stale OUT paint",ch,outgoing) # Compact/Standard can intentionally fold SEND/WIRE controls to protect # the fixed meter/fader. Validate their passive material in every density; @@ -55,12 +57,14 @@ def scenario(page,w,density): assert wire(page,5,"out")["connected"]=="true",(w,density,"missing OUT") assert wire(page,3,"in")["arrival"]=="true",(w,density,"missing IN") for ch in (1,2): - assert wire(page,ch,"out")["connected"]=="true",(w,density,"default MAIN disappeared",ch) + assert wire(page,ch,"out")["connected"] is None,(w,density,"default MAIN falsely lit OUT",ch) page.locator("#wireNavigatorToggle").click() undo=page.locator("#wireWsUndo") assert undo.is_enabled(),(w,density,"undo not available") undo.click() - assert wire(page,5,"out")["connected"]=="true",(w,density,"Undo removed default MAIN") + assert wire(page,5,"out")["connected"] is None,(w,density,"Undo left custom OUT lit") + assert page.locator('#tracks .strip[data-id="5"] .wire-node-out').get_attribute( + "data-wire-main-edge"),"Undo removed MAIN graph edge" assert wire(page,3,"in")["arrival"] is None,(w,density,"ghost input after undo") page.locator("#wireNavigatorToggle").click() before=fx(page,1) From 9cede69e1cd788c56e8e62716cb484a90190a7b9 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:07:36 +0700 Subject: [PATCH 04/26] GUI V57: update V55 default MAIN vs custom wire regression --- tests/pages_v55_context_wire_fader_smoke.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/pages_v55_context_wire_fader_smoke.py b/tests/pages_v55_context_wire_fader_smoke.py index 247263e70..934b06d20 100644 --- a/tests/pages_v55_context_wire_fader_smoke.py +++ b/tests/pages_v55_context_wire_fader_smoke.py @@ -23,7 +23,10 @@ def main(): v=node(page,ch,direction) assert v["paint"]=="idle" and v["visible"] is None,(w,density,ch,direction,v) if direction=="in": assert v["connected"] is None,(w,density,"phantom receiving wire",ch,v) - else: assert v["connected"]=="true",(w,density,"default MAIN edge missing",ch,v) + else: + assert v["connected"] is None,(w,density,"MAIN falsely lit OUT",ch,v) + assert page.locator(f'#tracks .strip[data-id="{ch}"] .wire-node-out').get_attribute( + "data-wire-main-edge"),(w,density,"MAIN graph edge missing",ch) assert v["color"]=="rgb(75, 83, 91)",(w,density,ch,direction,v) cap=page.locator('#tracks .strip[data-id="1"] .fader-travel .cap').first shadow=cap.evaluate("(el)=>getComputedStyle(el).boxShadow") @@ -37,7 +40,7 @@ def main(): a=node(page,5,"out");b=node(page,3,"in") assert a["connected"]=="true" and a["paint"]=="connected",(w,a) assert b["connected"]=="true" and b["paint"]=="connected",(w,b) - assert node(page,1,"out")["connected"]=="true" and node(page,1,"out")["paint"]=="idle" + assert node(page,1,"out")["connected"] is None and node(page,1,"out")["paint"]=="idle" page.locator('#tracks .strip[data-id="2"] .strip-identity-top').click() hidden=node(page,3,"in") assert hidden["connected"]=="true" and hidden["paint"]=="idle",(w,density,hidden) @@ -46,7 +49,7 @@ def main(): assert node(page,3,"in")["paint"]=="connected" page.locator("#wireNavigatorToggle").click() page.locator("#wireWsUndo").click() - assert node(page,5,"out")["connected"]=="true" and node(page,5,"out")["paint"]=="idle" + assert node(page,5,"out")["connected"] is None and node(page,5,"out")["paint"]=="idle" assert node(page,3,"in")["paint"]=="idle" page.close() browser.close() From ae97b5c8e191e243e0cb73a61add1193bb94f7f4 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:08:56 +0700 Subject: [PATCH 05/26] GUI V57: browser regression for MAIN dot, selected-only wires and fading impact --- ...wire_v57_selected_main_dot_impact_smoke.py | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 tests/pages_wire_v57_selected_main_dot_impact_smoke.py diff --git a/tests/pages_wire_v57_selected_main_dot_impact_smoke.py b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py new file mode 100644 index 000000000..cb51a6dbb --- /dev/null +++ b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py @@ -0,0 +1,132 @@ +#!/usr/bin/env python3 +"""V57: focused FL-style WIRE, exact MAIN inner dot, custom OUT and full-span impact. + +Browser control-plane fixture only; no claim of native PCM/audio routing. +""" +from math import hypot +from pathlib import Path +import re +from playwright.sync_api import sync_playwright + +PAGE = Path(__file__).resolve().parents[1] / "site/preview-v2/index.html" +NUM = re.compile(r"[-+]?[0-9]+(?:[.][0-9]+)?") + + +def numbers(path): + return [float(x) for x in NUM.findall(path)] + + +def displacement(jolt, cubic): + """Normal displacement of the 56 impact samples from the original cubic.""" + x0, y0, cx0, cy0, cx1, cy1, x1, y1 = numbers(cubic) + p = numbers(jolt) + assert len(p) == 114, ("impact must reach the OUT endpoint", len(p)) + assert hypot(p[0] - x0, p[1] - y0) < .1 + assert hypot(p[-2] - x1, p[-1] - y1) < .1 + d = [] + for i in range(1, 57): + t = i / 56 + u = 1 - t + bx = u**3*x0 + 3*u*u*t*cx0 + 3*u*t*t*cx1 + t**3*x1 + by = u**3*y0 + 3*u*u*t*cy0 + 3*u*t*t*cy1 + t**3*y1 + d.append(hypot(p[2*i] - bx, p[2*i+1] - by)) + return d + + +def select(page, channel): + page.locator(f'#tracks .strip[data-id="{channel}"] .strip-identity-top').click() + + +def inspect(page, channel): + return page.locator(f'#tracks .strip[data-id="{channel}"] .wire-node-out').evaluate( + """el => ({ + main:el.getAttribute('data-wire-main-edge'), + display:el.getAttribute('data-wire-display-focus'), + custom:el.getAttribute('data-wire-connected'), + pin:getComputedStyle(el.querySelector('.wire-pin')).backgroundColor + })""") + + +def run(): + with sync_playwright() as pw: + browser = pw.chromium.launch(headless=True) + for width, height in ((1366, 768), (1680, 900), (1920, 1080)): + page = browser.new_page(viewport={"width": width, "height": height}) + errors = [] + page.on("pageerror", lambda exc: errors.append(str(exc))) + page.goto(PAGE.as_uri()) + for density in ("comfort", "standard", "compact"): + page.locator("#densitySelect").select_option(density) + if "collapsed-send" in (page.locator(".console-body").get_attribute("class") or ""): + page.locator('.section-rail [data-section="send"]').click() + # CH→MAIN graph edges stay even when their physical wires are hidden. + assert inspect(page, 5)["main"] and inspect(page, 6)["main"] + assert inspect(page, 5)["custom"] is None and inspect(page, 6)["custom"] is None + select(page, 5) + a = inspect(page, 5) + assert a["display"] == "true", (width, density, a) + assert inspect(page, 6)["display"] is None + master = page.locator("#master .wire-node-in") + assert master.get_attribute("data-wire-main-edge") == a["main"] + dot = master.locator(".wire-arrow") + anchor = dot.evaluate("""el => ({ + content:getComputedStyle(el,'::after').content, + height:getComputedStyle(el,'::after').height, + position:getComputedStyle(el,'::after').position + })""") + assert anchor["content"] not in ("none", "normal"), (width, density, anchor) + assert anchor["position"] == "absolute", (width, density, anchor) + assert anchor["height"] == "15px", (width, density, anchor) + outer_box, dot_box = master.bounding_box(), dot.bounding_box() + assert outer_box and dot_box + assert hypot((outer_box["x"]+outer_box["width"]/2)-(dot_box["x"]+dot_box["width"]/2), + (outer_box["y"]+outer_box["height"]/2)-(dot_box["y"]+dot_box["height"]/2)) < .4 + select(page, 6) + assert inspect(page, 5)["display"] is None + assert inspect(page, 6)["display"] == "true" + assert master.get_attribute("data-wire-main-edge") == inspect(page, 6)["main"] + assert page.locator("#wireLayer path.wire-outgoing-line,#wireLayer path.wire-incoming-line").count() == 0 + # The renderer only shows wires related to the selected channel. + page.locator("#densitySelect").select_option("comfort") + if "collapsed-send" in (page.locator(".console-body").get_attribute("class") or ""): + page.locator('.section-rail [data-section="send"]').click() + page.locator('#tracks .strip[data-id="5"] .wire-node-out').click() + page.locator('#tracks .strip[data-id="3"] .wire-node-in').click() + assert inspect(page, 5)["custom"] == "true" + original_main = inspect(page, 5)["main"] + select(page, 6) + assert page.locator('#wireLayer path.wire-incoming-line,#wireLayer path.wire-outgoing-line,#wireLayer path.wire-context-line').count() == 0 + assert inspect(page, 5)["main"] == original_main + assert inspect(page, 5)["custom"] == "true" + assert inspect(page, 5)["pin"] != "rgb(75, 83, 91)", "real non-MAIN OUT should stay colored" + select(page, 3) + assert page.locator('#wireLayer path.wire-incoming-line[data-from="5"][data-to="3"]').count() == 1 + assert page.locator('#wireLayer path.wire-context-line').count() == 0 + page.locator("#wireConfigToggle").click() + options = page.locator("#wireView option").evaluate_all("(els)=>els.map(el=>el.value)") + assert options == ["focus", "out"], (width, options) + page.locator("#wireView").select_option("out") + assert page.locator('#wireLayer path.wire-incoming-line').count() == 0 + page.locator("#wireView").select_option("focus") + assert page.locator('#wireLayer path.wire-incoming-line[data-from="5"][data-to="3"]').count() == 1 + # Precise impact physics: strong impulse at IN, attenuated ripple + # reaches OUT, both physical jack endpoints remain fixed. + base, first, last = page.evaluate("""() => [ + wirePathData(0,0,180,0,72,0), + wireImpactPathData(0,0,180,0,72,0), + wireImpactPathData(0,0,180,0,72,1600) + ]""") + head, tail = displacement(first, base), displacement(last, base) + assert max(head[42:53]) > 6, (width, "weak impact at receiver", max(head)) + assert max(tail[2:12]) > 1.25, (width, "impact stops short of OUT", max(tail[:12])) + assert max(tail[2:12]) < max(head[42:53])*.6, "impact must weaken towards OUT" + assert not errors, (width, errors) + if width == 1680: + page.screenshot(path=str(PAGE.parents[2] / "pages-wire-v57-selected-1680.png")) + page.close() + browser.close() + print("PASS V57: MAIN dot, selected-only wires, custom OUT, attenuated IN-to-OUT pulse, 3 widths/3 densities") + + +if __name__ == "__main__": + run() From 4abf553c03102d1735f0fa83823a4a7c94d774c7 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:09:34 +0700 Subject: [PATCH 06/26] GUI V57: invalidate public WIRE stylesheet after focused MAIN dot correction --- site/preview-v2/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/preview-v2/index.html b/site/preview-v2/index.html index b3b4bcab0..36323050b 100644 --- a/site/preview-v2/index.html +++ b/site/preview-v2/index.html @@ -271,7 +271,7 @@ - + From cf638d939a9141ac61c30d442616559191fe0ef3 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:09:38 +0700 Subject: [PATCH 07/26] GUI V57: preserve folded MAIN stub and clarify custom OUT status --- site/preview-v2/assets/mixer-wire-dots.css | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/site/preview-v2/assets/mixer-wire-dots.css b/site/preview-v2/assets/mixer-wire-dots.css index 28f1c34c6..23241fbff 100644 --- a/site/preview-v2/assets/mixer-wire-dots.css +++ b/site/preview-v2/assets/mixer-wire-dots.css @@ -916,9 +916,9 @@ box-shadow:inset 0 1px 2px #061017!important;opacity:1!important; } -/* V55: physically painted WIRE endpoints require a displayed accepted edge. - data-wire-connected remains independent graph truth for hidden/off-bank - inspection. Hover, magnet and deliberate patch intent remain transient. */ +/* V57: OUT connection paint indicates a real non-MAIN wire, even while + that cable is hidden. MAIN remains a separate canonical default edge. + IN still uses visible cable focus; hover/drag remain transient. */ .console-body.wire-routing-v15 .strip .wire-tray .wire-node-out[data-wire-paint="idle"]:not([data-wire-connected="true"]):not(.is-source):not(.is-drag-origin):not(.is-near):not(:hover):not(:focus-visible) .wire-pin, .console-body.wire-routing-v15 .strip .wire-tray .wire-node-in[data-wire-paint="idle"]:not(.is-snap-target):not(.is-replug-origin):not(:hover):not(:focus-visible) .wire-arrow{ background:#4b535b!important;border-color:#657681!important; @@ -962,7 +962,9 @@ /* Folded 23px WIRE retains two discreet color fragments tied to exact graph IDs. The accepted V52 fader, V51 meter and V54 jack material remain unchanged. */ .console-body.wire-routing-v15.collapsed-send .strip - .wire-fold-summary[data-wire-main-edge][data-wire-display-focus="true"]::after{ + .wire-fold-summary[data-wire-main-edge][data-wire-display-focus="true"]::after, +.console-body.wire-routing-v15.collapsed-send #master + .wire-fold-summary[data-wire-main-edge]::after{ content:"";position:absolute;left:22%;bottom:1px;width:2px;height:8px; border-radius:2px;background:var(--main-wire-hue,#a04b65); transform:rotate(-9deg);pointer-events:none;opacity:.85; From caa7b6c67c0dbcab873a56af42f1797be424a922 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:09:51 +0700 Subject: [PATCH 08/26] CI: enforce V57 selected WIRE, MAIN dot and impact behavior on Chromium --- .github/workflows/ui-smoke.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ui-smoke.yml b/.github/workflows/ui-smoke.yml index bb7ef5fed..5bf16ecde 100644 --- a/.github/workflows/ui-smoke.yml +++ b/.github/workflows/ui-smoke.yml @@ -87,6 +87,8 @@ jobs: run: python tests/pages_v54_wire_fx_context_smoke.py - name: Verify V55 accepted WIRE paint and fader depth run: python tests/pages_v55_context_wire_fader_smoke.py + - name: Verify V57 selected-only WIRE, MAIN inner dot and fading full-span jolt + run: python tests/pages_wire_v57_selected_main_dot_impact_smoke.py - name: Verify original metallic asset and standalone synchronization run: python tests/fader_asset_test.py - name: Validate recessed Button 180 + embedded Inter font contract From 991f5955378776198f06fd02fea696fbcaec3335 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:13:32 +0700 Subject: [PATCH 09/26] V57 test: sample actual Chromium SVG impact frames inside private renderer instead of window function --- ...wire_v57_selected_main_dot_impact_smoke.py | 43 ++++++++++++++----- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/tests/pages_wire_v57_selected_main_dot_impact_smoke.py b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py index cb51a6dbb..76d889f81 100644 --- a/tests/pages_wire_v57_selected_main_dot_impact_smoke.py +++ b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py @@ -90,8 +90,40 @@ def run(): page.locator("#densitySelect").select_option("comfort") if "collapsed-send" in (page.locator(".console-body").get_attribute("class") or ""): page.locator('.section-rail [data-section="send"]').click() + if width == 1680: + # Observe the real animated SVG path rather than calling + # the private renderer function from outside its closure. + page.evaluate("""() => { + window.__v57Impact = []; + new MutationObserver(records => { + for (const r of records) { + const path = r.target; + if (r.type !== 'attributes' || + !path.matches?.('path.wire-outgoing-line[data-cable-key="5-3"]')) continue; + const d = path.getAttribute('d'); + if (d?.includes(' L ') && window.__v57Impact.at(-1) !== d) + window.__v57Impact.push(d); + } + }).observe(document.querySelector('#wireLayer'), { + subtree:true, attributes:true, attributeFilter:['d'] + }); + }""") page.locator('#tracks .strip[data-id="5"] .wire-node-out').click() page.locator('#tracks .strip[data-id="3"] .wire-node-in').click() + if width == 1680: + page.wait_for_function("""() => + window.__v57Impact.length >= 18 && + document.querySelector('#wireLayer path.wire-outgoing-line[data-cable-key="5-3"]') + ?.getAttribute('d')?.includes(' C ')""", timeout=6000) + captured = page.evaluate("""() => ({ + frames:window.__v57Impact, + base:document.querySelector('#wireLayer path.wire-outgoing-line[data-cable-key="5-3"]').getAttribute('d') + })""") + early = displacement(captured["frames"][0], captured["base"]) + late = displacement(captured["frames"][-1], captured["base"]) + assert max(early[42:53]) > 6, ("weak receiver impact", max(early)) + assert max(late[2:12]) > 1.25, ("wave stops before OUT", max(late[:12])) + assert max(late[2:12]) < max(early[42:53])*.6, "wave fails to fade towards OUT" assert inspect(page, 5)["custom"] == "true" original_main = inspect(page, 5)["main"] select(page, 6) @@ -109,17 +141,6 @@ def run(): assert page.locator('#wireLayer path.wire-incoming-line').count() == 0 page.locator("#wireView").select_option("focus") assert page.locator('#wireLayer path.wire-incoming-line[data-from="5"][data-to="3"]').count() == 1 - # Precise impact physics: strong impulse at IN, attenuated ripple - # reaches OUT, both physical jack endpoints remain fixed. - base, first, last = page.evaluate("""() => [ - wirePathData(0,0,180,0,72,0), - wireImpactPathData(0,0,180,0,72,0), - wireImpactPathData(0,0,180,0,72,1600) - ]""") - head, tail = displacement(first, base), displacement(last, base) - assert max(head[42:53]) > 6, (width, "weak impact at receiver", max(head)) - assert max(tail[2:12]) > 1.25, (width, "impact stops short of OUT", max(tail[:12])) - assert max(tail[2:12]) < max(head[42:53])*.6, "impact must weaken towards OUT" assert not errors, (width, errors) if width == 1680: page.screenshot(path=str(PAGE.parents[2] / "pages-wire-v57-selected-1680.png")) From 7c20bd14cdf626a31553c1ee0c7513d768dfc66b Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:16:14 +0700 Subject: [PATCH 10/26] V57 animation regression: capture bounded real DOM frames and expose lifecycle diagnostics --- ...pages_wire_v57_selected_main_dot_impact_smoke.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/pages_wire_v57_selected_main_dot_impact_smoke.py b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py index 76d889f81..ffcb685ce 100644 --- a/tests/pages_wire_v57_selected_main_dot_impact_smoke.py +++ b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py @@ -111,14 +111,17 @@ def run(): page.locator('#tracks .strip[data-id="5"] .wire-node-out').click() page.locator('#tracks .strip[data-id="3"] .wire-node-in').click() if width == 1680: - page.wait_for_function("""() => - window.__v57Impact.length >= 18 && - document.querySelector('#wireLayer path.wire-outgoing-line[data-cable-key="5-3"]') - ?.getAttribute('d')?.includes(' C ')""", timeout=6000) + # A finite 1.6 s animation: inspect the real final DOM, not + # an inferred timeline / unexposed JavaScript renderer symbol. + page.wait_for_timeout(1950) captured = page.evaluate("""() => ({ frames:window.__v57Impact, - base:document.querySelector('#wireLayer path.wire-outgoing-line[data-cable-key="5-3"]').getAttribute('d') + base:document.querySelector('#wireLayer path.wire-outgoing-line[data-cable-key="5-3"]')?.getAttribute('d') })""") + assert len(captured["frames"]) >= 8, ( + "impact not repainted over multiple frames", width, len(captured["frames"]), captured["base"]) + assert captured["base"] and " C " in captured["base"], ( + "animated curve did not settle to cubic", width, len(captured["frames"]), captured["base"]) early = displacement(captured["frames"][0], captured["base"]) late = displacement(captured["frames"][-1], captured["base"]) assert max(early[42:53]) > 6, ("weak receiver impact", max(early)) From a064593f23e968a2bcf875acafd7934f8f8e1126 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:18:38 +0700 Subject: [PATCH 11/26] V57 regression: observe selected receiver's live incoming cable for click-to-connect impact --- tests/pages_wire_v57_selected_main_dot_impact_smoke.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/pages_wire_v57_selected_main_dot_impact_smoke.py b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py index ffcb685ce..dc0a42911 100644 --- a/tests/pages_wire_v57_selected_main_dot_impact_smoke.py +++ b/tests/pages_wire_v57_selected_main_dot_impact_smoke.py @@ -91,15 +91,16 @@ def run(): if "collapsed-send" in (page.locator(".console-body").get_attribute("class") or ""): page.locator('.section-rail [data-section="send"]').click() if width == 1680: - # Observe the real animated SVG path rather than calling - # the private renderer function from outside its closure. + # Pointerdown on destination changes selected channel to CH3; + # the accepted 5->3 route is correctly displayed as INCOMING. + # Observe that actual rendered SVG, never a detached OUT node. page.evaluate("""() => { window.__v57Impact = []; new MutationObserver(records => { for (const r of records) { const path = r.target; if (r.type !== 'attributes' || - !path.matches?.('path.wire-outgoing-line[data-cable-key="5-3"]')) continue; + !path.matches?.('path.wire-incoming-line[data-cable-key="5-3"]')) continue; const d = path.getAttribute('d'); if (d?.includes(' L ') && window.__v57Impact.at(-1) !== d) window.__v57Impact.push(d); @@ -116,7 +117,7 @@ def run(): page.wait_for_timeout(1950) captured = page.evaluate("""() => ({ frames:window.__v57Impact, - base:document.querySelector('#wireLayer path.wire-outgoing-line[data-cable-key="5-3"]')?.getAttribute('d') + base:document.querySelector('#wireLayer path.wire-incoming-line[data-cable-key="5-3"]')?.getAttribute('d') })""") assert len(captured["frames"]) >= 8, ( "impact not repainted over multiple frames", width, len(captured["frames"]), captured["base"]) From 5d67fca292af0abd5bef8ed8c7ce37c12da6c00f Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:21:18 +0700 Subject: [PATCH 12/26] V57 compatibility: V50 popout tests selected-channel OUT display instead of retired ALL --- tests/pages_v50_wire_popout_layout_smoke.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/pages_v50_wire_popout_layout_smoke.py b/tests/pages_v50_wire_popout_layout_smoke.py index f40a425ff..a6be87c2d 100644 --- a/tests/pages_v50_wire_popout_layout_smoke.py +++ b/tests/pages_v50_wire_popout_layout_smoke.py @@ -37,9 +37,10 @@ def inspect(page,width,height): cfg=page.locator("#wireConfigWindow") assert cfg.locator("#wireMode,#wireMaster,#wireView").count()==3 cfg.locator("#wireMode").select_option("split") - cfg.locator("#wireView").select_option("all") + # The ALL overlay was retired: WIRE is always selected-channel scoped. + cfg.locator("#wireView").select_option("out") assert cfg.locator("#wireMode").input_value()=="split" - assert cfg.locator("#wireView").input_value()=="all" + assert cfg.locator("#wireView").input_value()=="out" page.keyboard.press("Escape") assert cfg.is_hidden(),"Escape did not dismiss WIRE configuration" @@ -68,7 +69,7 @@ def inspect(page,width,height): width,height,"committed WIRE missing from route inspector") workspace.locator("#wireWsClose").click() launch(page,"config") - assert cfg.locator("#wireView").input_value()=="all" + assert cfg.locator("#wireView").input_value()=="out" assert cfg.locator("#wireMode").input_value()=="split" cfg.locator("#wireConfigClose").click() assert abs(title.bounding_box()["height"]-27)<=1.5 From d5bb962d7ece1942d5ee4d6bb374b0f5889b3b02 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:21:38 +0700 Subject: [PATCH 13/26] CI: archive selected WIRE V57 screenshot with existing GUI baseline artifact --- .github/workflows/ui-smoke.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ui-smoke.yml b/.github/workflows/ui-smoke.yml index 5bf16ecde..b561ac436 100644 --- a/.github/workflows/ui-smoke.yml +++ b/.github/workflows/ui-smoke.yml @@ -299,6 +299,7 @@ jobs: name: arsonmix-gui-baseline-smoke path: | pages-wire-main-1680.png + pages-wire-v57-selected-1680.png pages-v51-portrait-meter-1680.png pages-v53-fx-rail-1366.png pages-v53-fx-rail-1378.png From a1bcfb56d8d643c7f2a29e9ff35f7fd1d37c086e Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:25:11 +0700 Subject: [PATCH 14/26] V57 cache contract: V43 Pages smoke uses refreshed WIRE CSS cache key --- tests/pages_wire_incoming_v43_smoke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pages_wire_incoming_v43_smoke.py b/tests/pages_wire_incoming_v43_smoke.py index 03b7684ac..3b0b88b20 100644 --- a/tests/pages_wire_incoming_v43_smoke.py +++ b/tests/pages_wire_incoming_v43_smoke.py @@ -57,7 +57,7 @@ def main(): shared=dst/"preview/assets/mixer-wire-dots.css" assert public.read_bytes()==CANONICAL.read_bytes(),"Public iframe still uses stale GUI" assert shared.read_bytes()==WIRE_CSS.read_bytes(),"Public iframe did not publish the effective WIRE CSS" - assert 'assets/mixer-wire-dots.css?v=v55-accepted-wire-paint' in public.read_text("utf-8") + assert 'assets/mixer-wire-dots.css?v=v57-selected-main-dot-impact' in public.read_text("utf-8") with sync_playwright() as pw: browser=pw.chromium.launch(headless=True) for width in (1366,1680): From 952e7f14e326eb6767c895ae46eb6bbb223eb9a6 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:27:37 +0700 Subject: [PATCH 15/26] V57: V15 smoke verifies custom OUT count and receiver-selected IN cable geometry --- tests/preview_v15_drag_wire_smoke.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/preview_v15_drag_wire_smoke.py b/tests/preview_v15_drag_wire_smoke.py index ccf532996..eab1a68ab 100644 --- a/tests/preview_v15_drag_wire_smoke.py +++ b/tests/preview_v15_drag_wire_smoke.py @@ -233,10 +233,10 @@ def center(locator): page.mouse.up() assert_true(page.locator('#tracks .strip[data-id="3"] .wire-node-in.is-linked').count()==1, "CH8 → CH3 leftward drop failed to create link") - # CH08 starts with a real CH→MAIN edge; the new CH08→CH03 SEND - # adds a SECOND accepted outgoing edge, not a ghost or replacement. - assert_true('⇢2' in page.locator('#tracks .strip[data-id="8"]').inner_text(), - "Source count must include default MAIN + leftward SEND") + # CH08 retains its canonical default MAIN edge, but the custom OUT + # badge counts only the single CH08→CH03 SEND. No false MAIN activity. + assert_true('⇢1' in page.locator('#tracks .strip[data-id="8"]').inner_text(), + "Custom OUT count must exclude the default MAIN route") assert_true(page.locator('#tracks .strip[data-id="3"] .wire-gain').count()==1, "Receiver wire gain control missing") active=page.locator('#tracks .strip[data-id="3"] .wire-pot.is-active') @@ -260,18 +260,20 @@ def center(locator): # No V27 common stem/ferrule; do not change any live routing semantics. assert_true(page.locator('#wireLayer .wire-origin-stem,#wireLayer .wire-origin-junction').count()==0, 'V27 rigid source ferrule must be undone') - outgoing=page.locator('#wireLayer path.wire-outgoing-line') - assert_true(outgoing.count()==1,'Active source wire is missing') + # Pointerdown on the receiving jack selects CH03; its newly accepted + # leftward signal cable is therefore shown as INCOMING for CH03. + incoming=page.locator('#wireLayer path.wire-incoming-line[data-from="8"][data-to="3"]') + assert_true(incoming.count()==1,'Selected receiver incoming wire is missing') # V43: plug-in launches a finite 36-frame socket-originated wavy impact. # The old V31 gravity-curve contract concerns the SETTLED cable. Wait # until the impact returns to its canonical cubic (no sleeps, no # disabled animation, no weakening of either regression assertion). page.wait_for_function("""()=>{ - const path=document.querySelector('#wireLayer path.wire-outgoing-line'); + const path=document.querySelector('#wireLayer path.wire-incoming-line[data-from="8"][data-to="3"]'); return !!path && (path.getAttribute('d')||'').includes(' C '); }""",timeout=4000) import re - nums=[float(a) for a in re.findall(r'-?\d+(?:\.\d+)?',outgoing.first.get_attribute('d'))] + nums=[float(a) for a in re.findall(r'-?\d+(?:\.\d+)?',incoming.first.get_attribute('d'))] assert_true(len(nums)==8 and nums[3]>nums[1]+20 and nums[5]>nums[7]+20, 'V31 WIRE must hang below both top-mounted OUT/IN anchors') assert_true(abs(nums[2]-nums[0])<.1 and abs(nums[4]-nums[6])<.1, From bb877a572f0582282d257df81ff5590ea080e94c Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:28:11 +0700 Subject: [PATCH 16/26] V57 drag V15: source stays selected on OUT pointer gesture, keep outgoing cable assertion --- tests/preview_v15_drag_wire_smoke.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/preview_v15_drag_wire_smoke.py b/tests/preview_v15_drag_wire_smoke.py index eab1a68ab..5c4a8a0d9 100644 --- a/tests/preview_v15_drag_wire_smoke.py +++ b/tests/preview_v15_drag_wire_smoke.py @@ -260,20 +260,20 @@ def center(locator): # No V27 common stem/ferrule; do not change any live routing semantics. assert_true(page.locator('#wireLayer .wire-origin-stem,#wireLayer .wire-origin-junction').count()==0, 'V27 rigid source ferrule must be undone') - # Pointerdown on the receiving jack selects CH03; its newly accepted - # leftward signal cable is therefore shown as INCOMING for CH03. - incoming=page.locator('#wireLayer path.wire-incoming-line[data-from="8"][data-to="3"]') - assert_true(incoming.count()==1,'Selected receiver incoming wire is missing') + # Drag starts on CH08 OUT: only that source receives pointerdown; + # release over CH03 IN does not change channel selection. + outgoing=page.locator('#wireLayer path.wire-outgoing-line[data-from="8"][data-to="3"]') + assert_true(outgoing.count()==1,'Selected source outgoing wire is missing') # V43: plug-in launches a finite 36-frame socket-originated wavy impact. # The old V31 gravity-curve contract concerns the SETTLED cable. Wait # until the impact returns to its canonical cubic (no sleeps, no # disabled animation, no weakening of either regression assertion). page.wait_for_function("""()=>{ - const path=document.querySelector('#wireLayer path.wire-incoming-line[data-from="8"][data-to="3"]'); + const path=document.querySelector('#wireLayer path.wire-outgoing-line[data-from="8"][data-to="3"]'); return !!path && (path.getAttribute('d')||'').includes(' C '); }""",timeout=4000) import re - nums=[float(a) for a in re.findall(r'-?\d+(?:\.\d+)?',incoming.first.get_attribute('d'))] + nums=[float(a) for a in re.findall(r'-?\d+(?:\.\d+)?',outgoing.first.get_attribute('d'))] assert_true(len(nums)==8 and nums[3]>nums[1]+20 and nums[5]>nums[7]+20, 'V31 WIRE must hang below both top-mounted OUT/IN anchors') assert_true(abs(nums[2]-nums[0])<.1 and abs(nums[4]-nums[6])<.1, From 07f821344d50d8bf8215bfa74b31363d6e783053 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Wed, 4 Nov 2026 14:32:55 +0700 Subject: [PATCH 17/26] GUI V57: preserve explicitly armed MAIN patch control when receiver becomes selected --- site/preview-v2/index.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/site/preview-v2/index.html b/site/preview-v2/index.html index 36323050b..4a3907a23 100644 --- a/site/preview-v2/index.html +++ b/site/preview-v2/index.html @@ -1566,6 +1566,9 @@ const selectedChannels=selection().filter(t=>t.kind!=='master'); const source=dragging?wireSourceTrack(wireGesture.sourceId): (selectedChannels.length===1?selectedChannels[0]:null); + // Selected channel owns the drawn cables; explicitly armed OUT owns + // patch controls. The two must not fight over MAIN's pressed state. + const controlSource=focus||source; const legend=document.getElementById('wireLegend'),main=document.getElementById('wireMaster'); if(legend){ const filter=document.getElementById('viewFilter').value; @@ -1575,7 +1578,7 @@ const markup=focus&&!sourceInBank? ''+ 'Click any IN on this bank': - source?wireLegendHtml(source,routes):'Select a channel for IN / OUT'; + controlSource?wireLegendHtml(controlSource,routes):'Select a channel for IN / OUT'; const picker=focus?'CH'+ String(focus.id).padStart(2,'0')+' OUT →'+ '