Public: anyone can read this; the crew can change it.

Spark profile: each slowest-tick row has an id the box page can link to, and a finding carries its profile key and tick window #18287

opened this

Closed 19h 57m ago

Each slowest-tick row on /games/ /spark/ now has an id="tick- ", and a finding derived from a spark profile carries profileKey and tickWindow. The gate, tsc --noEmit and the tests that cover the change all pass.

Notes

opened this

Each slowest-tick row on /games/<box>/spark/<key> now has an id="tick-<window>", and a finding derived from a spark profile carries profileKey and tickWindow.

The gate, tsc --noEmit and the tests that cover the change all pass. That includes the dead-code, module-state, both-doors and name-the-issue rules the check refused most often this week. The commits were already on the branch and pushed, so this run added nothing new and git push had nothing to send. I did not run the full suite; the forge runs it on the push.

  • Finding: it is built in the new src/games/spark_finding.ts. The key is checked against the box's own profiles, and a finding with no profile is unchanged.
  • Doors: the terminal screen src/tui/screens/game_spark_view.ts and docs/features/game-spark.md carry the same change.
  • Test: test/games-spark-view.test.ts asserts the id exists and that the finding's key and window match a real row.
  • Not done: src/web/pages/games.ts is untouched, as the issue required. Nothing outside the profile finding calls the tick budget, so it stays private to it.

To try it, open /games/<box>/spark/<key> for a profile with a slow tick and follow "See the window" to the row.

[
  {"go": "/games/<box>/spark/<key>", "look": "the slowest-ticks table; the finding's 'See the window' link", "expect": "each row has id tick-<window>, and the link's #tick-<window> lands on a real row"}
]

Closes #18265

3 earlier comments
commented

Each slowest-tick row on /games/<box>/spark/<key> now has an id="tick-<window>", and a finding derived from a spark profile carries profileKey and tickWindow.

The gate, tsc --noEmit and the tests that cover the change all pass. That includes the dead-code, module-state, both-doors and name-the-issue rules the check refused most often this week. The commits were already on the branch and pushed, so this run added nothing new and git push had nothing to send. I did not run the full suite; the forge runs it on the push.

  • Finding: it is built in the new src/games/spark_finding.ts. The key is checked against the box's own profiles, and a finding with no profile is unchanged.
  • Doors: the terminal screen src/tui/screens/game_spark_view.ts and docs/features/game-spark.md carry the same change.
  • Test: test/games-spark-view.test.ts asserts the id exists and that the finding's key and window match a real row.
  • Not done: src/web/pages/games.ts is untouched, as the issue required. Nothing outside the profile finding calls the tick budget, so it stays private to it.

To try it, open /games/<box>/spark/<key> for a profile with a slow tick and follow "See the window" to the row.

[
  {"go": "/games/<box>/spark/<key>", "look": "the slowest-ticks table; the finding's 'See the window' link", "expect": "each row has id tick-<window>, and the link's #tick-<window> lands on a real row"}
]
commented

This pull no longer changes anything, and it can probably be closed. main already has this feature from #18213. A finding there links the box's slowest-tick row on /games/<box>/spark/<key> through #tick-<window>. The rows are titled by the real window number, and the terminal's Profiles screen shows the same sentence.

My version conflicted with that in four files. I took main's code and docs for the four conflicted files, and reverted the rest of my branch to main too. That covers src/games/findings.ts, the terminal screen src/tui/screens/game_spark_view.ts and test/games-spark-view.test.ts. The merge commit's tree is identical to main's.

bun test test/games-spark-view.test.ts passes (7 tests) and bun x tsc --noEmit is clean. I did not run the full suite or the gate script; the forge runs the full check on the push.

Nothing is left to try beyond what #18213 already shipped.

🤖 Generated with Claude Code

commented

Closed by the crew: superseded, its change is already on main in 05811f51.

commented

Left #18265 open: 4 unticked items remain (Each slowest-ticks row on /games/<box>/spark/<key> has id="tick-<window>".; A finding derived from a spark profile carries profileKey and tickWindow; the key is validated against the box's own profiles.; A finding with no profile is unchanged.; …).

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs