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-08-02] [$250] Concierge chat is read as it's selected during the onboarding flow #44728
Concierge chat should be BOLD/UNREAD as the user didn't select the chat yet.
Actual Result:
Concierge chat is read as it's selected during the onboarding flow. When the onboarding option is selected, "Expensify" is auto opened from the LHN so Concierge becomes UNBOLD/READ
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Please re-state the problem that we are trying to solve in this issue.
Concierge chat is read as it's selected during the onboarding flow. When the onboarding option is selected, "Expensify" is auto opened from the LHN so Concierge becomes read.
What is the root cause of that problem?
At the first time users login to App, we have the logic to get the opened report in
Solution 2: Keep open the system chat if account id is odd, otherwise concierge
In findLastAccessedReport function, we can check if the onboarding flow (NVP_ONBOARDING) is not complete, we can simply return the report based on this logic
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-0 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:
[@DylanDylann] The PR that introduced the bug has been identified. Link to the PR:
[@DylanDylann] 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:
[@DylanDylann] 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:
[@DylanDylann] Determine if we should create a regression test for this bug.
[@DylanDylann] 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.
[@Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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:
[@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA
[@DylanDylann] 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: NA
[@DylanDylann] 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: NA
[@DylanDylann] Determine if we should create a regression test for this bug. No
[@DylanDylann] 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.
Activity
melvin-bot commentedon Jul 2, 2024
Triggered auto assignment to @Christinadobrzyn (
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.dominictb commentedon Jul 2, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Concierge chat is read as it's selected during the onboarding flow. When the onboarding option is selected, "Expensify" is auto opened from the LHN so Concierge becomes read.
What is the root cause of that problem?
At the first time users login to App, we have the logic to get the opened report in
App/src/hooks/useLastAccessedReportID.ts
Line 133 in bedfeac
we're trying to remove the system chat in
App/src/libs/ReportUtils.ts
Lines 1228 to 1233 in bedfeac
so the concierge chat is always opened -> it's read
But after complete the onboard flow, we open the system chat if the account id is odd
App/src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx
Lines 74 to 77 in bedfeac
In this case, the accountID is odd -> system chat is opened
What changes do you think we should make in order to solve the problem?
We should keep the opened report consistency.
Solution 1: Keep open the concierge chat
Remove these logic
Solution 2: Keep open the system chat if account id is odd, otherwise concierge
In findLastAccessedReport function, we can check if the onboarding flow (NVP_ONBOARDING) is not complete, we can simply return the report based on this logic
shouldUseOnboardFlow = !isSmallScreenWidth && !hasCompletedGuidedSetupFlow
What alternative solutions did you explore? (Optional)
isFirstTimeNewExpensifyUsercan be used but it's always false -> need to be fixed from BE sideChristinadobrzyn commentedon Jul 2, 2024
I'm not able to reproduce this - the chat has a green icon meaning it's not read
2024-07-02_12-55-05.mp4
asking QA to test again - https://expensify.slack.com/archives/C9YU7BX5M/p1719946606312839
kavimuru commentedon Jul 2, 2024
@Christinadobrzyn tester is still able to reproduce
bandicam.2024-07-02.21-14-26-792.mp4
Christinadobrzyn commentedon Jul 2, 2024
I'm still not able to reproduce this - @dominictb are you able to reproduce this?
MelvinBot commentedon Jul 2, 2024
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
dominictb commentedon Jul 3, 2024
@Christinadobrzyn Yes, I still can reproduce
Christinadobrzyn commentedon Jul 3, 2024
Thanks @dominictb I'm confused what I am doing differently here #44728 (comment) there must be a setting or something?
I'm no longer seeing the three LHN chats -

dominictb commentedon Jul 4, 2024
@Christinadobrzyn It depends on the accountID, if's odd value, we'll be redirected to system chat. I also mentioned it in my proposal:
dominictb commentedon Jul 4, 2024
I don't have the consistent way to reproduce. You can try to create the new account several time util it's the odd accountID. Hope this help
dominictb commentedon Jul 8, 2024
@Christinadobrzyn Can you reproduce this issue with the context above?
36 remaining items
melvin-bot commentedon Jul 26, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 26, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-0 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-08-02. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 26, 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:
Christinadobrzyn commentedon Aug 1, 2024
Payouts due:
@DylanDylann do we need a regression test?
DylanDylann commentedon Aug 2, 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:
[@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA
[@DylanDylann] 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: NA
[@DylanDylann] 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: NA
[@DylanDylann] Determine if we should create a regression test for this bug. No
[@DylanDylann] 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.
Do we agree 👍 or 👎
Christinadobrzyn commentedon Aug 2, 2024
Paid this out based on this payment summary - #44728 (comment)
I'll leave this open for @thienlnam or @dominictb to give an opinion on #44728 (comment)
Then we can close it out!
Christinadobrzyn commentedon Aug 5, 2024
let's close this out without a regression test.
DylanDylann commentedon Aug 26, 2024
@dominictb This PR caused another bug
BUG: Infinity loading in the second login
Screen.Recording.2024-08-22.at.16.09.21.mov