fix(website): the Graphics reader takes the Simulated turf page row #2252

Closed
dazemc wants to merge 1 commit from dazemc/Longshot:fix/website-sim-turf-page into main
Contributor

Summary

main's shared Website check fails, so every PR built on it inherits a red run:

$ cd website && node --test tests/graphics-settings.test.ts
...
Error: table/menu graphics coverage mismatch at Simulated turf
    at readGraphicsSettings (website/src/repo-docs/graphics-settings.ts:265:13)

To see it on main (a2dc5385): run the command above, or npm run build, which stops in the Graphics guide's table.

The Graphics menu's Simulated turf row (gpu/vk/menu/sim_turf.cpp:66) is a Page row (menu::Kind::Page) with no option pointer; it opens the sim_turf_settings page. readGraphicsSettings accepted only option-pointer rows and five registered special cases, so the documented row had no accepted source and the site refused to publish.

This takes that row by its key, kind and page (the way the ReShade rows are registered) and reads the module's named help string (sim_turf_about). A Page row with an unknown key or page still fails, so a wrong or partial table cannot publish. Read first: website/src/repo-docs/graphics-settings.ts (namedString, readModuleRows, readGraphicsSettings) and the new test in website/tests/graphics-settings.test.ts.

The parser change and its regression test are HumanBean's, taken from #2213 (WIP), so main's check can pass while that broader PR lands. Proposed to its author in the #2213 comment; no objection was posted in the 15-minute window, and #2213 can drop its website hunk when this merges.

Testing

Tested: game-free, Linux, Node 26.13.1 (this PC).

  • On main a2dc5385: cd website && node --test tests/graphics-settings.test.ts → 21 tests, 7 passed, 14 failed, each for table/menu graphics coverage mismatch at Simulated turf (the line CI reports).
  • On this branch e6359bcf: the same command → 22 tests, 22 passed.
  • npm ci installed the locked dependencies; no Astro build, suite or game run, per the machine owner's constraint.

Still to test: None.

Measurements

Nothing to measure: the change is the website's source reader and its unit test, with no game, shader, build or runtime path.

Risks

  • If the Simulated turf row's key, kind or opens target changes, the check fails instead of publishing a wrong card; that is the intended guard.
  • No player-facing change: the site's generated cards use the same table and menu text; nothing in the game or its files changes.
  • Reverting is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says. (N/A: website reader and unit test only; no game code. The game-free run is in Testing.)
  • mise run test passes (any failure that also fails on main is named). (N/A: the machine owner allowed only the focused website check this session; the diff touches no game-free check. node --test tests/graphics-settings.test.ts passes 22/22.)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary `main`'s shared Website check fails, so every PR built on it inherits a red run: ``` $ cd website && node --test tests/graphics-settings.test.ts ... Error: table/menu graphics coverage mismatch at Simulated turf at readGraphicsSettings (website/src/repo-docs/graphics-settings.ts:265:13) ``` To see it on `main` (`a2dc5385`): run the command above, or `npm run build`, which stops in the Graphics guide's table. The Graphics menu's **Simulated turf** row (`gpu/vk/menu/sim_turf.cpp:66`) is a Page row (`menu::Kind::Page`) with no option pointer; it opens the `sim_turf_settings` page. `readGraphicsSettings` accepted only option-pointer rows and five registered special cases, so the documented row had no accepted source and the site refused to publish. This takes that row by its key, kind and page (the way the ReShade rows are registered) and reads the module's named help string (`sim_turf_about`). A Page row with an unknown key or page still fails, so a wrong or partial table cannot publish. Read first: `website/src/repo-docs/graphics-settings.ts` (`namedString`, `readModuleRows`, `readGraphicsSettings`) and the new test in `website/tests/graphics-settings.test.ts`. The parser change and its regression test are HumanBean's, taken from [#2213](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2213) (WIP), so `main`'s check can pass while that broader PR lands. Proposed to its author in [the #2213 comment](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2213#issuecomment-73075); no objection was posted in the 15-minute window, and #2213 can drop its website hunk when this merges. ## Testing **Tested:** game-free, Linux, Node 26.13.1 (this PC). - On `main` `a2dc5385`: `cd website && node --test tests/graphics-settings.test.ts` → 21 tests, 7 passed, 14 failed, each for `table/menu graphics coverage mismatch at Simulated turf` (the line CI reports). - On this branch `e6359bcf`: the same command → 22 tests, 22 passed. - `npm ci` installed the locked dependencies; no Astro build, suite or game run, per the machine owner's constraint. **Still to test:** None. ## Measurements Nothing to measure: the change is the website's source reader and its unit test, with no game, shader, build or runtime path. ## Risks - If the Simulated turf row's key, kind or `opens` target changes, the check fails instead of publishing a wrong card; that is the intended guard. - No player-facing change: the site's generated cards use the same table and menu text; nothing in the game or its files changes. - Reverting is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. (N/A: website reader and unit test only; no game code. The game-free run is in Testing.) - [x] `mise run test` passes (any failure that also fails on `main` is named). (N/A: the machine owner allowed only the focused website check this session; the diff touches no game-free check. `node --test tests/graphics-settings.test.ts` passes 22/22.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
fix(website): the Graphics reader takes the Simulated turf page row
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
e6359bcf73
The Graphics menu's Simulated turf row is a Page row (menu::Kind::Page)
with no option pointer, and the site's reader rejected every such row, so
the website check stopped at "table/menu graphics coverage mismatch at
Simulated turf".

Take the row by its key, kind and page, the same way the ReShade rows are
registered, and read the module's named help string. A page row with an
unknown key or page still fails the check.

The website change and its regression test are HumanBean's, taken from
#2213 so main's shared Website check can pass while that broader WIP PR
lands.

Co-Authored-By: HumanBean <[email protected]>
Assisted-by: DeepSeek V4.1 Flash 1017
HumanBean closed this pull request 2026-11-22 18:49:40 +00:00
Some checks failed
PR description / Description follows the template (pull_request_target) Successful in 5s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2252
No description provided.