-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix User can not validate an account in Desktop app #19125
Conversation
}; | ||
|
||
const DeeplinkRedirectLoadingIndicator = (props) => ( | ||
<View style={styles.deeplinkWrapperContainer}> |
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.
Copied from previous redirect indicator https://github.com/Expensify/App/pull/16383/files#diff-ccbc9d5854dd4a9fa4e90ff053092cf02d44d109a75426d36b8ea72afd3613feL123-L156
} | ||
|
||
deeplinkNeedRedirectLoadingIndicator() { | ||
const validateLoginUrlPattern = '/v($|(//*))'; |
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.
Copied from previous deeplink pattern 8b9ad23#diff-4a06a628c4f2fa783e590af0b888f09723c061691252843b9e5270df3ae95d45L23-L24
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.
/v($|(//*))
@hoangzinh this can be move to CONST file -> REGEX
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.
I updated PR for above suggestion
@bondydaa @rushatgabhane One of you needs to 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] |
Quick bump for code review |
Interesting. Do you mind to go to clear Onyx data in your browser? @bondydaa I still don't know why all of your error related to index.desktop.js, which is weird because we're in web. |
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.
@hoangzinh minor style comments that need to be addressed
@@ -37,8 +38,10 @@ class DeeplinkWrapper extends PureComponent { | |||
this.state = { | |||
appInstallationCheckStatus: | |||
this.isMacOSWeb() && CONFIG.ENVIRONMENT !== CONST.ENVIRONMENT.DEV ? CONST.DESKTOP_DEEPLINK_APP_STATE.CHECKING : CONST.DESKTOP_DEEPLINK_APP_STATE.NOT_INSTALLED, | |||
isOpenLinkInBrowser: false, |
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.
NAB: rename to shouldOpenLinkInBrowser
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.
I updated PR for above suggestion. Thank you
this.setState({isOpenLinkInBrowser: true}); | ||
} | ||
|
||
deeplinkNeedRedirectLoadingIndicator() { |
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.
NAB: rename for clarity that it returns a boolean
deeplinkNeedRedirectLoadingIndicator() { | |
shouldShowDeeplinkLoadingIndicator() { |
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.
I updated PR for above suggestion. Thank you
} | ||
|
||
deeplinkNeedRedirectLoadingIndicator() { | ||
const validateLoginUrlPattern = '/v($|(//*))'; |
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.
/v($|(//*))
@hoangzinh this can be move to CONST file -> REGEX
@@ -170,6 +170,9 @@ export default { | |||
launching: 'Launching Expensify', | |||
expired: 'Your session has expired.', | |||
signIn: 'Please sign in again.', | |||
redirectedToDesktopApp: "We've redirected you to the desktop app.", | |||
youCanAlso: 'You can also', | |||
openLinkInBrowser: 'open this link in your browser', |
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.
@hoangzinh has this been approved by any internal person?
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.
Nah, I copied those text from previous PR https://github.com/Expensify/App/pull/16383/files#diff-22037c1e4dbdea8803b450b3fce06e6c475762a31ecf84b34dc264ba0e443637L158-L163
Basicallly this PR reimplement what we had before. So do I need to ask on Slack again? Or we can make decision 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.
@hoangzinh thanks for confirming, sound good!
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.
yeah i think this is fine
@@ -169,6 +169,9 @@ export default { | |||
launching: 'Cargando Expensify', | |||
expired: 'Tu sesión ha expirado.', | |||
signIn: 'Por favor, inicia sesión de nuevo.', | |||
redirectedToDesktopApp: 'Te hemos redirigido a la aplicación de escritorio.', | |||
youCanAlso: 'También puedes', | |||
openLinkInBrowser: 'abrir este enlace en tu navegador', |
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.
same with translations
@bondydaa The PR tests well! I didn't come across any errors that you've mentioned Screen.Recording.2023-05-20.at.00.09.01.mov |
@bondydaa you need to set the |
LGTM completing the checklist today |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-05-20.at.00.09.01.movMobile Web - ChromeMobile Web - SafariDesktopScreen.Recording.2023-05-20.at.00.09.01.moviOSAndroid |
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.
@bondydaa LGTM!
Bump for code review |
great thanks for this, sorry for the delay. I'm going to pull and test again (with a fresh/clean onyx) but even if I still get errors I think we merge and see what QA finds. |
OH MY 🤦 def missed this |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.3.19-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.19-7 🚀
|
Details
Fixed Issues
$ #17724
PROPOSAL: #17724 (comment)
Tests
Offline tests
This feature can't test when offline
QA Steps
Same as Test
PR 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
Screen.Recording.2023-05-18.at.00.13.06.-.web.mp4
Mobile Web - Chrome
N/A
Mobile Web - Safari
N/A
Desktop
N/A
iOS
N/A
Android
N/A