-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-11-11] Remove GBR from the account settings on initial signup #47863
Comments
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
Triggered auto assignment to @JmillsExpensify ( |
ProposalPlease 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 Lines 60 to 62 in bf5d743
What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-08-22 14:15:43 UTC. ProposalPlease 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
There are 2 cases. 1 if there is an error which will show the RBR. 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. 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. Lines 60 to 62 in ed04ac4
login A: validated Before: After: OR We can modify |
Edited by proposal-police: This proposal was edited at 2024-08-22 14:23:06 UTC. ProposalPlease 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 Lines 60 to 62 in ed04ac4
and remove App/src/components/Indicator.tsx Line 66 in ed04ac4
What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-09-03 14:02:45 UTC. ProposalPlease 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 Lines 48 to 64 in ed04ac4
What changes do you think we should make in order to solve the problem?
function getLoginListBrickRoadIndicator(loginList: OnyxEntry<LoginList>, session: OnyxEntry<Session>): LoginListIndicator {
if (hasLoginListError(loginList)) {
return CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR;
}
if (hasLoginListInfo(loginList, session)) {
return CONST.BRICK_ROAD_INDICATOR_STATUS.INFO;
}
return undefined;
}
function hasLoginListInfo(loginList: OnyxEntry<LoginList>, session: OnyxEntry<Session>): boolean {
return !Object.values(loginList ?? {})
.filter((field) => session?.email !== field.partnerUserID)
.every((field) => field.validatedDate);
}
App/src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx Lines 48 to 67 in 2d1f8cd
const isDefaultContactMethod = session?.email === login?.partnerUserID;
let description = '';
if (session?.email === login?.partnerUserID) {
description = translate('contacts.getInTouch');
} else if (login?.errorFields?.addedLogin) {
description = translate('contacts.failedNewContact');
} else if (!login?.validatedDate) {
description = translate('contacts.pleaseVerify');
}
let indicator;
if (Object.values(login?.errorFields ?? {}).some((errorField) => !isEmptyObject(errorField))) {
indicator = CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR;
} else if (!login?.validatedDate && !isDefaultContactMethod) {
indicator = CONST.BRICK_ROAD_INDICATOR_STATUS.INFO;
} Optional: We can subscribe to onyx to get the current session. What alternative solutions did you explore? (Optional)
ResultMonosnap.screencast.2024-08-22.19-50-33.mp4 |
Proposal Updated
|
seems like a simple problem, I would approve @bernhardoj's proposal, because they are point out the 🎀 👀 🎀 C+ reviewed |
Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@ntdiary, I guess we only need to remove the GBR which is shown on initial signup. Removing
|
@ntdiary Yeah it is a simple and straightforward problem with simple fix that's why I am giving clear simple proposal I don't know why you are not selecting my proposal which has the same solution as the selected proposal but was the first. |
@Krishna2323, interesting guess, I previously thought the three GBRs in the OP would be completely removed. I can't see the Slack discussion in the OP, so maybe @techievivek can help clarify this behavior further.
@FitseTLT, because your proposal only mentioned modifying the |
@JmillsExpensify, @ntdiary, @techievivek Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Hi @techievivek, when you have some time, could you clarify this case: If a user successfully signs up and then adds a new contact method, should we display the three GBRs in the OP? 🙂 |
That's a good question. I'm not entirely sure what the expected behavior should be. On the one hand, since the user's primary login still needs to be verified, it doesn't make sense to display the GBR to direct the user to verify another login, as verifying this login would make it their primary login. However, on the other hand, we might still want to show the GBR because the user has voluntarily added this login method and may want to validate it. CC @JmillsExpensify @danielrvidal for thoughts on the above. |
If someone adds a secondary login I think it makes sense to add the GBR to all the logins so they know they need to verify them. By that chance, they are taking actions to use us, and thus, we're not as worried about making sure they only see GBRs for onboarding. Curious if @JmillsExpensify agrees on that one? |
@JmillsExpensify, @ntdiary, @techievivek Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not overdue, reached out to Jason for his thoughts on above point. |
Apologies for missing this. I agree with ya'll that we should show GBR for the case where a user has explicitly added a secondary login, as they can't use that until it's verified. |
Ok, thanks for confirming the behavior here. @ntdiary we should be good to move forward now. |
@ntdiary, PR ready for review ^ |
Looks like we haven't made a progress for a while here, any updates? |
This issue has not been updated in over 15 days. @JmillsExpensify, @ntdiary, @techievivek, @Krishna2323 eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
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:
|
@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] |
Payment Summary
BugZero Checklist (@JmillsExpensify)
|
Payment summary:
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal Template
Regression Test ProposalPrecondition:Test:Do we agree 👍 or 👎 |
@JmillsExpensify, can you please send me an offer on Upwork? Thanks |
Sure thing! Doing that now. |
Offer sent. |
Offer accepted :) |
All paid out. Thanks everyone! Pending NewDot payment can be requested, so I'm closing this one out. |
Based on the discussion here:https://expensify.slack.com/archives/C07HPDRELLD/p1724334488573109?thread_ts=1724252245.683699&cid=C07HPDRELLD, we've decided to remove the GBR from the account settings that direct users to validate their login.
Problem
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.
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: