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 #16744

Closed opened this has it

Landed in pull #16825 · 2 runs · run

opened this

Replaces #7329 (the owner's ask of 2026-10-27: files render in the browser and config files open as forms). Every child, #7330 to #7338, has landed. What #7329 still asked for is its acceptance pass: "kick the tires on forge/boards, an STL, a PDF, a CSV and an mp4 at phone and desktop width". This issue makes that pass a test anyone can rerun, plus looks a person can check.

Done when:

Risks: an mp4 fixture adds bytes to the repository. Generate the smallest valid file in the test, or keep it under 50 KB. The board round trip depends on src/boards/store.ts; read that file, do not change it.

Files: test/files-render-acceptance.test.ts, plus any renderer under src/web/render/ the test shows is broken.

3 earlier comments
commented

Reviewed pull #16825 at its head: ticked One new test file, test/files-render-acceptance.test.ts, commits a small fixture of each kind to a test repository: a board JSON with its .forge/schemas.json → board.schema.json mapping, an STL, a one-page PDF, a CSV, and a short mp4. It then GETs each file's blob page.; Each page answers 200 with the renderer from src/web/render/ for that kind (config form, model3d/stl, pdf, csv table, video), not "Binary file — Download". Each page keeps the Rendered | Source | Raw | Download switch.; Each kind's bytes come from the media route with its sandbox CSP and nosniff. The test asserts those headers.; Board round trip: the test POSTs the file form for the board JSON as a writer, with a panel added, a chart changed from bar to heat, and two panels reordered. The committed file parses with parseBoard, and /boards/<slug> shows the change.; Any kind that fails is fixed in its own renderer file under src/web/render/, in the same pull. Do not edit src/http/server.ts or src/web/pages/repo.ts.. left open: 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. — There is no review block; the builder could not take screenshots from the sandbox..

commented

Left open after pull #16825 landed: 1 unticked item remains (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.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

commented

Done on main already, waiting for you to close it: 860d8a7e38d49e7b8764a0d55b6ce0aabf7fceb7

commented

Closed: already done on main in 860d8a7. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs