-
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-01-24] [$500] Category - Selected category is not in the list when it is disabled and there is <8 categories #29901
Comments
Triggered auto assignment to @bfitzexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~0118e9d838643f7221 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
@lanitochka17 |
ProposalPlease re-state the problem that we are trying to solve in this issue.A disable category will never show up in the categories when it's selected and the category count is less than 8. What is the root cause of that problem?
const categoriesValues = _.chain(categories)
.values()
.filter((category) => category.enabled)
.value(); What changes do you think we should make in order to solve the problem?→ We should find the selected, but disabled categories using the following => const selectedDisabledOptions = _.filter(categories, (category) => !category.enabled && selectedOptions.find((option) => option.name === category.name)); → In the case of if(selectedDisabledOptions.length > 0) {
categorySections.push({
// "Selected" section
title: '',
shouldShow: false,
indexOffset: 0,
data: getCategoryOptionTree(selectedOptions, true),
});
} What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selected category is not in the list when it is disabled and there is <8 categories What is the root cause of that problem?Let's see the logic to get categories App/src/libs/OptionsListUtils.js Line 765 in 69119aa
If numberOfCategories < 8, we return all enable categories What changes do you think we should make in order to solve the problem?we should move this code App/src/libs/OptionsListUtils.js Lines 787 to 797 in 69119aa
to before App/src/libs/OptionsListUtils.js Line 765 in 69119aa
and in here App/src/libs/OptionsListUtils.js Line 771 in 69119aa
update to
One more thing, when there is a selected category we also need to decrease the threshold to ensure we only display 7 categories App/src/libs/OptionsListUtils.js Line 765 in 69119aa
update like that
What alternative solutions did you explore? (Optional) |
@cooldev900 Hello |
Thank you |
@bfitzexpensify, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too... |
Couple of proposals ready for review @aimane-chnaif |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Bump on proposal review @aimane-chnaif - thank you! |
reviewing |
@bfitzexpensify, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abdel-h66 @DylanDylann how were you able to remove category in oldDot? |
Triggered auto assignment to @yuwenmemon, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @aimane-chnaif 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@aimane-chnaif The PR is ready for review |
This issue has not been updated in over 15 days. @yuwenmemon, @bfitzexpensify, @aimane-chnaif, @DylanDylann eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
Seems like automation was broken here |
@bfitzexpensify Could you help to move forward this issue? |
Payments complete. Adding a manual BZ checklist here - please complete when you get a moment @aimane-chnaif 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:
|
The bug always existed always after implementing category. |
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.86-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
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:
Precondition: There must be less than 8 categories in the workspace.
Expected Result:
The selected category will appear in the list with a green tick mark
Actual Result:
The selected category is not present in the category list
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6242102_1697653864127.20231018_201159.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: