Closed techievivek closed 2 months ago
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ZhenjaHorbach (External
)
Triggered auto assignment to @anmurali (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.
Update the magic code expired page to include a link to take user to login page
New feature
on ExpiredValidateCodeModal
add a link <TextLink onPress={goToSignIn}v ...
that redirect the user the signin page
We can use the Session.signOutAndRedirectToSignIn()
as used on the AnonymousReportFooter
Update the magic code expired page to include a link to take user to login page
New feature
In https://github.com/Expensify/App/blob/a2f29e50bd5816e1756cded43ffaf6f02e5a276f/src/languages/en.ts#L436, add a translation for request one here
requestOneHere: 'request one here',
And update translation for expiredCodeDescription
to remove the ending dot.
In https://github.com/Expensify/App/blob/a2f29e50bd5816e1756cded43ffaf6f02e5a276f/src/components/ValidateCode/ExpiredValidateCodeModal.tsx#L15, get the credentials
from Onyx
const [credentials] = useOnyx(ONYXKEYS.CREDENTIALS);
Next, update https://github.com/Expensify/App/blob/a2f29e50bd5816e1756cded43ffaf6f02e5a276f/src/components/ValidateCode/ExpiredValidateCodeModal.tsx#L28 to
<Text style={styles.textAlignCenter}>
{translate('validateCodeModal.expiredCodeDescription')}
{translate('validateCodeModal.or')} <TextLink onPress={() => {
Session.beginSignIn(credentials?.login);
Navigation.goBack();
}}>{translate('validateCodeModal.requestOneHere')}</TextLink>
</Text>
In there, we'll trigger sending the magic code again by calling Session.beginSignIn
, this is what we also do when clicking Continue
the first time here. Please note that requesting a new code is what we want, not clearing the account data, because the CTA here is request one here
, the user wants a new magic code/email, they will not like to enter the email again and type in the code again (which is what will happen if we call sign out/clear sign in data)
And the Navigation.goBack
will direct the user back to the sign in page, where they will see the magic code form to fill in the new code that they just received. (Alternatively we can navigate back to sign in page by other means like Navigation.navigate
, ...)
The copy above can be changed depending on the design team's requirement.
@devguest07 @nkdengineer Thank you for your proposals !
@devguest07 Unfortunately, your solution works a little unpredictable After testing, I noticed that after pressing the text we return to the magic code sign-in page (with invalid magic code from route)
https://github.com/Expensify/App/assets/68128028/f07a245b-a317-4ed0-82d9-7ae033bb2de4
Plus signOutAndRedirectToSignIn
doesn't really suit us
Since we don't need to sign out of our account
We need to return to the screen to request new code (following the requirements)
@nkdengineer Your solution works well ! And meets the requirements So I'm happy to go with this proposal
🎀👀🎀 C+ reviewed
Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
⚠️ Looks like this issue was linked to a Deploy Blocker here
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.
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.13-4 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-08-05. :confetti_ball:
For reference, here are some details about the assignees on 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:
[Upwork Job]()
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:
- [x] [@ZhenjaHorbach] The PR that introduced the bug has been identified. Link to the PR:
New feature
- [x] [@ZhenjaHorbach] 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
- [x] [@ZhenjaHorbach] 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
- [x] [@ZhenjaHorbach] Determine if we should create a regression test for this bug.
- [x] [@ZhenjaHorbach] 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.
Regression test proposal
Do we agree 👍 or 👎
Not overdue Waiting for payment
Not overdue, waiting for the payment to be done.
Not overdue
@anmurali Could you please make the payment ?
Not overdue, still waiting on payment.
@ZhenjaHorbach - https://www.upwork.com/nx/wm/offer/103567268 @nkdengineer -https://www.upwork.com/nx/wm/offer/103567272
@anmurali My offer was accepted 🙇
My offer was accepte
and mine too
Not overdue
@anmurali We are ready to payment !
@anmurali, @techievivek, @ZhenjaHorbach, @nkdengineer Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Everyone is paid and regression test added.
This is how the magic code sign-in page currently looks when you validate via link from the email.
It includes a link to allow users to log in on the same device. However, the magic code expiration page lacks this convenience. Users must manually change the URL to initiate a sign-in.
To improve the user experience, please update the magic code expiration page to include a link that redirects the user back to the sign-in page.
This issue was discussed internally here: Slack Discussion
Copy for verification
request one here
can be used as hyperlink to take user to sign-in page.