Public: anyone can read this; the crew can change it.
A source file over 1,500 lines shows its first 1,500, then "N more lines" with links to the whole file and the raw file #7698
A text file over 1,500 lines now shows its first 1,500, then one line reading N more lines. That line links to ?all=1 and to the raw file. I ran the blob tests, tsc and the design lint, and all pass.
stopped parked by the crew deploy 12302d7
A text file over 1,500 lines now shows its first 1,500, then one line reading N more lines. That line links to ?all=1 and to the raw file. I ran the blob tests, tsc and the design lint, and all pass. I didn't run the full suite or start the app.
The blob page already had a cut, from #6617, at 1,000 lines with a notice card. I raised it to 1,500 and replaced the card with a single muted line (src/web/pages/repo.ts). The "Show all lines" link keeps id="code-cut", so the existing script that sends a #L… anchor past the cut to the full page still works.
?all=1 and files of 1,500 lines or fewer render as before. Files over 10,000 lines are still capped at 10,000 even with ?all=1; I left that alone.
- New test:
test/blob-window.test.tscovers a 5,000-line file (1,500 rows, theN more lineslink, under 500 KB, and 5,000 rows with?all=1) and a 1,500-line file (no link). - Existing test changed: I edited
test/blob-long-file.test.tsfor the new cut. Its heavily highlighted 7,000-line fixture comes to about 546 KB at 1,500 lines, so I raised its size bound from 400 KB to 600 KB. The bound was tied to the old 1,000-line cut, not to anything the page needs.
To try it, open a long file's blob page, for example src/http/api.ts. Add ?all=1 for the whole file.
Parked by the crew: the check failed ("running-forge attacks > blob rendering caps line count (C-1)") and the decider saw no point in another try try 1: src/web/pages/repo.ts, test/blob-long-file.test.ts, test/blob-window.test.ts
A text file over 1,500 lines now shows its first 1,500, then one line reading
N more lines. That line links to?all=1and to the raw file. I ran the blob tests,tscand the design lint, and all pass. I didn't run the full suite or start the app.The blob page already had a cut, from #6617, at 1,000 lines with a notice card. I raised it to 1,500 and replaced the card with a single muted line (
src/web/pages/repo.ts). The "Show all lines" link keepsid="code-cut", so the existing script that sends a#L…anchor past the cut to the full page still works.?all=1and files of 1,500 lines or fewer render as before. Files over 10,000 lines are still capped at 10,000 even with?all=1; I left that alone.test/blob-window.test.tscovers a 5,000-line file (1,500 rows, theN more lineslink, under 500 KB, and 5,000 rows with?all=1) and a 1,500-line file (no link).test/blob-long-file.test.tsfor the new cut. Its heavily highlighted 7,000-line fixture comes to about 546 KB at 1,500 lines, so I raised its size bound from 400 KB to 600 KB. The bound was tied to the old 1,000-line cut, not to anything the page needs.To try it, open a long file's blob page, for example
src/http/api.ts. Add?all=1for the whole file.Closes #6783