-
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
Migrate AuthScreens to useOnyx #55528
Migrate AuthScreens to useOnyx #55528
Conversation
…eset after logout
…Client in AuthScreens
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.
Looks good to me! 🚀
key: ONYXKEYS.ONYX_UPDATES_LAST_UPDATE_ID_APPLIED_TO_CLIENT, | ||
}, | ||
})(AuthScreensMemoized); | ||
export default memo(AuthScreens, () => true); |
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.
Is this memoization necessary?
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.
Good point 👌 I believe it might be removed
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 decided to revert this change and wrap it with memo 🙈 It is safer to have it memoized
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.
No worries, lgtm either way
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.
🚀
@c3024 @MonilBhavsar 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeauthAndroid.movAndroid: mWeb ChromeauthAndroidmWeb.mp4iOS: NativeauthiOS.moviOS: mWeb SafariauthiOSmWeb.MP4MacOS: Chrome / SafariauthChrome.movMacOS: DesktopauthDesktop.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.
LGTM!
This is exciting, great work @WojtekBoman! |
}); | ||
|
||
Navigation.setParams(emptyParams, homeRoute?.key ?? ''); | ||
Onyx.set(ONYXKEYS.IS_CHECKING_PUBLIC_ROOM, 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.
Curious why we didn't migrate 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/deetergp in version: 9.0.89-1 🚀
|
@@ -866,6 +866,7 @@ const CONST = { | |||
CLOUDFRONT_URL, | |||
EMPTY_ARRAY, | |||
EMPTY_OBJECT, | |||
EMPTY_STRING: '', |
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.
@WojtekBoman Could we please revert this? I understand why you did it but adding this constant will encourage contributors to use it to default String IDs and bypass our guidelines. We just had the same issue a while ago and we removed the same constant.
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.
Sure, thanks for noticing that :) I'll prepare a PR
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.
Here's the PR #55714
parse: { | ||
reportID: (reportID: string | undefined) => reportID ?? CONST.EMPTY_STRING, | ||
}, | ||
stringify: { | ||
reportID: (reportID: string | undefined) => reportID ?? CONST.EMPTY_STRING, | ||
}, |
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.
parse: { | |
reportID: (reportID: string | undefined) => reportID ?? CONST.EMPTY_STRING, | |
}, | |
stringify: { | |
reportID: (reportID: string | undefined) => reportID ?? CONST.EMPTY_STRING, | |
}, | |
parse: { | |
// eslint-disable-next-line | |
reportID: (reportID: string | undefined) => reportID ?? '', | |
}, | |
stringify: { | |
// eslint-disable-next-line | |
reportID: (reportID: string | undefined) => reportID ?? '', | |
}, |
Hello - This PR is causing this deploy blocker: #55681 We are going to revert this PR now. Please re-test with this blocker in mind, thank you! |
Revert "Merge pull request #55528 from software-mansion-labs/use-onyx/auth-screens
* main: (76 commits) Update Mobile-Expensify to 9.0.89-7 Update version to 9.0.89-7 Revert "Merge pull request #55528 from software-mansion-labs/use-onyx/auth-screens" Match the horizontal padding in the search router with LHN Update redirects.csv Fix padding in TravelTerms close RHP after provisioning Fix routes to work after page refresh Close RHP Fix bottom padding Add unit test Update redirects.csv Update and rename SAML-SSO.md to Managing-Single-Sign-On-(SSO)-in-Expensify.md Update SAML-SSO.md Make code more readable Add title in the header Fix lint errors Update comment Hide Split Expense from trip rooms Use TextLink and and styles instead of RenderHTML ... # Conflicts: # Mobile-Expensify
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
🚀 Deployed to staging by https://github.com/deetergp in version: 9.0.90-0 🚀
|
Hey 👋 |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.90-6 🚀
|
Explanation of Change
This PR includes the migration of withOnyx to useOnyx in AuthScreens. Additionally, it was necessary to make some navigation changes. Changes introduced in this PR:
Fixed Issues
$ #49103
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-01-21.at.15.32.35.mp4
MacOS: Desktop
Screen.Recording.2025-01-21.at.15.29.02.mp4