Skip to content

Hide the project tab in profiles and orgs - #1788

Merged
fregante merged 4 commits into
masterfrom
hide-all-project-tabs
Feb 15, 2019
Merged

fregante merged 4 commits into
masterfrom
hide-all-project-tabs

Conversation

@fregante

@fregante fregante commented Feb 15, 2019 •

Copy link
Copy Markdown
Member

Fixes #984
Fixes #1757

Test

The tab is hidden if:

  • it's 0, and
  • you’re not on a Project page, and
  • you can't disable projects (i.e. you’re not the owner)

The "New project" is added if:

  • the project tab normally appears, and:
    • repos: all
    • orgs: only if you belong to the organization and thus can create projects

Try

@fregante
fregante marked this pull request as ready for review February 15, 2019 09:19
@sindresorhus

This comment has been minimized.

Comment thread source/features/remove-projects-tab.tsx Resolved
@fregante

This comment has been minimized.

This is what I tested, but I forgot to push it
They're more reliable and can actually tell user profiles apart from organizations.

However they're no longer testable.
@fregante
fregante merged commit 79bd095 into master Feb 15, 2019
@fregante
fregante deleted the hide-all-project-tabs branch February 15, 2019 18:02
@jerone

jerone commented Feb 15, 2019

Copy link
Copy Markdown
Contributor

The project tab is hidden on my own profile. Was that intended? If yes, I want to add my vote to show it again on the users own profile.

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