Closed
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🩺 React Doctor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
This adds audience-based access control for published pages.
Pages can now be marked as either public or restricted to one or more site audiences. Restricted pages are filtered consistently across public navigation, direct page routing, breadcrumbs, public search, subpage panels, published exports, and default-page resolution.
Editor flow
In the editor sidebar, each page row now has
... -> Access....From that dialog you can:
Restricted pages also show a lock indicator in the page tree.
Backend changes
siteAudiencesandsiteAudienceMemberstablesWhy
The existing model only supported site-level public access. That meant a published site could not safely mix public pages with manager-only pages without leaking those pages through nav, direct links, search, or exports.
Validation
bun test packages/types/src/page-access.test.ts packages/types/src/access.test.tsbun run check-typesNotes
This PR is opened as a draft so the Vercel preview can build and the full flow can be checked in a browser.