Rename Copy as prompt to Copy prompt, convert FixOption to FixCard#95309
Merged
Conversation
Contributor
Stats cancelledCommit: ae99b75 |
Contributor
Tests PassedCommit: ae99b75 |
…relative, bump dev-overlay Copy prompt padding
Contributor
There was a problem hiding this comment.
Pull request overview
Standardizes the “Insight” fix-card UI across the dev overlay and docs by aligning on a single copy-button label (“Copy prompt”) and a single MDX component shape (FixCardGrid/FixCard) that matches the framework’s fix-card data model.
Changes:
- Dev overlay: rename the copy action label from “Copy as prompt” to “Copy prompt”, and adjust associated button styling.
- Docs + insight error pages: migrate from
<FixOption>to<FixCardGrid>/<FixCard>and inline the framework snippet arrays for visual consistency. - Authoring guidance: update the
insight-error-pageskill to reflect the new component/label and require a full “Related Insights” index.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/next/src/next-devtools/dev-overlay/components/instant/instant-guidance.tsx | Renames the copy action label and tweaks button layout styles. |
| packages/next/src/next-devtools/dev-overlay/components/instant/instant-guidance-data.ts | Updates FixCard type docs/comments to match the new wording and snippet-part docs. |
| errors/instant-unrendered-segment.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/instant-link-prefetch-partial.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-viewport-runtime.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-viewport-dynamic.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-runtime.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-dynamic.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-random.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-random-client.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-current-time.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-current-time-client.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-crypto.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-crypto-client.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| errors/blocking-prerender-client-hook.mdx | Converts fix UI to FixCardGrid/FixCard, updates internal docs links, adds “Related Insights”. |
| docs/01-app/02-guides/migrating-to-cache-components.mdx | Aligns example fix-card snippets with framework snippet shape. |
| docs/01-app/02-guides/instant-navigation.mdx | Adds note about “Copy prompt” and aligns snippets with framework snippet shape. |
| .agents/skills/insight-error-page/SKILL.md | Updates skill guidance for FixCard usage + label change (but checklist still mentions “Useful links”). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…ht-error-page skill
icyJoseph
reviewed
Jul 1, 2026
io() is not yet on stable, so relative /docs links to it 404 on nextjs.org. Point the 12 io() links at preview.nextjs.org until it ships; other API links stay relative.
icyJoseph
approved these changes
Jul 1, 2026
icyJoseph
left a comment
Member
There was a problem hiding this comment.
Approving though there might be some links that are still being fixed.
… relative The preview->relative conversion was too broad: links to pages that are new or updated for 16.3 (instant, cacheComponents, use-cache, connection, instant-navigation, glossary, streaming, etc.) 404 on stable nextjs.org because those pages are missing or stale there. Point those at preview; keep genuinely-unchanged-since-16.2 pages (Pages Router, image, css, draft-mode, etc.) and all /docs/messages links relative.
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.
Why
Standardize the Insight fix UI across the dev overlay and docs, and round out the docs side with a proper family index at the bottom of every page.
What
errors/*.mdx, 15 files):<FixOption>-><FixCardGrid>/<FixCard>with snippets copied verbatim frominstant-guidance-data.ts; allhttps://preview.nextjs.org/docs/...URLs converted to relative/docs/....## Related Insightsindex listing the other 14 Insight pages (self omitted).instant-navigation.mdxandmigrating-to-cache-components.mdx: dropped the stray trailing}snippet line so guide cards match dev-overlay heights; added a one-line Copy prompt note linking to#ai-workflow.insight-error-pageskill: replaced the "Useful links" guidance with "Related Insights" (full family index, no API refs/guides) and matching audit-checklist line.instant-guidance-data.ts(trimmed verbose JSDoc to non-obvious bits).How
Paired with vercel/front#75443 which adds the Copy prompt button to
<FixCard>and deletes the legacy<FixOption>.pnpm --filter=next typesclean, 23instant-guidance-datatests pass.