Skip to content

[v5] Show a commit's branch in the web UI - #668

Merged
ldionne merged 4 commits into
mainfrom
users/ldionne/v5-branches-2-display
Nov 17, 2026
Merged

ldionne merged 4 commits into
mainfrom
users/ldionne/v5-branches-2-display

Conversation

@ldionne

@ldionne ldionne commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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. Typing a branch's name finds its commits, but Enter
    does not pick a commit by its branch;
  • the Commits tab's search box finds commits by their branch too, now
    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.

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
ldionne force-pushed the users/ldionne/v5-branches-2-display branch from 2347f1b to 042a382 Compare November 17, 2026 18:23
@ldionne
ldionne changed the base branch from users/ldionne/v5-branches-1-server to main November 17, 2026 18:23
@ldionne
ldionne marked this pull request as ready for review November 17, 2026 18:25
@ldionne
ldionne enabled auto-merge (squash) November 17, 2026 18:26
@ldionne
ldionne merged commit a943cee into main Nov 17, 2026
37 checks passed
@ldionne
ldionne deleted the users/ldionne/v5-branches-2-display branch November 17, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant