Repository navigation
Label the footer's tray buttons with their names - #700
Merged
ryanwelcher merged 4 commits intoOct 20, 2026
Merged
Conversation
The Terminal, Logs and Email buttons were icons alone, which a newcomer had to hover or guess at. Each now shows its name beside its icon. The accessible name stays "Toggle …", which contains the visible word. Fixes #691
The visible label and a separately translated "Toggle …" name could disagree, as they do in Czech, so the label is now the button's only name; its pressed state says it is a toggle. Where the footer is too narrow for every label, at the window's smallest with the sites list open or in a longer language, the labels are clipped for the eye and the buttons are their icons, so the footer never wraps and takes height from the tray. The tray journey checks both widths, and the pseudo-locale scan now reads a site window's footer.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The footer's container query measures its content box, which is 48px narrower than the footer. At 1024px with the sites list open that is 656px, under the 680px cut-off, so the labels were hidden on CI's screen. The cut-off is now 640px, which still fits Czech (about 605px), and the tray journey sets the window to 1024px before asserting the labels show.
A 1024px window on Windows has a 1008px page once its frame is taken off, which leaves the footer exactly 640px of content: on the cut-off, so the labels were hidden. The cut-off is now 620px, which still fits Czech.
ryanwelcher
deleted the
ryanwelcher/add-labels-to-the-icons-on-the-bottom
branch
October 20, 2026 13:09
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.

Why
The Terminal, Logs and Email buttons in the footer were icons only, and a newcomer had to hover or guess to know which was which (#691). There is room for their names.
What changes
togglestrings are gone fromtray.cjs.Deliberately not in it: a tooltip for the icon-only narrow state.
How to test this
Platforms: any. Build: the current head.
The tray journey (
tray.spec.js, "the tray holds one thing at a time…") now checks that each button shows its name at the default width, and that at the minimum width the names are clipped, the buttons stay in the window and the footer keeps its height. Run it from the repository root withnpm run test:e2e:hidden -- tray.spec.js. The pseudo-locale journey ini18n.spec.jsnow scans a site window's footer for untranslated text.What a journey cannot judge is how it looks:
Starting state: any site open, sites list open, window at its default size.
--lang=csand repeat steps 1 and 3. Expected: "Záznamy protokolu" fits at the default width, and the footer still stays one line at the smallest.What must not have happened: "Give feedback" wrapping onto two lines, or the footer growing taller and taking height from the tray.
Risks and limitations
src/languages/*.jsonuntil the nextnpm run i18n:download.Related
Fixes #691
Design decisions and alternatives considered
aria-label="Toggle …"(first commit). Rejected after review because of the Czech mismatch above. That fails WCAG 2.5.3 Label in Name for voice-control users.white-space: nowrapon the tray buttons only. Measured at 800px: this pushed the squeeze onto "Give feedback", which wrapped even in English. In Czech it broke into a column of single syllables.Review outcome (required, see AGENTS.md)
4 [fix here] · 1 [follow-up]. All five fixed, the follow-up included.
nowrap. No test checked that a name was visible, so the tray journey now asserts it at both widths. The CSS comment about the Logs badge assumed an icon at the button's right edge, and now describes the label..github/instructions/code-review.instructions.md. Heada39ad02/ baseorigin/trunk819575a.npm run lintclean,npm test2109/2111 pass, 0 fail.a39ad02 → HEADis the fixes for the findings above, plus two cut-off corrections after CI failed the tray journey (69972b7on both platforms,e7fcd3aon Windows only). Not re-reviewed by a fresh agent. Lint is clean,npm testpasses, and the tray and i18n journeys pass locally on macOS.Screenshots or recording
Before: three icons with tooltips. After, measured at 800px wide (sites list open) and 1100px wide, in English, Czech and the pseudo-locale: the footer is 49px tall at every combination. Screenshots to be added in a comment.
🤖 Generated with Claude Code