Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ui-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
run: python tests/pages_v51_portrait_led_peak_hold_smoke.py
- name: Verify V52 fader recess, gain ruler and immutable V51 portrait meter
run: python tests/pages_v52_fader_recess_smoke.py
- name: Verify V56 shallow pocket ends, consistent scales, tail and real thumb overtravel
run: python tests/pages_v56_fader_pocket_endcaps_smoke.py
- name: Verify V50 compact console WIRE configuration popouts and dBFS tick insets
run: python tests/pages_v50_wire_popout_layout_smoke.py
- name: Verify V6 contextual buttons, momentary press and zero pointer scroll
Expand Down Expand Up @@ -291,6 +293,11 @@ jobs:
name: arsonmix-gui-baseline-smoke
path: |
pages-v51-portrait-meter-1680.png
pages-v56-pocket-comfort-1366.png
pages-v56-pocket-standard-1366.png
pages-v56-pocket-compact-1366.png
pages-v56-console-1366.png
pages-v56-console-1680.png
pages-v53-fx-rail-1366.png
pages-v53-fx-rail-1378.png
pages-v53-fx-rail-1680.png
Expand Down
53 changes: 29 additions & 24 deletions site/preview-v2/assets/mixer-fader-assembly.css
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,10 @@
}
.console-body .strip .fader-readout{text-shadow:none!important;color:#98e6f5!important}
.console-body .strip .fader-box{
/* Narrow inner machined rim, no outer glow or layer filter. */
box-shadow:inset 1px 0 #78909b3b,inset -1px 0 #050b0f,inset 0 1px #b8d7e119!important;
border-radius:3px!important;
/* No separate outlined rectangle around the well: the chassis is continuous. */
background:#263944!important;
box-shadow:none!important;
border-radius:0!important;
}
.console-body .strip .fader-box::after{

Expand All @@ -273,15 +274,16 @@
background:#1b2b36!important;
box-shadow:inset 0 1px #a5becc0b!important;
}
.console-body .strip .fader-box{background:#30434d!important}
.console-body .strip .fader-box::before{
/* Center stays flat: only the narrow edge bevel and interior well recede. */
/* Physical pocket finishes INSIDE the panel at both ends. Cap can overtravel
its ends; only the 5px groove is deeper. Flat middle, moderate side bevel. */
top:10px!important;bottom:10px!important;
background:linear-gradient(90deg,
#081219 0%,#101d25 16%,#15232b 29%,#15232b 71%,
#0d1921 87%,#071117 100%)!important;
border:1px solid #09131b!important;
box-shadow:inset 2px 0 3px #000a,inset -2px 0 3px #000b,
inset 0 3px 3px #0008,inset 0 -1px #b3ccd01a!important;
#15242d 0%,#1a2b35 15%,#1e303a 32%,#1e303a 68%,
#192a34 85%,#14232d 100%)!important;
border:1px solid #172630!important;border-radius:3px!important;
box-shadow:inset 1px 0 3px #0006,inset -1px 0 3px #0006,
inset 0 2px 2px #0004,inset 0 -1px #a4bfca18!important;
}
.console-body .strip .fader-head{
background:#08151e!important;box-shadow:inset 0 1px #b1d0dc12!important;
Expand Down Expand Up @@ -331,15 +333,16 @@
.console-body .strip .fader-workspace{
grid-template-columns:70px 29px 26px!important;
gap:3px!important;justify-content:start!important;
/* One continuous matte console face behind meter, well and gain scale. */
background:#263944!important;
border-radius:3px;
box-shadow:inset 0 1px #a7c4d01b,inset 0 -1px #050e16!important;
border-radius:2px;
box-shadow:inset 0 1px #91aeb914,inset 0 -1px #050e161f!important;
}
.console-body .strip .fader-workspace > .fader-box{
width:29px!important;min-width:29px!important;max-width:29px!important;
justify-self:center!important;
}
.console-body .strip .fader-box::before{width:calc(100% - 2px)!important}
.console-body .strip .fader-box::before{width:100%!important}
.console-body .strip .fader-travel,
.console-body .strip .gain-scale-travel{top:27px!important;bottom:27px!important}
.console-body .strip .fader-travel .cap{
Expand All @@ -355,12 +358,14 @@
top:27px!important;bottom:27px!important;height:calc(100% - 54px)!important;
}
.console-body .strip .fader-box::after{
/* --fader-y comes from the existing interaction model; bright below
handle, unlit above. Static paint only, no per-meter-frame work. */
/* Original soft cyan tail: a 5px recessed light line only BELOW the cap.
Same --fader-y as existing drag model. Zero JS or animated filter work. */
top:27px!important;bottom:27px!important;
background:linear-gradient(to bottom,
#010407 0%,#010407 var(--fader-y,50%),
#041019 calc(var(--fader-y,50%) + 2px),#09212b 100%)!important;
#0a2938 calc(var(--fader-y,50%) + 2px),
#247eaa calc(var(--fader-y,50%) + 11px),
#216886 90%,#0c2936 100%)!important;
}
.console-body .strip .gain-tick.unity::before{width:9px}

Expand All @@ -374,14 +379,14 @@
padding-left:1px!important;padding-right:1px!important;
}
.console-body[data-density="compact"] .strip .fader-workspace{
grid-template-columns:70px 25px 28px!important;gap:1px!important;justify-content:start!important;
grid-template-columns:70px 27px 26px!important;gap:1px!important;justify-content:start!important;
}
.console-body[data-density="compact"] .strip .fader-workspace > .fader-box{
width:25px!important;min-width:25px!important;max-width:25px!important;
width:27px!important;min-width:27px!important;max-width:27px!important;
}
.console-body[data-density="compact"] .strip .fader-box::before{width:calc(100% - 2px)!important}
.console-body[data-density="compact"] .strip .fader-box::before{width:100%!important}
.console-body[data-density="compact"] .strip .fader-scale{
width:28px!important;min-width:28px!important;
width:26px!important;min-width:26px!important;
}
.console-body[data-density="compact"] .strip .fader-travel,
.console-body[data-density="compact"] .strip .gain-scale-travel{
Expand All @@ -401,13 +406,13 @@
/* M3: Standard retains the full 70px dBFS housing with a tighter but readable
hardware group. The bank width model reserves the required 124px. */
.console-body[data-density="standard"] .strip .fader-workspace{
grid-template-columns:70px 27px 28px!important;gap:2px!important;justify-content:start!important;
grid-template-columns:70px 29px 26px!important;gap:2px!important;justify-content:start!important;
}
.console-body[data-density="standard"] .strip .fader-workspace>.fader-box{
width:27px!important;min-width:27px!important;max-width:27px!important;
width:29px!important;min-width:29px!important;max-width:29px!important;
}
.console-body[data-density="standard"] .strip .fader-box::before{width:calc(100% - 2px)!important}
.console-body[data-density="standard"] .strip .fader-scale{width:28px!important;min-width:28px!important}
.console-body[data-density="standard"] .strip .fader-box::before{width:100%!important}
.console-body[data-density="standard"] .strip .fader-scale{width:26px!important;min-width:26px!important}

/* V54: physical depth, not a glow: contact + offset body + ambient falloff.
Three STATIC small-area shadows, original silver/rose PNG and no GPU filter,
Expand Down
2 changes: 1 addition & 1 deletion site/preview-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
<link rel="stylesheet" href="assets/mixer-fx-rack.css?v=fx-owner-v8-m3-inserts-v54-independent-bypass">
<link rel="stylesheet" href="assets/mixer-plugin-browser.css?v=css-plugin-owner-v27-cascade-pruned">
<link rel="stylesheet" href="assets/mixer-pan-controls.css?v=css-owner-v27-pan-pruned">
<link rel="stylesheet" href="assets/mixer-fader-assembly.css?v=css-owner-v27-fader-pruned-v52-recess-v54-raised-shadow">
<link rel="stylesheet" href="assets/mixer-fader-assembly.css?v=css-owner-v27-fader-pruned-v56-moderate-pocket-tail">
<link rel="stylesheet" href="assets/mixer-meter-display.css?v=css-owner-v27-meter-pruned">
<link rel="stylesheet" href="assets/mixer-utility-controls.css?v=css-owner-v27-utility-pruned">
<link rel="stylesheet" href="assets/inter-embedded.css?v=inter-utility-v7">
Expand Down
4 changes: 2 additions & 2 deletions tests/pages_m1_meter_gain_calibration_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def geometry(page, density, label):
for rig in out["rigs"]:
compact=density=="compact"
slim=density!="comfort"
close(rig["wellWidth"],25 if compact else (27 if slim else 29),.6)
close(rig["wellWidth"],27 if compact else 29,.6)
close(rig["capWidth"],25 if compact else 27,.6)
close(rig["capHeight"],50 if compact else 54,.6)
close(rig["laneWidth"],10,.6)
Expand Down Expand Up @@ -202,7 +202,7 @@ def main():
published=dist/"preview/mixer.html"
assert published.read_bytes()==CANON.read_bytes(),"Published mixer source drift"
expected_ruler_keys={
"mixer-fader-assembly.css":"css-owner-v27-fader-pruned-v52-recess",
"mixer-fader-assembly.css":"css-owner-v27-fader-pruned-v56-moderate-pocket-tail",
"mixer-meter-display.css":"css-owner-v27-meter-pruned",
}
for name,key in expected_ruler_keys.items():
Expand Down
6 changes: 4 additions & 2 deletions tests/pages_v52_fader_recess_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def audit_checkpoint():
assert "#263944" in css
assert "1px 8px 9px -3px" in css and "0 13px 12px -7px" in css
assert "linear-gradient(90deg," in css
assert "top:10px!important;bottom:10px!important" in css, "Pocket top/bottom must be inset"
assert "#247eaa" in css, "Soft cyan tail light must be preserved"

def inspect(page,width,height,density):
page.locator("#densitySelect").select_option(density)
Expand Down Expand Up @@ -59,7 +61,7 @@ def inspect(page,width,height,density):
});
}""")
assert len(vals)==2,(width,density,'missing channel/master')
targetBox,targetCap={"comfort":(29,27),"standard":(27,27),"compact":(25,25)}[density]
targetBox,targetCap={"comfort":(29,27),"standard":(29,27),"compact":(27,25)}[density]
for v in vals:
assert abs(v["boxWidth"]-targetBox)<.75,(width,density,"pocket width",v)
assert abs(v["capWidth"]-targetCap)<.75,(width,density,"PNG cap width",v)
Expand All @@ -68,7 +70,7 @@ def inspect(page,width,height,density):
width,density,"ambiguous gain ruler surface",v)
assert "linear-gradient" in v["pocket"] and "inset" in v["depth"],(
width,density,"recess lost",v)
assert "inset" in v["rim"],(width,density,"machined rim lost",v)
assert v["rim"]=="none" and "inset" in v["depth"],(width,density,"separate outer frame or missing inner pocket",v)
assert abs(float(v["slotWidth"].replace("px",""))-5)<.6,(width,density,"dark slot drift",v)
assert "rgb(1, 4, 7)" in v["slotBackground"],(
width,density,"center aperture not near-black",v)
Expand Down
120 changes: 120 additions & 0 deletions tests/pages_v56_fader_pocket_endcaps_smoke.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
#!/usr/bin/env python3
"""V56: accepted V51 meter untouched; moderate fader recess and overtravel.

Checks the rendered geometry on real Chromium, not just selector text.
Pages is a GUI reference; this does not claim a native audio signal.
"""
from pathlib import Path
import hashlib
from playwright.sync_api import sync_playwright

ROOT=Path(__file__).resolve().parents[1]
HTML=ROOT/"site/preview-v2/index.html"
METER=ROOT/"site/preview-v2/assets/mixer-meter-display.css"
FADER=ROOT/"site/preview-v2/assets/mixer-fader-assembly.css"
METER_LOCK="e168fe3fde3b176ce46f2c637a17db65bc510944"

def blob_sha(path):
raw=path.read_bytes()
return hashlib.sha1(b"blob "+str(len(raw)).encode()+b"\x00"+raw).hexdigest()

def geometry(page,width,density):
page.locator("#densitySelect").select_option(density)
data=page.evaluate("""() => {
return [document.querySelector('#tracks .strip[data-id="1"]'),
document.querySelector('#master .strip')].map(root=>{
const q=selector=>root.querySelector(selector);
const rect=el=>el.getBoundingClientRect();
const box=q('.fader-box'),r=rect(box),cap=q('.fader-travel .cap'),
cr=rect(cap),meter=rect(q('.meter-box')),ruler=rect(q('.fader-scale')),
p=getComputedStyle(box,'::before'),slot=getComputedStyle(box,'::after'),
surface=getComputedStyle(q('.fader-workspace')),
scale=getComputedStyle(q('.fader-scale')),
boxStyle=getComputedStyle(box),thumb=getComputedStyle(cap);
return {
boxWidth:r.width,capWidth:cr.width,boxTop:r.top,boxBottom:r.bottom,
pocketTop:parseFloat(p.top),pocketBottom:parseFloat(p.bottom),
pocketWidth:parseFloat(p.width),pocketBg:p.backgroundImage,
pocketShadow:p.boxShadow,pocketRadius:p.borderRadius,
boxShadow:boxStyle.boxShadow,boxBg:boxStyle.backgroundColor,
surfaceBg:surface.backgroundColor,scaleBg:scale.backgroundColor,
slotTop:parseFloat(slot.top),slotBottom:parseFloat(slot.bottom),
slotWidth:parseFloat(slot.width),slotBg:slot.backgroundImage,
thumbShadow:thumb.boxShadow,filter:thumb.filter,
thumbTransition:thumb.transitionDuration,
meterWidth:meter.width,meterGap:r.left-meter.right,
scaleGap:ruler.left-r.right,scaleOverflow:ruler.right-rect(q('.fader-workspace')).right
};
});
}""")
target={"comfort":(29,27),"standard":(29,27),"compact":(27,25)}[density]
for item in data:
assert abs(item["boxWidth"]-target[0])<.8,(width,density,"pocket",item)
assert abs(item["capWidth"]-target[1])<.8,(width,density,"original cap",item)
assert abs(item["pocketWidth"]-item["boxWidth"])<1,(width,density,"well width",item)
assert item["pocketTop"]==item["pocketBottom"]==10,(width,density,"endcaps escape panel",item)
assert item["slotTop"]>=item["pocketTop"] and item["slotBottom"]>=item["pocketBottom"]
assert abs(item["slotWidth"]-5)<.8,(width,density,"physical groove",item)
assert item["boxShadow"]=="none",(width,density,"separate block seam",item)
assert "linear-gradient" in item["pocketBg"] and "inset" in item["pocketShadow"],(width,density,"moderate bevel",item)
assert "rgb(30, 48, 58)" in item["pocketBg"],(width,density,"flat middle missing",item)
assert "rgb(36, 126, 170)" in item["slotBg"],(width,density,"soft cyan tail missing",item)
assert item["surfaceBg"]==item["scaleBg"]==item["boxBg"]=="rgb(38, 57, 68)",(
width,density,"disjoint ruler/console surfaces",item)
assert item["thumbShadow"]!="none" and item["filter"]=="none" and item["thumbTransition"]=="0s",(
width,density,"shadow must be static",item)
assert abs(item["meterWidth"]-70)<.8,(width,density,"V51 meter was resized",item)
assert 1<=item["meterGap"]<=4.5 and 1<=item["scaleGap"]<=4.5,(width,density,"horizontal spacing",item)
assert item["scaleOverflow"]<=1.5,(width,density,"cropped scale",item)

def overtravel(page):
# The pocket ends 10px within its instrument but the metal cap may ride
# past both ends without being clipped by a rounded rectangle.
strip=page.locator('#tracks .strip[data-id="1"]')
box=strip.locator('.fader-box')
cap=strip.locator('.fader-travel .cap')
ctl=strip.locator('input.fader')
b=box.bounding_box()
x=b["x"]+b["width"]/2
page.mouse.click(x,b["y"]+3)
assert float(ctl.input_value())>=9.9,("top detent",ctl.input_value())
top=cap.bounding_box()
assert top["y"]<=b["y"]+2,("cap cannot cross inset top lip",top,b)
page.mouse.click(x,b["y"]+b["height"]-3)
assert float(ctl.input_value())<=-59.9,("bottom detent",ctl.input_value())
bottom=cap.bounding_box()
assert bottom["y"]+bottom["height"]>=b["y"]+b["height"]-2,(
"cap cannot cross inset lower lip",bottom,b)
page.mouse.click(x,b["y"]+b["height"]*.50)
assert -60<float(ctl.input_value())<10,("normal fader range broke",ctl.input_value())

def main():
assert blob_sha(METER)==METER_LOCK,"Owner-approved V51 LED and peak hold changed"
css=FADER.read_text(encoding="utf-8")
assert "top:10px!important;bottom:10px!important" in css
assert "filter:none!important" in css
with sync_playwright() as p:
browser=p.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 e:errors.append(str(e)))
page.goto(HTML.as_uri())
page.wait_for_selector('#tracks .strip[data-id="1"] .fader-box')
for density in ("comfort","standard","compact"):
geometry(page,width,density)
if width==1366:
page.locator('#tracks .strip[data-id="1"] .fader-workspace').screenshot(
path=f"pages-v56-pocket-{density}-1366.png")
page.locator("#densitySelect").select_option("comfort")
overtravel(page)
if width in (1366,1680):
page.screenshot(path=f"pages-v56-console-{width}.png")
assert not errors,(width,height,errors)
page.close()
browser.close()
print("PASS V56: calibrated meter unchanged, 10px inset ends, thumb+2px recess,"
" continuous graphite scale, cyan tail, cap overtravel and static shadows")

if __name__=="__main__":
main()
Loading