-
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 on PR #34196] [$500] Profile -The preselected pronoun isn't highlighted by default #34749
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01af844a0a64bbba29 |
Triggered auto assignment to @muttmuure ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The preselected pronoun isn't highlighted by default What is the root cause of that problem?In the App/src/components/SelectionList/BaseSelectionList.js Lines 369 to 380 in bcd783f
What changes do you think we should make in order to solve the problem?we should make the following changes before setting the if (sections.length > 0) {
const currentSelection = _.findIndex(
flattenedSections.allOptions, (option) =>
option.keyForList === initiallyFocusedOptionKey)
updateAndScrollToFocusedIndex(currentSelection ?? 0);
}
Test branch with implemented functionality can be found here: Test Branch What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the issue we are trying to solveThe preselected pronoun isn't highlighted by default after searching. What is the root cause of this issue?The root cause is that we don't recheck if What changes should be made to fix this?We should modify this: App/src/components/SelectionList/BaseSelectionList.js Lines 375 to 378 in bcd783f
To: // set the focus on the first item when the sections list is changed
if (sections.length > 0) {
const initallyFocused = _.findIndex(flattenedSections.allOptions, (option) => option.keyForList === initiallyFocusedOptionKey)
updateAndScrollToFocusedIndex(initallyFocused ?? 0);
} This will check for the Result Screen.Recording.2024-01-18.at.11.27.32.PM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Profile -The preselected pronoun isn't highlighted by default What is the root cause of that problem?The main problem with issue is that when we open pronoun screen
But then when we update section list we can't change index App/src/components/SelectionList/BaseSelectionList.js Lines 369 to 380 in bcd783f
What changes do you think we should make in order to solve the problem?To fix this issue we can just update the code and update the index when we still have isInitialSectionListRender === true
App/src/components/SelectionList/BaseSelectionList.js Lines 371 to 373 in bcd783f
Using the logic from focusedIndex initialization
What alternative solutions did you explore? (Optional)NA |
This will be fixed with #34196, screenshot from PR branch : CleanShot.2024-01-24.at.09.56.03.mp4 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
On hold for #34196 |
Not overdue |
Held |
@fedirjh, @muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@fedirjh any closer on the linked PR? |
Still waiting on the linked PR |
@fedirjh, @muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick! |
#34196 is deployed to staging. |
@fedirjh, @muttmuure Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@muttmuure This issue was fixed with #34196, can you please retest and close? |
Yep, looks good |
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.27-0
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:
Action Performed:
Expected Result:
The selected pronouns should have been highlighted by default when there is no searching performed (as in the timezone selection)
Actual Result:
Only green checkmark exist in the preselected pronoun, but it is not highlighted (both if there is no search or after search)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6346771_1705598027784.mobizen_20240118_191252.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: