Skip to content

fix(components): Re-add exclude functionality in PageGrid #11510

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
merged 1 commit into from
Oct 8, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Oct 8, 2024

This PR re-adds the functionality of the exclude prop in the PageGrid component. I introduced this option in #6404 because I wanted to "feature" certain source maps upload guides for Angular but still display all other guides via PageGrid. Looks like this funcitonality got lost in one of the major refactorings of our docs repo. So this PR re-adds the filter functionality.

(Noticed while reviewing #11494)

Copy link

vercel bot commented Oct 8, 2024

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

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 9:20am
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 9:20am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 8, 2024 9:20am

@@ -193,6 +192,7 @@ Attributes:

- `header` (string) - optional header value to include, rendered as an H2
- `nextPages` (boolean) - only render pages which come next based on sidebar ordering
- `exclude` (string[]) - an array of pages to exclude from the grid. Specify the file name of the page, for example, `"index"` for `index.mdx`.
Copy link
Member Author

@Lms24 Lms24 Oct 8, 2024

Choose a reason for hiding this comment

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

hmm looks like this file wasn't formatted previously. I only added this line, rest of the changes in this file is just auto-format.

Copy link

codecov bot commented Oct 8, 2024

Bundle Report

Changes will increase total bundle size by 17 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 7.45MB 26 bytes (0.0%) ⬆️
sentry-docs-edge-server-array-push 257.07kB 3 bytes (-0.0%) ⬇️
sentry-docs-client-array-push 6.42MB 6 bytes (-0.0%) ⬇️

@Lms24 Lms24 enabled auto-merge (squash) October 8, 2024 09:11
@Lms24 Lms24 merged commit 3e148d0 into master Oct 8, 2024
12 checks passed
@Lms24 Lms24 deleted the lms/fix-pagegrid-exclude branch October 8, 2024 09:20
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2024
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.

2 participants