Migrate AuthScreens to useOnyx#55528
Conversation
…eset after logout
…Client in AuthScreens
blazejkustra
left a comment
There was a problem hiding this comment.
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.
Is this memoization necessary?
There was a problem hiding this comment.
Good point 👌 I believe it might be removed
There was a problem hiding this comment.
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.
No worries, lgtm either way
|
@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 |
|
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.
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 🚀
|
| CLOUDFRONT_URL, | ||
| EMPTY_ARRAY, | ||
| EMPTY_OBJECT, | ||
| EMPTY_STRING: '', |
There was a problem hiding this comment.
@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.
Sure, thanks for noticing that :) I'll prepare a PR
| 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.
| 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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