Repository navigation
fix(shell): retain header effort when location does not fit - #2277
Alan-TheGentleman merged 2 commits into
Conversation
Walkthrough
Merge Risk:
|
carlosmoradev
left a comment
There was a problem hiding this comment.
Spot-on fix and very thorough regression coverage, @manutepowa.
What works well
- Accurate cascade positioning: Placing
...(model.effort ? [[brand, withEffort]] : [])immediately following the location-bearing stages restores the missing degradation step without perturbing minimal density or usage priorities. - Comprehensive density coverage: The tests in
tests/shell-bar.test.tsthoroughly exercise the restored stage acrossminimal,compact, andcomfortabledensities, including width clamping and models without reasoning effort. - Documentation:
docs/gentle-shell.mdclearly reflects the restored fallback order.
Approved. Ready for maintainer merge.
b0c70ca
into
Gentleman-Programming:main
Linked Issue
Closes #1977
PR Type
Summary
model · effortfallback stage to the header's left-side cascade, used once location has been removed.minimal, which strips the brand from each stage.Changes
lib/shell-bar.ts[brand, withEffort]after the location stages inheaderLeftStages, guarded bymodel.effort; update the two cascade comments.tests/shell-bar.test.tsminimal,compactandcomfortable: effort retained with full usage windows, model-only fallback one column narrower, and models without effort.docs/gentle-shell.mdmodel · effortstage in the header fallback order.Test Plan
node --experimental-strip-types --test tests/shell-bar.test.ts→ 59 passed, 0 failed (58 before the change; the new case is added).pnpm run typecheck→ exit 0,186 recorded diagnostic(s), no regressions.Contributor Checklist
Closes #1977)fix(shell): retain header effort when location does not fit)Co-Authored-Bytrailerstype:*label —type:bugcannot be applied from this fork account (pull-only permission on the upstream repo); a maintainer needs to add it.status:approvedon the linked issue — pending maintainer action; the issue currently carries onlybugandtype:bug.Summary by CodeRabbit