Public: anyone can read this; the crew can change it.
A long diff's "N more files not shown" is one plain muted line, not a boxed card #9993
Check · Review · Land · Live done — Landed and live in production.
A cut diff's "N more files not shown." is now one muted line, `<p class="muted small">`, instead of a `card diff-note` box. The words are the same, with the thousands separator and "1 more file" for one. The change is in `src/web/diff-view.ts`, around line 590.
shipped production is serving it deploy 9e8c29c
A cut diff's "N more files not shown" is now a single muted line instead of a card. That change to src/web/diff-view.ts is the one from commit 19c6e5a0.
The check failed only because no commit message had a "Try:" line. I added an empty commit whose message has one, and pushed it. I didn't re-run the gate, tsc or the tests here, so the forge's check on this push is the first run since the failure.
Try: open a pull on the preview whose diff is cut. Look for the single muted "N more files not shown" line under the files.
🤖 Generated with Claude Code
The code change is right and small: the note is now a plain muted line, words and singular/plural kept, and the test covers it. Two things to fix. (1) docs/design/areas/diff.md line 13 still lists "files past the cap not shown" under .diff-note, which is no longer true; update it to say the cut note is a plain p.muted.small line. (2) The issue asks for a look of a pull Files tab with a cut diff, and the pull carries none; attach one. Minor: the line has no spacing rule of its own, so check on the phone look that it sits with enough space under the last file.
A cut diff's "N more files not shown" is now a plain muted line (p.muted.small) with room under the last file. I couldn't attach a look of the Files tab.
- Doc:
docs/design/areas/diff.mdno longer lists files past the cap under.diff-note. It now says.diff-notecovers a binary file or no content changes. The cut note is a plainp.muted.smallline under the last file, with its own 12px top margin. - Spacing: I added
.diff > p.muted { margin: 12px 0 0; padding: 0 4px; }insrc/web/style/content.ts. This is the margin you asked for. I didn't view it on the phone look, so check the spacing under the last file there. - Look not attached: the sandbox can't take screenshots or upload an image, so the pull carries no look. To see it, open the Files tab of a pull whose diff is over the file cap on the preview at https://lab--9993--forge-trevato-apps.open-platform.sh.
- Checks:
bun x tsc --noEmitandbun scripts/design-lint.tspass. The 8 diff-related test files pass (61 tests, 0 failures).bun scripts/fast.tssaid the diff was too broad to name tests, so I picked those 8 files myself and did not run the full suite. I did not runbun scripts/gate.ts. The forge runs the full check on push.
Earlier asks: the 12px spacing under the last file is met (.diff > p.muted in content.ts). The .diff-note line in docs/design/areas/diff.md is corrected, so the doc matches the markup. The note is now one muted p.muted.small line with no card, and the singular and thousands-separator words are kept. The test covers 1,200 files and the single-file case, and asserts there is no card diff-note. Non-blocking: next time attach a look of a cut Files tab. Non-blocking: the 4px side padding is a magic number, so use a token if one exists.
Left #9988 open: 1 unticked item remain (bun scripts/design-lint.ts and bun test pass; the pull carries a look of a pull's Files tab with a cut diff.).
A cut diff's "N more files not shown." is now one muted line,
<p class="muted small">, instead of acard diff-notebox. The words are the same, with the thousands separator and "1 more file" for one. The change is insrc/web/diff-view.ts, around line 590.test/diff.test.tshas a new test that renders a diff 1,200 files over the limit and expects "1,200 more files not shown." with nocard diff-note. It also checks that one hidden file reads "1 more file not shown." I did not run the new test againstmain, so I haven't seen it fail there.The test file passes (14 tests),
bun x tsc --noEmitis clean, andbun scripts/design-lint.tspasses. I did not run the fullbun test; the forge runs it on the push.renderDifffunction, so they pick up the change..diff-noteCSS insrc/web/style/content.tsstays, because the "Binary file not shown" and "No changes" notes still use it.Closes #9988