-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Adding Copyable AI Rule Snippets to Docs #13752
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
Bundle ReportChanges will increase total bundle size by 3.57kB (0.02%) ⬆️. 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
|
…ry/sentry-docs into ai-rule-snippets-js-sdks * 'ai-rule-snippets-js-sdks' of https://github.com/getsentry/sentry-docs: Adding AI snippet to logs for nextjs, node, react [getsentry/action-github-commit] Auto commit running eslint fix Fixing import order Fixing ordering of imports Autofix fixing sort Adding typical initialization location for node Adding llm rules snippet for react, node, nextjs Adding support in expandable modal for copy button
Adding snippet copy functionality that users can copy to use in tools like Cursor, Windsurf, or any LLM.
Modified the Expandable component to support a copy property that can used to make snippets copyable in a user friendly way. Screenshot below. Typically this would be a separate PR - but unfortunately the functionality needed to be in place in order for this to work.
Content can be copied and added to a local rules file in the editor and referenced in configuration options - for example...
Per internal discussion, starting with high usage frameworks to start basic and evaluate
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.