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-11-11] Remove GBR from the account settings on initial signup #47863
This step is an unnecessary diversion during the initial onboarding setup.
Account validation is only required for setting up 2FA and for wallet and bank account-related processes, where we have the validation path integrated into those specific flows.
Solution
Remove the GBR from the account settings that users encounter when signing up on NewDot.
If we also want to hide the GBR on contact methods page then we can check if the login is a default contact method or not and if so, we will not add the GBR.
seems like a simple problem, I would approve @bernhardoj's proposal, because they are point out the hasLoginListInfo function, and then suggested removing it from other components.
changed the title [-]Remove GBR from the account settings on initial signup[/-][+][HOLD for payment 2024-11-11] Remove GBR from the account settings on initial signup[/+]on Nov 4, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ntdiary@JmillsExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other: new feature
Where bug was reported:
2a. Reported on production
2b. Reported on staging (deploy blocker)
2c. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] 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: N/A
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. *
Based on this comment, it seems that we already have a test in place, just need to update it. :)
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Activity
melvin-bot commentedon Aug 22, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary (
External)melvin-bot commentedon Aug 22, 2024
Triggered auto assignment to @JmillsExpensify (
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.FitseTLT commentedon Aug 22, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Remove GBR from the account settings on initial signup
What is the root cause of that problem?
New change : Remove GBR for initial sign up
What changes do you think we should make in order to solve the problem?
Remove this code
App/src/libs/UserUtils.ts
Lines 60 to 62 in bf5d743
What alternative solutions did you explore? (Optional)
bernhardoj commentedon Aug 22, 2024
Edited by proposal-police: This proposal was edited at 2024-08-22 14:15:43 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
We don't want to show the GBR for new unvalidated user.
What is the root cause of that problem?
The GBR will show if the brick road indicator is returned from
getLoginListBrickRoadIndicator.App/src/pages/settings/Profile/ProfilePage.tsx
Line 71 in ed04ac4
There are 2 cases. 1 if there is an error which will show the RBR.
App/src/libs/UserUtils.ts
Lines 56 to 63 in ed04ac4
And the other one if one of the contact methods is not validated yet which will show the GBR.
App/src/libs/UserUtils.ts
Lines 48 to 50 in ed04ac4
What changes do you think we should make in order to solve the problem?
We can remove the validated status check here (and on other components), so GBR won't show if there is a non-validated contact method.
App/src/libs/UserUtils.ts
Lines 60 to 62 in ed04ac4
login A: validated
login B: non-validated
Before:
GBR shows
After:
No GBR
OR
We can modify
hasLoginListInfoto always return false if the login list is only 1, otherwise, use the current logic.cretadn22 commentedon Aug 22, 2024
Edited by proposal-police: This proposal was edited at 2024-08-22 14:23:06 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Remove GBR from the account settings on initial signup
What is the root cause of that problem?
New feature
What changes do you think we should make in order to solve the problem?
Remove these lines
App/src/libs/UserUtils.ts
Lines 60 to 62 in ed04ac4
and remove
() => !!loginList && UserUtils.hasLoginListInfo(loginList)App/src/components/Indicator.tsx
Line 66 in ed04ac4
What alternative solutions did you explore? (Optional)
Krishna2323 commentedon Aug 22, 2024
Edited by proposal-police: This proposal was edited at 2024-09-03 14:02:45 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Remove GBR from the account settings on initial signup
What is the root cause of that problem?
When
hasLoginListInfois true, we show the RBR.App/src/libs/UserUtils.ts
Lines 48 to 64 in ed04ac4
What changes do you think we should make in order to solve the problem?
getLoginListBrickRoadIndicator, then pass it tohasLoginListInfo.hasLoginListInfo, we should filter out the current user and the run.every.App/src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx
Lines 48 to 67 in 2d1f8cd
Optional: We can subscribe to onyx to get the current session.
What alternative solutions did you explore? (Optional)
Result
Monosnap.screencast.2024-08-22.19-50-33.mp4
Krishna2323 commentedon Aug 22, 2024
Proposal Updated
ntdiary commentedon Aug 23, 2024
seems like a simple problem, I would approve @bernhardoj's proposal, because they are point out the
hasLoginListInfofunction, and then suggested removing it from other components.🎀 👀 🎀 C+ reviewed
46 remaining items
[-]Remove GBR from the account settings on initial signup[/-][+][HOLD for payment 2024-11-11] Remove GBR from the account settings on initial signup[/+]melvin-bot commentedon Nov 4, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 4, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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-11-11. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 4, 2024
@ntdiary @JmillsExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Nov 11, 2024
Payment Summary
Upwork Job
BugZero Checklist (@JmillsExpensify)
JmillsExpensify commentedon Nov 11, 2024
Payment summary:
ntdiary commentedon Nov 12, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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: N/A
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again. *
Based on this comment, it seems that we already have a test in place, just need to update it. :)
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
Krishna2323 commentedon Nov 19, 2024
@JmillsExpensify, can you please send me an offer on Upwork? Thanks
JmillsExpensify commentedon Nov 19, 2024
Sure thing! Doing that now.
JmillsExpensify commentedon Nov 19, 2024
Offer sent.
Krishna2323 commentedon Nov 19, 2024
Offer accepted :)
JmillsExpensify commentedon Nov 19, 2024
All paid out. Thanks everyone! Pending NewDot payment can be requested, so I'm closing this one out.