Enhance content measuring in PopoverWithMeasuredContent#59226
Conversation
…asurement on visibility change and include debug logs for measurement and visibility state.
…/58705-payment-modal-blinks
|
@ZhenjaHorbach 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] |
|
One jest test has failed, but it is not associated with the PR. It is a known issue with |
Reviewer Checklist
Screenshots/VideosAndroid: NativeNA Android: mWeb ChromeNA iOS: NativeNA iOS: mWeb SafariNA MacOS: Chrome / Safari2025-04-03.20.07.26.movMacOS: Desktop2025-04-03.20.07.26.mov |
|
|
||
| const modalId = useMemo(() => ComposerFocusManager.getId(), []); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
Minor comment
But let's leave a comment here what is this useEffect for !
|
Looks like a bug is still reproduced 2025-03-27.21.00.40.mov |
…/58705-payment-modal-blinks
|
@ZhenjaHorbach, I see it blinks in the first part of the video, but I don't see the bug in the second part. Anyway, I just retested it. Moreover, I used a B2B invoice report as well. Currently, it works properly on my side. Honestly, it is strange. Could you please retest? Video
No.bug.mp4 |
|
I've synced it up. |
|
Unfortunately, it reproduces stably for me 😢 2025-03-28.11.18.37.mov |
|
@ZhenjaHorbach, please send me your Onyx state. I'm gonna test this report on my side. |
|
Hmmmm |
|
I also will ask my colleagues to test. |
|
Just tested on Safari 2025-03-28.13.01.41.mov |
|
@ZhenjaHorbach other reports the same? |
|
@ZhenjaHorbach I've realized why you still can see the bug. You are tapping on the pay button to close but I was tapping outside of the button and popover. I can confirm the bug is still exists with this scenario. |
Yes
It reproduces for me even if I don't press the pay button to close 2025-03-28.13.10.47.mov |
|
@ZhenjaHorbach , I don't see the bug in the last video. Justo to clarify:
I see that it blinks when you tap on the business button. However, it is out of the scope. |
In that case, this is a regression from our previous PR where we implemented additional modal for payment methods And I believe that the fix should apply to both modals |
|
I agree; you are right. Let me fix it as well 🙂 |
…/58705-payment-modal-blinks
|
Still at work. I have made progress, but the user can still see a blink in one scenario. |
…/58705-payment-modal-blinks
|
Actively working on a fix. I've found the root cause and fixing it now. |
…/58705-payment-modal-blinks
|
I guess I am pretty close to the fix. I have made good progress, but I need to polish it. |
…/58705-payment-modal-blinks
…oning based on anchor alignment
|
Yehooo, I've finally fixed it - 71ce54d. Video
Fix.mp4 |
Yeah |
|
LGTM ! |
|
✋ 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/cristipaval in version: 9.1.24-2 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
Explanation of Change
The PR fixes a bug where the popover was not being measured correctly when it was hidden and then shown again.
Fixed Issues
$ #58705
PROPOSAL: N/A
Tests
Offline tests
Same as tests.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.mp4
Android: mWeb Chrome
Android.Chrome.mp4
iOS: Native
IOS.mp4
iOS: mWeb Safari
IOS.Safari.mp4
MacOS: Chrome / Safari
Chrome.mp4
MacOS: Desktop
Desktop.mp4