Repository navigation
🐞 Header build hash: CSS ellipsis of the exact value with a Copy icon (ovcs) - #4715
Merged
Merged
Conversation
…al (ovcs) The build hash next to Version in the shared ui-essentials Header (admin, voting, ballot verifier and results portals) now shows its first 12 chars plus an ellipsis when longer. Short/placeholder values render unchanged. The full exact value stays in a focusable tooltip and screen-reader text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 2
Please check the settings in the CodeRabbit UI or the
|
… (ovcs)
Replaces the tooltip/DOM-attribute reveal of the shortened header build hash
with a named, keyboard-operable "Show full hash" button. It opens a labelled
dialog popover holding the exact full value in a read-only, pre-selected
field and a Copy button (exact value to the clipboard, announced via a
status line). If the clipboard is unavailable or refuses, the field is
re-selected and the status says to copy it manually.
Short, placeholder ("-", "dev") and missing values stay static text with no
control; a missing main is normalized to "" before the length comparison.
New strings added to all ui-core locales. Ballot hashes, release data and
authentication are untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… reveal (ovcs)
Supersedes the "Show full hash" popover (Meta #15638). A long release build
hash in the shared Header now keeps its exact full value in the text node;
its bounded span is clipped by CSS (overflow hidden, nowrap, text-overflow
ellipsis) and stays selectable, so selecting all of it and copying by hand
yields every character. No JS substring, literal ellipsis, title, tooltip,
popover or reveal.
A separate, named, keyboard-operable Copy icon outside the selectable text
copies the exact raw value. It shows on hover and keyboard focus (with a
focus outline) and always on no-hover/touch devices; the result is announced
in a status line, and if the clipboard is unavailable the hash text is
selected for manual copying.
Short, placeholder ("-", "dev") and missing values remain static text with no
control. shortBuildHash and the reveal-only strings (showFull, fullTitle,
close) are removed. Ballot trackers, metadata, receipts and deployment are
untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y keeps exact case (ovcs) The Version root uses the MUI Typography "button" variant, which can apply text-transform: uppercase. Some browsers (e.g. Safari) may copy the rendered casing on native selection. Set textTransform: "none" on the clipped hash span only; the Version text, the CSS ellipsis, the hover/focus Copy icon and the no-reveal behaviour are unchanged. Adds a synthetic jsdom regression asserting no transform and the full lowercase digest in the DOM. Not verified in a real Safari. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… clip (ovcs) The clipped hash text and its Copy icon now share one hash box. The icon is absolutely positioned at the box's right edge inside a reserved right padding (32px slot for a 28px button), so it never overlaps the text and showing it on hover, keyboard focus or touch does not move the text. The hash text is monospace with a fixed width of 11ch: the first 10 characters plus the CSS ellipsis (BUILD_HASH_PREFIX_LENGTH 12 -> 10). The exact full value stays in the selectable DOM text with text-transform: none; no JS substring, tooltip, popover or reveal. Hash label and Version are unchanged. Adds jsdom tests for the same-container/right-slot icon and the 10-character CSS sizing. Actual rendered clipping was not checked in a real browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Findeton
added a commit
that referenced
this pull request
Dec 3, 2026
Follow-up to #4715. Remove inherited letter spacing from the monospace hash to match its ten-character CSS width. Keep raw text and inline copy unchanged; regression checks the spacing.
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.
Meta #15638. Félix superseded the reveal design: the only things kept are CSS truncation and a Copy icon.
Behaviour
ui-essentialsHeader (VersionwithmaxLength={BUILD_HASH_PREFIX_LENGTH}) is longer than 12 characters, the exact full value is the span's text. CSS bounds the span (max-width: 13ch,overflow: hidden,white-space: nowrap,text-overflow: ellipsis,user-select: text). Nothing is cut with a JS substring, there is no literal…, and there's no title, tooltip, popover or reveal. If you select the whole hash and copy it by hand, you get every character.aria-label"Copy hash") sits outside the selectable text and copies the exact raw value. It works from the keyboard. It appears on hover and on keyboard focus, with a focus outline, and on no-hover (touch) devices it's always visible. A visually hiddenrole=statusline announces the result. If the clipboard isn't available, the hash text gets selected so it can be copied by hand.-,dev) and missing values are still plain static text with no control. The version string is never truncated.shortBuildHash, the "Show full hash" popover, and its strings (hash.showFull,hash.fullTitle,hash.close). No changes to ballot trackers, metadata, receipts or deployment.Tests (
Version.test.tsx)…. The ellipsis styles are on the value span, and the Copy button isn't inside it.[title], tooltip, dialog or textbox, and only one button.clipboard.writeTextwith the exact digest, and the status announces it. Without a clipboard, the full hash is selected.Not run: jest, lint, tsc and CI weren't run locally (this worktree has no Node toolchain). CI on this push is the first real run.
🤖 Generated with Claude Code