Add Copy button to AI summary on help docs search#82947
Conversation
|
@ahmedGaber93 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
| } catch { | ||
| return null; | ||
|
|
||
| if (window.location.pathname.includes('/search')) { |
There was a problem hiding this comment.
only change here is, loading the allowedExternalUrls only on search page
|
@MelvinBot fix svg compression please |
|
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@ahmedGaber93 all yours |
Co-authored-by: Rushat Gabhane <rushatgabhane@users.noreply.github.com>
|
Compressed the SVG assets ( |
|
Should the copy button have some feedback like it does in product? CleanShot.2026-02-19.at.16.36.57.mp4 |
|
will get back to this later this week |
|
didn't get time yet |
|
Let me ask melvin @MelvinBot can you fix the pending tasks for this PR please |
…h 12x12 icons Co-authored-by: Rushat Gabhane <rushatgabhane@users.noreply.github.com>
Co-authored-by: Rushat Gabhane <rushatgabhane@users.noreply.github.com>
|
Addressed the pending tasks:
|
|
Result looks good. 20260308011935312.mp4 |
|
@rushatgabhane @MelvinBot, aren't the files checkmark.svg and checkmark-dark.svg identical? |
|
Yes, Having separate files keeps the pattern consistent with the copy icon's light/dark variants, but if you'd prefer, one could be removed and the same file reused for both schemes. |
That makes sense. |
|
@rushatgabhane @MelvinBot this commit that fixed the Prettier check changes many files that are not related to this PR. I think we should avoid including those changes here to keep the PR simpler and focused. |
|
Good catch — you're right. The prettier commit touched many unrelated files because this branch is significantly behind The better approach would be to:
|
ahmedGaber93
left a comment
There was a problem hiding this comment.
LGTM! Just a small comment that needs to be addressed #82947 (comment) CC @rushatgabhane
|
@MelvinBot merge main and fix conflicts |
Co-authored-by: Rushat Gabhane <rushatgabhane@users.noreply.github.com> # Conflicts: # src/components/FrozenCardHeader.tsx # src/components/LHNOptionsList/LHNOptionsList.tsx # src/components/MoneyRequestConfirmationListFooter.tsx # src/components/MultifactorAuthentication/Context/stateReducer.ts # src/components/ReportActionItem/MoneyRequestReceiptView.tsx # src/components/ReportActionItem/MoneyRequestView.tsx # src/components/VideoPlayer/BaseVideoPlayer.tsx # src/hooks/useReceiptScanDrop.tsx # src/libs/CardUtils.ts # src/libs/Navigation/helpers/getAdaptedStateFromPath.ts # src/pages/iou/request/step/IOURequestStepScan/index.native.tsx # src/pages/iou/request/step/IOURequestStepScan/index.tsx # src/pages/settings/Profile/CustomStatus/VacationDelegatePage.tsx
|
Merged main into the branch and resolved all 13 conflicts. All conflicting files were in |
|
@rushatgabhane I think we need to assign an internal engineer to merge this. |
|
Asking on Slack for an internal engineer to review and merge this PR. |
|
@bernhardoj Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@aldo-expensify would you mind reviewing this please? |
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 9.3.43-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.3.43-3 🚀
|
Explanation of Change
Added a Copy button to the Concierge AI summary panel that copies the response as markdown
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/599634
PROPOSAL:
Tests
Offline tests
QA Steps
Go to help.expensify.com and follow the tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Details
Screen.Recording.2026-02-19.at.16.22.38.mov