-
Notifications
You must be signed in to change notification settings - Fork 432
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
feat(core): option to exclude draft perspective #8028
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Dec 13, 2024 12:21 PM (UTC) ❌ Failed Tests (6) -- expand for details
|
⚡️ Editor Performance ReportUpdated Fri, 13 Dec 2024 12:21:45 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
cea8f69
to
720238c
Compare
: getReleaseIdFromReleaseDocumentId(releaseId) | ||
const isReleasePerspectiveExcluded = isPerspectiveExcluded(releasePerspectiveId) | ||
|
||
// eslint-disable-next-line no-nested-ternary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be removed once we refactor latest to just be LATEST = "drafts"
as part of #8029
packages/sanity/src/core/releases/navbar/__tests__/ReleasesNav.test.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Jordan Lawrence <[email protected]>
Description
Adds
drafts
to the perspective menu list and adds the ability to hide it.This is specially useful when previewing content in
presentation
or other tools, to avoid adding thedrafts
to the list of perspective stack.What to review
Are this changes correct?
Testing
New tests added for this new behavior
Notes for release