Skip to content

Add link to repo pack directory #1470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

moonlight-komorebi
Copy link
Contributor

@moonlight-komorebi moonlight-komorebi commented Jul 7, 2021

This PR adds a button to the pagetools section of a pack's page which, when clicked, takes the user to the packs main directory in the newrelic-observability-packs repo, or the packs/ directory for all packs (if the particular pack does not have a logo).

Resolves: #1447

Screenshots

Screen Shot 2021-07-07 at 5 02 25 PM

* now on each pack page, there is a button with a link to the pack
directory in the page section.
* added github images copied from opensource repo.
@gatsby-cloud
Copy link

gatsby-cloud bot commented Jul 7, 2021

Gatsby Cloud Build Report

developer-website-feature/o11y-packs

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 2m

@moonlight-komorebi moonlight-komorebi marked this pull request as ready for review July 8, 2021 00:04
@zstix zstix linked an issue Jul 8, 2021 that may be closed by this pull request
5 tasks
Copy link
Contributor

@zstix zstix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My requests on the PR preview branch are all going to a 404. Looks like the URL has some placeholder text in it: https://observabilitypacks-addlinktorepopackdirectory.gtsb.io/github.com/newrelic/newrelic-observability-packs/tree/main/packs/cassandra

Left a few other comments about code style.

Also, why was the lock file updated? 🤔

Copy link
Contributor

@aswanson-nr aswanson-nr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall! I just have a few requested changes and one idea that you definitely don't have to do.

* broke out the getPackUrl method into its own utility
* import & call the utility from observabilityPackDetails
* there is already instrumentation used in the button component, just
missing data for what we want to track. added packName as something we
might want to track.
* swap back to using logoUrl to check
* updated tests
@zstix zstix dismissed aswanson-nr’s stale review July 8, 2021 22:48

We've addressed these comments.

@moonlight-komorebi moonlight-komorebi merged commit 122d3cf into feature/o11y-packs Jul 8, 2021
@moonlight-komorebi moonlight-komorebi deleted the add_link_to_repo_pack_directory branch July 8, 2021 22:55
@nr-opensource-bot
Copy link
Contributor

🎉 This PR is included in version 1.57.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a link to the pack's repo directory on the packs details page
4 participants