-
Notifications
You must be signed in to change notification settings - Fork 3k
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
User can access the background list using the arrow keys while the RHP is open #39327
User can access the background list using the arrow keys while the RHP is open #39327
Conversation
… while the RHP is open
@jayeshmangwani 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] |
Hello ) Plus a little explanation And I also added Because there is such a bug Screen.Recording.2024-03-31.at.01.13.04.movI made these changes similar to
|
|
||
BaseArrowKeyFocusManager.propTypes = propTypes; | ||
BaseArrowKeyFocusManager.defaultProps = defaultProps; | ||
ArrowKeyFocusManager.displayName = 'ArrowKeyFocusManager'; |
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.
@ZhenjaHorbach We should create a folder with the name ArrowKeyFocusManager, and under this folder, BaseArrowKeyFocusManager.js and index.js files.
ArrowKeyFocusManager
BaseArrowKeyFocusManager.js
index.js
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 think this doesn’t make sense, since we have a rule that prohibits creating new js files )
And for ts files we have separate tickets )
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 was searching for GH issues and wondering if is there any ticket was created to replace ArrowKeyFocusManager with useArrowKeyFocusManager usage For SelectionList
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 saw this comment today, and If ArrowKeyFocusManager is going to be removed, then we should not add any logic to the ArrowKeyFocusManager.
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.
In this case, maybe we should remove ArrowKeyFocusManage from the lists?
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.
Then let's move forward with this PR 👍
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.
Or are you afraid that the PR will undo the changes we are doing here?
@pecanoro Yes, I was thinking that once that PR is merged, then SelectionList will no longer use ArrowKeyFocusManager and In current PR, We are adding changes to the ArrowKeyFocusManager Component and these changes will not be in effect, and also ArrowKeyFocusManager usage will be removed entirely soon.
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.
Let's finish reviewing this PR and I will post in the other issue to let them know about the changes here. But at this point I am not sure which one is closer to get merged 😄
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.
In this case, the PR is ready to review )
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.
Then I would say I'll complete the checklist in the next hour 😃
NAB: @ZhenjaHorbach You have written |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemWeb-Android.moviOS: NativeiOS.moviOS: mWeb SafarimWeb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.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.
Code changes LGTM 🚀
Since we have quite global changes, it probably makes no difference which RHP screen is open |
@ZhenjaHorbach There is no need to update videos; I was pointing it out For future reference 😄 |
I updated it just in case) |
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.4.61-0 🚀
|
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.4.61-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.61-8 🚀
|
Details
User can access the background list using the arrow keys while the RHP is open
Fixed Issues
$ #39093
PROPOSAL: #39093 (comment)
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
Screen.Recording.2024-04-04.at.22.49.39.mov
Android: mWeb Chrome
Screen.Recording.2024-04-04.at.22.49.39.mov
iOS: Native
Screen.Recording.2024-04-04.at.22.54.44.mov
iOS: mWeb Safari
Screen.Recording.2024-04-04.at.22.53.15.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-04.at.22.56.47.mov
MacOS: Desktop
Screen.Recording.2024-04-04.at.22.58.51.mov