-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: Add Beta and New badge components for sidebar navigation #15437
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
Conversation
- Add beta and new frontmatter fields to FrontMatter type - Add badge styling (.beta-badge and .new-badge) to sidebar styles - Update SidebarLink to render badges based on props - Update CollapsibleSidebarLink to accept and pass through beta/isNew props - Update dynamicNav to pass badge props from context - Update platformSidebar to map frontmatter badge fields This allows documentation pages to display BETA or NEW badges in the sidebar by setting beta: true or new: true in their frontmatter.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add missing SidebarSeparator component export - Fix interface key ordering in collapsibleSidebarLink and frontmatter types - Remove unused index parameter in dynamicNav - Add CSS styles for sidebar separator
Bundle ReportChanges will increase total bundle size by 2.44kB (0.01%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-server-cjsAssets Changed:
Files in
App Routes Affected:
view changes for bundle: sentry-docs-client-array-pushAssets Changed:
Files in
Files in
|
This allows documentation pages to display BETA or NEW badges in the sidebar by setting beta: true or new: true in their frontmatter.