Skip to content

Delete unused ChromeRow fields, surplus-join branch, and narrating chrome.rs comments - #143

Merged
smarzban merged 4 commits into
mainfrom
feat/delete-dead-chrome-row-machinery-6a96
Oct 8, 2026
Merged

smarzban merged 4 commits into
mainfrom
feat/delete-dead-chrome-row-machinery-6a96

Conversation

@smarzban

@smarzban smarzban commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Subtraction-only cleanup in src/ui/board/chrome.rs. No user-visible behavior change. The painted status row is untouched.

Verified and then deleted:

  • joins_only_on_surplus always returned false (ChromeRowPart is only Notice or Message), so the surplus-join branch never ran.
  • ChromeRow.painted and undo_offset were written and never read. The only caller used .text. Footer undo stays computed in draw.rs status_row_content.
  • Large comment blocks that restated the composer or described retired Browse-era UI.

fit_chrome_row now returns the row String directly. Notice.undo is still read by want / floor / render (always false from the only constructor) and is left as-is.

Did not unify this with draw.rs status_row_content. Did not edit files already open on #142, #126, or #120.

Test plan

  • cargo fmt --check — pass
  • cargo clippy --all-targets -- -D warnings — pass (Finished dev in 20.11s, no warnings)
  • cargo test — pass: lib 511, integration 597, queue_board_loop 12, plus CLI/demo/starter/update suites; 0 failed
  • Manual herdr open-board smoke — not run (HERDR_ENV unset; no host-path change)
  • cd site && npm ci && npm test && npm run build — not applicable (site/ unchanged)
Open in Web Open in Cursor 

…rome comments

ChromeRow.painted and undo_offset were never read; the only caller used .text.
joins_only_on_surplus was always false, so the surplus-join path never ran.
Footer undo stays in draw.rs.

Co-authored-by: Saeed <smarzban@users.noreply.github.com>
@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
herdr-tsk Ready Ready Preview Oct 8, 2026 9:53pm UTC

Co-authored-by: Saeed <smarzban@users.noreply.github.com>
@smarzban
smarzban marked this pull request as ready for review October 7, 2026 07:25
@smarzban
smarzban merged commit 865c219 into main Oct 8, 2026
7 checks passed
@smarzban
smarzban deleted the feat/delete-dead-chrome-row-machinery-6a96 branch October 8, 2026 21:57
smarzban added a commit that referenced this pull request Oct 8, 2026

This branch was successfully deployed

1 active deployment
Preview — 7171bc9b Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants