-
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
fix: Room - Selection list RHP does not show sliding animation while being dismissed. #38711
fix: Room - Selection list RHP does not show sliding animation while being dismissed. #38711
Conversation
…being dismissed. Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@hoangzinh 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] |
Discussing with @hoangzinh on Slack, probably this PR will get approved by C+ tomorrow. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@hoangzinh, changes added. |
@danieldoglas @Krishna2323 I'm considering whether we should fix this animation issue or not.
Screen.Recording.2024-03-27.at.07.29.46.mov
Screen.Recording.2024-03-27.at.07.27.37.movAfter fix, the 2 modals are sliding differentially, causing another UI issue. I think new UI issue is worse than current behavior |
Did we find out why that's happening? Can't we fix it? |
Originally I thought the 2 modals were sliding differentially. But let's wait for @Krishna2323 to investigate this issue. |
Sorry for delay, I will investigate today and update. |
@Krishna2323 did you have the time to investigate this? |
Hi everyone, I've tried various ways to fix the new UI issue mentioned here, but I couldn't find a solution. I feel the new issue isn't that bad since we barely see two modals because the animation happens fast. I would like to hear all of your thoughts too. 2_modal.mp4 |
@hoangzinh @danieldoglas, bump incase you missed my comment above ^ |
Why the issue doesn't happen when changing the merchant in the create money request flow? |
thoughts on the comment above? @hoangzinh @Krishna2323 |
@rlinoz, I suppose that's because the @hoangzinh, could you please help clarify this if you have any ideas? I know very little about navigation in React Native. |
I guess because there are 2 modals, and it closes dependently then it causes this issue #38711 (comment). @Krishna2323 is it possible if we close RHN first, then close Value modal later? |
@hoangzinh, I tried but that didn't worked. |
@Krishna2323 I saw that we have onModalDidClose callback, could you check if we can leverage it? |
@Krishna2323 bump on hoangzinh comment above |
@hoangzinh, I tried your suggestion, but unfortunately, it didn't work. I also attempted to set the opacity of the modal behind to 0, but we still see an empty modal with a green background, which seems a bit hackish. IDK what should we do here, I already spent too much time on this PR and the original PR :( |
^ I appreciate your effort here @Krishna2323 . To be honest, I don't have any other ideas to fix this sliding issue as well. @rlinoz @danieldoglas what do you think about my comment here again #38711 (comment)? Thanks |
@rlinoz @danieldoglas — any update? Thanks! |
I don't know what else we can do here, did we ask on the expensify-open-source channel? I got this hacky solution working, which mostly works, but I don't really wanna go with it.
|
Should we re-open this issue for other external contributors? |
Yeah, I think we should, so we can try to get to a proper solution for this |
@Krishna2323 do you agree with that #38711 (comment)? |
@hoangzinh @rlinoz, yes, we can try, but I think there will only be workarounds for this. The only straightforward solution, in my opinion, is to create separate pages for these modals, which I initially did here. However, it was closed because we believed it was a poor investment in terms of ROI, given the high effort involved. IDK whats best here :( |
As we all don't know what is the best solution to fix this issue. To speed up progress here, I think we can either:
|
Ok, let's go with that, we reopen the issue for proposals and if no good one comes up we close since we don't want to create this screens as separate pages. |
The issue has been closed. #38665 (comment) |
Details
Fixed Issues
$ #38665
PROPOSAL:
Tests
Offline 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 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_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4