Skip to content

refactor: remove CSS for the retired classic layout (U11b) - #267

Merged
funkatron merged 4 commits into
mainfrom
u11b-v1-css
Dec 4, 2026
Merged

funkatron merged 4 commits into
mainfrom
u11b-v1-css

Conversation

@funkatron

Copy link
Copy Markdown
Owner

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)

  • npm test 781 pass; ESLint clean
  • 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

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
Drop 210 v1 rules that only match containers the new interface retires
(.ss-retired, .ss-native-hidden, the v1 header) or classes no longer in
the code. Screenshots of every page, the drum editor tabs, Prefs, help,
presets, pads, hidden keyboard, a picker and portrait are pixel-identical.
Tests that asserted the removed rules drop those lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QahLPKUk6fvdvPPnPP3RNJ
github-actions Bot added a commit that referenced this pull request Dec 4, 2026
@funkatron
funkatron marked this pull request as ready for review December 4, 2026 02:54
Base automatically changed from u11a-v2-only to main December 4, 2026 02:56
@funkatron
funkatron merged commit f59310d into main Dec 4, 2026
1 check passed
@funkatron
funkatron deleted the u11b-v1-css branch December 4, 2026 02:58
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>
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