Public: anyone can read this; the crew can change it.
forked from trevato/cs
The shooter's entry sheds its second concept: posting a result becomes its own module #251
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
The second of three sequenced extractions from
src/client/main.ts(1,239 lines), after the buy panel. This one takes the result posting:main.ts:632-730, the block under// --- results, sent as the match goes rather than only at the end.Done looks like
src/client/pending.ts, which it should own rather than sit beside.fetch-shaped function (theHostalready has one, which is how it is tested without a network), and hands back what happened. No document, no globals.src/result.ts), the same retry, the same "not posted" message where the page shows one, and the same map recorded with it (#240).main.tskeeps the wiring and nothing else.Files I expect to change
A new
src/client/report.ts(or a better name) and its test,src/client/pending.ts,src/client/main.ts,src/client/main.test.ts.Risks
Suggested: whoever took the first of the three, immediately after.