-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Request Money - Request money screen opens again on click of Next button #28129
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @cristipaval ( |
This isn't a deploy blocker anymore. I can reproduce it on NewDot. It's a regression of #27797. |
This is also reproducible in production |
Triggered auto assignment to @peterdbarkerUK ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~013bcacd63e5609ce5 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.It navigates to Request money page with a 0 value What is the root cause of that problem?Here, we're only calling What changes do you think we should make in order to solve the problem?In here we need to force navigate to fallback so it will work correctly for the case
This force fallback appraoch is already used in many cases in the The same thing needs to be done when going back in the
What alternative solutions did you explore? (Optional)In Another way is to manipulate the navigation history to |
@0xmiroslav are we still waiting for other proposals? |
@dukenv0307 this is recent regression. are you able to find offending PR? |
@0xmiroslav sorry I'm not sure which PR causes this (or whether this is a regression) |
I think #26538 is now fully merged. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Coming back to the "Money request" page from the confirmation page reopens the screen on "Next" button. What is the root cause of that problem?When navigating from the App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js Lines 88 to 93 in 87c1967
In case of a split operation, the When navigating back to the App/src/pages/iou/steps/NewRequestAmountPage.js Lines 131 to 142 in d521dd6
As a result, when calculating Lines 2934 to 2942 in 296fc65
What changes do you think we should make in order to solve the problem?First of all, I would like to point out that we shouldn't use the Issue with forceCallbackIf we go to: split confirmation -> back to participants -> uncheck the split users -> click on a user, – we should be able to create a 1:1 money request. The forceCallback will result in the creation of a split request, which is incorrect: Screen.Recording.2023-11-28.at.21.22.28-compressed.mp4My suggestion:First, we should not rely on the App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js Line 64 in 87c1967
Second, I suggest that we should not update the So my suggestion is to remove App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js Lines 88 to 93 in 87c1967
Also, since we won't rely on const shouldReset = iouType === CONST.IOU.TYPE.SPLIT ? !props.iou.isSplitRequest : !isDistanceRequest && props.iou.id !== moneyRequestId;
Optional: + const isFocused = useIsFocused();
useEffect(() => {
+ if (!isFocused) {
+ return;
+ }
// ID in Onyx could change by initiating a new request in a separate browser tab or completing a request
if (!isDistanceRequest && prevMoneyRequestId.current !== props.iou.id) {
... App/src/pages/iou/steps/MoneyRequestConfirmPage.js Lines 114 to 138 in 87c1967
Result (I tried to test different cases: split, manual request, send money):Screen.Recording.2023-11-25.at.12.40.49-compressed.mp4What alternative solutions did you explore? (Optional)Alternatively, if we still want to reset the Reset the useFocusEffect(
useCallback(() => {
IOU.setMoneyRequestId(iouType);
}, [iouType])
) This hook will trigger once we navigate to the page. The simple |
@peterdbarkerUK indeed, the PR we were holding for is now merged. The issue still remains, just with a slightly different root cause. |
@0xmiroslav My proposal will still work fine for this issue. |
@peterdbarkerUK should we remove hold then? |
|
Upwork job price has been updated to $500 |
Isn't this duplicate?? |
Seems like. But that issue was opened on Oct 10, while this – on Sep 25. According to the rules, that one should be closed in favor of this. |
This one needs C+ review, correct? |
friendly bump @0xmiroslav |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
bumped @0xmiroslav on Slack here |
#28618 is merged. |
alright, thank you @0xmiroslav! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
It should navigate to user selection screen
Actual Result:
It navigates to Request money page with a 0 value
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.74.0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-09-25.at.2.41.20.PM.mov
Recording.4746.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tewodrosGirmaA
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695407645834009
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: