-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix auto focus after side pane is closed, fix popover position on attachment modal #59156
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 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 |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
iOS: Native
ios.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
web.mov