Make report, expense, and member values copyable - #97277
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2b6ff4f686
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@x-dev90 Pls always respond to all codex reviews if you don't agree with the review you should still state it putting 👎 reaction to the comment. |
|
@codex REVIEW |
|
Hi @FitseTLT, I’ve addressed the automated review feedback and pushed the updates. Could you please take another look when you have a chance? Thank you! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90714cc808
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@FitseTLT, gentle bump—thanks! |
|
@FitseTLT can we please try to get this one in |
|
Finalizing |
| }, [helperText, shouldParseHelperText, shouldEscapeText]); | ||
|
|
||
| const shouldRenderTitleAsHTML = shouldRenderAsHTML && !!title && Parser.isHTML(title); | ||
| const shouldRenderTitleAsHTML = shouldRenderAsHTML && !!title && Parser.hasHTMLTags(title); |
There was a problem hiding this comment.
This was introduced while fixing descriptions containing &, which were incorrectly interpreted as HTML and became unselectable on mobile web. Parser.isHTML detects both HTML entities and tags, but this rendering path only needs to detect actual HTML tags. I initially used an inline check, then moved the logic to Parser.hasHTMLTags in response to MelvinBot’s feedback.
I explained this in this comment.
thank you!
There was a problem hiding this comment.
But that doesn't solve the problem from the root cause because now mark down description is not selectable on mobile.
There was a problem hiding this comment.
I addressed this issue. Expense descriptions containing Markdown formatting, such as bold text, are now selectable on mobile web while preserving existing native, desktop, and link-handling behavio:
Screenrecorder-2026-09-12-18-39-32-110.mp4
| style={[ | ||
| styles.flexRow, | ||
| StyleUtils.getMenuItemTextContainerStyle(isCompact), | ||
| !hasPressableRightComponent && !isTitleSelectable && styles.pointerEventsNone, |
There was a problem hiding this comment.
What is the purpose of the change?
There was a problem hiding this comment.
This supports the separate isTitleSelectable behavior introduced following your earlier feedback. During Safari testing, I found that pointerEventsNone prevented selectable titles from receiving native selection gestures, so it is skipped only for opted-in selectable titles. Other MenuItems retain their existing behavior.
There was a problem hiding this comment.
Okay but I was confused because it is applied to the badge compoent 😕 ???
|
BUG 2026-09-10.18-42-21.mp4 |
|
conflicts |
Addressed by clearing the active text selection before applying a new grouping, preventing it from expanding across the regrouped rows. Screencast.From.2026-09-11.16-06-46.mp4 |
|
@FitseTLT I’ve addressed all your feedback. Could you please review the latest changes? Thank you! |
|
@x-dev90 still conflicts |
|
BUG: Map is getting copied (and map is selectable on desktop web ) 2026-09-11.19-31-05.mp4 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
@FitseTLT, addressed thanks! Screencast.From.2026-09-11.22-31-24.mp4Screenrecorder-2026-09-11-22-30-49-272.mp4 |
|
The action failure is not related to the code changes in this PR. |
|
there are other comments unaddressed |
|
I found and addressed this bug.
Before: Screen.Recording.2026-09-11.at.6.33.56.PM.movAfter: Screenrecorder-2026-09-12-09-55-36-360.mp4 |
Explanation of Change
This PR makes copy/paste more reliable for values shown inside interactive rows.
The issue is that many amount, report, expense, and member values are rendered inside pressable rows that disable text selection or prevent the mouse-down event needed to start native browser selection. To fix this, this PR adds an opt-in copyable text path and applies it to the issue scope:
Amount and total values
Member names/emails/custom fields
Reports and expenses page values, including report titles, report IDs, grouped headers, and list column values
Expense detail amount values covered by the issue repro
The copyable text path marks selectable values with the shared copyable text marker, applies selectable text styling, and uses shared row press handling so copyable values can start native selection without opening or selecting the row. It also updates
SelectionScraperso explicitly copyable values are preserved when copying from rows that are otherwise hidden from copied content.Fixed Issues
$ #96948
PROPOSAL: #96948 (comment)
Tests
Offline tests
Same as Test
QA Steps
Same as Tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A
Android: mWeb Chrome
Screenrecorder-2026-09-02-23-26-16-923.mp4
Screenrecorder-2026-09-02-21-30-58-235.mp4
iOS: Native
N/A
iOS: mWeb Safari
Screen.Recording.2026-09-03.at.3.26.53.AM.mov
Screen.Recording.2026-09-03.at.3.21.08.AM.mp4
MacOS: Chrome / Safari
Screen.Recording.2026-07-29.at.11.15.05.AM.mov