Public: anyone can read this; the crew can change it.
The spark page shows the slowest ticks and the time per mod, from the decoded profile #18237
Merged 3h 24m ago, live in production
/games/ /spark/ now shows a "Slowest ticks" list and a "Time per mod" list below the call tree. The terminal shows the same rows, and the same two lists end its profile screen. I ran the two spark/terminal test files, tsc, the design lint and the gate, and all passed, as did the dead-export check.
-
Reviews
ApprovedApproved. Both lists are server-rendered tables on the existing
table,table-scrollandsettings-blockclasses. Header cells are scoped, there is a screen-reader caption, and the tables scroll sideways on a phone instead of squeezing. Names go throughhtml, so they are escaped. An empty section says one plain line, and the terminal shows the same rows. The how-to is in docs/features/game-spark.md and README is untouched. I opened the preview: / answers 200 with one h1 and 14 KB of served HTML. The look pictures are outside my sandbox and I could not read them, and none shows the spark page, which needs a stored profile key, so the page check rests on the source and its test.Two things I would do next:
- Check a long mod source on a 360px phone: the first column should wrap or the table scroll without hiding the share.
- Show GC and memory the same way, and move the terminal's
sectionhelper intospark_view.tsso both doors share one layout function.
-
Checks
shipped production is serving it deploy a338207
-
History
- Spark page: say why no look page is named 753136a
- Spark page: gate lines for the slowest ticks and time per mod de75fa8
- Try: open /games/<box>/spark/<key> from a box's profiles and read Slowest ticks and Time per mod below the call tree dfe35d1
- Spark page: the slowest ticks and the time per mod, from the decoded profile, on the page and in the terminal 9bbd57a
- 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
- Game door: plain questions go to Talk at once, and continue until /forge clear (#18055) b5161cb
- Spend 3: the same cost reads and planned stop/delete as MCP tools and a terminal screen (#18206) c30e6bb
- Games: host the spark profiler viewer and its uploads in the forge (#18096) beabbda
- Games: a day after a mod set is installed, the games page says whether it helped, with take-back one tap away (#18201) 2243020
- Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on (#18199) 7b84b2c
- Connections on an account: verified identities the person controls, each with its own uses, and a lookup that answers only on opt-in (#18120) 314f4eb
- A granted app's two-page print comes out as one sheet, printed on both sides (#18194) e2e7eb4
- Traces 5c: the trace list and one trace read through MCP tools and a terminal screen compare (#18183) cc38920
- Access 5a: a visitor principal is minted only when a visitor creates something, signed, with a role in may() and per-visitor limits (#18174) e261ee9
- Games: the forge pins forge-velocity d0635dac1654 (cannot throw into a command) (#18203) 08c4b42
4 earlier comments
/games/<box>/spark/<key> now shows a "Slowest ticks" list and a "Time per mod" list below the call tree. The terminal shows the same rows, and the same two lists end its profile screen. I ran the two spark/terminal test files, tsc, the design lint and the gate, and all passed, as did the dead-export check. I didn't run the full suite, and nothing was checked on a preview.
What changed
- Slowest ticks: a table of window, max and median ms per tick, TPS and players.
- Time per mod: a table of source, ms and share.
- Escaping and no script: both are server-rendered with no script or outside fetch, and every name is escaped. A profile with no mod data says "This profile has no mod data: no frame was attributed to a mod."; one with no tick windows says so in one line too.
- Layout: the rows and wording are built once in
src/games/spark_view.tsfor both doors. The page part is its own function insrc/web/pages/games_spark_ticks.ts, with a single call line added togames_spark_view.ts, so it should merge cleanly with #18208. - Docs:
docs/features/game-spark.mdis updated. No new component class, so no design-area note.
Tests
- A new test builds a profile with a hostile mod name and asserts both lists render. It also asserts the name is escaped, the empty-mod line appears, and the section has no
<script>. - The terminal test was extended to scroll to the new section.
Not done: GC and memory are still decoded but not shown. The new section is plain tables, not a chart.
To try it: open a box's Profiles list and click a stored sampler profile, or press p, Enter and then j on the terminal.
Reused: the millis and percent formatters and the settings-block and table classes. bun scripts/similar.ts was not run.
Push: the pre-push hook asked for a "Try:" commit line, so there is an empty commit carrying it.
[
{"go":"/games/<box>/spark/<key>","look":"Below the call tree: 'Slowest ticks' and 'Time per mod' tables","expect":"Slowest ticks has window, max, median, TPS and players; Time per mod has source, time and share"},
{"go":"/games/<box>/spark/<key> for a profile with no mod data","look":"The Time per mod section","expect":"One plain line: 'This profile has no mod data: no frame was attributed to a mod.'"}
]<!-- look-pages dfe35d10c89d --> Look pages for dfe35d1, from the gate:
look pages (none): this pull changes src/web/pages/games_spark_ticks.ts, src/web/pages/games_spark_view.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
I pushed an empty commit to the pull whose message carries the gate lines. I didn't change any code. The local gate no longer refuses the pull; it now prints only notes. The forge's own check hasn't run on this push yet.
- Direction: names #18212.
- Replaces: "nothing", with the reason that the two lists were decoded but not shown.
- No door: the terminal side is an edit to
src/tui/screens/game_spark_view.tsand the how-to an edit todocs/features/game-spark.md. The gate asks for new files, but both were already changed in this pull, so I used the escape line. - Looks: I named
/games/net/spark/<key>. The gate says that isn't a page inapp.looks, so it still leaves the look to the reviewer; I left it as is. - Remaining notes: a comment over 100 columns in
test/tui-games.test.ts, which the nightly rewrap handles, and a similarity hint between my test helperkeepand a helper in another test file. Neither blocks.
<!-- look-pages de75fa8868b5 --> Look pages for de75fa8, from the gate:
look pages (none): "Looks: /games/net/spark/<key>" is not a page of app.looks in forge.json; this pull changes src/web/pages/games_spark_ticks.ts, src/web/pages/games_spark_view.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
The spark page now shows the slowest ticks and the time per mod, from the decoded profile, and the terminal screen shows the same two lists. This push changes no code, only adds a commit message that answers the look-pages feedback.
- Look pages: the
Looks: /games/net/spark/<key>line was refused because that path isn't inapp.looksinforge.json. The page needs a kept profile key, so it can't be a fixed look path. The new commit saysNo look:with that reason, and the gate no longer flags the look rule. It still carries theDirection:line naming #18212 and aNo door:line. - Other rules you listed: both doors, the dead-code check, the duplicate-import check and name-the-issue show
okin a localbun scripts/gate.ts --explainrun. I did not runtscor any tests this time, since nothing in the code changed. - Left alone: the gate notes
keepintest/games-spark-view.test.tsas similar to a helper intest/talk-checkin-story.test.ts. That test helper is specific to the spark view, so I did not merge them. It is a note, not a failure.
How to try it: open /games/<box>/spark/<key> from a box's profiles and read "Slowest ticks" and "Time per mod" below the call tree.
[{"go":"/games/net/spark/<key> (open a kept profile from the box's profiles)","look":"Below the call tree: Slowest ticks, then Time per mod","expect":"Each list has rows with ms values and percentages; mod names are escaped"}]
🤖 Generated with Claude Code
/games/<box>/spark/<key>now shows a "Slowest ticks" list and a "Time per mod" list below the call tree. The terminal shows the same rows, and the same two lists end its profile screen. I ran the two spark/terminal test files,tsc, the design lint and the gate, and all passed, as did the dead-export check. I didn't run the full suite, and nothing was checked on a preview.What changed
src/games/spark_view.tsfor both doors. The page part is its own function insrc/web/pages/games_spark_ticks.ts, with a single call line added togames_spark_view.ts, so it should merge cleanly with #18208.docs/features/game-spark.mdis updated. No new component class, so no design-area note.Tests
<script>.Not done: GC and memory are still decoded but not shown. The new section is plain tables, not a chart.
To try it: open a box's Profiles list and click a stored sampler profile, or press
p, Enter and thenjon the terminal.Reused: the
millisandpercentformatters and thesettings-blockandtableclasses.bun scripts/similar.tswas not run.Push: the pre-push hook asked for a "Try:" commit line, so there is an empty commit carrying it.
Closes #18212