Skip to content
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(platform): Add LinkToActivePlatform component #13020

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chargome
Copy link
Member

This PR adds a new component that creates a dynamic link to the currently selected platform or guide.

Usage: <LinkToActivePlatform>Your link text</LinkToActivePlatform>

@chargome chargome self-assigned this Mar 17, 2025
Copy link

vercel bot commented Mar 17, 2025

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

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 6:07pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 6:07pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Mar 17, 2025 6:07pm

Copy link

codecov bot commented Mar 17, 2025

Bundle Report

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

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.54MB 1.03kB (0.01%) ⬆️
sentry-docs-client-array-push 9.4MB 2.64kB (0.03%) ⬆️

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.57MB -0.0%
../instrumentation.js -3 bytes 904.32kB -0.0%
9523.js -3 bytes 880.37kB -0.0%
../app/[[...path]]/page.js 973 bytes 534.99kB 0.18%
2065.js 68 bytes 81.63kB 0.08%

Files in ../app/[[...path]]/page.js:

  • ./src/mdxComponents.ts → Total Size: 3.64kB

  • ./src/components/linkToActivePlatform.tsx → Total Size: 1.3kB

  • ./src/components/linkToActivePlatform.tsx → Total Size: 504 bytes

Files in 2065.js:

  • ./src/components/platformSelector/index.tsx → Total Size: 18.66kB

  • ./src/constants/localStorage.ts → Total Size: 54 bytes

  • ./src/components/platformSelector/index.tsx → Total Size: 490 bytes

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] 973 bytes 3.08MB 0.03%
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 868.16kB -0.0%
static/chunks/3319-*.js -3 bytes 393.41kB -0.0%
server/app/_not-*.js 647 bytes 253.4kB 0.26%
server/app/[[...path]]/page_client-*.js 647 bytes 253.36kB 0.26%
server/app/platform-*.js 647 bytes 238.69kB 0.27%
static/chunks/app/[[...path]]/page-*.js 661 bytes 75.04kB 0.89%
static/chunks/818-*.js 40 bytes 42.07kB 0.1%
static/0eFo_OH1gkrM9RV1SftSN/_buildManifest.js (New) 578 bytes 578 bytes 100.0% 🚀
static/0eFo_OH1gkrM9RV1SftSN/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/DdAv0Lac63TNOEX0PmHl4/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/DdAv0Lac63TNOEX0PmHl4/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/app/[[...path]]/page-*.js:

  • ./src/components/linkToActivePlatform.tsx → Total Size: 1.31kB

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

  • ./src/constants/localStorage.ts → Total Size: 54 bytes

  • ./src/components/platformSelector/index.tsx → Total Size: 19.74kB

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.

1 participant