Fix for edit amount page flickering#51935
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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-04.at.16.30.00.android.movAndroid: mWeb ChromeScreen.Recording.2024-11-04.at.16.36.11.android.chrome.moviOS: NativeScreen.Recording.2024-11-04.at.16.38.20.ios.moviOS: mWeb SafariScreen.Recording.2024-11-04.at.16.39.06.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-11-04.at.07.05.35.web.movMacOS: DesktopScreen.Recording.2024-11-04.at.07.24.31.desktop.mov |
| shouldKeepUserInput = false, | ||
| }: IOURequestStepAmountProps) { | ||
| const [splitDraftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.SPLIT_TRANSACTION_DRAFT}${transactionID ?? -1}`); | ||
| const [draftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID ?? 0}`); |
There was a problem hiding this comment.
| const [draftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID ?? 0}`); | |
| const [draftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID ?? -1}`); |
I know that we migrated from the previous withOnyx. But for consistency, what do you think? Same as
There was a problem hiding this comment.
Yes, it looks good to update it to -1
| const [draftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID ?? -1}`); | ||
| const [skipConfirmation] = useOnyx(`${ONYXKEYS.COLLECTION.SKIP_CONFIRMATION}${transactionID ?? -1}`); | ||
| const [personalDetails] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST); | ||
| const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${report ? report.policyID : -1}`); |
There was a problem hiding this comment.
@hoangzinh Also, policy update this from '-1' to -1 for consistency
|
✋ 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/srikarparsi in version: 9.0.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.58-2 🚀
|
Explanation of Change
Fixed Issues
$ #50958
PROPOSAL: #50958 (comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR 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.mov
Android: mWeb Chrome
mweb-chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
mweb-safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov