sindresorhus/refined-github

What features should be removed and why? #4197

fregante posted onGitHub

There are 2 types of features I'm expecting to hear:

  • controversial features could be dropped or made less controversial
  • rare/broken/unnecessary features that either don't belong to Refined GitHub or aren't worth supporting

Not promising that the changes will happen, but it's a good time to discuss since we have 200+ features and some changes need to edit/test many features before going live.


I always disable these features:

  • Automatically deletes the branch right after merging a PR, if possible. I don't want to delete my colleagues branches when I merge them.
    • Uses the PR’s title as the default squash commit title and updates the PR’s title to match the commit title, if changed. My team relies on the default behavior to identify Merge commits. I see that this refers to "squash commit" now, so maybe I could reenable that.
    • Hides forks and watchers counters. That's valuable information I don't want to hide.
posted by dorian-marchal almost 4 years ago

@dorian-marchal The first two may be addressed in #3964

posted by kidonng almost 4 years ago

Thanks for the comment.

How is the fork and watchers count useful to you that the Star count doesn’t already tell?

posted by fregante almost 4 years ago

I feel like watching a repo shows more involvement than simply starring it. However after thinking about it, the main reason I disabled this option was that it removed the direct links to watchers/forks. It seems like the watchers link has since been added back. The forks link is still missing though, and there is a "Find useful forks" button on this page that I like.

posted by dorian-marchal almost 4 years ago

Indeed, but do they really tell you what you hope?

  • This repo has 189 watchers but I only ever see about 10 people active in comments;
  • As for the forks, if you want to know the actual number of contributors, it appears on the repo home tab. People (mis-) use forks to bookmark and backup repositories, so the fork count is way off too.

This watchers count is visible and clickable when you open the watchers dropdown, by the way. This wasn’t possible for forks #4206

However I feel you about the link to the forks list. We turned that from 1-click to 3 clicks (more dropdown, insights, forks)

posted by fregante almost 4 years ago

However I feel you about the link to the forks list. We turned that from 1-click to 3 clicks (more dropdown, insights, forks)

We could re-add it as a dropdown item in more-dropdown.

posted by cheap-glitch almost 4 years ago

However I feel you about the link to the forks list. We turned that from 1-click to 3 clicks (more dropdown, insights, forks)

We could re-add it as a dropdown item in more-dropdown.

If that link is useful, it shouldn't be removed in the first place. It does save 40px and cleans up the view a little, but… when we have to implement workarounds for our features, they start to make less sense. A few alternatives

  • Drop the "Fork" label instead of the count
  • Only hide the count only on small screens
  • Reduce the feature to just hide-watch-count or a generic clean-repo-header (which can hide "Unstar" and "Stop ignoring")
posted by fregante almost 4 years ago
  • Drop the "Fork" label instead of the count

👎

  • Only hide the count only on small screens

👍

  • Reduce the feature to just hide-watch-count or a generic clean-repo-header (which can hide "Unstar" and "Stop ignoring")

👎

posted by yakov116 almost 4 years ago

Now that GitHub provides a ToC on every markdown doc, I think we can drop collapse-markdown-sections. I can only think of two cases where it was useful:

posted by cheap-glitch almost 4 years ago

Agreed. We can probably limit the feature to wikis until they add the TOC there as well.

Edit: moved to https://github.com/sindresorhus/refined-github/issues/4244

posted by fregante almost 4 years ago
  • Rewrite copy-file so that it uses the native clipboard-copy element.

I'm not sure if this is possible, but I'm imagining that if we use a "capture: true" we can run before their event and set the required attribute:

  1. Onclick -> button.setAttribute('value', blob.innerText)
  2. clipboard-copy takes care of showing the tooltip and actually copying to the clipboard

Also our onclick handler only needs to run once (if this optimization is possible)

posted by fregante almost 4 years ago

I personally don't like new-repo-disable-projects-and-wikis and find myself un-checking the checkbox every time 😄 I find GitHub projects very useful.

I also disable clean-pinned-issues because I don't think it makes them cleaner 😄 but perhaps that's just me.

Then there is a feature I personally never used: selection-in-new-tab. It doesn't bother me, but I don't really see a use case, and it is pretty easy with a simple keyboard shortcut to open a link in a new tab (CMD + click or CMD + shift + click on safari for example).

Hope it helps

posted by noftaly almost 4 years ago

I personally don't like new-repo-disable-projects-and-wikis

We get that a lot, also as part of https://github.com/sindresorhus/refined-github/issues/3964

But from a quick look at your pinned and top repositories, only 1 uses wikis and 2 use projects. The vast majority of repositories don't need either feature, that's why it's a default here.

clean-pinned-issues because I don't think it makes them cleaner

It is a bit subjective as a style change, but:

  • it takes less vertical space, which is objectively good so more fresh content can be seen
  • it lets us show even more content in the same space, without making it taller (pinned-issues-update-time)

there is a feature I personally never used: selection-in-new-tab

Probably I haven't use it either, but just because I don't use most keyboard shortcuts either. There are a few keyboard shortcut features that really don't affect the end user when they're enabled, so disabling them brings minimal advantage.

Here however I do see that it catches keypress on every page, so it should probably be improved. https://github.com/sindresorhus/refined-github/issues/4272

posted by fregante almost 4 years ago

I recreated this issue to start fresh since these comments have been discussed.

posted by fregante over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests