-
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 for payment 2023-11-22] [$500] New room - Workspace selector doesn't highlight when selected #29675
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01a505b5f852bd2d0f |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
Proposal by: @namhihi237 ProposalPlease re-state the problem that we are trying to solve in this issue.The selected item is highlighted on some selectors on Create Room, we need to fix them What is the root cause of that problem?In Visibility and Workspace selectors when creating a room we use App/src/components/ValuePicker/ValueSelectorModal.js Lines 70 to 74 in 9e19e40
It should be the same we create keyForList in itemsData
What changes do you think we should make in order to solve the problem?We should update correctly initiallyFocusedOptionKey={selectedItem.value} What alternative solutions did you explore? (Optional)Also, we can remove |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selected item is not highlighted What is the root cause of that problem?
This unideal design leads to us duplicating the logic by passing What changes do you think we should make in order to solve the problem?
We can optionally remove What alternative solutions did you explore? (Optional)NA |
Proposal for Issue #29675Please re-state the problem that we are trying to solve in this issue.The current implementation of the ValueSelectorModal component does not correctly highlight the selected item when the workspace section is clicked again. Root CauseThe issue is likely due to how isSelected is being set in the useEffect function. Specifically, the comparison item === selectedItem is an object reference comparison, which may not behave as intended if item and selectedItem are not referring to the exact same object. What changes do you think we should make in order to solve the problem?Object Equality: Change the object reference equality check to a value equality check for the relevant fields. This will ensure that items are correctly marked as selected based on their value property. Logging and Debugging: Temporarily add console logs inside the useEffect to ensure that items and selectedItem are being updated as expected. Remove these logs once the issue is confirmed to be fixed. Contributor details |
📣 @atef1995! 📣
|
Going to triage this tomorrow |
Seems like this is a bug, but confirming here that this should not have been fixed in another issue |
Okay, confirmed we can proceed here. @0xmiroslav could you share whether any of these proposals work? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Pending review of proposals |
reviewing |
TY! |
@0xmiroslav any of these proposals work? |
Still pending input on proposals |
I will provide feedback by Monday |
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. |
@0xmiroslav I saw your comment on the other issue. That means the PR in this issue is blocked on #31192, is that right? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.99-0 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 2023-11-22. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
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:
|
@0xmiroslav could you please complete your portion of the BZ checklist? |
@dangrous, @namhihi237, @joekaufmanexpensify, @0xmiroslav Eep! 4 days overdue now. Issues have feelings too... |
|
BZ checklist is done. All set to issue payment! |
We need to issue the following payments:
|
@0xmiroslav looks like an offer was made automatically to an upwork account. But it doesn't look like the correct one. I saw on a previous issue you were tracking payment on your end, so I didn't make any payment to you in the issue. Is that still the case? |
@namhihi237 $500 sent and contract ended! |
@namhihi237 $50 sent and contract ended! |
yes, let's close this if other payments are done. Thanks |
Sounds good! There was an automatic offer sent to an upwork account for a Volodymyr for C+ review. Going to end that contract without payment for now. |
Closing as this is all set. Thanks everyone! |
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.3.84.1
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: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697209356639479
Action Performed:
Expected Result:
Selected item is highlighted
Actual Result:
Selected item is not highlighted
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Screen.Recording.2023-10-13.at.22.58.41.mov
Android: mWeb Chrome
Screen.Recording.2023-10-13.at.22.54.20.mov
iOS: Native
Screen.Recording.2023-10-13.at.22.54.40.mov
iOS: mWeb Safari
Screen.Recording.2023-10-13.at.22.08.35.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-13.at.22.02.51.mov
MacOS: Desktop
Screen.Recording.2023-10-13.at.22.04.20.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: