-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-02-19] [$250] iOS - Contact method - Nothing happens on tapping the main email & secondary contact in contact methods page #56355
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
Comments
Triggered auto assignment to @MitchExpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~021886927951828663823 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-05 21:42:30 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Fails to enter the contact details page. What is the root cause of that problem?When entering the contact details page, the effect below resets the code to unsent state.
It runs an Onyx merge command. Line 323 in 27780d5
The effect below sees this change from undefined to valid as the contact method just getting verified, so it navigates the page back to the contact list. App/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx Lines 158 to 160 in adc61ce
What changes do you think we should make in order to solve the problem?Only reset the code sent state if the contact method hasn’t been verified yet.
useEffect(() => {
if (loginData?.validatedDate) {
return;
}
resetContactMethodValidateCodeSentState(contactMethod);
}, [contactMethod, loginData?.validatedDate]); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)To prevent the undefined value during the merge, pass
const [loginList, loginListResult] = useOnyx(ONYXKEYS.LOGIN_LIST, {allowStaleData: true}); |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
to the following::
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA What alternative solutions did you explore? (Optional) |
@QichenZhu Thanks for the proposal. Your RCA is correct however the solution does not address the root cause. We should avoid updating that onyx key. |
@truph01 Thanks for the proposal. Your RCA is not correct.
This is not true Screen.Recording.2025-02-05.at.4.08.48.PM.mov |
FWIW, this is a regression from #55405. If we can alter the approved solution there or find another solution that would be probably easier/better. |
Proposal
@s77rt Thanks for your advice! I’ve updated the main solution and moved the previous solution to the alternative section. |
@QichenZhu Thanks for the update. I think that solution may work but I was thinking of something a little different that is to reset the code sent state on the clean up effect. Can you check if we can go with that instead? |
@s77rt Thanks for the feedback! Yeah, it would be better if we could do it in the cleanup phase. But the problem is that cleanup code isn’t always guaranteed to run, for example, when you don’t exit the page gracefully. |
@QichenZhu Good point! Can you double check that your solution works well with accounts that are not verified too? |
@s77rt Tested on iOS, and it works for unverified accounts. Screen.Recording.2025-02-06.at.12.36.37.PM.mov |
@QichenZhu Can you check that after verifying the account we get navigated back correctly? |
@s77rt Yes, it navigates back correctly. Screen.Recording.2025-02-06.at.1.04.50.PM.mov |
@QichenZhu Thank you! The proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @MarioExpensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Very nice and detailed proposal @QichenZhu, let's move forward. Thanks @s77rt! |
📣 @QichenZhu 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.96-1 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 2025-02-19. 🎊 For reference, here are some details about the assignees on this issue:
|
@s77rt @MitchExpensify @s77rt 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
Payment summary:
|
@s77rt @MitchExpensify @QichenZhu @MarioExpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
$250 approved for @s77rt |
@s77rt, @MitchExpensify, @QichenZhu, @MarioExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@QichenZhu paid and contract ended |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.94-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: iPhone 16/iOS 18
App Component: User Settings
Action Performed:
Expected Result:
Actual Result:
Nothing happens on tapping the main email & secondary contact method in contact methods page
Note: On ND Standalone app - When logging with new gmail account, a page to enter magic code appears to verify the account. After verifying account, tapping on main contact method does not respond
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @MitchExpensifyThe text was updated successfully, but these errors were encountered: