Repository navigation
[v5] Show a commit's branch in the web UI - #668
Merged
Merged
Conversation
A commit can now be on a branch, but the web UI did not show it, so commits of different branches with nearby ordinals were hard to tell apart. The UI now shows the branch wherever it shows a commit's ordinal: - the commit card has a `Branch` row, left out when the commit has none; - Commit Detail has a `Branch` row, edited in place like the ordinal and the tag, and emptying it clears the branch; - the Commits tab has a `Branch` column; - each commit picker suggestion shows its branch, in muted text after its display value. The branch is neither searched nor matched by Enter. Commit Detail's previous/next and "Compare with previous" already stay within the commit's branch. When they are disabled because no commit comes before or after on that branch, their tooltips now name the branch. "Compare with previous" also looks up the previous commit again when the branch changes, not only when the ordinal does. Compared with the design in the issue, nothing else shows the branch. The pages that show a commit through a link with a card get it from the card. Choosing a branch (the Graph's branch selector, the Dashboard, branch filters) is left to a later PR. Part of #665.
- Inline the " on {branch}" wording at its two uses.
- Give the branch its own length constant, as the tag has.
- Check that a refused change leaves the field's value once the editor
is closed, with 409 messages worded as the server words them.
- Leave the card out of the branch's e2e test: it is unit-tested.
- Reword AR15's sentence on the picked commit, and rewrap DT3.
`search=` on commits now matches the branch, so the Commits tab's search box and the commit pickers find a commit by its branch too. Enter in a picker still matches only a suggestion's display value and commit string, not its branch, which many commits share.
- Name the branch in the Commits tab's row of TS1's search table. - Check that the picker keeps the typed branch after Enter picks nothing. - Check which commit the Commits tab's search by branch keeps, and shorten the e2e test's name.
ldionne
force-pushed
the
users/ldionne/v5-branches-2-display
branch
from
November 17, 2026 18:23
2347f1b to
042a382
Compare
ldionne
changed the base branch from
users/ldionne/v5-branches-1-server
to
main
November 17, 2026 18:23
ldionne
marked this pull request as ready for review
November 17, 2026 18:25
ldionne
enabled auto-merge (squash)
November 17, 2026 18:26
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.
A commit can now be on a branch, but the web UI did not show it, so
commits of different branches with nearby ordinals were hard to tell
apart. The UI now shows the branch wherever it shows a commit's ordinal:
Branchrow, left out when the commit has none;Branchrow, edited in place like the ordinaland the tag, and emptying it clears the branch;
Branchcolumn;its display value. Typing a branch's name finds its commits, but Enter
does not pick a commit by its branch;
that
search=matches it ([v5] Let commits be on a branch, with ordinals unique per branch #667).Previous/next on Commit Detail and "Compare with previous" on Run Detail
and Commit Detail already stay within the commit's branch. When they are
disabled for want of an earlier or later commit on that branch, their
tooltips now name it. "Compare with previous" also looks up the previous
commit again when the branch changes, not only when the ordinal does.
Compared with the design in the issue, nothing else shows the branch.
The pages that show a commit through a link with a card get it from the
card. Choosing a branch (the Graph's branch selector, the Dashboard,
branch filters) is left to a later PR.
Part of #665.