-
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
[$500] Workspace switcher - Both "Expensify" and another workspace are highlighted in WS switcher #37239
Comments
Job added to Upwork: https://www.upwork.com/jobs/~012b29a531f8eb3037 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
👋 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:
|
Triggered auto assignment to @roryabraham ( |
We think that this bug might be related to #wave8 |
I don't think this should be treated as a deploy blocker, demoting to regular bug. |
Still keen to know where this regression is coming from. |
Triggered auto assignment to @sakluger ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher - Both "Expensify" and another workspace are highlighted in WS switcher What is the root cause of that problem?The What changes do you think we should make in order to solve the problem?We should subtract 1 from
Resultfocused_issue.mp4AlternativeWe can set App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 439 to 454 in 297bcec
|
I think this appears to be a regression from #31606...
@Krishna2323 wouldn't that just move the "duplicate focus" to the end of the list where it's out-of-sight in your video? |
@roryabraham, No it won't but I suggest to use alternative solution as it aligns with |
@Krishna2323 Subtracting 1 from the We can move forward with @Krishna2323's proposal here. 🎀👀🎀 C+ reviewed. |
Current assignee @roryabraham is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
sounds good. I also left a comment here with a tangentially related change that I would love to see included in your PR @Krishna2323 |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
ProposalPlease re-state the problem that we are trying to solve in this issue.Two elements from the Wokspaces page are highlighted. What is the root cause of that problem?There's no issue with the 1st item to be highlighted when the page Choose a workspace is opened. below a screenshot how the active selected workspace should not be highlighted The issue here is that the actif workspace is highlighted. The correct way is to not highlight the actif workspace and highlight the 1st available option to pick from. What changes do you think we should make in order to solve the problem?In this case of this issue I recommande that we should remove highlights from the Everything list (Expensify itrem) and just keep the green checkmark as with when we select a workspace from the list
The proposed solution is by disabling the focused option here App/src/pages/WorkspaceSwitcherPage.tsx Line 195 in 174a032
<OptionRow
...
- optionIsFocused={!activeWorkspaceID}
+ optionIsFocused={false}
/> What alternative solutions did you explore? (Optional) |
@akinwale pls review the choosen proposal, the -1 to props.selectedOptions.length will just make a mess and regressions. The function 20240227_172233.mp4as you can see on the video, the new choosen update will select the last item from the list. |
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. |
Based on this comment, this inadvertently got fixed in that PR. cc @roryabraham |
@akinwale, we still have multiple issue here.
baseOptions_selector_scroll_bug.mp4 |
@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. |
@akinwale, the scroll issue may seem different but the root cause is the same. Here we scroll to index App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 441 to 445 in b447c11
but this again changes the focusedIndex to props.selectedOptions.length thats 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. |
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 |
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. |
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). |
@akinwale, @sakluger, @roryabraham, @Krishna2323 Eep! 4 days overdue now. Issues have feelings too... |
@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? |
BaseOptionSelector is deprecated #37628 |
ok, looping back here...
thanks everyone! |
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: 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:
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?
Screenshots/Videos
Add any screenshot/video evidence
Bug6393389_1708986239721.bandicam_2024-02-27_06-21-36-088.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: