A file too large to draw says so in one line
Open the blob page (or the terminal's file view) of a file past what the forge reads
whole. Instead of a blank page it shows name · size as the title, the reason as the note under
it (so the title holds one line on a phone), and a Download button; the terminal puts name, size
and reason on a line each:
- a kind the forge knows says its limit and why:
Over the 1 MB limit for markdown files, because the page reads a file whole to draw it.(images, PDF and the like say the browser would have to load them whole); - bytes of no kind it knows say
The forge cannot draw this yet.
A binary within the read ceiling says The forge cannot draw this yet. too, beside its type word,
the Download and its hex dump (binary-file.md). The wording is src/web/render/undrawable.ts,
shared by the page and the terminal: it returns the parts, and each door joins them, so a file
name holding · never splits wrong.
Tests: test/render-undrawable.test.ts, test/log-tail-doors.test.ts (both doors).