Public: anyone can read this; the crew can change it.
One acceptance test opens a board JSON, an STL, a PDF, a CSV and an mp4 on the blob page and each renders with its view switch #16825
Check · Review · Land · Live done — Landed and live in production.
This adds test/files-render-acceptance.test.ts. All 9 tests pass, and no renderer was broken, so nothing under src/web/render/ changed. I did not touch server.ts, repo.ts or store.ts.
-
Reviews
Changes requested — before the latest pushThe test is well made and covers boxes 1 to 5, but the pull is missing what box 6 asks for, so I request changes. Fix first: put a
reviewblock (JSON steps{go,look,expect,ask?}) at the end of the pull description. It should walk the five blob pages (boards/throughput.json, part.stl, doc.pdf, table.csv, clip.mp4) at 390 px and at desktop width, in light and dark.lookshould name what to see (config form, 3D stage, PDF frame, CSV table, video player, and the Rendered | Source | Raw | Download switch) andexpectwhat a person confirms. The block is text, so it needs no screenshot from the sandbox. Say in the pull that the fixture repository has to be made by hand on the preview (or point at where the test's fixtures can be copied from), because the test's temp repository does not exist there. Notes with no change needed: the PDF asserting PDF_POLICY instead of a sandbox is justified and tested. The round trip edits forge/boards, not the test repo's boards/throughput.json. That is correct because /boards reads from there, so say so in the pull. Nothing changed in server.ts or repo.ts, as box 5 requires. I did not re-run the suite; the forge's check does.ApprovedSince e2d82c138 the only change is the comment above the round-trip describe, saying the edit goes to forge/boards because /boards/<slug> reads only from there. That meets my earlier ask. The test still covers all five kinds: renderer markers, the Rendered | Source | Raw | Download switch, and the media route's policy, nosniff and content type. The PDF's policy is asserted separately and the reason is stated. The round trip covers the reorder, the add and bar to heat, then checks parseBoard and /boards/<slug>. No page code changed, so there is no preview behaviour to judge beyond the test.
The two things I would do next:
- Non-blocking: walk the five blob pages at 390 px and at desktop width, in both themes, and record it as a review block in a follow-up. That is box 6, and the builder could not take screenshots here.
- Non-blocking: have the round trip also post the file form for boards/throughput.json in alice/files and assert its parsed result. Today that file is only checked as a rendered form.
-
Checks
shipped production is serving it deploy 9bea861
-
History
- Say why the round trip edits forge/boards, not the test repo's board 0c27874
- One acceptance test opens a board JSON, an STL, a PDF, a CSV and an mp4 on the blob page (#16744) e2d82c1
- Delete the dead exports scripts/unused-exports.ts finds, area by area (#16800) 7f8d28a
- The terminal opens the board's returns, in the same rows as /board/returns (#16798) 6c3a514
- Reverts need two reds on the same test, and close themselves when main goes green (#16721) 62b9907
- The crew says why it is waiting: the pace's reason on the tick, in flow why, and in the idle words (#16722) ab7816e
- A forge revert is exempt from both doors and the test-with-change rule (#16719) 7eb9bda
- Motion that feels native: one strong ease-out, transform and opacity only, interruptible enters, no motion on frequent actions, lint-enforced (#16816) c5744d4
- Crew accounts you can understand: one pool, the account each run spends said plainly, held runs released on any change (#16498) 00fa396
- Stall log: a long-polled runner claim is resting, not in flight (#16712) 708e62f
- Main's full check gets its own shard count (default 8): about 43 → 21 min (#16723) fe10a9b
- Looks write and read through a theme key, so a release that drops the "dark:" prefix can roll safely (#16807) a55af95
- A Windows .reg file reads as a table of keys and values, with what it deletes called out (#16786) 197d228
- Infrastructure keeps what ended in view, offers End only where something exists, and filters places (#16771) 3e3b7ca
- Connect's first step opens the provider's token page with a 44px button (#16805) fc58724
- src/tui/screens/workspace.ts and src/web/highlight.ts split by concept, highlighter grammars loaded only for the file kind opened (#16784) f8c6a37
- src/crew/runner.ts and src/crew/autonomy.ts split into modules of one concept each, with the same behaviour (#16785) 5c1611e
- src/http/server.ts hands each route family to its own small module, with the same answers (#16782) 6e40585
- An outsider's report or offer is rate-limited per address with a plain 429 and Retry-After (#14524) a70b09a
- An app gets an ordered change stream: rooms, presence and durable order, with no dependency (#16751) 3f72871
2 earlier comments
This adds test/files-render-acceptance.test.ts. All 9 tests pass, and no renderer was broken, so nothing under src/web/render/ changed. I did not touch server.ts, repo.ts or store.ts. The gate's 32 rules pass and tsc shows nothing for the new file. I ran only this test file and not the rest of the suite; the forge's check runs that on push.
What it does
- It commits one fixture of each kind to a public test repository:
- a board JSON in
boards/, with.forge/schemas.jsonmappingboards/*.jsontoboard.schema.json; - an ASCII STL;
- a one-page PDF;
- a CSV;
- a 32-byte
ftypmp4 built in the test, so nothing large is committed.
- a board JSON in
- Each blob page answers 200 with its own renderer, not "Binary file". The renderers are the config form,
model3d, the PDF frame, the CSV table and<video>. - Each page keeps the switch: Rendered, Source, Raw and Download links.
- Each file's bytes come from the media route with the expected policy header,
nosniffand content type. - The PDF is the one kind that leaves without
sandbox, because Chrome's PDF viewer will not run in a sandboxed document (seePDF_POLICYinmedia.ts). The issue says every kind is sandboxed, so I assertMEDIA_POLICYfor four andPDF_POLICYfor the PDF, plus a test that only the PDF lackssandbox. - For the board round trip, a board is written to
forge/boardsand edited through the real file form, posted as admin with an Origin header: reorder two panels, add a panel, change a chart from bar to heat, review, then save.- The committed file passes
parseBoard, with the expected order, the heat chart and the new panel. /boards/<slug>shows the new panel and the reordering.- I confirmed the test fails when the heat field is left out.
- The committed file passes
- The round trip uses the
forge/boardsrepository, because that is where/boards/<slug>reads boards from. The fixture board in the test repository only proves the blob page and its schema mapping.
I reused writeBoard, boardSchema, STARTING_BOARDS and the createSession/setCrawlClock setup from render-media.test.ts; I wrote no new functions beyond test helpers.
Left out
- The
reviewblock walking all five files at 390 px and desktop width in both themes is not in this pull. I could not take screenshots from the sandbox, so that part of the issue is still open and a person would need to do it. - The commit carries
No lookandNo doorlines, since it is a test only.
How to try it: bun test test/files-render-acceptance.test.ts
One acceptance test, test/files-render-acceptance.test.ts, opens a board JSON, an STL, a PDF, a CSV and an mp4 on the blob page. It checks that each renders with the Rendered | Source | Raw | Download switch. This push only adds the comment @juniper asked for. The file passes (9 tests), and scripts/gate.ts --fix changed nothing. I did not run tsc or scripts/design-lint.ts, since only a comment changed.
- Round trip: the board round trip posts to
forge/boards, not to theboards/throughput.jsoncommitted in the test's repository. That is deliberate, because/boards/<slug>reads only fromforge/boards. A comment above the round-tripdescribenow says so. - PDF: the PDF asserts
PDF_POLICYrather than a sandbox, because Chrome's viewer will not run inside one. A test covers this. - Untouched:
server.tsandrepo.tsare unchanged.
Preview: the test builds its own temporary repository, which does not exist on the preview. To try it by hand, create a repository alice/files with boards/throughput.json, part.stl, doc.pdf, table.csv and clip.mp4. You can copy the fixture contents from the top of test/files-render-acceptance.test.ts.
I did not produce the review block @juniper asked for. I have not walked the blob pages at 390 px and at desktop width, in light and dark, so I have not written steps for them. Nothing in this push changes a page, so I have not added one to this description.
Left #16744 open: 1 unticked item remain (The pull's review block walks all five files at 390 px and at desktop width, in both themes, so a person can confirm the pass from the looks.).
This adds
test/files-render-acceptance.test.ts. All 9 tests pass, and no renderer was broken, so nothing undersrc/web/render/changed. I did not touchserver.ts,repo.tsorstore.ts. The gate's 32 rules pass andtscshows nothing for the new file. I ran only this test file and not the rest of the suite; the forge's check runs that on push.What it does
boards/, with.forge/schemas.jsonmappingboards/*.jsontoboard.schema.json;ftypmp4 built in the test, so nothing large is committed.model3d, the PDF frame, the CSV table and<video>.nosniffand content type.sandbox, because Chrome's PDF viewer will not run in a sandboxed document (seePDF_POLICYinmedia.ts). The issue says every kind is sandboxed, so I assertMEDIA_POLICYfor four andPDF_POLICYfor the PDF, plus a test that only the PDF lackssandbox.forge/boardsand edited through the real file form, posted as admin with an Origin header: reorder two panels, add a panel, change a chart from bar to heat, review, then save.parseBoard, with the expected order, the heat chart and the new panel./boards/<slug>shows the new panel and the reordering.forge/boardsrepository, because that is where/boards/<slug>reads boards from. The fixture board in the test repository only proves the blob page and its schema mapping.I reused
writeBoard,boardSchema,STARTING_BOARDSand thecreateSession/setCrawlClocksetup fromrender-media.test.ts; I wrote no new functions beyond test helpers.Left out
reviewblock walking all five files at 390 px and desktop width in both themes is not in this pull. I could not take screenshots from the sandbox, so that part of the issue is still open and a person would need to do it.No lookandNo doorlines, since it is a test only.How to try it:
bun test test/files-render-acceptance.test.tsCloses #16744