-
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
Fix inconsistent money request and task behavior #50700
Fix inconsistent money request and task behavior #50700
Conversation
@hungvu193 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] |
MoneyRequestConfirmationList Onyx migration is being handled here |
I'm getting not found page on the second tabs. Screen.Recording.2024-10-16.at.09.50.14.mov |
@hungvu193 I sometimes can repro it. The not found page is shown because the transaction draft is cleared when we submit the expense.
But there is a useEffect here that init the money request back when the transaction is cleared. The effect sometimes is triggered while the RHP is closing, but sometimes not. App/src/pages/iou/request/IOURequestStartPage.tsx Lines 64 to 69 in c4fb434
The not found page is also shown when the screen is focused. App/src/pages/iou/request/step/withFullTransactionOrNotFound.tsx Lines 50 to 57 in c4fb434
|
I think we might need to fix it as well. |
Hmm, what should be the expected behavior? The not found view is from |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-18.at.10.20.14.movAndroid: mWeb Chrome// issue with setup iOS: NativeScreen.Recording.2024-10-18.at.10.14.00.moviOS: mWeb SafariScreen.Recording.2024-10-18.at.09.57.13.movMacOS: DesktopScreen.Recording.2024-10-18.at.09.53.31.mov |
@bernhardoj Let's merge main 😄 |
@hungvu193 done |
Looks like there's a deprecation warning for |
Yes, I noted it here |
Ah ok, it looks like in that case we're ok with merging then. |
@francoisl looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Not an emergency, see comments above – the |
✋ 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/francoisl in version: 9.0.52-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.52-5 🚀
|
Details
On the money request confirm page, if no participant is selected, the submit button is disabled. We want to keep it enabled and instead show an error when pressed. Also, a few issue is fixed:
Fixed Issues
$ #50577
PROPOSAL: #50577 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Web/mWeb
Open the same app on 2 tabs
Desktop/iOS/Android
staging.new.expensify.com/create/submit/confirmation/1/7929715303670174
)staging.new.expensify.com/new/task
)PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4