Poc/penina copy button - #189
Draft
Penina-Levy wants to merge 4 commits into
Draft
Conversation
Adds a lucide-style copy icon to the left of the feedback thumbs. Copies both HTML and plain text to the clipboard so links survive paste into rich text targets, and swaps to a checkmark for 2s on success.
Lost in the shared-workspace churn while separating this branch from an unrelated commit. Without it the copy button crashed the component on click.
|
The preview deployment for sefaria/ai-chatbot:server is ready. 🟢 Open app | Open Build Logs | Open Application Logs Last updated at: 2026-08-13 21:53:58 CET |
Left-aligns the icon row with the message text above it, and swaps the copy icon for the provided 18x18 design, recolored to currentColor so it inherits the same --lc-disabled-text/hover color as the thumbs.
Reuses the same Tooltip component and copy/copied i18n keys already used for aria-label, so the bubble text tracks the icon state (Copy -> Copied) and matches the styling of the header tooltips.
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.
Summary
.feedback-btnstyling so default/hover states match the thumbs.text/htmlandtext/plainto the clipboard so links stay clickable when pasted into rich text targets (falls back towriteTextifClipboardItemisn't supported).Test plan
npm run buildsucceeds<a href>link when the source message has a markdown link