Public: anyone can read this; the crew can change it.
A directory's `?all=1` lists at most 5,000 entries and says how many it left out (from branch scout/6196-…) #16737
Check · Review · Land · Live done — Landed and live in production.
A directory's ?all=1 page now lists at most 5,000 entries, directories first, and says how many it left out. This is #6211's work (the #6196 branch) rebased onto current main. bun x tsc --noEmit and test/tree-window.test.ts (8 tests) pass.
-
Reviews
ApprovedDoes what the issue asked: ?all=1 stops at 5,000 with directories first, the last row says how many were left out and links to the contents JSON (which exists), the footer reads 'Showing 5,000 of N', security headers are tested on the request, and the how-to sits in docs/TOUR.md rather than README. Uses the one row() component, plain links, works with JavaScript off. Two things I would do next: (1) the 'N more not listed' row is a link but is not passed nav: true like the other rows, so check it reads and focuses like them on a phone; (2) the 5,000-row render time was not measured, so add a timing check back when a budget helper exists.
-
Checks
shipped production is serving it deploy e78d344
-
History
- tree-window: no casts on the big directory aa64812
- tree-window test builds real TreeEntry records fd04477
- ?all=1 ceiling: resolve against main, TOUR names the 5,000 ceiling (#6439) 9d5d0d7
- ?all=1 rows omit lead instead of passing undefined (exactOptionalPropertyTypes) a051511
- row() renders fast enough for 5,000 rows, so the tree uses the one component; the more-row says JSON; a request-level ?all=1 check (#6196) 39cedb4
- ?all=1: README names the ceiling, the more-row links to the API, rows render under 50 ms (#6196) e2557d5
- ?all=1 rows drop their indentation and token estimates so 5,000 stay under 2 MB (#6196) 0467768
- A directory's ?all=1 lists at most 5,000 entries and says how many it left out (#6196) 2c9d13d
- Crew runs can SSH to a device the repository names: an owner-granted host:22 plus a key from the repo's secrets (the arm's Pi) (#16673) 927e520
- small: every list page still printing a bare "No …" takes its reason and next step from src/web/empty_words.ts (#16705) e00ef3f
- Feature flags for apps: a flags file in the app template, values set from the app's settings, FORGE_FLAGS_URL and a one-file client (#16707) c4232ca
- Design: the front page's admin controls draw §5's row, bar and field, and front-admin/pick/pin-any/weights leave §5d (#16703) fbe2465
- Finished run logs archive to the BlobStore (#16710) d6e4708
- Observability 5: one great chart - real size, readable axes, nice ticks, palette, tooltips, synced crosshair, release marks (#16686) 8eb4dc9
- LFS door: batch API and locks on the BlobStore (#16708) e29b657
- Talk says plainly what a cloud machine bills (#16688) 456cda9
- Revert "The repo is durable in the bucket: each push's pack is written to the BlobStore before ack, refs stay in the database with CAS" (#16725) 2e80cb0
- Main's full check prints each step's seconds and share (#16720) 0bb2460
- Builder brief: run gate --explain before --fix, and say the both-doors rule (#16718) 05a2403
- Sampler: count sample times before the grouped row count (#16716) f719db4
A directory's ?all=1 page now lists at most 5,000 entries, directories first, and says how many it left out. This is #6211's work (the #6196 branch) rebased onto current main. bun x tsc --noEmit and test/tree-window.test.ts (8 tests) pass. I did not run the rest of the suite. scripts/fast.ts named 3,602 test files for this change, so the forge's check will run the full suite on this push.
What changed
TREE_ALL_WINDOW = 5000insrc/web/pages/explorer.ts.treeListinginsrc/web/pages/repo.tsuses it whenallis set.- The default 300-entry window is unchanged.
- On
?all=1:- Rows drop the icon and the token estimate, and a directory name gets a trailing
/. Their indentation is stripped from the HTML too. That keeps 5,000 rows under 2 MB. - If entries remain, the last row reads "N more not listed". It links to the JSON contents API and tells the reader to
git clonefor every file. - The footer reads "Showing 5,000 of N entries".
- Rows drop the icon and the token estimate, and a directory name gets a trailing
docs/TOUR.md's "Big directories" section names the ceiling. The README had been split into docs since #6196, so the ceiling went there rather than inREADME.md.test/tree-window.test.ts:- 12,000 entries list 5,000, directories first, with "7,000 more not listed".
- The default window is unchanged.
- A request-level
?all=1check.
Left out
- The
row()speed rewrite from #6196.row()has changed a lot since, and its conflict resolution would have undone main's tree, facts and fold support. The page stays under the 2 MB size bound without it. The 50 ms wall-clock assertion is also gone, becausetest/helpers/budget.tsno longer exists after #7852. I did not measure the 5,000-row render time. - The old README text, the
shelf-speed.htmlfixture and theweb-browsetest tweak from that branch, which main's changes had made unnecessary. - The terminal explorer is unchanged, since it already lists every entry. The commit message carries a "No door" line saying so.
- I did not check whether #6145 is still open.
To try it
Open any directory with more than 5,000 entries at /<owner>/<repo>/tree/<ref>/<dir>?all=1 and read the last row and the footer. Run bun test test/tree-window.test.ts.
[{"go":"/trevato/forge/tree/main/test?all=1","look":"the listing and its footer","expect":"every entry listed with no icons, directories first; if the directory has over 5,000 entries, a last row says how many are not listed and links to the JSON"}]
🤖 Generated with Claude Code
A directory's
?all=1page now lists at most 5,000 entries, directories first, and says how many it left out. This is #6211's work (the #6196 branch) rebased onto current main.bun x tsc --noEmitandtest/tree-window.test.ts(8 tests) pass. I did not run the rest of the suite.scripts/fast.tsnamed 3,602 test files for this change, so the forge's check will run the full suite on this push.What changed
TREE_ALL_WINDOW = 5000insrc/web/pages/explorer.ts.treeListinginsrc/web/pages/repo.tsuses it whenallis set.?all=1:/. Their indentation is stripped from the HTML too. That keeps 5,000 rows under 2 MB.git clonefor every file.docs/TOUR.md's "Big directories" section names the ceiling. The README had been split into docs since #6196, so the ceiling went there rather than inREADME.md.test/tree-window.test.ts:?all=1check.Left out
row()speed rewrite from #6196.row()has changed a lot since, and its conflict resolution would have undone main's tree, facts and fold support. The page stays under the 2 MB size bound without it. The 50 ms wall-clock assertion is also gone, becausetest/helpers/budget.tsno longer exists after #7852. I did not measure the 5,000-row render time.shelf-speed.htmlfixture and theweb-browsetest tweak from that branch, which main's changes had made unnecessary.To try it Open any directory with more than 5,000 entries at
/<owner>/<repo>/tree/<ref>/<dir>?all=1and read the last row and the footer. Runbun test test/tree-window.test.ts.🤖 Generated with Claude Code
Closes #6439