From 9055984a5b1f45b2821d8aa180dac2a0deb6acde Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Fri, 13 Nov 2026 09:41:59 +0700 Subject: [PATCH 1/2] fix(gui): expose selected cable by focusing source after accepted drag or route choice --- site/preview-v2/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site/preview-v2/index.html b/site/preview-v2/index.html index 8ca3bf161..8dfc6817d 100644 --- a/site/preview-v2/index.html +++ b/site/preview-v2/index.html @@ -424,7 +424,7 @@ if(type==='CONNECT')op.mode=source.wireTapMode==='split'?'split':'send'; const ok=wireGraphCommit([op]); closeRouteChoice();if(!ok)return false; - render();kickWireSpring(source.id,dest.id); + render();selectTrack(source);kickWireSpring(source.id,dest.id); say(source.name+' → '+dest.name+' · '+(kind==='only'?'ROUTE ONLY':'PARALLEL SEND')+' · reference only'); return true; } @@ -1973,6 +1973,7 @@ if(replugWireEdge(g.sourceId,g.originDestId,snap?.track.id??null)){ wireWsRecord(before); if(!snap)selectedWireEdgeId=null; + else selectTrack(wireSourceTrack(g.sourceId)); // reveal accepted selected cable } } }else{ @@ -1981,7 +1982,8 @@ const target=snap?.track||(input?findTrack(input):null),source=wireSourceTrack(g.sourceId); if(target&&source&&target.id!==source.id){ wireSourceId=source.id;wireSourcePinned=true;wireIntent=true;wireAnchorId=target.id; - requestWireConnection(source,target,input); + if(requestWireConnection(source,target,input)) + selectTrack(source); // a successful OUT drag reveals its selected cable }else say('WIRE drop canceled · release in destination WIRE bay (graph unchanged)'); } renderWireRouting();wireSuppressClick=true; From 0d32547513f397408d6adcd2beca91390691b35c Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Fri, 13 Nov 2026 09:43:26 +0700 Subject: [PATCH 2/2] test(chromium): probe encapsulated motion via exact source and support incoming cable jacket --- tests/pages_v60_fader_wire_tactile_smoke.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/pages_v60_fader_wire_tactile_smoke.py b/tests/pages_v60_fader_wire_tactile_smoke.py index 757e2e758..dc728c601 100644 --- a/tests/pages_v60_fader_wire_tactile_smoke.py +++ b/tests/pages_v60_fader_wire_tactile_smoke.py @@ -177,9 +177,13 @@ def test_wire(page): samples=page.evaluate("window.__v60WireSamples") # Deterministic physical direction: first visible UP kick near IN, # OUT remains quiet initially; then the decayed crest reaches near OUT. - physics=page.evaluate("""()=>{ - const g=wireMotionGeometry.get('1-3'); - if(!g)return null; + # Canonical Pages GUI intentionally encapsulates its lexical graph. + # Probe the exact checked-in motion function without exposing a runtime + # debug global or duplicating the production renderer. + motion=HTML[HTML.index("const WIRE_IMPACT_TRAVEL_MS="): + HTML.index("function kickWireSpring(")] + physics=page.evaluate("()=>{\n"+motion+"""\n + const g=[0,0,180,0,72]; // representative wire with anchored plugs const [x0,y0,x1,y1,limit]=g; 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))); @@ -219,7 +223,7 @@ def test_wire(page): hit=page.locator('#wireLayer path.wire-interaction-hit[data-cable-key="1-3"]') assert hit.count()==1 # The newly plugged edge is selected immediately, before the user clicks it. - assert page.locator('#wireLayer path.wire-outgoing-line[data-from="1"][data-to="3"].is-wire-selected').count()==1 + assert page.locator('#wireLayer path.wire-outgoing-line[data-from="1"][data-to="3"].is-wire-selected,#wireLayer path.wire-incoming-line[data-from="1"][data-to="3"].is-wire-selected').count()==1 initial_edge=hit.get_attribute("data-edge-id") mid=point_at_midpoint(hit) page.mouse.click(mid["x"],mid["y"])