Skip to content

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Oct 10, 2022

⚠️ Only merge this after #5619 was merged!

(This might cause build errors until #5619 is merged. Opening as a draft for now)

This PR adds a new optional prop to the PageGrid component (additionalPages) that allows us to pass a list of additional page links that should be added to the list of pages generated by the component. This is useful when we want to link to a page that is not a sub-page of the MDX file where PageGrid was placed.

Furthermore, this PR adds an index page to JS SDK's performance instrumentation section that makes use of the new prop.

ref: #5582

the new prop allows customization of the list generated by PageGrid
@Lms24 Lms24 requested a review from AbhiPrasad October 10, 2022 12:05
@vercel
Copy link

vercel bot commented Oct 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
sentry-docs ✅ Ready (Inspect) Visit Preview Oct 10, 2022 at 0:43AM (UTC)

@Lms24 Lms24 force-pushed the lms-customize-pagegrid branch from 6f1dc8d to b2c3eb8 Compare October 10, 2022 12:13
@Lms24 Lms24 changed the title feat(components): Add additionalPages to PageGrid props feat(components): Add additionalPages prop to PageGrid component Oct 10, 2022
@imatwawana
Copy link
Contributor

imatwawana commented Oct 11, 2022

Our current PageGrid component automatically pulls in the current description of the page from the front matter. Is there a way to make this additional pages prop do that? I'm concerned about this creating a wild west of people just putting in whatever they want in that description vs copying what's in the current description and/or creating copy/pasta errors when they do.

@Lms24
Copy link
Member Author

Lms24 commented Oct 12, 2022

That's a good point @imatwawana. I agree that the potential danger of people abusing this additional prop to link to ...wherever is greater than the advantage it offers in the particular case I needed it for. Closing this in favour of consistency.

@Lms24 Lms24 closed this Oct 12, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2022
@stephanie-anderson stephanie-anderson deleted the lms-customize-pagegrid branch February 23, 2024 10:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants