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 #9988

Closed opened this has it
opened this

Intent: when a diff is cut, the note that says so reads as one quiet line in the home page's language, not a card.

Done:

  • [x] src/web/diff-view.ts (the hidden > 0 note around line 590) renders the note as one muted line (e.g. <p class="muted small">), with no card class; the words stay: "N more files not shown." with the count's thousands separator and singular "file" for one.
  • [x] A test renders a diff with more files than are shown and asserts the line's words and that no card diff-note element is present; one hidden file reads "1 more file not shown."; it fails on main today.
  • [ ] bun scripts/design-lint.ts and bun test pass; the pull carries a look of a pull's Files tab with a cut diff.

Files: src/web/diff-view.ts, its CSS if .diff-note is styled, a new test. Risk: other pages (compare, review) share diff-view — check each still reads right.

commented

Reviewed pull #9993 at its head: ticked src/web/diff-view.ts (the hidden > 0 note around line 590) renders the note as one muted line (e.g. <p class="muted small">), with no card class; the words stay: "N more files not shown." with the count's thousands separator and singular "file" for one.; A test renders a diff with more files than are shown and asserts the line's words and that no card diff-note element is present; one hidden file reads "1 more file not shown."; it fails on main today.. left open: bun scripts/design-lint.ts and bun test pass; the pull carries a look of a pull's Files tab with a cut diff. — Lint and tests pass, but the pull carries no look of a cut Files tab; the forge's pictures show none..

commented

Left open after pull #9993 landed: 1 unticked item remains (bun scripts/design-lint.ts and bun test pass; the pull carries a look of a pull's Files tab with a cut diff.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

commented

Closing: the open box was a check on the pull (design-lint, bun test, a look). That pull landed with the check green, so this box is no longer wanted on its own.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs