Skip to content

Name a project's link button by what it opens - #133

Open
abdulahaddayater wants to merge 1 commit into
MultiAgency:mainfrom
abdulahaddayater:fix/project-page-link-label
Open

abdulahaddayater wants to merge 1 commit into
MultiAgency:mainfrom
abdulahaddayater:fix/project-page-link-label

Conversation

@abdulahaddayater

Copy link
Copy Markdown

Summary

  • On a public project page, the outbound button always said Repository.
  • It now says Repository for a GitHub repository, GitHub for a GitHub organization page, Document for a Google Doc or Drive link, and Link for any other address.
  • The page chooses the word from the saved URL. The address itself stays the same.

Test plan

  • Open a project that links to a GitHub repository. The button says Repository.
  • Open a project that links to a GitHub organization page, such as github.com/near. The button says GitHub.
  • Open Legion Creator Program. The button says Document and opens the Google Doc.
  • Open a project that links to any other website. The button says Link.

A public project button always said Repository, even when the saved address was a GitHub organization page or a Google Doc.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant