Skip to content

web: rail Sign-in stays in the 280px box; viewport is a CAD modeling well - #32

Merged
Code4me2 merged 4 commits into
mainfrom
cursor/cad-well-rail-clip-8d64
Aug 31, 2026
Merged

Code4me2 merged 4 commits into
mainfrom
cursor/cad-well-rail-clip-8d64

Conversation

@Code4me2

@Code4me2 Code4me2 commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Velvet measured the live operator at 1280×800 on heph serve --web / shelf-assembly after #26+#27.

1. Rail Sign-in horizontal clip

Measured (before): nav._rail clientWidth 279 vs scrollWidth 319. Sign-in sat at x 244–311, 31px past the 280px rail. The only in-rail scrollbar was a horizontal bar at the floor. Compact providers was the #27 intent; leftover overflow made Sign-in unreachable without sideways scroll.

Cause: same class of leak as #26's stream min-width. A nowrap header pair (Model providers + Show configuration) and/or an ACKNOWLEDGED OUTBOUND HOSTS host/timestamp row set a flex child's min-content above --rail-width. .rail > * defaulted to min-width: auto.

Fix:

  • .rail > * { min-width: 0 } and overflow-x: hidden / overflow-y: auto (no horizontal rail scroll)
  • Panel header wraps; actions shrink (flex: 0 1 auto; min-width: 0)
  • Compact provider row and providers body stay minmax(0, 1fr) with min-width: 0
  • Compact default unchanged. Egress hosts remain in the compact DOM (G10C)

Test: operator-chrome.test.tsx fails if rail descendants can force wider than --rail-width.

Re-measured on this revision at 1280×800: clientWidth 279, scrollWidth 279, overflow-x hidden. Sign-in at x 207–271 (inside). Show configuration fully visible (wrapped onto its own row). No overflowing interactive control. Composer Send still on-screen.

1280×800 shell after the rail and well fixes
Rail providers: Sign-in and Show configuration inside 280px

2. Viewport is a CAD modeling well, not a black void

The black background did not help the operator see constructed solids. Grid being "on" while invisible on #080a0d was the defect.

Defaults (named):

  • Clear / --viewport-ground: --p-slate-050 #eef1f6 (Fusion / Onshape / SolidWorks-style modeling board)
  • Part / --viewport-part: --p-graphite-500 #30374a (dark steel on the light well, ≥4.5:1)
  • Edge / --viewport-edge: --p-graphite-950 #080a0d
  • Grid / --viewport-grid: --p-slate-400 #9aa5b6 (visible on the well)
  • Grid axis / --viewport-grid-axis: --p-slate-600 #6b7484
  • Grid still defaults on; Wireframe / Material / Grid / Axes toggles unchanged (verified Grid true → false → true)
  • App chrome stays dark. --surface-canvas remains #080a0d for NoToken and the section plate

No new geometry kernel. No client-side tessellation. Appearance only: clear colour, grid contrast, existing three.js authorship.

Corner sample on the live canvas is rgb(238, 241, 246) — the well token byte for byte, not the previous void.

Viewport well: light modeling board, grid default on, chrome overlays unchanged

INTERFACE.md tension (follow Velvet): §3.5 / §3.11 draft that the viewport ground "must be darker than the part." That clause produced the void. This PR keeps §3.11's non-chrome contract (client-authored material, silhouette + feature edges, grid readout, ≥4.5:1 part-vs-ground) and inverts the well so a gusset reads as a part sitting on a grid. G4.5 method is unchanged (self-referential before/after delta inside a decoded mask); thresholds are not loosened.

The finite ground pad still only builds once a part is framed (engine.ts: no part, no floor). This VM's GET /artifacts/{ref}/gltf 500s on missing EGL, so the loaded-solid-on-grid picture is asserted at the token / clear-colour / default-grid layer rather than as a minted GLB screenshot.

CI — what actually failed (job 99584414509)

render goldens (pinned image) last step is pnpm --dir web test:e2e, not G1 Mesa goldens.

  • G1 (pytest tests/render) passed. Not rebaselined.
  • G4.7 (test_g4_section_golden.py and viewport.spec.ts section plate) passed. Not rebaselined.
  • G4.5 passed (inside 1.0 / control 0.0).
  • Playwright archive() attaches screenshots and never asserts them. No viewport archives were rebaselined.

The one failure was e2e/design-system.spec.ts:56 — §3.13.1 live ink walk:

text 1.36:1 fg=201,209,222 bg=238,241,246

three times. Those are the axis triad's SVG text letters (--ink-base #c9d1de) sitting on --viewport-ground #eef1f6 with no plate (by design). Chrome --ink-* is authored for the dark surfaces.

Fix: triad strokes and letters spend --viewport-edge (also @permit text on the well). Viewport absence copy sits on --surface-overlay so loading/refused words are not the same pairing. App chrome stays dark. Rail clip and CAD well unchanged.

Re-run: render goldens (pinned image) job 99595397193 on 9d88153 succeeded. All 18 checks green. Ready for review.

Out of scope

#14 engine work, Spark/GLM, Timeline/Export/Sourcing, composer crowding, branch/HEAD, G4/G5 weakening.

pnpm --dir web test 469 passed · typecheck green · lint green. Local test:e2e cannot stand up the G4 harness here (no packaged sidecar / no EGL). The pinned-image job is the e2e gate and is now green.

cursoragent and others added 4 commits August 31, 2026 17:43
The compact providers header (title + Show configuration) and
egress host/timestamp rows sized past --rail-width (measured 319 vs
279), hiding Sign-in behind a horizontal scrollbar. Flex children
now shrink, the header wraps, and the rail scrolls vertically only.

The viewport well is no longer the near-black void. Clear colour is
--p-slate-050 (#eef1f6) with a dark steel part, visible grid on by
default — a Fusion/Onshape-style modeling grid. App chrome stays dark.

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
no-palette-token refuses a copied hex (or a --p-* name) outside
tokens.css. The design-system spec now probes --viewport-ground as
RGB and checks luminance: the well is light, the chrome canvas stays
the dark void, and the corner pixel still matches the clear colour.

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
The well invert left the axis triad's SVG <text> at --ink-base on
--viewport-ground (1.36:1). Chrome ink stays on dark plates; the
no-plate triad spends --viewport-edge. Absence copy sits on overlay.

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
@Code4me2
Code4me2 marked this pull request as ready for review August 31, 2026 18:43
@Code4me2
Code4me2 merged commit 3436a47 into main Aug 31, 2026
18 checks passed
This was referenced Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants