Skip to content

chore(templates): documentation-technical copies with Core's useClipboard - #12024

Merged
josephfarina merged 1 commit into
mainfrom
josephfarina/cleanup-documentation-technical
Nov 16, 2026
Merged

josephfarina merged 1 commit into
mainfrom
josephfarina/cleanup-documentation-technical

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

What

The Copy prompt button in the documentation-technical page template now uses Core's useClipboard hook instead of calling navigator.clipboard directly.

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

  • Pixel-identical at 390 and 1280 px, with script on and off (full-page screenshots before and after, zero changed pixels).
  • Behavior unchanged in a browser check.
  • Build replay over real build requests: no start, alternatives list or block list changes.
  • Typecheck (strict, no unused locals), lint and prettier pass.

Scope

  • One change, in one page template.
  • Public text contains no internal context.

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 16, 2026 8:02am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 8:11 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Automated review (maintainer link)

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 36c165e

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.12 MB packed (+3 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@josephfarina
josephfarina merged commit aad0d36 into main Nov 16, 2026
77 checks passed
@github-actions
github-actions Bot deleted the josephfarina/cleanup-documentation-technical branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 36c165ea Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant