-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git_ui: Show more information in the branch picker #25359
base: main
Are you sure you want to change the base?
Conversation
neat! I'd also love it if this menu was sorted by the commit timestamp (or really ideally the reflog timestamp) so that I can quickly go back to what I was working on.. |
@ConradIrwin : For me it is very useful to know which commit I am in, there is still no history to know the list of all the commits. At first I did something similar #15334, but it didn't work, I hope this one will work. If you want to make changes feel free. |
I think I'd personally prefer if the info showed say, 5 most recent commits of the branch in |
@jansol : The one in the video is the What you say is that when you hover over the icon, you want them to show the 5 most recent commits of the branch you hover on? |
@ConradIrwin and @jansol : What do you think about something like this: #10806 |
Pushed a change there revising the design a little bit, where we simplify it a lot by just showing the SHA number and the timestamp. Iterating towards a simpler, keyboard-accessible design (tooltips aren't). Maybe will explore having the beginning of the commit message in there. Here's what I pushed: |
@danilo-leal :
What do you think? |
@Angelk90 regarding your first question, it's the timestamp of the last commit. And yeah, I'm considering adding the commit description, too. It just gets too cluttered, I think, but let's see! I'm not a fan of adding more actions like that on this picker because these attached menus are not accessible via keyboard. I appreciate these are all very relevant stuff, though, so we may want to figure out a way that is not with a dropdown menu from a modal. Can you access that menu with your keyboard on this app you screenshot'ed? In any case, these are definitely for a follow up PR! This one can be simple and tight about additions within the modal items. |
@danilo-leal : Webstorm, what do you think of a solution like this, instead of the modal, the menu that opens on the side is accessible from the keyboard. Registrazione.schermo.2025-02-25.alle.13.35.59.mov |
@Angelk90 that is a possible solution, yeah. We've got to explore a bit more, and maybe putting this PR out will generate some feedback for that! In my last commit, we're now also showing the last commit's message—some seem to find that unhelpful, while others appreciate the SHA. Let's see! Keyboard navigate-ability is a major principle at Zed; we try to make most of the app accessible without a mouse for UX and speed reasons. I don't think we have 100% coverage there, but it's a goal we shoot for! |
@Angelk90 We currently just display the last 10 most recent branches, as per |
Registrazione.schermo.2025-02-26.alle.15.25.00.movRegistrazione.schermo.2025-02-26.alle.15.23.42.mov |
Agreed, don't think we need settings for it right now. |
@Angelk90 You do not need to keep merging It causes a GitHub notification every time and also kicks off a new CI run, which is consuming resources unnecessarily. |
@maxdeviant : If it's okay with you, we can merge this and the other pending PRs, there are no other changes to make at this time. |
It is up to @danilo-leal to decide if this PR is ready to go. |
@maxdeviant : Ok, you can check out the other pending PRs. |
I'm pretty sure I've said it before, but we will get to your PRs as we have time and constantly pinging myself and other maintainers about it isn't going to change that. Please stop. |
Final product:
Release Notes: