-
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 #29080] [$500] Chat - The first option in Notifications preference is always highlighted #31087
Comments
Triggered auto assignment to @greg-schroeder ( |
Job added to Upwork: https://www.upwork.com/jobs/~01d8a2b72f459ff260 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Related to #29080 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - The first option in Notifications preference is always highlighted What is the root cause of that problem?The problem is related to the App/src/components/SelectionList/BaseSelectionList.js Lines 340 to 351 in dee9b31
The code above came through this PR #30438 related to the issue above #29080 What changes do you think we should make in order to solve the problem?We should change this For example, function shouldUpdateFocusedSection(sections) {
const availableSections = lodashGet(sections, '[0].data', []);
return _.all(availableSections, (section) => !section.isSelected);
}
function BaseSelectionList({
...
useEffect(() => {
// do not change focus on the first render, as it should focus on the selected item
if (firstLayoutRef.current) {
return;
}
// set the focus on the first item when the sections list is changed
if (shouldUpdateFocusedSection(sections)) {
updateAndScrollToFocusedIndex(0);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [sections]);
...
}); What alternative solutions did you explore? (Optional)The That's why I created this proposal. POC poc-issue-31087.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The first option in Notifications preference is always highlighted What is the root cause of that problem?We change
What changes do you think we should make in order to solve the problem?We should only scroll to the first option when both What alternative solutions did you explore? (Optional) |
Hi, Will review again today, just back from weekend |
Seems there is multiple regressions from #29080 and this could be a regression as well as pointed out by contributors. @greg-schroeder Could you kindly put this issue on hold for #29080? |
Putting this on hold! |
Still holding |
same |
"" |
Held |
Same |
#29080 is still open |
held |
29080 is deployed |
@abdulrahuman5196 what do you think about this issue given that the hold issue is deployed? It's been a while - do we need to retest, or can we proceed? |
@greg-schroeder I don't see this issue in staging. I think we can close this issue. Screen.Recording.2024-02-27.at.1.03.52.PM.mov |
I can't see it either, seems to be resolved. Closing! |
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.3.97-1
Reproducible in staging?: Y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR #30694
Action Performed:
Expected Result:
The selected option is highlighted
Actual Result:
The first option is always highlighted
On iOS, the selected option is highlighted. The first option becomes highlighted when returning to app from the background
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6269367_1699488037719.20231109_075832.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: