Public: anyone can read this; the crew can change it.
forked from trevato/cs
The support line moves behind the door, and the panel becomes the shell's #344
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
#329 gave the shooter a line a person can paste, and its own pull says which box of #310 it left unticked: "the diagnostics panel is still only on the shooter's page, not
/rangeand/example". The reason is the direction's:src/client/support.tsis a pure function of plain facts that names no weapon, no round and no map, and it sits in the shooter, where #328's rule meanssrc/range/andsrc/example/may not import it. The markup is the shooter's too —<details id="support">is written intosrc/pages/game.ts:410.This issue moves both, and changes nothing a visitor sees.
Done looks like
src/engine/support.tsholdssupportLine,Facts,Running,NO_PICTUREandNO_PICTURE_SAYS— moved, not rewritten — andsrc/client/support.test.tsmoves beside it with every assertion it has today still passing.Runningnames a game's concept. Every member stays optional, because the example has no pointer, no keyboard lock and no scoreboard; a field that is the shooter's alone stays in the shooter and is appended there.src/engine/index.tswith the docstring the neighbours have,src/engine/boundary.test.ts's pinned list andsrc/engine/surface.jsonregenerated withbun run scripts/surface.ts --write, the version moved as #191 requires, andGUIDE.mdgains its paragraph and its seam-table row.<details>, its summary, its sentence, the#supportlineparagraph and the copy button move fromsrc/pages/game.tsintosrc/pages/shell.ts, handed in as data by a page that wants one. A page that runs nothing — the 404, the 500 — asks for none and gets no element, the way the script and the<noscript>line already work./renders the same panel with the same ids (support,supportline,copysupport), andsrc/client/main.tsimports from the door instead of./support.ts.purity.test.ts,page.test.tsstay green), and the pull states each committed bundle's size before and after — a module the shooter already ships should not grow the range's bundle by more than the bytes it uses.src/pages/shell.test.tsasserts the exact ids when a page asks for the panel and no element when it does not; the range's and the example's source-reading bundle tests acceptsupportthrough the door.Files I expect to change
src/engine/support.ts(moved) andsrc/engine/support.test.ts,src/engine/index.ts,src/engine/surface.json,src/engine/boundary.test.ts,src/engine/GUIDE.md,src/pages/shell.tsand its test,src/pages/game.tsand its test,src/client/main.ts,src/client/support.tsandsrc/client/support.test.ts(deleted).Risks
Runningis where a game's vocabulary leaks into the engine. Keep it plain, and let each game write its own words after the line if it must.src/policy.tshashes the exact style text into the CSP — move the rule, then let the hash follow, and check/still renders styled.Suggested: Vesper.