-
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 anchor ref on PopoverReportActionContextMenu #19546
Conversation
@puneetlath 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] |
While testing, I found another bug of menu width decrease before closing. I think it's also deploy blocker since not happening on production. Screen.Recording.2023-05-24.at.6.33.09.PM.movScreen.Recording.2023-05-24.at.6.36.14.PM.mov |
@mountiny @esh-g - animationOutTiming={1} This bug existed before but not noticeable to users because 1ms was too short. I tested by setting this value to 3000: Screen.Recording.2023-05-24.at.6.52.23.PM.movIt's strange that it doesn't happen on report action but menu item for external link. Should this be considered as deploy blocker? |
The root cause is clear. That happens because menu size is dynamically changing based on content size. - animationOutTiming={1} @mountiny do you agree? |
Yes |
@0xmiroslav sorry I know this is irrelevant to your change but can you please add above line back and push so that this PR could fix 2 bugs at the same time? |
@mountiny @aimane-chnaif This is happening because the description of the App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 212 to 217 in 4cd496d
When the copy button is pressed (or tapped outside to close), the menu is starts closing after I would not think of this as a workaround because when adding the animation, it is natural to wait for stuff to wait for the animation to complete.. Moreover, this would help us fix both the problems. So, let me know what you think of this approach! Screen.Recording.2023-05-25.at.12.31.31.AM.mov |
@esh-g we can consider that solution as a follow-up. Not a good fit for this PR which fixes deploy blocker. |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktp.moviOSios.movAndroidandroid.mov |
@aimane-chnaif So would you agree with that solution then? |
Not yet. Need to validate |
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.
Looks good, tests well!
@puneetlath over to you!
|
fix anchor ref on PopoverReportActionContextMenu (cherry picked from commit 327b786)
…-19546 🍒 Cherry pick PR #19546 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.3.17-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.17-5 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
Follow-up of #18809
Fixed Issues
$ #19543
Tests
Offline tests
Same as Tests step
QA Steps
Same as Tests step
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
web.mov
Mobile Web - Chrome
mchrome.mov
Mobile Web - Safari
msafari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov