Skip to content

Drop hide-zero-packages feature - #3297

Merged
fregante merged 6 commits into
refined-github:masterfrom
kidonng:hide-zero-packages
Jul 3, 2020
Merged

fregante merged 6 commits into
refined-github:masterfrom
kidonng:hide-zero-packages

Conversation

@kidonng

@kidonng kidonng commented Jun 27, 2020 •

Copy link
Copy Markdown
Member

In the new design, GitHub changed how they show "Packages" tab:

  • repos: only shown to collaborators (Is there a need to hide them as well?)

    Details

    image

  • users: only show if they have packages, without counter (and hide-zero-packages will always activate, this PR fixes that)

  • organization: always show without counter

Test: https://github.com/kidonng

Drop it according to https://github.com/sindresorhus/refined-github/pull/3297/files#issuecomment-652513782

@fregante

Copy link
Copy Markdown
Member

Just to confirm:

  • repos: only shown to collaborators 👍
  • users: not shown 🎉
  • organization: still shown (and should still be hidden) 😕

Comment thread source/features/hide-zero-packages.tsx Resolved
@kidonng

kidonng commented Jun 28, 2020

Copy link
Copy Markdown
Member Author

Just to confirm:

  • repos: only shown to collaborators 👍
  • users: not shown 🎉
  • organization: still shown (and should still be hidden) 😕

Great summary! I updated my description to make it clear.

Just to mention that if we want to hide “Packages” tab on organization, we need to query the API.

@fregante

fregante commented Jul 1, 2020

Copy link
Copy Markdown
Member

So, is it correct to say that this feature currently does not apply to GitHub at all?

Perhaps it should be dropped and moved to the "added by github" section in the readme. I expect the organization profile to follow the user profile in hiding the packages.

@kidonng

kidonng commented Jul 1, 2020 •

Copy link
Copy Markdown
Member Author

No, the third rule (organization) still works.

@fregante

fregante commented Jul 1, 2020 •

Copy link
Copy Markdown
Member

No, the third rule (organization) still works.

I still see the tab, so I think it doesn't work https://github.com/babel

@kidonng

kidonng commented Jul 1, 2020

Copy link
Copy Markdown
Member Author

😅 My mistake, I wrote "always show without counter" and forget what does it mean. You are right, it's only for old GitHub now.

@kidonng kidonng changed the title Update hide-zero-packages selector Drop hide-zero-packages Jul 2, 2020
Comment thread readme.md Resolved
@fregante fregante changed the title Drop hide-zero-packages Drop hide-zero-packages feature Jul 3, 2020
@fregante
fregante merged commit 75cf41b into refined-github:master Jul 3, 2020
@kidonng
kidonng deleted the hide-zero-packages branch July 28, 2020 02:58
@yakov116 yakov116 added meta Related to Refined GitHub itself implemented by github labels Mar 4, 2021
@yakov116 yakov116 removed the meta Related to Refined GitHub itself label Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants