Repository navigation
Studio: use copy-01 for every copy button - #11395
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Six copy affordances were still on the lucide copy glyph while the rest of the app had moved to Hugeicons copy-01, so the mark changed shape depending on which button you hit. Point them all at copy-01, and override Streamdown's own copy glyph on the markdown table controls while we are here. The lucide copy import left in window-titlebar.tsx is the restore-window control, not a copy action, so it stays.
shimmyshimmer
force-pushed
the
copy-icon-consistency
branch
from
September 21, 2026 02:30
10f6fbb to
480e975
Compare
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
Six copy affordances were still on the lucide copy glyph while the rest of the app had moved to Hugeicons copy-01, so the mark changed shape depending on which button you hit. Point them all at copy-01, and override Streamdown's own copy glyph on the markdown table controls while we are here. The lucide copy import left in window-titlebar.tsx is the restore-window control, not a copy action, so it stays.
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.
Every copy button in Studio was supposed to be the Hugeicons
copy-01stroke-rounded mark, but six of them were still drawing lucide's copy glyph. The two shapes are close enough that it reads as a rendering bug rather than a deliberate difference: copy a message and you get one mark, copy the code block directly under it and you get another.This points all of them at
copy-01.Changed
components/assistant-ui/image.tsxcomponents/assistant-ui/reasoning.tsxcomponents/assistant-ui/tool-code-cell.tsxcomponents/assistant-ui/tool-ui-code-execution.tsxfeatures/chat/artifacts/artifact-surface.tsxfeatures/settings/tabs/resources-tab.tsxcomponents/assistant-ui/markdown-text.tsxThe last one is not ours to swap directly. Streamdown renders the table controls itself and ships its own copy glyph, so it goes through the
iconsprop instead.strokeWidthis dropped rather than forwarded there because SVG types itstring | numberwhileHugeiconsIconwants a number, and the icon set's own 1.5 is already what the rest of the app shows.Left alone on purpose
components/tauri/window-titlebar.tsxstill imports lucide'sCopy. It is rotated 180 degrees and used as the restore-window control in the desktop titlebar, so it is window chrome that happens to reuse the copy shape, not a copy affordance. Swapping it would change the titlebar for no reason. After this PR it is the only lucide copy glyph left in the bundle, and it lands in the settings chunk alongside the other titlebar icons (arrow-right,minus,square,x).Testing
npm run typecheckpassesnode --experimental-strip-types --testover the copy and icon suites (copy-to-clipboard,thread-fast-copy,chrome-icon-button-consistency,composer-icon-alignment): 66 pass, 0 failnpm run buildsucceeds, and the built bundles carry thecopy-01geometry with no lucide copy glyph outside the titlebar chunkNote on icon version
We pin
@hugeicons/core-free-iconsat 4.1.1. Itscopy-01geometry is slightly different from what hugeicons.com serves today on 4.3.4, same two rounded squares with slightly different offsets. This PR uses the pinned package so every copy button matches the ones already shipping, rather than forking the geometry for seven call sites. If we want the newer shape it should be a package bump in its own PR.