Skip to content

feat: the new interface is the only one (U11a) - #266

Merged
funkatron merged 2 commits into
mainfrom
u11a-v2-only
Dec 4, 2026
Merged

funkatron merged 2 commits into
mainfrom
u11a-v2-only

Conversation

@funkatron

Copy link
Copy Markdown
Owner

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).
  • Removed: ?ui=1/2, the stored choice, and the Prefs Interface section. A stored '1' from U10 is now ignored.
  • src/ui-version.js keeps only UI2_STYLESHEETS (for tests) and the gallery flag (?gallery=1).
  • studio-bootstrap.js always mounts the v2 shell and pages.
  • scripts/browser-smoke.mjs back to the plain URL.

Not yet (next slices)

  • U11b: remove v1-only CSS (rules for containers that are retired in v2), with screenshot diffs.
  • U11c: remove retired markup (tabLfos panel etc.) and rewrite the index.html tests that assert v1 classes, each keeping its intent.

Checks

Automated (done)

  • npm test 781 pass (index has data-ui and the sheets in order; no switch left); ESLint clean
  • scripts/ui2-a11y-audit.mjs on the plain URL: no unnamed controls, duplicate ids or page errors

iPad (owner)

  • Plain URL opens the new interface; Prefs has no Interface section
  • A device that had "New interface" turned off now opens the new one

Generated by Claude Code

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
@funkatron
funkatron merged commit 6463ab4 into main Dec 4, 2026
1 check passed
@funkatron
funkatron deleted the u11a-v2-only branch December 4, 2026 02:56
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>
github-actions Bot added a commit that referenced this pull request Dec 4, 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