-
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
[HOLD for payment 2024-06-20] [$500] [Search v1] LHN shows Not found
when navigated from global create menu
#42995
Comments
cc @adamgrzybowski can you take a look please? |
Triggered auto assignment to @alexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Non supported currency turns error What is the root cause of that problem?On the Search page, when an expense or any other type of report is submitted, or when the header link in a report is clicked, the action performed is as follows: Line 3498 in e6c89d9
The The propblem is within App/src/libs/Navigation/dismissModalWithReport.ts Lines 53 to 63 in 9a63031
When What changes do you think we should make in order to solve the problem?We should change the order and prioritize const action: StackNavigationAction = getActionFromState(reportState, linkingConfig.config);
if (action) {
action.type = 'REPLACE';
navigationRef.dispatch(action);
}
if (shouldOpenAllWorkspace) {
switchPolicyID(navigationRef, {route: ROUTES.HOME});
} else {
switchPolicyID(navigationRef, {policyID, route: ROUTES.HOME});
} POC video:20240603_225950.mp4What alternative solutions did you explore? |
Job added to Upwork: https://www.upwork.com/jobs/~015dea8a0a2e4109e9 |
Not found
when navigated from global create menuNot found
when navigated from global create menu
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
@c3024 @adamgrzybowski let me know what you think of the proposal above |
ProposalPlease re-state the problem that we are trying to solve in this issue.LHN shows not found when pressing the report parent navigation or submitting an expense from global create while on the search page. What is the root cause of that problem?When pressing the parent navigation link, we use App/src/components/ParentNavigationSubtitle.tsx Lines 39 to 48 in 1d5f83d
Because the report screen is in RHP and it's the only screen, we navigate with the UP navigation type, which will replace the current screen with the report screen, App/src/libs/Navigation/Navigation.ts Lines 219 to 222 in 1d5f83d
App/src/libs/Navigation/linkTo/index.ts Lines 85 to 86 in 1d5f83d
but the bottom tab navigator screen isn't changed. The bottom tab navigator screen should be updated if the navigation target is a central pane screen, which is true for our case, however, the UP type case is prioritized as you can see from the if condition below. App/src/libs/Navigation/linkTo/index.ts Lines 85 to 101 in 1d5f83d
Previously, we had a FORCED_UP type which is always prioritized first and then the UP type will be checked after checking the central pane screen,
but now, the FORCED_UP is removed and replaced with UP in #42335. For the second issue, after submitting an expense, we call Line 3498 in 1d5f83d
What it will do is it will replace the current screen with a report screen and also update the bottom tab screen by App/src/libs/Navigation/dismissModalWithReport.ts Lines 51 to 63 in 1d5f83d
App/src/libs/Navigation/switchPolicyID.ts Lines 85 to 91 in 1d5f83d
The bottom tab screen will be based on the App/src/libs/Navigation/switchPolicyID.ts Lines 78 to 81 in 1d5f83d
Previously, we checked whether the But it's changed in #42335 too because the const is now removed. What changes do you think we should make in order to solve the problem?To fix the 2nd issue, we can use the old approach by adding back the const,
or update
To fix the 1st issue, we can either:
and add another type check in the first if to change the action type. App/src/libs/Navigation/linkTo/index.ts Line 103 in 1d5f83d
|
@bernhardoj Thanks for this great proposal! For the issue with dismiss modal I personally prefer this solution: For the issue in the |
I agree with @bernhardoj's proposal since it covers both nav issues. Let's implement @adamgrzybowski's suggestion though. |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@bernhardoj Quick note for visibility: This PR is quite high value, so I'm going to double the value to reflect that. Can you make this your top priority? Thanks! |
Not found
when navigated from global create menuNot found
when navigated from global create menu
Upwork job price has been updated to $500 |
@JmillsExpensify hi, it's late for me now, this will be my first thing to work tomorrow. |
Thank you for confirming! Sounds good |
Awesome, looks like this PR is moving forward. Thanks! |
PR is merged. |
This comment was marked as resolved.
This comment was marked as resolved.
Weekly Update: Waiting for this PR to go to prod |
Not found
when navigated from global create menuNot found
when navigated from global create menu
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-18. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Not found
when navigated from global create menuNot found
when navigated from global create menu
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-20. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Hi - is this issue going to remain open for a while? I'm interested to contribute to the problem statement. |
📣 @awongCM! 📣
|
Thanks. I'll take a look in my own spare time. Cheers. |
Flagging that the payment day is on June 20 |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Not found
when navigated from global create menuNot found
when navigated from global create menu
Payouts due: 2024-06-20
Upwork job is here. Closing, everyone here has been paid and I've closed the job in Expensify. I've also manually corrected the amount due in Upwork as a bonus. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number:
Reproducible in staging?:
Reproducible in production?:
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
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Action Performed:
There are two issues here:
Issue 1
not found
Issue 2
not found
Expected Result:
Navigation should work
Actual Result:
LHN shows
not found
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alexpensifyThe text was updated successfully, but these errors were encountered: