-
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-12-04] [$500] [Wave 6: Tags] In the Tag list, two tags are highlighted at the same time #30465
Comments
Triggered auto assignment to @kevinksullivan ( |
Job added to Upwork: https://www.upwork.com/jobs/~0193a0141499ea9bba |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When you disable any Tag in OldD in the IOU(NewD) details in the Tag section, two fields are highlighted instead of the one selected. What is the root cause of that problem?In here, when calculating the However, we're actually displaying the only the enabled tags, so in this case the index of the selected tag in the list that is shown is 3 (because the 3rd index tag is disabled so it's not contained in the list). So 2 tags will be highlighted:
What changes do you think we should make in order to solve the problem?We need to make sure when getting the We can assign the enabled tags to a variable
And use it here to calculate the What alternative solutions did you explore? (Optional)We can additionally modify the UX to still show the "disabled but selected" tag. So that tag will still appear in the list. The logic above is still needed to ensure that the list of tags shown to the user and the list used to calculate |
@kevinksullivan, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Reviewing |
@kevinksullivan @tienifr Can you help me test this, I created workspace in old dot and added some tags to this workspaces. I also invited employee account. When I login into employee account in new dot I am only seeing |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@kevinksullivan, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU - In the Tag list, two tags are highlighted at the same time What is the root cause of that problem?The root cause of this issue is that the App/src/components/TagPicker/index.js Lines 39 to 49 in aa30ef2
As the sections only includes The What changes do you think we should make in order to solve the problem?Based on the RCA above, to ensure
To fix the issue and achieve consistent implementation, we can use the same way to calculate We can add const initialFocusedIndex = useMemo(() => {
let tagInitialFocusedIndex = 0;
if (!_.isEmpty(searchValue) || isTagsCountBelowThreshold) {
const index = _.findIndex(lodashGet(sections, '[0].data', []), (tag) => tag.searchText === selectedTag);
tagInitialFocusedIndex = index === -1 ? 0 : index;
}
return tagInitialFocusedIndex;
}, [selectedTag, searchValue, isTagsCountBelowThreshold, sections]); below this line. Click to see demo video0-web.mp4What alternative solutions did you explore? (Optional)N/A |
@alitoshmatov We can use mocked data and modify Onyx.set('policyTags_53F926B8E663366D', {
Department: {
name: 'Department',
tags: {
Accounting: {
name: 'Accounting',
enabled: true,
},
Design: {
name: 'Design',
enabled: true,
},
Engineering: {
name: 'Engineering',
enabled: true,
},
HR: {
name: 'HR',
enabled: true,
},
Infra: {
name: 'Infra',
enabled: true,
},
Legal: {
name: 'Legal',
enabled: true,
},
Marketing: {
name: 'Marketing',
enabled: true,
},
Ops: {
name: 'Ops',
enabled: true,
},
Sales: {
name: 'Sales',
enabled: true,
},
},
},
}); |
@kevinksullivan, @alitoshmatov 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@tylerkaraszewski Can you confirm that disabled tags should not be shown even if they were selected tags, since it might confuse user.
|
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@alitoshmatov Thanks for reviewing proposals. But I think my proposal to use same method as CategoryPicker is the better solution. The selected proposal will have two highlighted tags in search mode. When searching tags, there should be only one highlight tag Looking forward to your feedback before assignment, thanks! |
@eh2077 You are right, I didn't notice issue in when searching tags at the first time. Now I get it what is wrong. Your proposal makes sense and consistent with category picker. @tylerkaraszewski I think @eh2077 proposal is the better solution here. C+ reviewed 🎀 👀 🎀 |
PR ready for review #31475. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.3-11 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-12-04. 🎊 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:
|
[@alitoshmatov] The PR that introduced the bug has been identified. Link to the PR: #27765 |
Looks like we are ready to process the payment |
@tylerkaraszewski, @kevinksullivan, @alitoshmatov, @tienifr Huh... This is 4 days overdue. Who can take care of this? |
All set with payments! |
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.3.91-0
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:
Only one selected tag should be highlighted in the Tag list in all cases
Actual Result:
When you disable any Tag in OldD in the IOU(NewD) details in the Tag section, two fields are highlighted instead of the one selected.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Bug6252293_1698347957221.RPReplay_Final1698318329.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: