From c7fdd8ea9415767d5f01b23670a62586ff6bb178 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 02:15:33 +0000 Subject: [PATCH 1/6] Hovering the top bar no longer flashes a scrollbar The owner saw scrollbars blink as the cog and save appeared. Measured frame by frame: for the first two frames of the reveal the page was wider than the window -- 1300px in a 1280px one, 404 in 380 -- because the tools' overflow turns visible on hover while their max-width is still opening from 0, so the save button drew up to 20px past its box and past the window's edge. .ss-control-bar now clips sideways overflow. clip rather than hidden so the other axis stays visible: the cog's menu and the tooltips drop below the bar and still show. E2e: one check that samples every frame of the reveal (0 of 37 wider than the window) and opens the menu, negative-tested on fresh builds -- without the clip it counts 2 widened frames, and with overflow: hidden in its place the page stays narrow but the menu is cut off. Both red. Gate: pnpm test (889), lint, typecheck, verify:template, docs:build, api-reference --check, and the full e2e on a fresh build, 371 checks. Not verified: OBS's own dock, where the flash was seen. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TFGhv32jx1vxD7qxaMoFxU --- CHANGELOG.md | 10 ++++++++ apps/fixture/e2e/smoke.mjs | 38 +++++++++++++++++++++++++++++++ packages/core/src/styles/base.css | 13 +++++++++++ 3 files changed, 61 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3f230e..9110bb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ Every published package shares a version — `@single-studio/core`, `@single-studio/provider-supabase` and the four plugins go out as one release. The tag is checked against all six manifests, so they cannot drift apart. +## Unreleased + +### Fixed + +- **Hovering the board's top bar no longer flashes a scrollbar.** Revealing the cog + and save made the page wider than the window for its first two frames -- the save + button drew up to 20px past the edge while its box was still opening -- so a + horizontal scrollbar flickered. The top bar now clips sideways overflow; its menu + and tooltips still drop below it. + ## 0.17.1 The release 0.17.0 was meant to be. `v0.17.0` was tagged on the commit before the diff --git a/apps/fixture/e2e/smoke.mjs b/apps/fixture/e2e/smoke.mjs index e198994..979253b 100644 --- a/apps/fixture/e2e/smoke.mjs +++ b/apps/fixture/e2e/smoke.mjs @@ -3372,6 +3372,44 @@ check( 'a board with no BoardBar -- an empty one included -- has no second bar, and its header is the top bar alone', ) +// Hovering the top bar reveals the cog and save, and the reveal widened the page for +// its first two frames -- the save button drew 20px past the window -- so a +// scrollbar flashed. Every frame of it is sampled here, and the menu has to open below +// the bar all the same. +const revealPage = await context.newPage() +await revealPage.setViewportSize({ width: 1280, height: 700 }) +await revealPage.goto(`${BASE}/#/`) +await revealPage.waitForSelector('.ss-control-bar h1') +await revealPage.waitForTimeout(400) +await revealPage.mouse.move(640, 500) +await revealPage.evaluate(() => { + window.__widened = 0 + window.__frames = 0 + const start = performance.now() + const frame = () => { + window.__frames += 1 + if (document.documentElement.scrollWidth > innerWidth) window.__widened += 1 + if (performance.now() - start < 600) requestAnimationFrame(frame) + } + requestAnimationFrame(frame) +}) +await revealPage.hover('.ss-control-bar h1') +await revealPage.waitForTimeout(700) +const reveal = await revealPage.evaluate(() => ({ widened: window.__widened, frames: window.__frames })) +await revealPage.click('.ss-menu-open') +const menuShown = await becomes(revealPage, () => { + const panel = document.querySelector('.ss-menu-panel') + const box = panel?.getBoundingClientRect() + + return Boolean(box && box.height > 100 && panel.contains(document.elementFromPoint(box.left + box.width / 2, box.top + box.height / 2))) +}) +console.log(` top bar reveal: ${reveal.widened} of ${reveal.frames} frames wider than the window`) +check( + reveal.frames > 10 && reveal.widened === 0 && menuShown, + 'revealing the top bar never makes the page wider than the window, and its menu still opens below it', +) +await revealPage.close() + const barPage = await context.newPage() await barPage.setViewportSize({ width: 1280, height: 500 }) await barPage.goto(`${BASE}/?boardbar#/`) diff --git a/packages/core/src/styles/base.css b/packages/core/src/styles/base.css index e081f86..0c2c4dc 100644 --- a/packages/core/src/styles/base.css +++ b/packages/core/src/styles/base.css @@ -506,6 +506,19 @@ opacity: 1; } + /* + * The reveal widened the page for two frames. The tools' overflow turns visible the + * moment the bar is hovered while their max-width is still opening from 0, so for + * the first frames the save button draws past its own box -- measured, 20px past a + * 1280px window (24px past a 380px one) -- the page is wider than the window, and a + * scrollbar flashes. Clipped on the horizontal only, so nothing in the bar can widen + * the page, while the cog's menu and the tooltips, which drop below it, still show: + * `clip` keeps the other axis visible, where `hidden` would turn it into a scroller. + */ + .ss-control-bar { + overflow-x: clip; + } + /* * A tablet has no pointer to rest anywhere, so hiding behind hover there hides for * good. Touch gets them permanently, which costs a dock nobody is running on a From 736dd17cf50e75f29bec54222471526bb1c197a8 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 19:28:31 +0000 Subject: [PATCH 2/6] The board ships its own font, Inter Nothing set a font, so the board drew in each machine's own -- Segoe UI on the Windows PC running OBS, San Francisco on a Mac, Roboto or Noto elsewhere -- and the same dock wrapped and truncated at different widths on each. The owner lays out on Windows; a laptop moved it. Segoe UI cannot be redistributed. Inter (OFL), the owner's pick, can, and is made for interfaces at the board's sizes. @fontsource-variable/inter is a dependency of core, imported at the top of styles.css, so every studio gets it through the import it already has. Variable, one file per script with a unicode-range, so a browser fetches only what the page uses: on the fixture, one file, Latin, 48 kB. Served by the studio's own build -- the template and the demo, built against the packed packages, both emit it -- so a dock with no internet still has it. .ss-control's font is var(--ss-font, 'Inter Variable', ). Board only, the owner's call: graphics keep whatever font they name, or the system's, since a font change on air should be the studio's. The guide gains a Fonts section on loading one for graphics, with an example checked against the package it names. E2e: two checks -- the board draws in Inter, loaded; --ss-font overrides it and a graphic's root keeps the system stack. Negative- tested on fresh builds: the import removed, --ss-font ignored, and the font set on :root so it reaches graphics -- all three red. The last first passed by mistake: the check read the scoreboard, which names its own font, so a leak could not show; it now reads the graphic's root. Gate: pnpm test (889), lint, typecheck, verify:template, docs:build, api-reference --check, and the full e2e on a fresh build, 373 checks; every board-width measurement in it held with Inter. Not verified: the owner's Windows machine, where the board will now look different from what was laid out in Segoe UI. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TFGhv32jx1vxD7qxaMoFxU --- CHANGELOG.md | 11 ++++++++++ apps/fixture/e2e/smoke.mjs | 35 +++++++++++++++++++++++++++++++ docs/getting-started.md | 31 +++++++++++++++++++++++++++ packages/core/package.json | 1 + packages/core/src/styles/base.css | 18 ++++++++++++++++ pnpm-lock.yaml | 8 +++++++ 6 files changed, 104 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9110bb2..7830a08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ tag is checked against all six manifests, so they cannot drift apart. ## Unreleased +### Changed + +- **The board ships its own font, Inter.** It used each machine's own -- Segoe UI on + the Windows PC running OBS, San Francisco on a Mac -- so the same dock wrapped and + truncated text at different widths on each, and a layout made on one machine moved + on another. Inter (OFL) comes with core as a dependency, is served by the studio's + own build, and a browser fetches only the alphabets on the page: 48 kB for Latin. + `--ss-font` on `.ss-control` sets another. **Graphics are unchanged**: the framework + never picks a font for anything on air. The getting-started guide has a new Fonts + section on loading one for graphics. + ### Fixed - **Hovering the board's top bar no longer flashes a scrollbar.** Revealing the cog diff --git a/apps/fixture/e2e/smoke.mjs b/apps/fixture/e2e/smoke.mjs index 979253b..172b6b2 100644 --- a/apps/fixture/e2e/smoke.mjs +++ b/apps/fixture/e2e/smoke.mjs @@ -3372,6 +3372,41 @@ check( 'a board with no BoardBar -- an empty one included -- has no second bar, and its header is the top bar alone', ) +// The board ships its own font, so it measures the same on every machine: with +// nothing set it took the system's -- Segoe UI on the PC running OBS, San Francisco +// on a Mac -- and wrapped and truncated at different widths on each. Graphics keep +// theirs, since a font change on air is the studio's call. +const boardFont = await control.evaluate(async () => { + await document.fonts.ready + const family = getComputedStyle(document.querySelector('.ss-panel h2')).fontFamily + const style = document.createElement('style') + + style.textContent = '.ss-control { --ss-font: Georgia, serif; }' + document.head.append(style) + const set = getComputedStyle(document.querySelector('.ss-panel h2')).fontFamily + style.remove() + + return { family, set, loaded: [...document.fonts].some((face) => face.family === 'Inter Variable' && face.status === 'loaded') } +}) +const graphicFont = await (async () => { + const graphic = await context.newPage() + + await graphic.goto(`${BASE}/#/source/scoreboard`) + await graphic.waitForSelector('.ss-source') + // The graphic's root, which only inherits: the scoreboard inside it names a font of + // its own, so a font leaking onto graphics would not show there. + const family = await graphic.evaluate(() => getComputedStyle(document.querySelector('.ss-source')).fontFamily) + + await graphic.close() + return family +})() +console.log(` board font: ${JSON.stringify(boardFont)}; a graphic's: ${graphicFont}`) +check( + boardFont.loaded && /^"Inter Variable"/.test(boardFont.family), + 'the board draws in the font it ships, Inter, loaded from the studio rather than the machine', +) +check(/^Georgia/.test(boardFont.set) && !/Inter/.test(graphicFont), 'a studio that sets --ss-font gets its own, and graphics keep theirs') + // Hovering the top bar reveals the cog and save, and the reveal widened the page for // its first two frames -- the save button drew 20px past the window -- so a // scrollbar flashed. Every frame of it is sampled here, and the menu has to open below diff --git a/docs/getting-started.md b/docs/getting-started.md index 7e842f5..f53fef4 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -1071,6 +1071,37 @@ adds at-rules the built-in CSS checker has not been taught. The template ships a `.vscode/settings.json` that silences it, and recommends the Tailwind IntelliSense extension, which understands them properly. +### Fonts + +The board ships its own font, Inter, so it looks and measures the same on every +machine: the Windows PC running OBS, a Mac, a tablet. Without it the board borrowed +each machine's own — Segoe UI on Windows, San Francisco on a Mac — and the same dock +wrapped and cut off text at different widths on each. It comes with the framework and +is served by your own build, so a dock with no internet still has it; a browser +fetches only the alphabets on the page, 48 kB for Latin. To use another, set it on the +board: + +```css +.ss-control { + --ss-font: 'Atkinson Hyperlegible', sans-serif; +} +``` + +**Graphics keep whatever font you give them**, and with none, the machine's own — the +framework does not choose a font for anything that goes to air. A graphic designed on a +Mac and shown on the Windows PC will draw in a different font unless it names one, so +load the one you design with and set it on the graphic. A font from npm is the +simplest, since your build then serves it like the board's: + +```css +/* src/css/index.css, after the framework's import */ +@import '@fontsource-variable/oswald'; + +.scoreboard { + font-family: 'Oswald Variable', sans-serif; +} +``` + ### Splitting it up Two ways, and they are not equivalent — one of them keeps a graphic's CSS out of diff --git a/packages/core/package.json b/packages/core/package.json index 81dfeeb..fb14ff4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -71,6 +71,7 @@ "types": "tsc -p tsconfig.json" }, "dependencies": { + "@fontsource-variable/inter": "^5.3.0", "y-indexeddb": "^9.0.12", "yjs": "^13.6.20" }, diff --git a/packages/core/src/styles/base.css b/packages/core/src/styles/base.css index 0c2c4dc..deaa460 100644 --- a/packages/core/src/styles/base.css +++ b/packages/core/src/styles/base.css @@ -17,6 +17,21 @@ * studio writes. */ +/* + * The board's font, shipped rather than borrowed from the machine. With nothing set + * the board took the system's: Segoe UI on the Windows PC that runs OBS, San + * Francisco on a Mac, Roboto or Noto elsewhere -- different widths, so the same dock + * wrapped and truncated at different places on each, and what the owner laid out on + * Windows moved on a laptop. Segoe UI cannot be redistributed; Inter can (OFL) and + * is built for interfaces at the board's sizes. Variable, one file per script, and a + * browser fetches only the scripts on the page -- Latin, for an English board. Served + * with the studio's own build, so a dock with no internet still has it. + * + * The board's only: graphics are untouched, since a font change on air is the + * studio's call, not an update's. + */ +@import '@fontsource-variable/inter'; + @layer components { /* OBS composites browser sources over the scene, so the page must not paint. */ .ss-source, @@ -341,6 +356,9 @@ */ .ss-control { color-scheme: dark; + /* --ss-font on .ss-control sets another. The system's own stack stays behind + it, for the moment before the file arrives and for a script Inter lacks. */ + font-family: var(--ss-font, 'Inter Variable', ui-sans-serif, system-ui, sans-serif); } /* diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index edcaa36..62ae26b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -93,6 +93,9 @@ importers: packages/core: dependencies: + '@fontsource-variable/inter': + specifier: ^5.3.0 + version: 5.3.0 y-indexeddb: specifier: ^9.0.12 version: 9.0.12(yjs@13.6.32) @@ -631,6 +634,9 @@ packages: resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@fontsource-variable/inter@5.3.0': + resolution: {integrity: sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==} + '@humanfs/core@0.19.2': resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} engines: {node: '>=18.18.0'} @@ -3154,6 +3160,8 @@ snapshots: '@eslint/core': 0.17.0 levn: 0.4.1 + '@fontsource-variable/inter@5.3.0': {} + '@humanfs/core@0.19.2': dependencies: '@humanfs/types': 0.15.0 From 7956272eb5f26af2d10c631294db06e96d6a7398 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 02:28:22 +0000 Subject: [PATCH 3/6] 0.18.0 The board in a font of its own, Inter, so it measures the same on every machine, and a top bar that no longer flashes a scrollbar when hovered. A minor rather than 0.17.2: every board changes font without being asked, and --ss-font is new. Every package and range to 0.18.0; the plugin template's core peer stays >=0.15.0 <1.0.0. Gate, on this tree: pnpm test (889), lint, typecheck, verify:template, docs:build, api-reference --check. Not re-run here: the e2e, since nothing but version numbers changed from 916fa3d, whose full e2e passed locally (373 checks) and in CI. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TFGhv32jx1vxD7qxaMoFxU --- CHANGELOG.md | 6 +++++- demo/package.json | 6 +++--- packages/core/package.json | 2 +- packages/plugin-obs/package.json | 4 ++-- packages/plugin-rocket-league/package.json | 4 ++-- packages/plugin-sheets/package.json | 4 ++-- packages/plugin-twitch/package.json | 4 ++-- packages/provider-supabase/package.json | 2 +- templates/plugin/package.json | 2 +- templates/studio/package.json | 4 ++-- 10 files changed, 21 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7830a08..a51f28b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,11 @@ Every published package shares a version — `@single-studio/core`, `@single-studio/provider-supabase` and the four plugins go out as one release. The tag is checked against all six manifests, so they cannot drift apart. -## Unreleased +## 0.18.0 + +The board in a font of its own, so it measures the same on every machine, and a top +bar that no longer flashes a scrollbar when hovered. A minor because every board +changes font without being asked, and `--ss-font` is new. ### Changed diff --git a/demo/package.json b/demo/package.json index 0b3b90c..61f2102 100644 --- a/demo/package.json +++ b/demo/package.json @@ -9,9 +9,9 @@ "preview": "vite preview" }, "dependencies": { - "@single-studio/core": "^0.17.1", - "@single-studio/plugin-twitch": "^0.17.1", - "@single-studio/provider-supabase": "^0.17.1", + "@single-studio/core": "^0.18.0", + "@single-studio/plugin-twitch": "^0.18.0", + "@single-studio/provider-supabase": "^0.18.0", "react": "^19.3.1", "react-dom": "^19.3.1", "react-router-dom": "^7.18.4", diff --git a/packages/core/package.json b/packages/core/package.json index fb14ff4..5326d43 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@single-studio/core", - "version": "0.17.1", + "version": "0.18.0", "description": "Local-first broadcast graphics framework for OBS: replicated state, source graphics, and control surfaces.", "license": "MIT", "author": { diff --git a/packages/plugin-obs/package.json b/packages/plugin-obs/package.json index 4a0fa0b..32cbaa8 100644 --- a/packages/plugin-obs/package.json +++ b/packages/plugin-obs/package.json @@ -1,6 +1,6 @@ { "name": "@single-studio/plugin-obs", - "version": "0.17.1", + "version": "0.18.0", "description": "OBS for Single Studio: the live scene, stream and record state, straight into a studio over obs-websocket.", "license": "MIT", "author": { @@ -33,7 +33,7 @@ "test": "vitest run" }, "peerDependencies": { - "@single-studio/core": "^0.17.1" + "@single-studio/core": "^0.18.0" }, "devDependencies": { "@single-studio/core": "workspace:*", diff --git a/packages/plugin-rocket-league/package.json b/packages/plugin-rocket-league/package.json index ac9239b..2c61493 100644 --- a/packages/plugin-rocket-league/package.json +++ b/packages/plugin-rocket-league/package.json @@ -1,6 +1,6 @@ { "name": "@single-studio/plugin-rocket-league", - "version": "0.17.1", + "version": "0.18.0", "description": "Rocket League for Single Studio: score, clock, goals and the stat feed, over Psyonix's own Stats API.", "license": "MIT", "author": { @@ -34,7 +34,7 @@ "replay": "node dev/replay.mjs" }, "peerDependencies": { - "@single-studio/core": "^0.17.1" + "@single-studio/core": "^0.18.0" }, "devDependencies": { "@single-studio/core": "workspace:*", diff --git a/packages/plugin-sheets/package.json b/packages/plugin-sheets/package.json index 802a674..6b38c1e 100644 --- a/packages/plugin-sheets/package.json +++ b/packages/plugin-sheets/package.json @@ -1,6 +1,6 @@ { "name": "@single-studio/plugin-sheets", - "version": "0.17.1", + "version": "0.18.0", "description": "Google Sheets for Single Studio: a shared spreadsheet as a data source, with an API key and no backend.", "license": "MIT", "author": { @@ -33,7 +33,7 @@ "test": "vitest run" }, "peerDependencies": { - "@single-studio/core": "^0.17.1" + "@single-studio/core": "^0.18.0" }, "devDependencies": { "@single-studio/core": "workspace:*", diff --git a/packages/plugin-twitch/package.json b/packages/plugin-twitch/package.json index be79463..73766d1 100644 --- a/packages/plugin-twitch/package.json +++ b/packages/plugin-twitch/package.json @@ -1,6 +1,6 @@ { "name": "@single-studio/plugin-twitch", - "version": "0.17.1", + "version": "0.18.0", "description": "Twitch EventSub for Single Studio: chat, follows, subs, gifts, cheers and raids, straight into a studio with no backend.", "license": "MIT", "author": { @@ -34,7 +34,7 @@ "mock": "node dev/mock.mjs" }, "peerDependencies": { - "@single-studio/core": "^0.17.1" + "@single-studio/core": "^0.18.0" }, "devDependencies": { "@single-studio/core": "workspace:*", diff --git a/packages/provider-supabase/package.json b/packages/provider-supabase/package.json index 9e745eb..07668e4 100644 --- a/packages/provider-supabase/package.json +++ b/packages/provider-supabase/package.json @@ -1,6 +1,6 @@ { "name": "@single-studio/provider-supabase", - "version": "0.17.1", + "version": "0.18.0", "description": "Collaboration for Single Studio over Supabase Realtime: bring your own key, no backend to deploy.", "license": "MIT", "author": { diff --git a/templates/plugin/package.json b/templates/plugin/package.json index 1f4acce..cff0af1 100644 --- a/templates/plugin/package.json +++ b/templates/plugin/package.json @@ -32,7 +32,7 @@ }, "devDependencies": { "@eslint/js": "^9.39.5", - "@single-studio/core": "^0.17.1", + "@single-studio/core": "^0.18.0", "eslint": "^9.15.0", "globals": "^17.13.0", "vitest": "^5.0.5" diff --git a/templates/studio/package.json b/templates/studio/package.json index 4de2bf5..5871f2d 100644 --- a/templates/studio/package.json +++ b/templates/studio/package.json @@ -9,8 +9,8 @@ "preview": "vite preview" }, "dependencies": { - "@single-studio/core": "^0.17.1", - "@single-studio/provider-supabase": "^0.17.1", + "@single-studio/core": "^0.18.0", + "@single-studio/provider-supabase": "^0.18.0", "react": "^19.3.1", "react-dom": "^19.3.1", "react-router-dom": "^7.18.4", From 0dd58d54e420bd139626fac1edcba7282d8bb17f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 02:44:36 +0000 Subject: [PATCH 4/6] CI starts the cached browser before going near Ubuntu's mirror "Install Chromium" timed out at 8 minutes twice in two days (2026-11-18, -19), before any test ran. The browser was cached both times; what hung was `playwright install-deps`, which ran apt against Ubuntu's mirror on every run. The mirror took ~7.5 minutes for ~20 MB, and what it was fetching was not needed: CJK and symbol fonts, and updates to libraries the runner image already has -- every library Chromium links against said "already the newest version". The per-attempt timeout did not help: apt ran under Playwright's own sudo, outside the process group `timeout` signals, so the retry never came and one attempt ate the step. Now: get the browser (the cache, or a download `timeout` can kill), then launch it exactly as the suite does -- Playwright's own Chromium, or CHROMIUM_PATH where set. If it starts, apt is never run. Only if it does not are the system packages installed, with `timeout` running as root inside sudo, where it kills apt itself; then it has to start, or the step says which part failed. Tested here against the real Playwright, with the step's script taken from the YAML: a browser that starts exits 0 with no apt; one that cannot falls back, installs the packages (13 upgrades in this sandbox), and fails with "does not start even with its system packages installed". A stalled install -- a child holding the pipe open under sudo -- is killed at its limit and retried: three attempts, 5s each at a 5s limit, 15s in all. Not verified: GitHub's runner itself, which this PR's CI is the first to run. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TFGhv32jx1vxD7qxaMoFxU --- .github/workflows/ci.yml | 75 +++++++++++++++++++++++++++++----------- 1 file changed, 54 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3dee57c..b52e4fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,12 +90,22 @@ jobs: # SharedWorker startup, cross-tab BroadcastChannel fan-out, IndexedDB. # # The browser is cached, keyed on Playwright's version, so most runs do not - # download it at all. The download is what hung: three times on 2026-10-23, - # 7-10 minutes each against 20-27 seconds healthy, and a re-run on another - # runner always went straight through. So each attempt gets two minutes and - # three tries, and a stall costs two minutes rather than a cancelled run. - # The system packages (`install-deps`) still install every run -- they are - # not in the cache path -- under the same retries. + # download it at all. The download is what hung first: three times on + # 2026-10-23, 7-10 minutes each against 20-27 seconds healthy. + # + # Then the system packages hung, twice in two days (2026-11-18 and -19), on a + # cache hit: `install-deps` ran apt against Ubuntu's mirror every run, and the + # mirror took ~7.5 minutes for ~20 MB -- CJK and symbol fonts, and an update to + # a libgbm the image already had. None of it is needed: the runner image has + # every library Chromium links against ("already the newest version", line + # after line) and the suite renders Latin text. The per-attempt timeout did + # not save it either: apt ran under Playwright's own `sudo`, outside the + # process group `timeout` signals, so one attempt ate the step's 8 minutes. + # + # So: get the browser (cache, or a download that `timeout` can kill), then + # launch it. If it starts, apt is never touched. Only if it does not are the + # packages installed, with `timeout` running as root inside `sudo`, where it + # kills apt itself, and then it has to start. - name: Find Playwright's version id: playwright run: echo "version=$(apps/fixture/node_modules/.bin/playwright --version | awk '{print $2}')" >> "$GITHUB_OUTPUT" @@ -112,25 +122,48 @@ jobs: env: CACHED: ${{ steps.browsers.outputs.cache-hit }} run: | - if [ "$CACHED" = true ]; then what='install-deps chromium'; else what='install --with-deps chromium'; fi - # Which Ubuntu, in the log and as a notice, so a failure here says # whether it is the runner image rather than leaving that to be guessed. echo "::notice title=runner::$(. /etc/os-release && echo "$PRETTY_NAME")" - for attempt in 1 2 3; do - # `timeout` signals the whole process group, so a hung apt-get under - # sudo goes with Playwright rather than holding the dpkg lock. - if timeout --kill-after=10 120 apps/fixture/node_modules/.bin/playwright $what 2>&1 | tee "$RUNNER_TEMP/chromium.log"; [ "${PIPESTATUS[0]}" -eq 0 ]; then exit 0; fi - # Playwright's own last error, as the annotation: the job log is not - # always readable from where a failure is diagnosed. - said=$(grep -iE 'error|not support|unable|failed' "$RUNNER_TEMP/chromium.log" | tail -1 | cut -c1-200) - echo "::warning::Chromium install attempt $attempt failed or stalled: ${said:-no error printed}" - sleep $((attempt * 10)) - done - - echo "::error::Chromium did not install in three attempts" - exit 1 + cli="$PWD/apps/fixture/node_modules/playwright/cli.js" + node="$(command -v node)" + + # Three tries, two minutes each. The last line Playwright said goes in + # the annotation: the job log is not always readable from where a + # failure is diagnosed. + attempts() { + what=$1 + shift + for attempt in 1 2 3; do + if "$@" 2>&1 | tee "$RUNNER_TEMP/chromium.log"; [ "${PIPESTATUS[0]}" -eq 0 ]; then return 0; fi + said=$(grep -iE 'error|not support|unable|failed' "$RUNNER_TEMP/chromium.log" | tail -1 | cut -c1-200) + echo "::warning::Chromium $what, attempt $attempt, failed or stalled: ${said:-no error printed}" + sleep $((attempt * 10)) + done + return 1 + } + + # Does the browser start? Launched exactly as the suite launches it -- + # Playwright's own Chromium, or CHROMIUM_PATH where that is set. A + # missing library fails here, at launch. + starts() { + (cd apps/fixture && timeout 60 "$node" -e "require('playwright').chromium.launch({ executablePath: process.env.CHROMIUM_PATH || undefined }).then((browser) => browser.close())") + } + + if [ "$CACHED" != true ]; then + attempts download timeout --kill-after=10 120 "$node" "$cli" install chromium || { echo "::error::Chromium did not download in three attempts"; exit 1; } + fi + + if starts; then + echo "::notice title=chromium::starts on the runner image as it is; no system packages installed" + exit 0 + fi + + echo "::warning::Chromium does not start on the runner image; installing its system packages" + attempts packages sudo timeout --kill-after=10 120 "$node" "$cli" install-deps chromium || { echo "::error::Chromium's system packages did not install in three attempts"; exit 1; } + + starts || { echo "::error::Chromium does not start even with its system packages installed"; exit 1; } - name: Smoke test working-directory: apps/fixture From cd825eaadd6f5d7e367d1603693d58a89c7e114d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 16:59:34 +0000 Subject: [PATCH 5/6] Queue where the changelog is published, and gather the real-OBS checks The owner asked whether there is a public changelog, and to have it raised at the next "where are we at". There is -- the repository is public and CHANGELOG.md is linked from the docs nav and the README -- but no GitHub Releases are made, the docs site links out rather than hosting it, and no package ships it. Recorded under Raise these first, with the correction of an earlier answer that called the repository private from a misread comment in release.yml. The Sequence-in-OBS item becomes one list of everything tested only in Chromium: Sequence, the studio's bar and the jump list, and the font. Docs only. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TFGhv32jx1vxD7qxaMoFxU --- docs/internal/next.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/docs/internal/next.md b/docs/internal/next.md index c62b079..f318aa1 100644 --- a/docs/internal/next.md +++ b/docs/internal/next.md @@ -37,10 +37,26 @@ before anything else. studio that ships one off until it is wanted. E2e: off survives a reload, on again connects, and an off plugin emits nothing. Open: whether off also hides the plugin's panel on the board; start without that. -- **`Sequence` in a real OBS.** 0.12.0 shipped it tested only in Chromium. The check - that matters: a browser source with _Refresh browser when scene becomes active_ - ticked starts the sequence again from its first item every time the scene is - taken. +- **Where the changelog is published.** Raised by the owner on 2026-11-19 and parked + for the next "where are we at". The repository is public, so `CHANGELOG.md` already + is: the docs site's "Changelog" nav link and the README point at it on GitHub. What + is missing: no GitHub Releases are created, so the Releases tab is empty and + nobody watching the repository hears of a version -- release.yml could publish one + per tag with that version's section of the changelog; the docs site links out to + GitHub rather than having the changelog as a page of its own, which could be + generated at build the way api.md is; and no package ships `CHANGELOG.md` in its + `files`. Releases are the one worth most. (An earlier answer called the repository + private, misreading release.yml's provenance comment; 0.18.0 carries npm + provenance, which is only issued for a public source repository.) +- **Real OBS, for what has only been tested in Chromium.** Each wants one look in + OBS 33, as a browser source or a dock: + - `Sequence`, since 0.12.0: a browser source with _Refresh browser when scene + becomes active_ ticked starts the sequence again from its first item every time + the scene is taken. + - The studio's own bar and the jump list, since 0.17.1: the jump's glide, and the + bar wrapping as the dock is dragged narrower. + - The board's font, since 0.18.0: Inter loads in the dock, and nothing laid out in + Segoe UI now wraps or truncates where it should not. ## Reports from client work, 2026-10-23 From 2c032af006ba65cf3795de441299ee7b247e33a6 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 18:11:37 +0000 Subject: [PATCH 6/6] The board's scrollbars are thin and dark, the page's own included Asked whether the dock's scrollbar can be styled -- it can: OBS 33's dock is Chromium 150. Looking found a bug first: the page's own scrollbar was light, a white track and grey arrows down the side of the dark board, seen with scrollbars shown in Chromium. The board declared `color-scheme: dark` on .ss-control, and the viewport's scrollbar takes its scheme and colours from the root element. Now :root:has(.ss-control) carries the dark scheme and scrollbar-color (slate-600 on a clear track), and scrollbar-width: thin goes on the root and, at no specificity, on every scroller on the board, since it does not inherit. A graphic's page has no board, so it never matches. The standard properties rather than ::-webkit-scrollbar: Chromium 150 has them, and ignores the pseudo-elements where both are set. Colours are --ss-scrollbar-thumb and --ss-scrollbar-track on :root, where the page's scrollbar lives. The gutter went from 15px to 10. E2e: two checks, negative-tested on fresh builds -- the rule back on .ss-control (the page's scrollbar stays light), inner scrollers not thinned, the rule on every page (graphics pick it up), and the colour not a property. All four red. Gate: pnpm test (889), lint, typecheck, verify:template, docs:build, api-reference --check, and the full e2e on a fresh build, 375 checks. Not verified: OBS's dock on Windows, whose scrollbars may be drawn differently from Linux Chromium's. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TFGhv32jx1vxD7qxaMoFxU --- CHANGELOG.md | 12 +++++++++ apps/fixture/e2e/smoke.mjs | 45 +++++++++++++++++++++++++++++++ docs/getting-started.md | 10 +++++++ packages/core/src/styles/base.css | 26 ++++++++++++++++++ 4 files changed, 93 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a51f28b..5df6156 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ Every published package shares a version — `@single-studio/core`, `@single-studio/provider-supabase` and the four plugins go out as one release. The tag is checked against all six manifests, so they cannot drift apart. +## Unreleased + +### Changed + +- **The board's scrollbars are thin and dark.** The page's own scrollbar was light -- + a white track and grey arrows down the side of a dark board -- because the board + declared itself dark on `.ss-control`, and a page's scrollbar follows the root + element. Now every scrollbar on the board, the page's included, is thin, a slate + thumb on a clear track. Set on the root of a page with a board in it only, so + graphics are unchanged. `--ss-scrollbar-thumb` and `--ss-scrollbar-track` on `:root` + set other colours. + ## 0.18.0 The board in a font of its own, so it measures the same on every machine, and a top diff --git a/apps/fixture/e2e/smoke.mjs b/apps/fixture/e2e/smoke.mjs index 172b6b2..47a0566 100644 --- a/apps/fixture/e2e/smoke.mjs +++ b/apps/fixture/e2e/smoke.mjs @@ -3407,6 +3407,51 @@ check( ) check(/^Georgia/.test(boardFont.set) && !/Inter/.test(graphicFont), 'a studio that sets --ss-font gets its own, and graphics keep theirs') +// The board's scrollbars. The page's own was light -- a white track down the side of +// a dark board -- because the dark scheme sat on .ss-control and the viewport's +// scrollbar follows the root. Now thin, slate on dark, set on the root of a page +// with a board in it, which a graphic's page never is. +const scrollbars = await control.evaluate(() => { + const root = getComputedStyle(document.documentElement) + const style = document.createElement('style') + + style.textContent = ':root { --ss-scrollbar-thumb: rgb(1, 2, 3); }' + document.head.append(style) + const set = getComputedStyle(document.documentElement).scrollbarColor + style.remove() + + return { + scheme: root.colorScheme, + color: root.scrollbarColor, + width: root.scrollbarWidth, + inner: getComputedStyle(document.querySelector('.ss-board')).scrollbarWidth, + set, + } +}) +const graphicScrollbars = await (async () => { + const graphic = await context.newPage() + + await graphic.goto(`${BASE}/#/source/scoreboard`) + await graphic.waitForSelector('.ss-source') + const root = await graphic.evaluate(() => { + const style = getComputedStyle(document.documentElement) + + return { scheme: style.colorScheme, color: style.scrollbarColor, width: style.scrollbarWidth } + }) + + await graphic.close() + return root +})() +console.log(` board scrollbars: ${JSON.stringify(scrollbars)}; a graphic's: ${JSON.stringify(graphicScrollbars)}`) +check( + scrollbars.scheme === 'dark' && /^rgb\(71, 85, 105\)/.test(scrollbars.color) && scrollbars.width === 'thin' && scrollbars.inner === 'thin', + "the board's scrollbars are thin and dark, the page's own included", +) +check( + /^rgb\(1, 2, 3\)/.test(scrollbars.set) && graphicScrollbars.color === 'auto' && graphicScrollbars.scheme !== 'dark', + "a studio sets their colour on the root, and a graphic keeps the browser's own", +) + // Hovering the top bar reveals the cog and save, and the reveal widened the page for // its first two frames -- the save button drew 20px past the window -- so a // scrollbar flashed. Every frame of it is sampled here, and the menu has to open below diff --git a/docs/getting-started.md b/docs/getting-started.md index f53fef4..9a52591 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -1087,6 +1087,16 @@ board: } ``` +The board's scrollbars are thin and dark. Their colours are properties on the page's +root, since the page's own scrollbar belongs to it: + +```css +:root { + --ss-scrollbar-thumb: #475569; + --ss-scrollbar-track: transparent; +} +``` + **Graphics keep whatever font you give them**, and with none, the machine's own — the framework does not choose a font for anything that goes to air. A graphic designed on a Mac and shown on the Windows PC will draw in a different font unless it names one, so diff --git a/packages/core/src/styles/base.css b/packages/core/src/styles/base.css index deaa460..893047c 100644 --- a/packages/core/src/styles/base.css +++ b/packages/core/src/styles/base.css @@ -524,6 +524,32 @@ opacity: 1; } + /* + * The board's scrollbars: thin, a slate thumb on the board's own dark, rather than + * the browser's. The page's own scrollbar was light -- a white track and grey + * arrows down the side of a dark board -- because `color-scheme: dark` sat on + * .ss-control, and the viewport's scrollbar takes its scheme and colours from the + * root element, not from anything inside it. So these go on the root, and only on + * a page with a board in it: a graphic's page never matches, so nothing on air + * changes. `scrollbar-color` inherits, so it reaches every scroller on the board, + * dialogs included; `scrollbar-width` does not, so it is set on them too, at no + * specificity, for a studio to override with anything. + * + * The standard properties rather than ::-webkit-scrollbar: OBS 33's dock is + * Chromium 150, which has them, and where both are set Chromium ignores the + * pseudo-elements anyway. The colours are properties on the root -- the page's + * scrollbar is the root's, so that is where a studio sets them. + */ + :root:has(.ss-control) { + color-scheme: dark; + scrollbar-color: var(--ss-scrollbar-thumb, rgb(71 85 105)) var(--ss-scrollbar-track, transparent); + } + + :root:has(.ss-control), + .ss-control :where(*) { + scrollbar-width: thin; + } + /* * The reveal widened the page for two frames. The tools' overflow turns visible the * moment the bar is hovered while their max-width is still opening from 0, so for