-
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
[$250] The focused background isn't updated when the selected option is updated from BE side #54089
Comments
Triggered auto assignment to @michaelkwardrop ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The focused background isn't updated when the selected option is updated from BE side What is the root cause of that problem?The focus is not updated when the selected priority mode changes, causing the UI to stay focused on the old selection. What changes do you think we should make in order to solve the problem?We should manage the focus using a state variable (
And change the
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)POC New-Expensify.mp4 |
Edited by proposal-police: This proposal was edited at 2024-12-13 02:47:13 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The focused background isn't updated when the selected option is updated from BE side What is the root cause of that problem?In BaseSelectionList, the
What changes do you think we should make in order to solve the problem?Out dated
In PreferencesPage, we should use a
We also need to export the App/src/components/SelectionList/BaseSelectionList.tsx Lines 735 to 741 in 10bfe9a
New proposal: In the BaseSelectionList add a new prop
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Edited at 2024-12-14 04:46:13 UTC. N/A What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.The focused background isn't updated in the device 1 What is the root cause of that problem?In This Bug also appears on similar pages: Language and Theme settings. What changes do you think we should make in order to solve the problem?Add an
useEffect(() => {
const selectedItemIndex = flattenedSections.allOptions.findIndex((option) => option.isSelected);
if (selectedItemIndex === -1 || selectedItemIndex === focusedIndex) {
return;
}
setFocusedIndex(selectedItemIndex);
}, [flattenedSections]); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)We can pass |
hey contributors, please make sure that your proposal also fix this problem |
@michaelkwardrop Let me take over this bug because it came from https://expensify.slack.com/archives/C05LX9D6E07/p1733996291225739?thread_ts=1730403194.757359&cid=C05LX9D6E07 |
Updated proposal to fix this problem |
Job added to Upwork: https://www.upwork.com/jobs/~021867633562881780913 |
Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new. |
Make sure to add tests too |
Updated proposal to add automated tests |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.75-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @DylanDylann
Slack conversation (hyperlinked to channel name): expensify_bugs
Action Performed:
Expected Result:
The selected option is updated in the device 1 but the focus background isn't updated
Actual Result:
The focused background isn't updated in the device 1
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Screen.Recording.2024-12-12.at.11.29.54.mov
Recording.844.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @DylanDylannThe text was updated successfully, but these errors were encountered: