Skip to content

Conversation

@codyde
Copy link
Contributor

@codyde codyde commented Nov 10, 2025

  • 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.

CleanShot 2025-11-09 at 10  00 46@2x

- 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.
@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
develop-docs Canceled Canceled Nov 10, 2025 7:09am
sentry-docs Ready Ready Preview Comment Nov 10, 2025 7:09am

codyde and others added 3 commits November 9, 2025 22:55
- 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
@codecov
Copy link

codecov bot commented Nov 10, 2025

Bundle Report

Changes will increase total bundle size by 2.44kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 10.16MB 1.13kB (0.01%) ⬆️
sentry-docs-server-cjs 12.6MB 1.32kB (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.74MB -0.0%
../instrumentation.js -3 bytes 1.07MB -0.0%
9523.js -3 bytes 1.04MB -0.0%
../app/[[...path]]/page.js.nft.json 162 bytes 766.42kB 0.02%
../app/platform-redirect/page.js.nft.json 162 bytes 766.33kB 0.02%
../app/sitemap.xml/route.js.nft.json 162 bytes 763.56kB 0.02%
4873.js 707 bytes 92.37kB 0.77%
7153.js 135 bytes 30.44kB 0.45%

Files in 4873.js:

  • ./src/components/sidebar/collapsibleSidebarLink.tsx → Total Size: 522 bytes

  • ./src/components/sidebar/style.module.scss → Total Size: 500 bytes

  • ./src/components/sidebar/collapsibleSidebarLink.tsx → Total Size: 1.94kB

  • ./src/components/sidebar/dynamicNav.tsx → Total Size: 4.33kB

  • ./src/components/sidebar/platformSidebar.tsx → Total Size: 2.05kB

  • ./src/components/sidebar/style.module.scss → Total Size: 500 bytes

App Routes Affected:

App Route Size Change Total Size Change (%)
/ 135 bytes 2.81MB 0.0%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/css/*.css 762 bytes 16.54kB 4.83%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
static/chunks/4145-*.js 235 bytes 51.18kB 0.46%
static/chunks/4746-*.js 135 bytes 21.53kB 0.63%
static/In14Q9govigAUqnQ1npZp/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/In14Q9govigAUqnQ1npZp/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/v1WIBi9L0imNctRhO-*.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/v1WIBi9L0imNctRhO-*.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/4145-*.js:

  • ./src/components/sidebar/collapsibleSidebarLink.tsx → Total Size: 2.02kB

Files in static/chunks/4746-*.js:

  • ./src/components/sidebar/style.module.scss → Total Size: 497 bytes

@codyde codyde marked this pull request as ready for review November 10, 2025 16:22
@codyde codyde merged commit e7365b5 into master Nov 10, 2025
16 checks passed
@codyde codyde deleted the feat/sidebar-beta-new-badges branch November 10, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants