Fix auto focus after side pane is closed, fix popover position on attachment modal#59156
Conversation
|
@brunovjk This is ready for your review! In case of any questions reach out here or on Slack! 🚀 |
|
Update: Bruno found some cases where auto focus doesn't work. We raised that topic on Slack - this could be really time consuming and I don't think we should prioritize this now when Help Pane is still in testing phase. |
Reviewer Checklist
Screenshots/VideosAndroid: Native59156_android_native.movAndroid: mWeb Chrome59156_android_web.moviOS: Native59156_ios_native.moviOS: mWeb SafariMacOS: Chrome / Safari59156_web_chrome.movMacOS: Desktop59156_web_dekstop.mov |
brunovjk
left a comment
There was a problem hiding this comment.
We only have one prettier error here. We also have some issues about inputs not being reauto-focused after closing the Help Panel, in this PR we fixed some of them, the ones that are described in the testing steps of this PR. However, we still have some that are not reauto-focused. We reported it on Slack and we don't believe they are blockers for now.
However, we can wait to reach a conclusion before merging this PR. Other than that, everything looks good to me.
|
Prettier fixed! All yours @robertjchen |
| if (isExtraLargeScreenWidth) { | ||
| setIsAnimatingExtraLargeScreen(true); |
There was a problem hiding this comment.
I've noticed here a little change in hiding tooltip logic. I've checked and tooltips no longer hide during side pane hiding animation. I can't find any tooltip that can be affected by this (it should bo located on the right side of the screen on Extra large). But I remember that there was w tooltip next to advanced filters buttons that I can't find anymore.
If that's no longer a problem please ignore this comment
There was a problem hiding this comment.
The tooltip I was talking about was removed in #58539
But it's still possible there are similar ones in the app
There was a problem hiding this comment.
Should be fixed with latest commits!
Screen.Recording.2025-03-28.at.11.45.15.mov
|
@robertjchen I tried to find why performance test fails, I'm not 100% confident but I'm pretty sure is because of the change in Before: if (!isPaneHidden) {
setShouldHideSidePane(false);
}After: setIsSidePaneTransitionEnded(false);The thing is that I don't think we should block this PR on this (it is only one extra re-render at the beginning). Ultimately it's your call and I could spent some time next week debugging it 😄 |
|
thanks for the explanation, let's just ship for now and we can always followup with additional changes 👍 |
|
✋ 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/robertjchen in version: 9.1.21-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.1.21-3 🚀
|
|
Coming from this issue: " |
Explanation of Change
The Side Pane isn't a traditional screen, so custom logic is needed to properly handle auto-focusing of inputs:
Fixed Issues
$ #58848
$ #59054
$ #59132
PROPOSAL: N/A
Tests
Precondition:
Run
Onyx.set('nvp_sidePanel', {})in console!Details
Offline tests
N/A
QA Steps
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
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
web.mov