Skip to content

Conversation

@evanpurkhiser
Copy link
Member

Prior to this change all code elements would be copied, so if the
markdown content inside a expandable alert included single-backtick
style <code>whatever</code> nodes, those would end up in the copied
content.

The intention of this component is definitely intended to just copy the
CodeBlock content.

Prior to this change all `code` elements would be copied, so if the
markdown content inside a expandable alert included single-backtick
style `<code>whatever</code>` nodes, those would end up in the copied
content.

The intention of this component is definitely intended to just copy the
CodeBlock content.
@evanpurkhiser evanpurkhiser requested a review from a team June 9, 2025 20:19
@vercel
Copy link

vercel bot commented Jun 9, 2025

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

Name Status Preview Comments Updated (UTC)
develop-docs ❌ Failed (Inspect) Jun 9, 2025 8:44pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2025 8:44pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Jun 9, 2025 8:44pm

@evanpurkhiser evanpurkhiser enabled auto-merge (squash) June 9, 2025 20:20
@codecov
Copy link

codecov bot commented Jun 9, 2025

Bundle Report

Changes will increase total bundle size by 49 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.86MB 23 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.77MB 26 bytes (0.0%) ⬆️

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.63MB -0.0%
../instrumentation.js -3 bytes 957.45kB -0.0%
9523.js -3 bytes 933.5kB -0.0%
../app/[[...path]]/page.js 32 bytes 586.4kB 0.01%

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

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

  • ./src/components/expandable/index.tsx → Total Size: 6.3kB

  • ./src/components/expandable/index.tsx → Total Size: 460 bytes

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] 32 bytes 3.13MB 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 873.24kB -0.0%
static/chunks/7750-*.js -3 bytes 401.83kB -0.0%
static/chunks/app/[[...path]]/page-*.js 32 bytes 80.18kB 0.04%
static/bALTxBAeZqrwpMn1Bpdo2/_buildManifest.js (New) 616 bytes 616 bytes 100.0% 🚀
static/bALTxBAeZqrwpMn1Bpdo2/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/ZGIZkMxfqOo8qCOg_4uE3/_buildManifest.js (Deleted) -616 bytes 0 bytes -100.0% 🗑️
static/ZGIZkMxfqOo8qCOg_4uE3/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

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

  • ./src/components/expandable/index.tsx → Total Size: 6.92kB

@dcramer
Copy link
Member

dcramer commented Jun 9, 2025

Dupe of #13972 - we could do both changes, though I'm not sure this change with the way its struct ured wouldn't break anything else

auto-merge was automatically disabled June 10, 2025 16:51

Pull request was closed

@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/fix-ui-only-copy-codeblock-expandable-content branch June 10, 2025 16:51
@evanpurkhiser
Copy link
Member Author

Cursor change seems fine for now

@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants