Repository navigation
Move the copy controls into the UI kit - #1124
Merged
Merged
Conversation
thesiti92
force-pushed
the
ui/copy-text-kit
branch
from
October 14, 2026 17:51
91400ba to
5d09650
Compare
thesiti92
force-pushed
the
ui/copy-text-kit
branch
from
October 14, 2026 18:23
5d09650 to
ca92f67
Compare
thesiti92
force-pushed
the
ui/copy-text-kit
branch
from
October 14, 2026 21:52
ca92f67 to
099a1e1
Compare
thesiti92
force-pushed
the
ui/copy-text-kit
branch
2 times, most recently
from
October 15, 2026 01:14
0ad4fc5 to
65db91c
Compare
thesiti92
added this pull request to stack #1148
October 15, 2026 01:14
sidkmenon
approved these changes
Oct 15, 2026
copyText, CopyableText, CopyButton and the single copy glyph now live in @canvas/ui/copy, and prompt cards use that glyph instead of their own inline SVG. The kit reads tooltips from a UiHostProvider context that the app installs at its two roots, so it stays free of host imports.
…ent has no tooltip host
thesiti92
force-pushed
the
ui/copy-text-kit
branch
from
October 15, 2026 01:45
65db91c to
51e47ce
Compare
thesiti92
force-pushed
the
ui/copy-text-kit
branch
from
October 15, 2026 01:58
51e47ce to
340b90c
Compare
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.
copyText,CopyableTextandCopyButtonmove frompackages/review/app/src/copy-text.tsxinto the UI kit as@canvas/ui/copy, with one copy glyph instead of two. The kit stays free of app code: the components take their tooltip from a kit-owned host context (ui/host.tsx) whose default does nothing, and the app installsUiHostProviderwith itsuseTooltiponce at each root.Stacked on #1114.
Test plan