Skip to content

fix(tree-compare): label previous commit and branch head buttons - #2157

Open
alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:fix/tree-compare/revision-button-labels
Open

alanpeixinho wants to merge 1 commit into
kernelci:mainfrom
profusion:fix/tree-compare/revision-button-labels

Conversation

@alanpeixinho

Copy link
Copy Markdown
Contributor

What it is

Previous commit and Branch head were icon buttons. They now show those labels. Hovering a button shows the commit it selects: short hash, name, tags, and date. The tooltip and the click use the same destination lookup.

Closes #2128

How to test

Open a tree compare page that has at least two revisions. Both buttons should read "Previous commit" and "Branch head". Hover each one and check that the tooltip names the commit the click selects. Click Previous commit and that side should move to the older revision. Click Branch head and it should move to the newest revision.

Made with Cursor

@alanpeixinho

Copy link
Copy Markdown
Contributor Author

We included a label to indicate action, and also a tooltip to show, to which commit we are moving into.
previous-commit-ab

* Show Previous commit and Branch head as text labels on the buttons
* Show the destination commit in a tooltip: hash, name, tags, and date
* Use one destination lookup for the tooltip and the click

Closes kernelci#2128

Assisted-by: Grok 4.7 <noreply@x.ai>
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
@alanpeixinho
alanpeixinho force-pushed the fix/tree-compare/revision-button-labels branch from d71fa16 to 215bef0 Compare October 6, 2026 18:46
@felipebergamin

Copy link
Copy Markdown
Member

out of context, but this is also a good place to apply the commit history we will ingest.

This branch has not been deployed

No deployments
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.

[AB Comparison] Add labels to Previous commit and Branch head buttons

2 participants