-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CP Staging] Fix missing context menu options on money request preview #35285
[CP Staging] Fix missing context menu options on money request preview #35285
Conversation
@hoangzinh 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] |
@@ -349,6 +349,7 @@ function ReportActionItem(props) { | |||
// If originalMessage.iouReportID is set, this is a 1:1 money request in a DM chat whose reportID is props.report.chatReportID | |||
chatReportID={originalMessage.IOUReportID ? props.report.chatReportID : props.report.reportID} | |||
requestReportID={iouReportID} | |||
reportID={props.report.reportID} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use my alt solution as it's much easier to understand.
@srikarparsi let me know if you need a C+ to review this DB PR |
Hi @hoangzinh, yes that would be great, thank you |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-29.at.06.20.37.android.movAndroid: mWeb ChromeScreen.Recording.2024-01-29.at.06.19.17.android.chrome.moviOS: NativeScreen.Recording.2024-01-29.at.06.21.37.ios.moviOS: mWeb SafariScreen.Recording.2024-01-29.at.06.23.14.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-01-29.at.06.15.25.web.movMacOS: DesktopScreen.Recording.2024-01-29.at.06.18.28.desktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Originally I thought about whether we pass duplicated props (chatReportID
and reportID
) into the component. But after I checked the Report Onyx type:
Lines 87 to 91 in c5ca9a8
/** ID of the report */ | |
reportID: string; | |
/** ID of the chat report */ | |
chatReportID?: string; |
It looks like 2 different things so the alternative solution looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm as well
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…enu-options Fix missing context menu options on money request preview (cherry picked from commit df52347)
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.32-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.32-5 🚀
|
Details
There are some missing context menu options when we long press a money request preview.
Fixed Issues
$ #35244
PROPOSAL: #35244 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-01-28.at.19.33.50.mov
Android: mWeb Chrome
Screen.Recording.2024-01-28.at.19.32.04.mov
iOS: Native
Screen.Recording.2024-01-28.at.19.30.04.mov
iOS: mWeb Safari
Screen.Recording.2024-01-28.at.19.28.20.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-28.at.19.28.54.mov
MacOS: Desktop
Screen.Recording.2024-01-28.at.19.29.20.mov