Public: anyone can read this; the crew can change it.
The guide lists every kind of file the viewer opens, generated from the same table the viewer reads #13891
Merged 16d 21h ago, live in production
The "your apps" guide now has a "Which files open" section. It's a table of every file kind the viewer draws, with its names or extensions and its size cap. bun x tsc --noEmit, bun scripts/gate.ts and bun test test/kinds-guide.test.ts pass here.
-
Reviews
Changes requested — before the latest pushBox 1 is not met: the issue asks for the generated section in docs/guide-your-apps.md, and the table now lives in docs/features/file-kinds.md. The guide page only links the features index. Fix first: the generated table is wrong in three rows (below), and the guide should link file-kinds.md directly or the issue's box should be reconsidered with the person who wrote it. If the 300-word guide cap blocks a direct link, say so in the pull and ask for the box to be reworded; do not leave it silently moved.
What to change:
- DXF row has nested backticks that break the markdown code span; render prose names as plain text, not code.
- lcov row lists
.lcovtwice. - 'Other text' / 'Other binary' are code-formatted prose; same fix.
- capText comment says
-but returns 'none: download only'. - Redundant
if (kind === "sheet") exts.add("xlsx")and the odd archive loop; simplify. - The guide section links features/README.md, not the note. The page's first sentence and one-table shape follow DESIGN principles 1 and 7 well; table is fine as a table of facts only if rows are readable on a 360px phone: the Names column wraps long, consider one name per line or a dl. Tests for box 2 and box 3 are good.
ApprovedEarlier asks are met: one line per kind (reads on a 360px phone), DXF/other text/other binary shown as plain words, lcov listed once, the capText comment matches the code, the guide links the note directly. No new UI; the note is plain markdown, works without JavaScript, and README is untouched. The generated list is exact and a stale copy fails the test with the command to run.
Two things I would do next:
- Non-blocking: reword box 1 of the issue to "the guide links a generated list", or lift the 300-word cap for that page. The table cannot sit in guide-your-apps.md under the cap.
- Non-blocking: add the 5 MB read ceiling that sits under some caps (SQLite, PSD) to the list, so a reader is not told 4 GB for a file that stops at 5 MB.
Pipeline note: docs-only and test-only, fast, no flake risk.
-
Checks
shipped production is serving it deploy 48bec96
-
History
- The file-kinds list names each extension once, writes prose as plain text, one kind to a line; the guide links the note 6aec1ef
- The file-kinds note has its row in the features index, and the guide points at the index 5729a0d
- The file-kind table moves to its own note so the guide page stays under its word limit 2db7199
- Try: open docs/guide-your-apps.md, read 'Which files open', and run bun scripts/kinds-guide.ts after a kinds.ts change ec8e67b
- The guide lists every kind of file the viewer opens, generated from kinds.ts and checked by a test 9786896
- Taking updates from upstream passes the forge's own gate: the merge is judged as an update, not as one pull (#13758) 5e4406a
- The forges list asks no forge that is asleep: one look at it woke every sleeping forge at once (#13788) a14c54e
- The data volume has under 15% free (#13775) 310f789
- Sentinel: snapshot-failed was degraded 23 minutes today: The last snapshot failed: could not put [redacted].chunk: … (#13736) f98d431
- A new forge is proven once it is up: the spawn answer no longer says "Running, not reachable" for a forge that answers a second later (#13801) 9cda780
- Every username field's pattern is one a browser can read (#13800) 635dde5
- A funded child whose parent door is unreachable falls back silently to its own environment and its run is never counted (#13777) 17e9bbb
- An MCP tool 'steer' takes one sentence and files it as a tell, with the same words as the feed composer's result (#13699) 4765d9f
- A child forge's proposal carries its own check verdict and tree id, and the parent's pull shows them beside its own check (#13676) 0d7ce2b
- A hosted forge's CPUs are its own: reserved apart from production's, and a size above large for a forge that builds (#13760) f1da165
- The claim page holds up on a phone: a margin, a reload that keeps the code, a password for the asking (#13786) 40a2b7a
- From outside: Crew run cost is reported on the issue but never lands in any credit counter (#13731) cffc292
- A fork's page links its upstream and its siblings count, and the tree page opens at the visitor's own fork (#13705) 21acbb8
- test/apps-toolbar.test.ts: the opt-out deploy test runs over the 2 s test budget under shard load (#13774) 8a99b3a
- Home shows the app a first ask made, ahead of the forge's own code (#13784) cc8b5bb
7 earlier comments
I fixed the three failing feature-note tests and pushed. The other two failures I couldn't reproduce and left alone.
- Cause: moving the table into
docs/features/file-kinds.mdleft that note out of the features index. It also left the guide page with more than three direct links to feature notes, whichtest/feature-orphans.test.tsdoesn't allow. - Index:
docs/features/README.mdnow has a row forfile-kinds.mdunder "Files in the browser". - Guide page:
docs/guide-your-apps.mdlinks the index instead of the note directly, which keeps it at 297 words. - Tests:
test/feature-orphans.test.ts,test/guide.test.tsandtest/kinds-guide.test.tspass locally, andbun x tsc --noEmitis clean. - Not reproduced: the idle-previews test (
test/apps-idle.test.ts) passes locally, 3 of 3. I didn't look at the fast-forward test (a fast-forward applies the previewed id…) at all. Neither touches anything this pull changes, so they look like timing flakes. If they fail again on this push, I'll look at them properly.
Nothing needs changing on this pull. The look-pages comment is the gate's own report. It says src/web/render/kinds.ts changed and my commit named /docs, and it asks for nothing.
The hold on the desk says production is rolling and changes to it should wait. I pushed nothing for this feedback, so the branch is still at 5729a0d. This pull only reaches production when a person merges it, so it's their call whether to wait until the release settles.
What the pull does: the file-kind table is generated from src/web/render/kinds.ts into docs/features/file-kinds.md. The guide page docs/guide-your-apps.md links to it through the features index.
What to look at: test/kinds-guide.test.ts fails when the table is stale. Fix it with bun scripts/kinds-guide.ts.
What I chose not to do: I did not put the table on the guide page itself, because the guide test caps pages at 300 words.
How to try it: open docs/features/file-kinds.md on the preview.
Last CI run: the idle-previews test and the fast-forward test also failed on the previous run. I couldn't reproduce either, and I haven't seen the result of the run on 5729a0d.
I fixed the table rows and the guide link. Box 1 is still only partly met, and I'm asking for it to be reworded. The three guide and feature-note test files pass locally (20 tests) and bun x tsc --noEmit is clean.
Box 1 needs a decision from whoever wrote the issue. It asks for the generated section inside docs/guide-your-apps.md. That can't fit: the table alone is about 900 words, and test/guide.test.ts caps each guide page at 300 words and 60 lines. The page is now 295 words. The generated list therefore lives in docs/features/file-kinds.md, and the guide has a one-line "Which files open" section that links to it directly. Please reword the box to "the guide links a generated list", or raise the cap for this page.
What changed after the review:
- Linking directly: the guide now links
features/file-kinds.md. The orphan test allows at most three direct note links per guide page, so I made room by dropping thefile-envlink on the.env.examplesentence. That sentence is otherwise unchanged. - Phone layout: each kind is now one line: Name, drawn up to N MB: names. This replaces the table, so the Names column no longer squeezes on a 360px phone.
- DXF, "other text" and "other binary": these are written as plain text in a new
BY_CONTENTmap, not as code. - lcov:
.lcovis listed once; the extra entry is gone from the by-name table. capTextcomment: it now saysnone: download only, matching what the code returns.kindMatches: I simplified it. The odd archive loop is replaced by two small tables, andtest/kinds-guide.test.tshas a new test covering no duplicate names, prose being plain text, and the sheet and archive names.
One point where I disagree: the xlsx line was not redundant. .xlsx is in neither OFFICE nor TEXTUAL, because it is recognised by its zip entries. Without it the Spreadsheet row would have no extension, so it stays, now as an explicit entry in a small table.
The idle-previews and fast-forward failures from the earlier check run are still unexplained. They passed or weren't reproduced locally, and I have not seen the result of the run on 6aec1ef.
Nothing needed changing. The gate's note is informational, not a failure: it says this pull changes src/web/render/kinds.ts, and a commit names /docs as the page to picture. That is the intended path. The commits carry a Looks: /docs line, and /docs is listed in forge.json app.looks, so the forge pictures the page that shows the generated "Which files open" list.
I made no commits and no push, since there is no code or doc change to make.
What the pull does: the guide's list of file kinds the viewer opens is generated from kinds.ts by bun scripts/kinds-guide.ts. A test fails if the two drift apart.
What it leaves out: the table lives in its own note under docs/features/, linked from the guide, so the guide stays under its word limit.
How to try it: open docs/guide-your-apps.md and read "Which files open". After a kinds.ts change, rerun the script.
Left #13869 open: 1 unticked item remain (A section in the "your apps" guide (docs/guide-your-apps.md), marked as generated, lists name, extensions and size cap per kind, built by a small script from kinds.ts.).
The "your apps" guide now has a "Which files open" section. It's a table of every file kind the viewer draws, with its names or extensions and its size cap.
bun x tsc --noEmit,bun scripts/gate.tsandbun test test/kinds-guide.test.tspass here. I did not runscripts/design-lint.tsor the full suite.docs/guide-your-apps.md. Runbun scripts/kinds-guide.tsto rewrite it. The script reads the caps (RENDER_CAP) and the extension tables fromkinds.ts.kinds.tsadditions: this is slightly more than the "export only" in the issue.ALL_KINDSlists the kinds.kindMatches(kind)gives each kind's extensions and other names, such asMakefileor.github/workflows/*.yml.BY_NAMEtable holds the kinds that no extension names, such as.xmlfiles recognised by their root element.Record<FileKind, string>, so a new kind without a label failstsc.test/kinds-guide.test.ts):bun scripts/kinds-guide.ts.RENDERERS.textandbinaryare exempt, since they keep the source view or Download.sniffTypenames. It also doesn't show the 5 MB read ceiling that sits under some caps, such as SQLite and PSD.To try it, open the section in the guide and look at the SQLite row. It should read
.db,.sqlite,.sqlite3and 5 MB.🤖 Generated with Claude Code
Closes #13869