You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page #43585
Version Number: 1.4.82-0 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
Action Performed:
Go to staging.new.expensify.com
On Inbox page, click Inbox icon
Refresh the page
Click Inbox
Expected Result:
The entire page will not blink
Actual Result:
The entire page blinks
This issue is not reproduced on Search and Account settings page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-] Inbox - The entire page blinks when clicking Inbox on Inbox page[/-][+][$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/+]on Jun 14, 2024
In expected, actionForBottomTabNavigator in above should be undefined, so the function will do nothing if user has already been in the /home page, but in this case, actionForBottomTabNavigator in not undefined.
So let's take a look at the getActionForBottomTabNavigator to find the RCA.
In getActionForBottomTabNavigator, we already have logic to do nothing if the current bottom tab is the same as the one we want to navigate to:
In this case, the expected is that isNewPolicy: false but actually, it is true because isNewPolicy = bottomTabParams?.policyID !== payloadParams?.policyID with bottomTabParams?.policyID: undefined and payloadParams?.policyID: '' (we can console.log in this line to see these values).
What changes do you think we should make in order to solve the problem?
Base on the above, we need to cover the case bottomTabParams?.policyID: undefined and payloadParams?.policyID: ''. We can update this:
@truph01 Thank you for your proposal, your RCA is correct and your solution does solve the problem. But this issue is also happening for search page, when you go to search page, refresh and then click on search page expenses list is refreshing and blinking. Ideally we should solve that too
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@alitoshmatov] The PR that introduced the bug has been identified. Link to the PR:
[@alitoshmatov] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@alitoshmatov] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@alitoshmatov] Determine if we should create a regression test for this bug.
[@alitoshmatov] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
changed the title [-][HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/-][+][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/+]on Jul 15, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@alitoshmatov] The PR that introduced the bug has been identified. Link to the PR:
[@alitoshmatov] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@alitoshmatov] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@alitoshmatov] Determine if we should create a regression test for this bug.
[@alitoshmatov] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
changed the title [-][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/-][+][HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/+]on Jul 16, 2024
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: No need
Determine if we should create a regression test for this bug. I don't think regression test is needed since it is pretty noticeable bug
Activity
melvin-bot commentedon Jun 12, 2024
Triggered auto assignment to @puneetlath (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.[-] Inbox - The entire page blinks when clicking Inbox on Inbox page[/-][+][$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/+]melvin-bot commentedon Jun 14, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01f33295394aa2f176
melvin-bot commentedon Jun 14, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (
External)truph01 commentedon Jun 15, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The entire page blinks
This issue is not reproduced on Search and Account settings page
What is the root cause of that problem?
When click on "Inbox" button, we call:
App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar/index.website.tsx
Lines 73 to 76 in 75c104b
In
navigatefunction, this logic is called:App/src/libs/Navigation/linkTo/index.ts
Lines 142 to 146 in 75c104b
In expected,
actionForBottomTabNavigatorin above should beundefined, so the function will do nothing if user has already been in the/homepage, but in this case,actionForBottomTabNavigatorin notundefined.So let's take a look at the
getActionForBottomTabNavigatorto find the RCA.In
getActionForBottomTabNavigator, we already have logic to do nothing if the current bottom tab is the same as the one we want to navigate to:App/src/libs/Navigation/linkTo/getActionForBottomTabNavigator.ts
Lines 31 to 39 in 75c104b
In this case, the expected is that
isNewPolicy: falsebut actually, it istruebecauseisNewPolicy = bottomTabParams?.policyID !== payloadParams?.policyIDwithbottomTabParams?.policyID: undefinedandpayloadParams?.policyID: ''(we can console.log in this line to see these values).What changes do you think we should make in order to solve the problem?
bottomTabParams?.policyID: undefinedandpayloadParams?.policyID: ''. We can update this:App/src/libs/Navigation/linkTo/getActionForBottomTabNavigator.ts
Line 36 in 75c104b
to:
What alternative solutions did you explore? (Optional)
App/src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/BottomTabBar/index.website.tsx
Line 73 in 75c104b
if
currentTabName === SCREENS.HOME. Do the same with other button tabs.alitoshmatov commentedon Jun 18, 2024
@truph01 Thank you for your proposal, your RCA is correct and your solution does solve the problem. But this issue is also happening for search page, when you go to search page, refresh and then click on search page expenses list is refreshing and blinking. Ideally we should solve that too
truph01 commentedon Jun 18, 2024
@alitoshmatov
36 remaining items
melvin-bot commentedon Jul 10, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 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-07-17. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 10, 2024
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:
[-][HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/-][+][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/+]melvin-bot commentedon Jul 15, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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-07-22. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 15, 2024
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:
[-][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/-][+][HOLD for payment 2024-07-17] [$250] Inbox - The entire page blinks when clicking Inbox on Inbox page[/+]puneetlath commentedon Jul 16, 2024
@alitoshmatov friendly reminder about the checklist so we can pay tomorrow.
puneetlath commentedon Jul 17, 2024
@truph01 has been paid. Still waiting on the checklist for @alitoshmatov.
alitoshmatov commentedon Jul 17, 2024
puneetlath commentedon Jul 17, 2024
All paid. Thanks everyone!