Repository navigation
chore(templates): documentation-technical copies with Core's useClipboard - #12024
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approved pending CI: the full CI run has not finished on this head yet.
The Copy prompt button in the documentation-technical template now goes through Core's useClipboard and writes the same prompt with unchanged markup. The one runtime difference is that a refused clipboard write is now caught inside the hook instead of surfacing as an unhandled promise rejection, and nothing on the page shows it. Nothing else is needed from you.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: the Copy prompt button uses Core's useClipboard instead of the clipboard API: verified (page.tsx lines 17, 46 and 103).
- Changeset: pages look and behave the same: verified (same prompt written and unchanged button markup on base and head).
- Changeset: a patch release of the CLI package: verified (the only package changed).
- Description: no design or behavior change: verified; a refused write is now caught instead of left unhandled, which nothing shows.
- Description: pixel-identical at phone and desktop widths, with script on and off: consistent with the code (no markup or style change; without script the button is absent on both).
- Description: behavior unchanged in a browser check: verified in a rendered click test on base and head.
- Description: build replay unchanged: verified (build and search read only the template doc and its rendered components, both unchanged).
- Description: strict typecheck, lint and Prettier pass: verified by running them.
- Description: one change in one page template: verified (two files).
- Description: no internal context in public text: verified.
- File: .changeset/cleanup-documentation-technical.md: clear.
- File: packages/cli/assets/templates/pages/documentation-technical/page.tsx: clear.
PR Analysis Report🔎 Preview ·
|
What
The Copy prompt button in the
documentation-technicalpage template now uses Core'suseClipboardhook instead of callingnavigator.clipboarddirectly.Why
Cleaner template code: the page uses the Core piece that already does this job instead of a hand-written version. No design or behavior change.
Evidence
Scope