feat: Add inline 'Copy Prompt' button to platform links on getting-started pages#18337
Merged
Conversation
added 2 commits
June 9, 2026 14:22
…arted pages Add an optional `skill` prop to `LinkWithPlatformIcon` that renders an inline copy-prompt button next to platform links that have agent-assisted setup skills. Clicking the button copies the agent setup prompt to the clipboard (e.g., `Use curl to download, read and follow: https://skills.sentry.dev/{skill}/SKILL.md`). Changes: - Extract shared prompt-building utilities into `agentSkillsCallout/shared.ts` - Create `CopyPromptButton` client component with Radix tooltip, Plausible analytics, and Sentry metrics tracking - Update `LinkWithPlatformIcon` to accept optional `skill` prop - Add `skill` props to 20 platform links on the logs getting-started page
…rofiling pages Add copy-prompt buttons to additional platform links: - Logs page: add sentry-node-sdk for server-side JS frameworks (Express, Fastify, Hapi, Koa, Connect, Hono, Bun, AWS Lambda, GCP Functions, Azure Functions) and sentry-browser-sdk for browser-only frameworks (Angular, Ember, Gatsby, Solid, Vue, Wasm) - Metrics page: add skill props to all 47 applicable platform links across JS, Python, Ruby, Go, PHP, .NET, Mobile, and Elixir sections - Profiling page: add skill props to 11 applicable platform links across Continuous, UI, and Transaction-based profiling sections Frameworks with ambiguous SDK mappings (Astro, Nuxt, Remix, SolidStart, Electron, Capacitor) are intentionally left without a skill prop until framework-specific skills are created.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Every sub-framework now inherits its parent platform's skill: - JS full-stack frameworks (Astro, Nuxt, Remix, SolidStart) -> sentry-node-sdk - Electron -> sentry-node-sdk - Capacitor -> sentry-browser-sdk - PHP sub-frameworks (Symfony, Laravel) -> sentry-php-sdk - Ruby sub-frameworks (Rails) -> sentry-ruby-sdk - All .NET sub-frameworks -> sentry-dotnet-sdk Only entries without an available skill remain: Java and Gaming.
Add a `source` attribute to the `docs.copy_ai_prompt` Sentry metric to
distinguish between the full AgentSkillsCallout banner ('callout') and
the new inline platform link buttons ('inline_link'). Existing callers
default to 'callout' so no changes are needed in AgentSkillsCallout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DESCRIBE YOUR PR
Add an inline "Copy Prompt" button next to platform links on interstitial getting-started pages (Logs, Metrics, Profiling). Platforms that have an associated agent-assisted setup skill now show a small purple button that copies the agent setup prompt to the clipboard, giving users immediate access to the AI agent prompt without needing to click through to the platform page first.
What changed
src/components/agentSkillsCallout/shared.ts(new): Extracted shared prompt-building utilities (buildPrompt,buildPromptUrl,buildDotagentsCommand,buildNpxSkillsCommand, constants) so bothAgentSkillsCalloutand the newCopyPromptButtonreuse the same logic.src/components/copyPromptButton/(new): Client component that renders an inline "Copy Prompt" button with:Copy AI Promptevent)next-themessrc/components/linkWithPlatformIcon.tsx: Added optionalskillprop. When present, renders aCopyPromptButtoninline after the platform link.src/components/agentSkillsCallout/index.tsx: Refactored to import fromshared.ts. No behavioral change.docs/product/explore/logs/getting-started/index.mdx: Addedskillprops to platform links.docs/product/explore/metrics/getting-started/index.mdx: Addedskillprops to platform links.docs/product/explore/profiling/getting-started.mdx: Addedskillprops to platform links.Skill mapping
sentry-node-sdksentry-browser-sdkIS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST