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 #18281
Closed 23h 23m ago
Each slowest-tick row on /games/ /spark/ now has id="tick- ", and a finding read from a spark profile carries profileKey and tickWindow. tsc is clean, the spark view and terminal games tests pass, and bun scripts/gate.ts --fix and design-lint left nothing to fix.
-
Reviews
No review yet.
-
Checks
stopped closed without shipping deploy 3b9ab36
-
History
- Direction: keep the tick budget private to the profile finding, nothing else calls it (#18265) 3b9ab36
- No look: /games/<box>/spark/<key> needs a seeded box with a profile, and no page in app.looks reaches it (#18265) ad891d4
- Try: open a box's /games/<box>/spark/<key> for a profile with a slow tick and follow See the window 41b378f
- Direction: a slowest-tick row can be linked to and a profile's finding names its key and window (#18265) 11dd3d0
- Full suite red: test/data-browser.test.ts (#18260) b983849
- Access 5b: at sign-up or sign-in a person is shown what this visitor made and chooses to bring it, with a receipt and an undo window (#18217) a338207
- The games page shows a profile natively: flame graph, slowest ticks, per-mod time, linked findings (#18178) 1df6f9e
- An app made in the tab forge can be published as a read-only link on the forge, with no login (#18219) 7a7184b
- The spark page shows the slowest ticks and the time per mod, from the decoded profile (#18237) 281fd2f
- Crash reports, part 2: a private app's testers can report (a report key), in the shape the app sends, through one door (#18202) fbb3da4
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:f4rzrnk9yv is past its budget: trevato/forge: "the survival performance set > the terminal shows the set as the page does, and s previews it" failed o… (#18236) 6bd5128
- Full suite red: test/data-browser.test.ts (#18235) 6eb8475
- Full suite red: test/security-floor-routes.test.ts (#18234) ecc8b8c
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#18233) b716c9e
- Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) (#18226) 24247ac
- Games: spark profile call tree and flame graph on the forge (#18211) 5ce50ab
- Stop and Delete a cloud machine or volume from the cost row, each confirmed only by typing its name (#18187) bcce730
- Access 5c: a linked game player mints the visitor principal (#18209) d46f453
- A changes-requested review with only a body is invisible: the pull's API, its reviews list and a repeat review request all say nothing (#18184) 1b94cba
- Full suite red: 3 files in check run 01m90cxa10vb1wxr16pmrhnt09 (#18225) 831c98f
Each slowest-tick row on /games/<box>/spark/<key> now has id="tick-<window>", and a finding read from a spark profile carries profileKey and tickWindow. tsc is clean, the spark view and terminal games tests pass, and bun scripts/gate.ts --fix and design-lint left nothing to fix. I did not run the full suite; the forge runs it on the push. I edited neither src/web/pages/games.ts nor src/games/chat.ts.
- Rows:
summarySectionsinsrc/games/spark_view.tssets each row's id through a newtickId(window), andsrc/web/pages/games_spark_view.tsrenders it. - Finding:
Findinggets the optionalprofileKeyandtickWindow, set only by the newsrc/games/spark_finding.ts.profileFindinglooks the key up in the box's own profiles, so another box's key gives no finding, and a finding with no profile is unchanged. It is raised when the worst window ran past 50 ms (a tick at 20 TPS). - Both doors: the page shows the finding with a "See the window" link to
#tick-<window>, and the terminal profile screen shows the same line.docs/features/game-spark.mdhas the how-to. - Test: the new test in
test/games-spark-view.test.tschecks that every slowest-tick row has its id and that the finding's key and window match a real row. It also checks the link and that a key from another box, or no slow ticks, gives no finding. Without the change it would fail. - Not done: only the worst window is flagged, not every window over budget. The flame graph still doesn't zoom. I added no dependency.
- Look gate: no page in
app.looksreaches this route, because it needs a seeded box with a profile. That gap is recorded in commitad891d436. - Last commit:
TICK_BUDGET_MSwas exported but called nowhere else, so I made it private to avoid the "dead code" check.
To try it, open a box's profile page for a profile with a tick over 50 ms and follow "See the window".
[{"go":"/games/<box>/spark/<key>","look":"The finding line above the sections, then the Slowest ticks rows","expect":"The finding names the key and window; See the window jumps to the matching row, whose id is tick-<window>"}]
🤖 Generated with Claude Code
Declined: already done on main in bb053710c. That commit, "A spark finding on the games page links to the slow tick it came from (#18241)", landed the same change. The merge conflicts were not in separate lines; the two sides added the same feature in the same files. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m91cwethjnc0re3gbprnamk1
Each slowest-tick row on
/games/<box>/spark/<key>now hasid="tick-<window>", and a finding read from a spark profile carriesprofileKeyandtickWindow.tscis clean, the spark view and terminal games tests pass, andbun scripts/gate.ts --fixanddesign-lintleft nothing to fix. I did not run the full suite; the forge runs it on the push. I edited neithersrc/web/pages/games.tsnorsrc/games/chat.ts.summarySectionsinsrc/games/spark_view.tssets each row's id through a newtickId(window), andsrc/web/pages/games_spark_view.tsrenders it.Findinggets the optionalprofileKeyandtickWindow, set only by the newsrc/games/spark_finding.ts.profileFindinglooks the key up in the box's own profiles, so another box's key gives no finding, and a finding with no profile is unchanged. It is raised when the worst window ran past 50 ms (a tick at 20 TPS).#tick-<window>, and the terminal profile screen shows the same line.docs/features/game-spark.mdhas the how-to.test/games-spark-view.test.tschecks that every slowest-tick row has its id and that the finding's key and window match a real row. It also checks the link and that a key from another box, or no slow ticks, gives no finding. Without the change it would fail.app.looksreaches this route, because it needs a seeded box with a profile. That gap is recorded in commitad891d436.TICK_BUDGET_MSwas exported but called nowhere else, so I made it private to avoid the "dead code" check.To try it, open a box's profile page for a profile with a tick over 50 ms and follow "See the window".
🤖 Generated with Claude Code
Closes #18265