-
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
[$500] Room - First workspace becomes highlighted by default when creating new room for 2nd time #34393
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01bc4717bf898902a4 |
Triggered auto assignment to @sophiepintoraetz ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
Please re-state the problem that we are trying to solve in this issue.In selection list, the focusedIndex is set as What is the root cause of that problem?This happens because when It sets the index focused index to App/src/components/SelectionList/BaseSelectionList.js Lines 375 to 377 in c080ccc
What changes do you think we should make in order to solve the problem?Change the dependency array of the useEffect to update only when its length changes
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Room - First workspace becomes highlighted by default when creating new room for 2nd time What is the root cause of that problem?We don't highlight the first option in the App/src/components/SelectionList/BaseSelectionList.js Lines 375 to 377 in c080ccc
What changes do you think we should make in order to solve the problem?In my opinion, we should set the fallback for We can just update this line:
To: const [focusedIndex, setFocusedIndex] = useState(() => {
const initialIndex = _.findIndex(flattenedSections.allOptions, (option) => option.keyForList === initiallyFocusedOptionKey);
return initialIndex !== -1 ? initialIndex : 0;
}); Result:focus_index_selectionList.mp4Optional:
|
I think we should hold for #29080 |
@aimane-chnaif - do you agree? |
Agree to hold |
Keep watching progress in #34196 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Same |
No update here - linked holding PR is still in review. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@aimane-chnaif - Can you please provide an update on this one? |
Please update proposals based on latest main. |
So we're waiting on proposals, is that right @aimane-chnaif? |
Still waiting on proposals. |
@aimane-chnaif - Should this be open to proposals externally? Is the original bug still happening? |
This step is failing. First workspace is always highlighted |
Expected Result: Actual Result: Should this be inverted? |
Discussing here - https://expensify.slack.com/archives/C01GTK53T8Q/p1710877793579389 |
I am going to be OOO soon. Please assign new C+. |
@lschurr I'm a new C+ so I'm low on issues, I can take over 👍 |
Based on the Slack thread, I think we're going to ask QA to test again. @lanitochka17 can you confirm this bug is still reproducible? |
Asking for help from QA: https://expensify.slack.com/archives/C9YU7BX5M/p1711381040209419 |
@ishpaul777 bug is not rproducible bandicam.2024-03-25.18-47-35-654.mp4 |
Closing since we're unable to reproduce. |
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.24-4
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:
No workspace should be highlighted by default
Actual Result:
The first workspace becomes highlighted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6339358_1705005197988.workspaceRoomHighlighted.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: