-
Notifications
You must be signed in to change notification settings - Fork 402
Conversation
Still needs wiring up
lib/views/issueish-list-view.js
Outdated
<Fragment> | ||
<img | ||
className="github-IssueishList-item--avatar" | ||
src={issueish.getAuthorAvatarURL() + "&s=32"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I limited the avatar size to 32px
. Makes it look sharper and probably needs less memory?
It currently works, but not sure if this is a good way to set the size. I guess it only works if the URL has something like ?v=4
at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right cool. I've added a size
parameter to the Issueish.getAuthorAvatarURL()
method and used URL
manipulation methods to add the query string parameter... just in case.
|
||
render() { | ||
return ( | ||
<details className="github-Accordion" open={this.state.expanded}> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also move away from the <details>
element and just use a <div>
or so? Then the triangle icon can be custom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sure. I do like keeping markup semantic when I get the chance and not just using <div>
every time. But if it's more convenient we can make the elements whatever's easiest.
😍 |
describe('Search', function() { | ||
const origin = new Remote('origin', '[email protected]:atom/github.git'); | ||
|
||
it('generates a dotcom URL', function() { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
assert.isTrue(wrapper.find('span.github-IssueishList-item--status').hasClass('icon-x')); | ||
}); | ||
|
||
it('renders a donut chart if status checks are mixed', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if you get tired/annoyed of the bitmoji thing, I can stop.
I'll be sure to let you know when it stops making me laugh every time 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I thought of a few additional test cases you might want to consider. But overall, excellent work!
👍 I was wondering why the status icons aren't centered in @smashwilson's screenshots... mystery solved: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 🚢 🚢
👋 A couple things that I think we could improve before 🚢 Calling attention to a UI changeWhen you are on master, (potentially)Fixing messagingThe messaging in the first image above is:
It would be great to get some mock ups where this entire feature would start. As in, what could we imagine is the entry point to the entire pull request experience? Confirmation of scope of this prFinally, just to confirm, this pr scope does not include the following from the rfc yet:
That is totally fine, I just wanted to make sure I wasn't missing that :D |
👍 Yeah, good point. Maybe we could differentiate them with some iconography on the left... ? For reference, you can see all of the special cases for that tile here: github/lib/views/create-pull-request-tile.js Lines 24 to 102 in a0c17a7
By the way: something that I really wanted to do was, rather than just bolding some text, offer a control that lets you do the thing that we're prompting for. The problem is that we can't currently enter the branch creation flow because it's done with a popup. I'm hoping that we can revisit that after #1370 is accepted.
For a bit of background, I took the messaging verbatim from the old GitHub tab code, which I'd introduced kind of ad-hoc in #1376. Happy to workshop better text with anyone who has ideas for improvements 😄 We do have less space in the tile version, so it could likely stand to be made more terse, if nothing else.
🤔 True, true. Is there some simple way we can say "you have to move off of master for this to be useful"... ? The compare view from master to master would always be empty, which is why we have that particular scenario special-cased to begin with. I'm not sure of an alternative that covers all of the possible next actions without being really wordy.
That's destined for the issueish pane item at the moment, though. The "current pull request" is populated based on
👍 Yup yup. This is intended to include everything from the Accordion lists and New PR sections of the RFC. "Issueish Pane Item" is still yet to be done. The pane item I'm opening on click here is entirely pre-existing code. |
Yeah! That's a great start! @simurai what do you think?
✨ ✨ ✨
Let's brainstorm just a bit but not let it totally block us today |
This UI looks so friggin' good ✨ |
The messages are now split into two parts:
The "next step" has an icon as a hint. All messages
AlternativesI tried italic but it doesn't stick out as much: Since both parts have |
"Trailing spaces not allowed"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement the first part of RFC-002: two lists of pull requests in the GitHub tab, one showing the "current" pull request (if any), and the other showing all pull requests on the chosen remote.
Before + After
GitHub tab: after, on default ref
GitHub tab: after, on unpublished ref
The "current pull request" list displays any pull requests that are associated with the ref that
HEAD
pushes to that are also targeted at the chosen remote.Special handling also exists for other cases:
HEAD
is a detached ref (like a tag);HEAD
ref;HEAD
ref that's not on the default branch, but that hasn't moved from it;Component hierarchy
Countdown to 🚀
RemotePrController
associatedPullRequest
from the upstream ref.tests/factories/pull-request-result
factory