The issue has been closed

posted by yakov116 over 4 years ago 
Draft PRs are reasonably different on the regular theme:
<img width="45%" alt="Screen Shot 5" src="https://user-images.githubusercontent.com/1402241/103393202-2692fc80-4ae7-11eb-8374-cb4aebbf7454.png"><img width="42%" align=top alt="Screen Shot 6" src="https://user-images.githubusercontent.com/1402241/103393201-24c93900-4ae7-11eb-8d3a-78d6dfd0ed14.png">
But dark mode’s labels are pretty poor because the color is now limited to the text and border, with the background barely changing at all:
<img width="45%" alt="Screen Shot 4" src="https://user-images.githubusercontent.com/1402241/103393288-838eb280-4ae7-11eb-814f-675a5fcca995.png"><img width="45%" align=top alt="Screen Shot 3" src="https://user-images.githubusercontent.com/1402241/103393286-82f61c00-4ae7-11eb-8c56-8d071f43130d.png">
I think it'd make sense to highlight that "You're commenting on a draft PR." Backgrounds might still not be super obvious though.
posted by fregante over 4 years ago
The thingy pointed to by the arrow in https://github.com/sindresorhus/refined-github/issues/3857#issuecomment-752785690 is the "subtle icon difference" I referred to in the original issue description. To me this is a real issue, but I understand if this is closed as notanissue
or wontfix
.
My proposal is something more noticeable. If you are going through with a change I think that can be implemented in a nice and unmissable way by a full-page background color change. That is not uncommon for drafts in other SW.
I also like the proposal above. Changing the Comment
button text to be Comment on Draft PR
will also improve the experience for me.
posted by nedrebo over 4 years ago
full-page background color change
That's too in-your-face to be part of Refined GitHub, also because it doesn't really offer any explanation about why it's a different color, people won't know. If they need an explanation, you might as well put it where it's needed: By the comment box
posted by fregante over 4 years ago
By the comment box
Sure, that will work for me. :+1:
posted by nedrebo about 4 years ago
Is this still applicable with the new draft icon?
posted by yakov116 almost 4 years ago
The new icon has improved my life :D This issue is now less important to me. I would still enjoy a Comment
-> Comment on Draft
button change, but you decide if that is worth it.
posted by nedrebo almost 4 years ago
I would still enjoy a Comment
-> Comment on Draft
button change, but you decide if that is worth it.
I think this suggestion is very useful to have:
this impossible-to-miss button name change next to the comment box
would put the user in the mindset of making sure they actually want to post a comment in a Draft PR.
If this suggestion is accepted, I'd gladly make a PR for this.
posted by darkred almost 4 years ago
I think that the comment form field is a little complex to handle, but you can try. if I remember correctly in the PRs there's a hidden form in the body that gets copied internally and injected multiple times, maybe you will be able to just edit that once. It's likely that you need to use onNewComments
.
Good luck! It's not an easy one
posted by fregante almost 4 years ago
Thank you for the guidance.
I made PR #4520.
My approach was simple, but it works ok in all tests I made.
Unless I missed things, I found it easy enough.
posted by darkred almost 4 years ago