-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Wave Collect] [Xero] Remove text jitter for More Features modal #42919
[Wave Collect] [Xero] Remove text jitter for More Features modal #42919
Conversation
Is there someone else who will review this or shall I go ahead? |
@c3024 This will be reviewed by @hungvu193 or @rushatgabhane. Thanks for checking. I am still left with adding screencasts for all platforms. No electricity. Will update when it comes back. |
@mananjadhav nothing urgent, could you please briefly explain the changes. Why and how it's fixed 😁 |
@rushatgabhane I've updated the Details section and also uploaded all the screencasts. |
@rushatgabhane @hungvu193 Can one of you help with the review here? |
It's being late here. I can do a quick review in my morning if Rushat isn't available |
Tomorrow is fine, either one of you can do it. Thank you 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-06-03.at.09.48.01.movAndroid: mWeb ChromeiOS: NativeIOS.moviOS: mWeb SafarimSafari.movMacOS: Chrome / SafariChrome.movMacOS: DesktopDesktop.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! 🚀
@lakchote This will be ready for your final review |
✋ 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 production by https://github.com/Julesssss in version: 1.4.79-11 🚀
|
Details
For the
More Features
page, we had some content to show on modal when we clicked on the restricted switches. The first implementation used a common state{isOpen: boolean, itemType: 'organize' | 'integrate'}
based on the section.When we set
isOpen: false, itemType: undefined
on cancel of the modal, there was a small jitter with the modal. The modal was still being closed and unsetting itemType caused the description to disappear and popup to resize. The reason I set this undefined (or even have itemType) is because I was using the same modal and conditionally setting the prompt. With a basic if..else, when the modal was being closed the text used to change (the way it's being cleared).This PR fixes it by having different the
isOpen
flags and modals for each section. This way the content is static for the modal, and modal closing doesn't hinder with the content.Fixed Issues
$ #42903
$ #42644
PROPOSAL:
Tests
Offline tests
Same as Test Steps
QA Steps
Same as Test Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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-connection-modal-content.mov
Android: mWeb Chrome
mweb-chrome-connection-modal-content.mov
iOS: Native
ios-connection-modal-content.mov
iOS: mWeb Safari
mweb-safari-connection-modal-content.mov
MacOS: Chrome / Safari
web-connection-modal-content.mov
MacOS: Desktop
desktop-connection-modal-content.mov