Repository navigation
TUI polish: keep branch on boot card, drop redundant status chip - #10
Merged
Merged
Conversation
… chip, cover layout helpers - welcomeCard: a long branch name no longer starves the path budget to "" and drops the whole Project row. Give the path a small floor so the branch (the most useful "where am I" cue) survives down to narrow terminals; kv() still fitWidth-truncates the combined value so neither side overflows the border. - status bar: hide the "100% until auto-compact" chip on a fresh/near-empty session — at 0% context it only duplicated the "N% context" chip. It now appears once context is actually being consumed (below 100%). At 80 cols this also frees the room that was clipping the branch name. - tests: add test/tui-layout.test.js covering welcomeCard, idleHome, footerLine and helpLines (previously untested) — every row fits its column budget at 36..200 cols, plain output carries no ANSI escapes, and the branch-survival regression above is pinned. Wired into npm test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Welcome card keeps the branch on narrow terminals; the 100%-until-auto-compact chip is hidden on a fresh session. Adds test/tui-layout.test.js. No color changes.