-
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
[HOLD for payment 2024-06-05] [$250] Group chat - Inconsistency with highlight of group admin row by cursor, up & down and Tab key #41570
Comments
Triggered auto assignment to @puneetlath ( |
We think this issue might be related to the #vip-vsb. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Group chat - Inconsistency with highlight of group admin row by cursor, up & down and Tab key What is the root cause of that problem?The option is included in App/src/components/SelectionList/BaseSelectionList.tsx Lines 134 to 136 in 0f39e43
What changes do you think we should make in order to solve the problem?Remove What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.We can highlight the admin member in group participants page with Tab key or when clicking it to open the detail and go back. What is the root cause of that problem?In group member/participant, the checkbox will be disabled if it's the current user, which means the item itself is still enabled, only the checkbox is disabled. App/src/pages/ReportParticipantsPage.tsx Line 94 in 0f39e43
So, we can use TAB key to focus on the item, and App/src/components/SelectionList/BaseSelectionList.tsx Lines 341 to 342 in 0f39e43
But we can't focus on it with the arrow key because it's included in the disabledOptionsIndexes. App/src/components/SelectionList/BaseSelectionList.tsx Lines 134 to 136 in 0f39e43
App/src/components/SelectionList/BaseSelectionList.tsx Lines 230 to 233 in 0f39e43
What changes do you think we should make in order to solve the problem?If the expectation is to allow the user to focus on the item that only has a checkbox disabled with the arrow key, then we can either
We need to keep the If the expectation is to prevent the disabled checkbox item from being focused/highlighted, then we need to add it to the disabled condition here. App/src/components/SelectionList/BaseSelectionList.tsx Lines 341 to 342 in 0f39e43
but it will still be able to have the blue outline focus (when we use TAB) because the pressable is not disabled. |
Job added to Upwork: https://www.upwork.com/jobs/~012cce511dc289f3d0 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Group chat - Inconsistency with highlight of group admin row by cursor, up & down and Tab key What is the root cause of that problem?The App/src/components/SelectionList/BaseSelectionList.tsx Lines 134 to 136 in cd9a9ad
What changes do you think we should make in order to solve the problem?If we remove the We can add a new prop to App/src/pages/ReportParticipantsPage.tsx Lines 345 to 358 in cd9a9ad
When the new prop is true, we tell the const [focusedIndex, setFocusedIndex] = useArrowKeyFocusManager({
initialFocusedIndex: flattenedSections.allOptions.findIndex((option) => option.keyForList === initiallyFocusedOptionKey),
maxIndex: Math.min(flattenedSections.allOptions.length - 1, CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * currentPage - 1),
- disabledIndexes: flattenedSections.disabledOptionsIndexes,
+ disabledIndexes: shouldAllowAllKeyboardNavigation ? [] : flattenedSections.disabledOptionsIndexes,
isActive: true,
// ...
}); In our example, we should allow the user to be able to navigate through all items, because even if some items are disabled, the user can go through the details page to see more details about their profile. By adding this new props, we get rid of complexity and conflicts and we simply allow the keyboard to navigate throw all items. |
Asked for volunteers to pick this up here |
Unassigned myself due to less bandwidth |
I will take over this one as C+ |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Putting the |
Tab navigation will be handled here #36476 |
I agree with this. I would expect to be able to arrow through the list and hit enter to open each member's profile. |
@Krishna2323 Your proposal will make the select all button break 🎀👀🎀 C+ reviewed |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @DylanDylann |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.76-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-05. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed: [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA Regression Test Proposal Prerequisite: Create a new group chat
Do we agree 👍 or 👎 |
Issue for regression test: https://github.com/Expensify/Expensify/issues/402260 Everyone has been paid. Thanks y'all! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.70-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
There should be consistency in whether group admin row can be highlighted.
Actual Result:
In Step 4, group admin cannot be selected and highlighted by keyboard up and down key.
In Step 7, when clicking on the group admin with cursor, the group admin is selected and highlighted.
In Step 9, with Tab key, group admin can be selected and highlighted.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6469867_1714729821811.20240503_174407.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @puneetlathThe text was updated successfully, but these errors were encountered: