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
[$250] Chat - Onboarding modal opens briefly, Concierge chat is with red dot in LHN if open public room #45157
Version Number: 9.0.6-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:https://expensify.testrail.io/index.php?/tests/view/4706407 Issue reported by: Applause - Internal Team
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
@arosiclair 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
changed the title [-]Chat - Onboarding modal opens briefly, Concierge chat is with red dot in LHN if open public room[/-][+][$250] Chat - Onboarding modal opens briefly, Concierge chat is with red dot in LHN if open public room[/+]on Jul 10, 2024
But we didn't check here if the user is anonymous and inside the hasCompletedGuidedSetupFlowSelector function we didn't check if the onboarding value is undefined.
Because when onboarding data has not yet been applied or is still in the process the value is undefined, so if we check if it's an array it will return false and will return the user has not yet completed onboarding
Correction: There was another case for empty onyx state. I've moved to the public user + empty user check.
I wanted to verify the red dot though and I think we shouldn't handle it on the front-end at all, because it's coming from the errorFields on the back-end side
Activity
melvin-bot commentedon Jul 10, 2024
Triggered auto assignment to @arosiclair (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Jul 10, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
lanitochka17 commentedon Jul 10, 2024
@arosiclair 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
lanitochka17 commentedon Jul 10, 2024
We think that this bug might be related to #vip-vsp
lanitochka17 commentedon Jul 10, 2024
Production:
Recording.2094.mp4
mountiny commentedon Jul 10, 2024
cc @filip-solecki @allgandalf @adamgrzybowski I believe this might be related to or change here #44536
BrtqKr commentedon Jul 10, 2024
Hey, I'm developer from SWM. I'd like to take care of this ticket
6 remaining items
[-]Chat - Onboarding modal opens briefly, Concierge chat is with red dot in LHN if open public room[/-][+][$250] Chat - Onboarding modal opens briefly, Concierge chat is with red dot in LHN if open public room[/+]melvin-bot commentedon Jul 10, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01da353289531b3f7e
melvin-bot commentedon Jul 10, 2024
Current assignee @allgandalf is eligible for the External assigner, not assigning anyone new.
mountiny commentedon Jul 10, 2024
The onboarding modal should not show for anonymous accounts and Concierge chat loads without red dot in LHN
NJ-2020 commentedon Jul 11, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The onboarding modal opens briefly and the Concierge chats with a red dot in LHN if we open a public room
What is the root cause of that problem?
On Navigation root, we redirect the user to Onboarding when the user has not yet completed
App/src/libs/Navigation/NavigationRoot.tsx
Lines 90 to 93 in a91b7f8
But we didn't check here if the user is anonymous and inside the
hasCompletedGuidedSetupFlowSelectorfunction we didn't check if the onboarding value is undefined.Because when onboarding data has not yet been applied or is still in the process the value is undefined, so if we check if it's an array it will return false and will return the user has not yet completed onboarding
App/src/libs/hasCompletedGuidedSetupFlowSelector.ts
Lines 4 to 10 in a91b7f8
What changes do you think we should make in order to solve the problem?
We can check if the user is not anonymous inside this condition
App/src/libs/Navigation/NavigationRoot.tsx
Lines 90 to 93 in a91b7f8
And we can use this logic for the
hasCompletedGuidedSetupFlowSelectorfunctionApp/src/libs/actions/Welcome.ts
Lines 50 to 52 in a91b7f8
And by doing this, it also resolves the Concierge red dot
What alternative solutions did you explore? (Optional)
NJ-2020 commentedon Jul 11, 2024
@allgandalf Please kindly review my proposal
BrtqKr commentedon Jul 11, 2024
Regarding the onboarding it was enough to apply the condition for authenticated as in this commit from yesterday.
Correction: There was another case for empty onyx state. I've moved to the public user + empty user check.
I wanted to verify the red dot though and I think we shouldn't handle it on the front-end at all, because it's coming from the errorFields on the back-end side
mountiny commentedon Jul 12, 2024
I believe we have reverted the offending PR and the fix will be handled in the original scope of that change