Fix/28021: Prevent user from replacing receipt when scanning#32990
Conversation
|
@abdulrahuman5196 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] |
|
Reviewing now |
| * | ||
| */ | ||
| function canEditFieldOfMoneyRequest(reportAction: OnyxEntry<ReportAction>, reportID: string, fieldToEdit: ValueOf<typeof CONST.EDIT_REQUEST_FIELD>): boolean { | ||
| function canEditFieldOfMoneyRequest(reportAction: OnyxEntry<ReportAction>, reportID: string, fieldToEdit: ValueOf<typeof CONST.EDIT_REQUEST_FIELD>, transaction: Transaction): boolean { |
There was a problem hiding this comment.
Shouldn't the transaction be optional here?
There was a problem hiding this comment.
I will check it today
There was a problem hiding this comment.
@abdulrahuman5196 I just added the optional to transaction param.
|
@DylanDylann Could you kindly update the PR as per the discussion here https://expensify.slack.com/archives/C01GTK53T8Q/p1703093134040619 |
|
@abdulrahuman5196 I just updated the PR based on your suggestions |
|
@DylanDylann And Kindly also fix the author's checklist which is failing. |
Co-authored-by: abdulrahuman5196 <46707890+abdulrahuman5196@users.noreply.github.com>
|
@abdulrahuman5196 I just updated |
|
Reviewing now |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-12-31.at.10.56.38.PM.mp4Android: mWeb ChromeScreen.Recording.2023-12-31.at.2.07.48.PM.mp4iOS: NativeScreen.Recording.2023-12-31.at.1.58.51.PM.mp4iOS: mWeb SafariScreen.Recording.2023-12-31.at.2.01.32.PM.mp4MacOS: Chrome / SafariScreen.Recording.2023-12-31.at.1.52.53.PM.mp4MacOS: DesktopScreen.Recording.2023-12-31.at.1.55.15.PM.mp4 |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Gonals
🎀 👀 🎀
C+ Reviewed
|
✋ 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/Gonals in version: 1.4.21-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.21-4 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.21-4 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.21-4 🚀
|
Details
Fixed Issues
$ #28021
PROPOSAL: #28021 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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
Screencast.from.14-12-2023.01.10.31.webm
Android: mWeb Chrome
Screencast.from.14-12-2023.00.57.01.webm
iOS: Native
iOS: mWeb Safari
Screencast.from.14-12-2023.00.57.01.webm
MacOS: Chrome / Safari
Screencast.from.14-12-2023.00.42.23.webm
MacOS: Desktop