-
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
Always close the statement even after visiting multiple statement pages #9712
Comments
Triggered auto assignment to @sonialiap ( |
Triggered auto assignment to @trjExpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @marcaaron ( |
Job on Upwork here: https://www.upwork.com/jobs/~01ce48a3c10dcdbe87 @thienlnam, just to check, does the contributor need access to a beta for this? |
Can someone improve the Action Performed and add steps for how to navigate to statements? |
+1 - it would be helpful to have a video of the existing behavior. I'm not even sure what is being asked here. |
Fair, it's just copying those three URLs above into the browser and clicking
@thienlnam can confirm if there are beta requirements to know about for this project for external. |
I may have found another issue. When I open the URL https://new.expensify.com/statements/202112/ on the browser. I see a blank page. Request return 404 for the page (the reason could be that report is not generated for my account yet). But I think it should be 200 with some sort of UI Or we can handle this ourselves in the App and show a UI when 404 is returned. Logic would be:
|
Ok, super weird now that I understand it... @parasharrajat nice catch, but not really what we are trying to fix here so maybe we can create a new issue for that. |
App/src/pages/wallet/WalletStatementPage.js Line 110 in 35a41d9
So why are we trying to navigate to the previous route in the |
@thienlnam Anyway to reproduce this on dev? When I check out a statement it just looks like this... |
Yeah I'm not sure, I messed around with it a bit and it seemed to be some react-navigation bug. Another thing I was thinking was that the way we've been accessing the statement is modifying the URL so maybe it has to do with that? But the history seems intact so I'm not sure
Should be able to see the statement on dev, any console errors when you see this in the modal? Though I think if you're able to bring up the modal, you should be able to test it still by navigating to multiple statement links and clicking the X and just ignoring what is inside the modal
I think you can still test this without seeing what is actually in the modal since this is mostly about the navigation part of the modal |
I would guess it has more to do with our ever evolving "custom actions" than any issue with |
Pretty confused by this one. The navigation state looks normal, but for some reason going back here causes the entire app to reload. JS logs:
|
What's even weirder is that this doesn't happen with something like the "settings" page which is also a "modal stack". The state looks the same as this more or less. |
Yeah I think it's because we're accessing it by modifying the URL instead of having a dedicated button that opens |
Ah ok, so, this is not unique to the statements. The same issue will happen if you navigate to something like https://new.expensify.com/settings/payments |
P.S. this issue is fixed by #9718 so I'm going to make it internal and assign myself. |
Kewl, taken it down from Upwork. Removing myself as a CM is not required. |
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:
X
on the statement page in the rightDocked side modal - observe you're returned to the URL in Fix spaces #2.X
again - observe that you're returned to the URL in Some initial fixes and code style updates #1.X
again - observe that the rightDocked side modal closesExpected Result:
Describe what you think should've happened
X
) on the modal should close the statement modal and not redirect to the last statement you visitedActual Result:
Describe what actually happened
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Yes, you can either just adjust the URL or just keep pressing
X
until you close the modal outPlatform:
Where is this issue occurring?
Version Number: v1.1.78-8
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Upwork URL: https://www.upwork.com/jobs/~01ce48a3c10dcdbe87
Issue reported by:
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: