Repository navigation
Add indicator for unpushed commits - #9366
Conversation
|
@rafeca I agree that if there's no remote, it doesn't make a ton of sense to show this on every commit. I'm also interested in maybe doing a few usability tests when this gets out to beta to ensure people understand what this means. I'm a little concerned that it's not obvious that the indicator means it hasn't been pushed yet, but that might be unfounded and it is intuitive. @ampinsk thoughts on that? |
|
Also agree on the no remote scenario!
Always happy to do usability tests! I hope it makes sense considering it borrows the same iconography from the repo indicators and the push/pull button. If it turns out to be super unclear to people I'm happy to rethink it as well. Also, we could add a tooltip similar to what we do for the repo indicators: |
I think a tooltip will help a lot here! I'll look into it |
Added in ced302a: |
There was a problem hiding this comment.
Tested the following for this change:
- Functionality and UI for Mac/Windows ✅
- Tooltip is present ✅
- Indicator shows on Ahead tab for Compare branches ✅
- Indicator only shows on remote ✅
- When adding multiple commits at one time, all show indicator ✅
- When selecting
Update from Master, it pulls in new commits and indicator shown ✅ - When merging in new commits from another branch, indicator shown for all ✅
Push origin button. Since the same indicator auto-updates on the Repository list, we should do the same here for consistency.
Nice catch!! I fixed this issue with the latest commits :) |
tierninho
left a comment
There was a problem hiding this comment.
Indicator update looks good. Thanks for the fix!
| return this.props.commit.sha !== nextProps.commit.sha | ||
| return ( | ||
| this.props.commit.sha !== nextProps.commit.sha || | ||
| this.props.showUnpushedIndicator !== nextProps.showUnpushedIndicator | ||
| ) |
There was a problem hiding this comment.
i appreciate the restraint here :) or at least, i would have felt tempted to refactor this shouldComponentUpdate away, but i think its better not to in this PR
|
@tierninho has already tested this and I've approved it so I'm going to go ahead and this merge now! 🚀 |




Closes #5873
Description
This PR adds a small indicator for commits that haven't been pushed to any remote repository (local commits).
Some considerations:
Screenshots
Normal mode:
Dark mode:
Long commit text:
Release notes
Notes: [Added] Add indicators to commits that haven't been pushed