-
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
[HOLD for payment 2023-10-09] Member - Green highlight on member jumps to other member when selecting member #25884
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @deetergp ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Green highlight on member jumps to other member and selected/unselected member is still focused. What is the root cause of that problem?When a member is checked/unchecked it is intention the focussed index change to next index. The root cause here is that the checked/unchecked member still has focus which keep the dim background on that member What changes do you think we should make in order to solve the problem?we want to blur the focussed member by passing function CheckboxListItem({item, isFocused = false, onSelectRow, onDismissError = () => {}}) {
const hasError = !_.isEmpty(item.errors);
+ const ref = React.useRef(null);
return (
<OfflineWithFeedback
onClose={() => onDismissError(item)}
pendingAction={item.pendingAction}
errors={item.errors}
errorRowStyles={styles.ph5}
>
<PressableWithFeedback
+ ref={ref}
// rest of component |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?This is a regression from #22622 This is the code causing this issue, highlighting the next item on selection. App/src/components/SelectionList/BaseSelectionList.js Lines 182 to 183 in b38181a
What changes do you think we should make in order to solve the problem?We should check if the selection is from keyboard/shortcut and only set the next index if it's coming from it We should check whether the selection was made from the keyboard / a shortcut (up, down and enter key), and only set the next index if it was made from the keyboard/shortcut We can add a param to App/src/components/SelectionList/BaseSelectionList.js Lines 177 to 178 in b38181a
App/src/components/SelectionList/BaseSelectionList.js Lines 290 to 293 in b38181a
inside selectRow(focusedOption, focusedIndex, true); App/src/components/SelectionList/BaseSelectionList.js Lines 194 to 202 in b38181a
Result:Screen.Recording.2023-08-24.at.11.20.35.PM.movWhat alternative solutions did you explore? (Optional)We can remove this code, if the arrow navigation is not required. App/src/components/SelectionList/BaseSelectionList.js Lines 182 to 183 in b38181a
and set the focused indext to -1, we probably should remove other codes related to this. |
@deetergp If this needs changed can be handled along with phase 3 of SelectionList Improvement! |
I agree with @getusha this behaviour feels confusing sometimes for eg. user is checking off backward with arrowkeys Screen.Recording.2023-08-25.at.2.02.50.AM.mov |
Hmm I agree, that is weird and feels unexpected. |
Agree with @Santhosh-Sellavel here. We can handle it on #20354 @shawnborton So I guess we should keep the highlight in the same item when selecting it? Here's a relevant comment regarding the highlight in Workspace Members vs. Workspace Invite members: #22622 (comment) |
Triggered auto assignment to @dannymcclain ( |
Coming from here, removing the deploy blocker as this was planned behaviour with the new list but its a new concept which feels unexpected. Would be great to discuss with the design team what we should do about this https://expensify.slack.com/archives/C01GTK53T8Q/p1692963954482309?thread_ts=1692952886.670059&cid=C01GTK53T8Q |
That would be my vote, yup! |
Holding it on #20354 as per this comment |
PR is ready to review here: #27246 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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 2023-10-09. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
Triggered auto assignment to @muttmuure ( |
Bug0 Triage Checklist (Main S/O)
|
@muttmuure, I just added the |
Sibtain gets paid on NewDot so adding a summary here C+ - $500 - @allroundexperts |
$500 payment approved for @allroundexperts based on BZ summary. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #22622
Action Performed:
Expected Result:
There will be no issue when member is selected
Actual Result:
The green highlight on the member row jumps to other member row when the member is selected, which can be confusing
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.57-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6175900_20230825_023116.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: