Repository navigation
feat: the new interface is the only one (U11a) - #266
Merged
Merged
Conversation
index.html sets data-ui="2" and links the v2 stylesheets directly, so there is no flash of the classic layout. ?ui= and the Prefs Interface switch are removed. v1-only CSS and retired markup follow in U11b/U11c. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QahLPKUk6fvdvPPnPP3RNJ
This was referenced Dec 4, 2026
funkatron
marked this pull request as ready for review
December 4, 2026 02:54
funkatron
added a commit
that referenced
this pull request
Dec 4, 2026
## U11b — remove CSS for the retired classic layout **Stacked on #266 (U11a).** Merge #266 first; this PR's base is `u11a-v2-only`. ### Method 1. Playwright walks every state: 4 pages, drum editor SID 4/5/6 (+ OH), Prefs (top, bottom, diagnostics open), help, presets, pads, hidden keyboard, a picker, portrait. 2. Each rule in `studio-core.css` / `seq-ui.css` is classed by what it matches in any state: visible → keep; only elements inside `.ss-retired` / `.ss-native-hidden` / the hidden v1 header → **remove**; matches nothing and names a class/id no longer in the code → **remove**; matches nothing but the class still exists (e.g. `.key.down`, `:focus-visible`, recording state) → keep. 3. An empty-but-shown element (e.g. `#recordStatus` toast) counts as live, so its rules stay. ### Result - **210 rules removed** (205 lines net across `studio-core.css` and `seq-ui.css`). - Screenshots of all 17 states before/after: **pixel-identical** (only the diagnostics timing numbers differ between runs). ### Tests rewritten (assertions on removed v1 rules dropped; the JS/HTML assertions in each test stay) | Test | Dropped | | --- | --- | | header-toolbar: compact BPM chip | `.master-bpm-chip{` in seq-ui.css | | master-loudness-meter: full-bleed bar | one v1 meter size rule | | modulation-track-ui | two v1 slider-stack rules (v2 fader band covered by U3c tests) | | sid-engine-meter (2 tests) | v1 chip meter and header CSS | | step-sequencer-ui (2 tests) | v1 Arp grid / layout rules | | ui-param-row | v1 subgrid rules | | ui-contrast | "master BPM number" sample (`.master-tempo` no longer exists) | ### Checks **Automated (done)** - [x] `npm test` 781 pass; ESLint clean - [x] Pixel diff of 17 states: identical **iPad (owner)** - [ ] Quick pass over each page, drum editor, Prefs, help, presets: nothing looks different --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
funkatron
added a commit
that referenced
this pull request
Dec 4, 2026
## U11c — remove the LFOs tab and the FX lead text **Stacked on #267 (U11b) → #266 (U11a).** Merge in order. ### What changed - **LFOs tab removed:** `#tabLfos` is gone. `#lfoPanel` is a plain region ("LFOs") that the shell moves onto SYNTH, as before. - `editor-tabs.js` and `diagnostics-panel.js` no longer know an `lfos` tab. - The static FX lead paragraph (no ids) is removed; the FX help entries cover it. ### What stays, and why The retired v1 containers that still hold element ids (FX inputs, Arp selects, drum bus tabs, chip cards …) stay in the DOM: `sid-studio.js` reads and writes those controls, and the standing rule is to keep every id. Moving them out of `index.html` would mean rebuilding those controls in the v2 modules; that is a separate, larger refactor, not part of the plan's U11. ### Tests - `editor-tabs.test.js`: tab cycle without LFOs; new test that there is no `tabLfos`, the LFO panel is a region, and the shell moves it. - No other index.html text test asserted the removed markup. ### Checks **Automated (done)** - [x] `npm test` 782 pass; ESLint clean - [x] Pixel diff vs U11b: identical except a 1 px divider between DRUMS and FX when DRUMS is selected, which now matches the SYNTH/SEQ divider (the hidden LFOs button used to sit between them) - [x] `scripts/ui2-a11y-audit.mjs`: no unnamed controls, duplicate ids or page errors **iPad (owner)** - [ ] SYNTH still shows the LFOs; page tabs work --- _Generated by [Claude Code](https://claude.ai/code)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
U11a — the new interface is the only one
First U11 slice. The plan kept the classic interface "for one release"; the owner asked to start U11 now.
What changed
index.html:<html data-ui="2">and the five v2 stylesheets are linked directly (no JS step, no flash of the classic layout on load).?ui=1/2, the stored choice, and the Prefs Interface section. A stored'1'from U10 is now ignored.src/ui-version.jskeeps onlyUI2_STYLESHEETS(for tests) and the gallery flag (?gallery=1).studio-bootstrap.jsalways mounts the v2 shell and pages.scripts/browser-smoke.mjsback to the plain URL.Not yet (next slices)
tabLfospanel etc.) and rewrite the index.html tests that assert v1 classes, each keeping its intent.Checks
Automated (done)
npm test781 pass (index has data-ui and the sheets in order; no switch left); ESLint cleanscripts/ui2-a11y-audit.mjson the plain URL: no unnamed controls, duplicate ids or page errorsiPad (owner)
Generated by Claude Code