-
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
Add EmailDeliveryFailure view #19508
Conversation
…aildeliveryissue
…aildeliveryissue
…aildeliveryissue
…aildeliveryissue
Some changes going on with the |
Looks like there's a WIP PR to migrate that component again so holding off until that's merged |
#20708 is in review so going to continue to hold off on making changes |
}); | ||
|
||
let welcomeHeader; | ||
let welcomeText; | ||
if (shouldShowValidateCodeForm) { | ||
if (shouldShowValidateCodeForm || shouldShowResendValidationForm) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were somehow returning true for shouldShowResendValidationForm
(which I think should probably be removed) but never had any logic for setting the welcomeHeader
or welcomeText
for that view. Now we do 😅
Ah, sorry about that @Santhosh-Sellavel, should be good now |
EmailDeliveryFailurePage.displayName = 'EmailDeliveryFailurePage'; | ||
|
||
export default compose( | ||
withLocalize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use useLocalizeHook
here instead of withLocalize
HOC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good catch!
Updated once more 🙇 |
@NikkiWines Keyboard Doesn't disappear automatically on iOS alone. Screen.Recording.2023-07-11.at.8.25.13.PM.mov |
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-07-11.at.8.13.57.PM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-07-11.at.8.21.49.PM.moviOS & AndroidScreen.Recording.2023-07-12.at.2.43.34.AM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than this LGTM, tests well!
@Santhosh-Sellavel added logic to dismiss the keyboard |
useEffect(() => { | ||
if (!isKeyboardShown) { | ||
return; | ||
} | ||
Keyboard.dismiss(); | ||
}, [isKeyboardShown]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a comment why this was added, as it look unnecessary here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM tests well!
@PauloGasparSv Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed to staging by https://github.com/PauloGasparSv in version: 1.3.40-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.40-5 🚀
|
@NikkiWines Can I get an issue created for tracking payment? @mountiny Why the issue was not created automatically here? |
There is a regression in the back end so going to fix that |
@Santhosh-Sellavel issue created! Sorry about that - #22910 |
Details
Adds a new "email delivery failed" view to newDot for when users are blocked because AWS / Mailgun haven't been able to deliver emails to them.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/286767
PROPOSAL: N/A
Tests
NVP.set('expensify_emailDeliveryFailure', {'lastSMTPErrorDatetime': moment.now().addDays(1).toString()});
here
link and confirm it redirects to https://community.expensify.com/discussion/5651/deep-dive-best-practices-when-youre-running-into-trouble-receiving-emails-from-expensify/p1?new=1Back
and confirm it takes you back to login view to enter an email/sms numberNVP.set('expensify_emailDeliveryFailure', null);
in the JS console to unblock your accountOffline tests
NVP.set('expensify_emailDeliveryFailure', {'lastSMTPErrorDatetime': moment.now().addDays(1).toString()});
QA Steps
NVP.set('expensify_emailDeliveryFailure', {'lastSMTPErrorDatetime': moment.now().addDays(1).toString()});
here
link and confirm it redirects to https://community.expensify.com/discussion/5651/deep-dive-best-practices-when-youre-running-into-trouble-receiving-emails-from-expensify/p1?new=1Back
and confirm it takes you back to login view to enter an email/sms numberNVP.set('expensify_emailDeliveryFailure', null);
in the JS console to unblock your accountPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android