Refined-github: Compact Discussions

Created on 9 Jun 2019  路  8Comments  路  Source: sindresorhus/refined-github

Problem

Right now on GitHub there is tons of visual noise around even a single inline comment on a diff:

Screen Shot 2019-06-09 at 12 20 55 PM

Proposed Changes

Like why do we need double borders:

Screen Shot 2019-06-09 at 12 21 12 PM

Why does "Resolve Conversation" need its own line:

Screen Shot 2019-06-09 at 12 21 37 PM

If there's only a single comment, why even have the reply line? Just turn it into a button (reactions are already there...):

Screen Shot 2019-06-09 at 12 22 55 PM

Resolve Conversations could also be a button or it could get the dropdown treatment:

Screen Shot 2019-06-09 at 12 23 53 PM

This change would take the above comment from taking up 240px of vertical space to 120px.

On a pull request with 40 comments, this makes a huge difference.

enhancement help wanted

All 8 comments

I just fear it will be short lived because they鈥檝e been messing with classes and design a lot lately.

However this would be nice to have, and it鈥檚 welcome.

But respond and resolve should stay there because they鈥檙e common actions. Perhaps just on a single line instead of two. And maybe both can be smaller buttons instead of a loooong input field.

But respond and resolve should stay there because they鈥檙e common actions.

馃憤

Like why do we need double borders

"Double borders" are there because people can start 2 or more conversations on a single line of code. Each conversation can be closed separately.
image

There are better ways of achieving that. They don't do a particularly good job of it now anyways

A fix for that would be to add margins just between them:

.discussion + .discussion { margin-top: 2em }

So what if it looked something like this:

Screen Shot 2019-06-14 at 10 39 22 AM

PR welcome for compact-discussions.css

The reason why they do this is because PR diff views can span the whole screen. If we add this feature, the "contextual" dropdown menu and the Resolve button can be very far from the content. Not a good idea

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hkdobrev picture hkdobrev  路  3Comments

mareksuscak picture mareksuscak  路  3Comments

hkdobrev picture hkdobrev  路  3Comments

sindresorhus picture sindresorhus  路  3Comments

durka picture durka  路  3Comments