Enable copy action for travel details#58246
Conversation
|
@dannymcclain @ntdiary One of you needs to 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] |
|
I think the videos are looking pretty good, but I'm having a hard time seeing the whole flow because the videos are pretty tightly cropped (time-wise). Would you mind uploading videos that show the entire flow more easily? Some of these desktop options are looking pretty narrow - @Expensify/design do we have a minimum width we usually set for these? Lastly, we definitely don't want the menu item to change width once it changes from "Copy to clipboard" to "Copied". |
|
Video for full flow: Screen.Recording.2025-03-12.at.07.22.03-recording.mov |
@ntdiary Do you have any hint about retaining popover width even when the inner content changes? For report action context menu, because there're other menu items with larger width, when |
Totally agree that we should have a min-width. When I made the component, the smallest one I found was |
|
I don't know that we've established one - so I say let's make a new rule! What if we do something like 340px since it's divisible by 4? :) But I definitely agree that having a min-width here would be nice to avoid the size jumping. |
|
320px feels nice to me there, curious what Danny and Jon think too! |
|
320 as the min-width feels good to me too 👍 |
|
Love it! |
|
Lovely—looking good! Thank you! |
|
Looks good to me! |
|
Hi, @gijoe0295, have you pushed the |
|
@ntdiary Oops completely missed that 🙏 I just pushed it. |
| </Text> | ||
| } | ||
| interactive={false} | ||
| helperText={reservation.start.location} |
There was a problem hiding this comment.
Thanks for pointing this out. This was a mistake.
Reviewer Checklist
Screenshots/VideosAndroid: Native58246-android-native.movAndroid: mWeb Chrome58246-android-web.moviOS: Native58246-ios-native.moviOS: mWeb Safari58246-ios-safari.movMacOS: Chrome / Safari58246-mac-chrome.movMacOS: Desktop58246-mac-desktop.mov |
ntdiary
left a comment
There was a problem hiding this comment.
Explanation of Change
- Enable copy feature for travel details:
- Confirmation number in car details
- Flight code & Confirmation number in flight details
- Address & Confirmation number in hotel details
- Train code & Confirmation number in train details
The rows with copy feature enabled are already listed in the OP, and so far, works well. :)
| return; | ||
| } | ||
| showContextMenu(CONST.CONTEXT_MENU_TYPES.TEXT, event, copyValue, popoverAnchor.current); | ||
| onSecondaryInteraction?.(event); |
There was a problem hiding this comment.
Not a blocker, just a simple thought, maybe enabling the copy function would mean no other secondary interaction would happen. :)
There was a problem hiding this comment.
Hmm I think there might be cases where we still need it but I'm not sure.
|
Also I'm not sure why bot didn't assign an internal engineer to review. |
Eh, cc @blimpich for review. 😂 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.1.17-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.17-1 🚀
|








Explanation of Change
min-widthto prevent it from resizing when content changesFixed Issues
$ #57800
PROPOSAL: #57800 (comment)
Tests
Copy to clipboarditem showsCopy to clipboardOffline tests
None
QA Steps
Copy to clipboarditem showsCopy to clipboardPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Android: Native
Android: mWeb Chrome
Screen.Recording.2025-03-12.at.02.11.01.mov
iOS: Native
Screen.Recording.2025-03-12.at.02.06.55.mov
iOS: mWeb Safari
Screen.Recording.2025-03-12.at.02.08.29.mov
MacOS: Chrome / Safari
Screen.Recording.2025-03-13.at.00.02.16.mov
MacOS: Desktop
Screen.Recording.2025-03-13.at.00.07.12.mov