You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$500] Workspace switcher - Both "Expensify" and another workspace are highlighted in WS switcher #37239
Version Number: 1.4.44-0 Reproducible in staging?: Y Reproducible in production?: N 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:
Go to staging.new.expensify.com
Create a workspace if there is no workspace
Open workspace switcher
Expected Result:
Only "Expensify" will be highlighted
Actual Result:
"Expensify" and another workspace are highlighted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Workspace switcher - Both "Expensify" and another workspace are highlighted in WS switcher[/-][+][$500] Workspace switcher - Both "Expensify" and another workspace are highlighted in WS switcher[/+]on Feb 26, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
This component was much more complicated than it needed to be, so I've been working on a holistic refactor here. I think I've simplified it to a point where it makes more sense and is easier to follow.
So far I've only done cursory testing, so my next step is to go through all the open issues related to the BaseOptionsSelector and see if they're reproducible on my branch.
Update: re-refactoring is ready to be tested, it fixes all the regression issues I was aware of. Please test it (especially the tags, because I could not yet replicate the scenario on my site).
The fix is based on the @roryabraham solution, so special thanks for him!
Link to PR: #37494
@roryabraham what would you recommend as the next step here? Should we wait to see if your refactored component solves the issue that @Krishna2323 mentioned? Or will we still need a fix after your refactor?
Also, @Krishna2323 - did you do any work on a PR for your original proposal? If so, do you have a draft PR?
Activity
melvin-bot commentedon Feb 26, 2024
Job added to Upwork: https://www.upwork.com/jobs/~012b29a531f8eb3037
[-]Workspace switcher - Both "Expensify" and another workspace are highlighted in WS switcher[/-][+][$500] Workspace switcher - Both "Expensify" and another workspace are highlighted in WS switcher[/+]melvin-bot commentedon Feb 26, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (
External)github-actions commentedon Feb 26, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Feb 26, 2024
Triggered auto assignment to @roryabraham (
Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.lanitochka17 commentedon Feb 26, 2024
We think that this bug might be related to #wave8
CC @zanyrenney
23 remaining items
melvin-bot commentedon Feb 27, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
akinwale commentedon Feb 27, 2024
Based on this comment, this inadvertently got fixed in that PR.
cc @roryabraham
Krishna2323 commentedon Feb 28, 2024
@akinwale, we still have multiple issue here.
baseOptions_selector_scroll_bug.mp4
akinwale commentedon Feb 28, 2024
@Krishna2323 Those are entirely separate issues.
You may still get compensated here since your proposal was selected but that's entirely up to BZ / internal team to decide.
Krishna2323 commentedon Feb 28, 2024
@akinwale, the scroll issue may seem different but the root cause is the same.
Here we scroll to index
0, which is correctApp/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 441 to 445 in b447c11
but this again changes the
focusedIndextoprops.selectedOptions.lengththats why we didn't scroll to top of the selector.App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 428 to 434 in b447c11
I'm happy to fix this since I've already spent time on it, but I'll leave the final decision to @roryabraham.
roryabraham commentedon Feb 28, 2024
This component was much more complicated than it needed to be, so I've been working on a holistic refactor here. I think I've simplified it to a point where it makes more sense and is easier to follow.
So far I've only done cursory testing, so my next step is to go through all the open issues related to the
BaseOptionsSelectorand see if they're reproducible on my branch.melvin-bot commentedon Feb 28, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
Piotrfj commentedon Feb 29, 2024
Update: re-refactoring is ready to be tested, it fixes all the regression issues I was aware of. Please test it (especially the tags, because I could not yet replicate the scenario on my site).
The fix is based on the @roryabraham solution, so special thanks for him!
Link to PR: #37494
melvin-bot commentedon Mar 4, 2024
@akinwale, @sakluger, @roryabraham, @Krishna2323 Eep! 4 days overdue now. Issues have feelings too...
sakluger commentedon Mar 4, 2024
@roryabraham what would you recommend as the next step here? Should we wait to see if your refactored component solves the issue that @Krishna2323 mentioned? Or will we still need a fix after your refactor?
Also, @Krishna2323 - did you do any work on a PR for your original proposal? If so, do you have a draft PR?
dragnoir commentedon Mar 4, 2024
BaseOptionSelector is deprecated #37628
roryabraham commentedon Mar 5, 2024
ok, looping back here...
thanks everyone!