polish merge status#5514
Conversation
|
@donokuda I'm looking into some corner cases about the flow itself after testing this more, but I think the "Merge into Current branch" dialog didn't get the same love with the indicator: |
9f38077 to
c3f06c7
Compare
|
😍There's a few spacing inconsistencies that I can jump in and clean up. Overall, thx @shiftkey!
👍This makes sense especially if the markup in both places are similar. I'll also take a quick look at that. |
f6b6959 to
b1f5f30
Compare
Co-Authored-By: Don Okuda <don.okuda@gmail.com>
Thanks for the feedback, @ampinsk! ✨ Co-Authored-By: Amanda Pinsker <apinsker4@gmail.com>
3c4a057 to
a417936
Compare
|
I got one more small detail to push, and then I'll comment with some sort of emoji to indicate that my part is also ready to review. |
|
Was taking a look at this feature in xXdark modeXx and saw that the text treatment between the merge dialog and the compare panel could be more consistent. Specifically, the emphasized words are white while the rest of the sentence are a little gray so that the more important information stands out. Before (👀at the panel to the left) 🥝My part is ready for review now and open to any feedback, especially around CSS stuff like desktop/app/styles/ui/_merge-status.scss Lines 9 to 16 in 25a0085 |
|
@donokuda I added the UI work for "unrelated histories" in 264e990 and I had to merge that in here to address a conflict, but I'll leave it up to you whether you want to restyle these or punt to a follow-up PR: To test, use a repository that contains a |
|
🍎 |
Famous last words: "This seems simple enough to do." I'll time box this to lunchtime and respond on whether we should punt for now given that this is more of an edge case. |
This fixes a double nesting / double margin issue
Changing the `<p>` to a `<div>` removes the `margin-top` that gets added. I also updated the classname from `merge-info` to `merge-message` to be more consistent with the rest of the file. I style both class as the same. We should consider settling on one classname to rule all merge status areas.
|
🥗 xXDark ModeXx
Light mode
EDIT: /cc @outofambit since you reviewed my codes 🔍 👀 |
|
woo! this is looking great! can we get a gif of the less jarring transition between |
| if (mergeStatus.kind === MergeResultKind.Invalid) { | ||
| return ( | ||
| <p className="merge-info"> | ||
| <React.Fragment> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| .merge-status-invalid { | ||
| color: $red-500; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@nerdneha Would this work? |
|
Would it be better flipped vertically (i.e. the message, then the icon, then the button? That way, the button’s position wouldn’t change so the user would be able to click it even if the status-getting finishes while they’re hovering. |













(🎯Targets the
display-merge-status-in-compare-tabbranch.)This pull request starts some work on polishing the merge status.
I'm running into an issue where the UI is pretty jarring when the status gets updated from "Pending" to the " ✅/⚠️ " status 😞:
I tried doing some quick CSS tricks like animating the max-height, but I think a better approach is to prototype out a full transition instead. The transition could include fading in the content as well as doing a transitions with the octicons themselves.