-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Payment due 08-23][$250] Expensify card - Expensify card page content is reloaded upon navigating back #48172
Comments
Triggered auto assignment to @Christinadobrzyn ( |
@Christinadobrzyn FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #wave-collect - Release 2 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expensify card page reloads every time the page gets refocused. What is the root cause of that problem?We have a App/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx Lines 30 to 36 in 1bb1131
This is a common pattern within the workspace page, for example, in categories. App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx Lines 78 to 82 in 1bb1131
The refetch will set the App/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx Lines 47 to 53 in 1bb1131
What changes do you think we should make in order to solve the problem?If we don't want to show the loading every time we refetch the data, we can change the condition to check whether the data exists or not.
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Expensify card page reloads every time the page gets refocused. What is the root cause of that problem?
We fetch data every time the screen is focused. When we call the OpenPolicyExpensifyCardsPage API, we set cardSetting.isLoading to true in optimisticData. This causes the page to display a loading indicator each time it is re-focused. What changes do you think we should make in order to solve the problem?The cardSettings condition is unnecessary because it always contains the isLoading field and is always truthy. We only need to ensure that cardsList is available before displaying it. If there are no cards, the backend returns cardSetting as undefined, so we don't need to include cardSetting in the condition for displaying the offline indicator. cardSetting
We should remove the isLoading field from cardSettings by eliminating the optimistic data, success data, and failure data in the openPolicyExpensifyCardsPage API. What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~01c51dda0396acf8a0 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
This is pretty minor, I don't know if we need to do this. @aimane-chnaif what do you think? |
Agree but I think we can polish this for better user experience. I will leave the decision to assigned engineer. |
Triggered auto assignment to @deetergp, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@deetergp, @Christinadobrzyn, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Triggered auto assignment to @strepanier03 ( |
I'm going to be ooo 9/4-9/10. @strepanier03 we are discussing if this needs to be fixed or if it should just be closed. @deetergp, can you check this issue out and let us know if you think we should fix it or close the issue. TY! |
PR in production today so setting payment due date. I think payment will be Payouts due:
Will you both remind me if you're paid in Upwork or NewDot (sorry I always ask). |
Payment day- payment summary is here - #48172 (comment) Do we need a regression test? |
upwork for me, newDot for @bernhardoj |
Regression Test
|
Yes, ND for me. Requested in ND. |
$250 approved for @bernhardoj |
Thanks @aimane-chnaif and @bernhardoj! Regression test - https://github.com/Expensify/Expensify/issues/430723 |
Hey @abekkala! I'm going to be ooo until 9/30 -
Everything else is done! TY! |
Triggered auto assignment to @abekkala ( |
@aimane-chnaif if you can accept the offer sent by @Christinadobrzyn I can get that paid out - thanks! |
I'm back @abekkala - thanks for watching this! I'll reach out to @aimane-chnaif in a DM about payment. |
I'm gonna move this to weekly since we're just waiting on paying @aimane-chnaif in Upwork. |
Paid @aimane-chnaif in Upwork. payment summary here - #48172 (comment) Closing as complete! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.25-4
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Issue found when executing PR #47844
Action Performed:
Expected Result:
It shouldn't reload
Actual Result:
Expensify card page content is reloaded upon navigating back. On mWeb, it only reloads if you background the app and open it again
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6584394_1724779750139.bandicam_2024-08-27_19-23-53-146.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ChristinadobrzynThe text was updated successfully, but these errors were encountered: