Repository navigation
Conversation
BartoszGrajdek
left a comment
There was a problem hiding this comment.
LGTM! Maybe tag design team to confirm it with them?
|
Sure! |
|
Why does it do this behavior in the first place though? It seems like it just goes away automatically? cc @Expensify/design as well |
|
Because of the implementation |
|
Hmm I am not following. Why would we show this modal and then immediately close it? |
|
I think the fact that it is closing immediately instead of sliding down, is a bug |
|
Regardless if it closes immediately or slides down, why do we show the modal quickly and then unshow it right away? The user doesn't even get a chance to read it or interact with it. That feels like the real bug to me. |
|
Ah, sorry for the confusion, the modal is shown for as long ad the user doesn't close it, I just clicked fast to show how inconsistent the in and out animations are 😊 |
|
Ahhhh okay, that makes more sense. Then yeah, the slide down animation feels nicer. |
|
And which option is better the default one ( |
|
Yeah I like the second video you have that adds a little bit of timing. |
|
@shawnborton @situchan 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] |
Same! |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb Chromemchrome.mp4iOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
| type={shouldUseNarrowLayout ? CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED : CONST.MODAL.MODAL_TYPE.CONFIRM} | ||
| innerContainerStyle={{...styles.pb5, ...styles.pt3, ...styles.boxShadowNone}} | ||
| shouldEnableNewFocusManagement={shouldEnableNewFocusManagement} | ||
| animationOutTiming={500} |
There was a problem hiding this comment.
500 is new value, specific to this modal. If this looks much smoother than before, should this be applied to all modals for consistency?
I think we can leave as is for now so suggest to remove this line
There was a problem hiding this comment.
In general, we're now improving user experience related to modal in this issue. This is just a part of bigger change 😊
Here in this PR I was just fixing a small bug that I spotted, while analysing all modals in the app. But I thought it would better look with the longer slide out animation, that's why I asked the design team 📞
Soon all modals will be more consistent in case of animations.
|
Agree that the second video is better 👍 |
|
@situchan could you take a look again? 😊 |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
This is not Emergency the checks were passing, there seems to be some bug with the emergency logic now |
|
✋ 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/mountiny in version: 9.0.52-0 🚀
|
|
This PR is failing for mWeb/Safari and mWeb/Chrome because of issue #51254 |
|
I'm looking into it 🫡 |
|
After some analysis and testing, I believe that the issue is not caused by this PR. The bug was there before and may be more visible now. |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.52-5 🚀
|
|
@mountiny sorry tagging you on this super old PR. Payment for C+ review is missed while I was OOO. |
|
Here it is #72209 |
Details
As a part of improving UX reliability I fixed animation of
RequireTwoFactorAuthenticationModalon native app, as before it was sliding up and later just disappearing.This is how it acted before
before.mov
This is after the change, but here I had the impression that it's sliding down much faster than sliding up
after.mov
So here is a version with
animationOutTiming={500}after_500.mov
Fixed Issues
$ #49354
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
after.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop