-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2024-07-10] [$500] Workspace switcher - Selection disappears after erasing character with workspace selected #36140
Comments
Job added to Upwork: https://www.upwork.com/jobs/~018e72ec1b032f8020 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @kevinksullivan ( |
We think that this bug might be related to #wave8-collect-admins |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher - Selection highlight moves to second item when searching for workspace What is the root cause of that problem?The problem is related to that when we search for elements we select the first element with a valid index (1) (That is, the second) What changes do you think we should make in order to solve the problem?To fix this issue we can use App/src/pages/WorkspaceSwitcherPage.tsx Lines 235 to 258 in 6a889f1
The same logic we use here App/src/components/CategoryPicker/index.js Lines 64 to 68 in 670e044
But maybe this is not the only case. So I think it’s a good idea to check all What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher - Selection highlight moves to second item when searching for workspace What is the root cause of that problem?The main problem lies in the code below, for selectors which can select multiple options we want to highlight the option after all selected options, and in App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 163 to 171 in caefc6e
What changes do you think we should make in order to solve the problem?Instead of passing const newFocusedIndex = this.props.canSelectMultipleOptions ? this.props.selectedOptions.length : 0;
const isNewFocusedIndex = newFocusedIndex !== this.state.focusedIndex;
// eslint-disable-next-line react/no-did-update-set-state
this.setState(
{
sections: newSections,
allOptions: newOptions,
focusedIndex: newFocusedIndex,
}, PS: This solution will make Resultfocused_index.mp4Alternative:Update the |
@kevinksullivan, @thesahindia Eep! 4 days overdue now. Issues have feelings too... |
@kevinksullivan, @thesahindia 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Not getting enough time to look at this. Please reassign @kevinksullivan. |
I am interested in reviewing this as C+ |
@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@kevinksullivan Eep! 4 days overdue now. Issues have feelings too... |
@kevinksullivan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Current assignee @rlinoz is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Yeah, sorry for all the confusion in this issue, I can reproduce with your steps and the solution looks good, let's fix it. I will also update the issue title to better acknowledge what we are doing |
@hoangzinh, PR ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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 2024-07-10. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@kevinksullivan, bump for payments. |
@hoangzinh please complete the checklist in order to receive payment. Thanks |
BugZero Checklist:
|
@rlinoz, @hoangzinh, @kevinksullivan, @Krishna2323, @dubielzyk-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
all set |
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: v.1.4-38.2
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:
Action Performed:
Precondition:
1. Go to staging.new.expensify.com2. Open workspace switcher.3. Select a workspace.4. Open workspace switcher.5. Type a valid search term.Latest reproduction steps: #36140 (comment)
Workspace 1
Work
, Observe the option is still focused.Workk
k
Expected Result:
The selection highlight will remain on the first item in the list.
Actual Result:
The selection highlight moves to the second item in the list.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6371676_1707394024021.20240208_112634.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kevinksullivanThe text was updated successfully, but these errors were encountered: