Skip to content

Fix main's red colour-map test, and give the trial harness's gram the full page width - #337

Merged
IanMayo merged 1 commit into
mainfrom
claude/tender-shannon-wae4zh
Sep 18, 2026
Merged

IanMayo merged 1 commit into
mainfrom
claude/tender-shannon-wae4zh

Conversation

@IanMayo

@IanMayo IanMayo commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Two small fixes for main, one commit each.

1. Main's red test

Main's Tests run on the #335 merge (0531857) is red on one Playwright test: tests/player-colour-map.spec.js › "the colour-map config row opens a table in grey or inferno, and the row shows it".

The test waits for exactly five ready players on tests/fixtures/player-painting-page.html, the count from before #334 and #335 grew that page. It now carries six live players; the seventh table is the deliberately bad one, which never becomes an instance. Five is a count the page only passes through, and once two players finish analysing in the same frame it is never observed, so the wait times out. It reproduces deterministically on unmodified main (two of two runs).

One line: wait for six, which is what every wait in tests/player-painting.spec.js already does, with a comment saying where the seventh table went. The same commit is already in #326, so it no-ops there once this lands.

2. The trial harness was showing the component too narrow

trial/index.html wrapped everything, the gram included, in the 1100px column its notes read comfortably in. A component that narrow is not what an analyst's page gives it: the control row collapses its guidance and squeezes the annotation tables below about 1180px, and the picture loses half the width a full-page gram has, so the trial was showing a constrained layout as if it were the product. The gram mount now sits outside the column, spanning the page between the body's margins; the notes above and the footer below keep their column. Markup only, with a comment in the page saying why the mount is where it is.

At a 1600px viewport the component is now 1552px wide against the 1100px column, and all five control-row columns show uncollapsed. The picture itself is still the player's fixed 900px render area until the expand toggle is used; that is the player's existing behaviour and is not changed here.

Checks

  • tests/player-colour-map.spec.js on main with the fix: 4 passed; on the Rebuild the control panel to the design handoff #326 merge with it: 8 passed over two repeats
  • yarn build:standalone && yarn build:site && yarn check:site on this head: site check passes (10 curated pages reachable, no dead links)

🤖 Generated with Claude Code

https://claude.ai/code/session_01CrHtVussSR8ZxsxisaepJM

tests/player-colour-map.spec.js waited for exactly five ready players on
the painting fixture, the count from before #334 and #335 grew the page:
it now carries six live players (the seventh table is the deliberately
bad one, which never becomes an instance). Five is a count the page only
passes through, and once two players finish in the same frame it is never
observed, so the wait times out. main's own run on the #335 merge fails on
this test. Six is what tests/player-painting.spec.js already waits for.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CrHtVussSR8ZxsxisaepJM
@github-actions

Copy link
Copy Markdown
Contributor

PR Preview

Preview deployment is ready! View Preview

Last updated: 2026-09-18T09:29:03.988Z

@IanMayo
IanMayo merged commit 7cea1f8 into main Sep 18, 2026
6 checks passed
@IanMayo
IanMayo deleted the claude/tender-shannon-wae4zh branch September 18, 2026 09:38
github-actions Bot added a commit that referenced this pull request Sep 18, 2026
@IanMayo IanMayo changed the title Wait for all six players in the colour-map fixture test Fix main's red colour-map test, and give the trial harness's gram the full page width Sep 18, 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