-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Implement new layout for SecurityPage #26784
Conversation
6ce9cd9
to
762e82d
Compare
@narefyev91 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] |
@narefyev91 PR is ready for review! Please have a look. Ty 😄 |
Reviewer Checklist
Screenshots/VideosDesktopdesktop.moviOSios.movAndroidandroid.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!
🎀 👀 🎀 C+ reviewed
Thanks, HOLDing this PR due to the ongoing merge freeze. Will likely review + merge on Monday |
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.
Maybe it's actually a problem with the lottie animation itself though (not being the right aspect ratio) |
@roryabraham yeah I think that's issue with the height of lottie file, do we have a max height for it? |
Try this one. had to briefly learn how to use AfterEffects so hopefully it works. 😅 Looks good in the LottieFiles preview |
Can you also merge main into your branch please? |
Sure |
Looks much better 😄 , merged with main as well @roryabraham |
update lottie file
cdc05f8
to
898d0f6
Compare
@shawnborton will you take a look at this and make sure it's satisfactory? If not let me know and I can adjust the lottie animation to zoom it out a bit so it's a bit smaller within the same size bounding box |
This feels pretty good to me, but when you scale things, I'm curious if you are keeping the stroke width at 1px? For example, the stroke widths look different between the safe and the planet. Ideally both should have consistent 1px strokes for everything. BTW how are you opening lottie files in After Effects? I would love to take a look at them this way too. |
Happy to show you! You have to install the bodymovin plugin |
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.
ok, I don't have the 🦅 👀 of @shawnborton but I've done my best to verify in AE that we have 1px stroke everywhere. For now I think I'm going to merge this and if we want to swap out the asset that should be easy for a non-engineer to do later. Hoping this is good enough for now
Edit: Disclaimer – I don't actually know what I'm doing w/ AE and I think it might take me too long to upskill enough to be able to actually adjust anything with the animation quickly – I found a very specific YouTube tutorial which told me how to adjust the bounding box, but beyond that I'm a bit out of my depth
✋ 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/roryabraham in version: 1.3.69-0 🚀
|
@hungvu193 https://expensify.slack.com/archives/C049HHMV9SM/p1694494708815589 It seems it is regression from this PR |
Thank you @DylanDylann |
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.69-2 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.70-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.70-8 🚀
|
title={props.translate('initialSettingsPage.security')} | ||
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS)} | ||
shouldShowBackButton | ||
shouldShowCloseButton |
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 see this is in the design file but the Close buttons are deprecated with the new navigation framework so I am going to remove this
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.
Details
Implement new layout for SecurityPage

Fixed Issues
$ #26775
PROPOSAL: #26775 (comment)
Tests
Offline tests
Same as Tests.
QA Steps
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-09-05.at.21.23.21.mov
Mobile Web - Chrome
RPReplay_Final1693926508.MP4
Mobile Web - Safari
Screen.Recording.2023-09-05.at.22.05.02.mov
Desktop
Screen.Recording.2023-09-05.at.22.03.08.mov
iOS
Screen.Recording.2023-09-05.at.22.09.34.mov
Android
Screen.Recording.2023-09-05.at.22.56.17.mov