-
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 can't navigate with arrow key to admin in group members page #41968
Fix can't navigate with arrow key to admin in group members page #41968
Conversation
@DylanDylann 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeCan't reproduce on physical devicesAndroid: mWeb ChromeCan't reproduce on physical devicesiOS: NativeCan't reproduce on physical devicesiOS: mWeb SafariCan't reproduce on physical devicesMacOS: Chrome / SafariScreen.Recording.2024-05-13.at.15.43.36.movScreen.Recording.2024-05-13.at.15.49.14.movMacOS: DesktopScreen.Recording.2024-05-13.at.15.49.38.movScreen.Recording.2024-05-13.at.15.46.34.mov |
@@ -109,6 +109,7 @@ function BaseSelectionList<TItem extends ListItem>( | |||
const allOptions: TItem[] = []; | |||
|
|||
const disabledOptionsIndexes: number[] = []; | |||
const disabledArrowKeyOptionsIndexes: number[] = []; |
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.
Can we add a comment explaining what these two arrays are for? Or add it to the comment above the flattenedSections function.
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.
Added the 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.
Thanks for adding. It's not super obvious to me how disabledOptionsIndexes
and disabledArrowKeyOptionsIndexes
are different. Can we try to make that a little bit more explicit and obvious?
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.
Conflicts solved and comment updated. Please check
…-item-using-arrow-keyboard
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.
Also you have conflicts now.
@@ -101,14 +101,16 @@ function BaseSelectionList<TItem extends ListItem>( | |||
/** | |||
* Iterates through the sections and items inside each section, and builds 3 arrays along the way: |
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.
This comment is now wrong.
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.
Updated
@@ -109,6 +109,7 @@ function BaseSelectionList<TItem extends ListItem>( | |||
const allOptions: TItem[] = []; | |||
|
|||
const disabledOptionsIndexes: number[] = []; | |||
const disabledArrowKeyOptionsIndexes: number[] = []; |
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.
Thanks for adding. It's not super obvious to me how disabledOptionsIndexes
and disabledArrowKeyOptionsIndexes
are different. Can we try to make that a little bit more explicit and obvious?
…-item-using-arrow-keyboard
@bernhardoj Please resolve conflict |
…-item-using-arrow-keyboard
Solved |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.4.76-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.76-7 🚀
|
Details
It's currently not possible to navigate to the admin member with arrow key in the group members page. This PR fix it.
Fixed Issues
$ #41570
PROPOSAL: #41570 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Prerequisite: Create a new group chat
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-05-10.at.17.21.39.mov
Android: mWeb Chrome
Screen.Recording.2024-05-10.at.17.20.18.mov
iOS: Native
Screen.Recording.2024-05-10.at.17.21.12.mov
iOS: mWeb Safari
Screen.Recording.2024-05-10.at.17.22.06.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-10.at.17.13.35.mov
MacOS: Desktop
Screen.Recording.2024-05-10.at.17.14.58.mov