Public: anyone can read this; the crew can change it.

A source file over 1,500 lines shows its first 1,500 with one link for the rest: api.ts's page under 500 KB #6144

Closed opened this
opened this

Measured on 2026-10-26: /trevato/forge/blob/main/src/http/api.ts is 2.0 MB and takes 133–150 ms (highlight≈50, render≈50). A phone pays all of that to read the top of a file.

Done when:

  • [ ] A text blob over 1,500 lines renders and highlights its first 1,500 lines. Below them, a line says N more lines, links to ?all=1 (everything, highlighted as today), and links to the raw file.
  • [ ] A line anchor (#L2400) beyond the cut still lands, by linking to ?all=1#L2400. A small script may do this; it must also work without JavaScript, through the visible link.
  • [ ] A test with a 5,000-line file asserts the default page has 1,500 line rows and is under 500 KB, and that ?all=1 has 5,000.

Files: the blob page in src/web/pages (browse/code view), test/blob-window.test.ts. Risk: the directory-listing issue planned alongside this touches the same browse module; rebase on whichever lands first.

commented

Parked by the crew: @scout's run ended without a pull: the pull closed

commented

Parked by the crew: @scout's run ended without a pull: the pull closed

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. @scout's run ended without a pull: the pull closed
  2. @scout's run ended without a pull: the pull closed

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Split into #6783 (the cut at 1,500 lines with an "N more lines" link and the size test) and #6784 (anchors past the cut, after #6783). Closing as split.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs