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
[HOLD for payment 2024-05-20] [$500] IOU - Disabled tag is greyed in list but disabled category is shown bold in list. #36485
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
changed the title [-]IOU - Disabled tag is greyed in list but disabled category is shown bold in list.[/-][+][$500] IOU - Disabled tag is greyed in list but disabled category is shown bold in list.[/+]on Feb 14, 2024
What changes do you think we should make in order to solve the problem?
Pass shouldShowDisabledAndSelectedOption in EditRequestCategoryPage to CategoryPicker and instead of passing policyCategories directly, filter out enabledCategories just like enabledTags and pass enabledCategories to getFilteredOptions instead of policyCategories.
but for categories we miss the same piece of code that we use in tags list construction that correctly set enabled prop based on the enabled state we get from BE instead of the manually set one I mentioned above which is always true here
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: no need
Determine if we should create a regression test for this bug. Yes
As workspace employee create money request with category and tag
As workspace admin disable selected category and tag in step 1 in old dot
As employee open money request in step 1 and go to categories/tag
Selected category/tag should be greyed out, but you can still click on it to unselect
After selecting new category/tag or unselecting them, it should disappear
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]IOU - Disabled tag is greyed in list but disabled category is shown bold in list.[/-][+][$500] IOU - Disabled tag is greyed in list but disabled category is shown bold in list.[/+]melvin-bot commentedon Feb 14, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0153013ee28976211a
melvin-bot commentedon Feb 14, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (
External)melvin-bot commentedon Feb 14, 2024
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.kbecciv commentedon Feb 14, 2024
We think that this bug might be related #vip-bills
CC @davidcardoza
Krishna2323 commentedon Feb 14, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
IOU - Disabled tag is greyed in list but disabled category is shown bold in list.
What is the root cause of that problem?
We don't use
shouldShowDisabledAndSelectedOptioninCategoryPickerto filter outenabledCategoriesfor expected UI.App/src/components/CategoryPicker/index.js
Lines 35 to 50 in 2e3840f
What changes do you think we should make in order to solve the problem?
Pass
shouldShowDisabledAndSelectedOptioninEditRequestCategoryPagetoCategoryPickerand instead of passingpolicyCategoriesdirectly, filter outenabledCategoriesjust likeenabledTagsand passenabledCategoriestogetFilteredOptionsinstead ofpolicyCategories.Do same thing in
CategoryPickerApp/src/components/TagPicker/index.js
Lines 42 to 54 in 2e3840f
We have
enabled&nameproperties on a category so there is not much to do here.Result
FitseTLT commentedon Feb 14, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Disabled tag is greyed in list but disabled category is shown bold in list.
What is the root cause of that problem?
We pass enabled as true for selectedOptions here
App/src/components/CategoryPicker/index.js
Lines 29 to 30 in d58b461
It is similar as in tag case
App/src/components/TagPicker/index.js
Lines 36 to 37 in d58b461
but for categories we miss the same piece of code that we use in tags list construction that correctly set enabled prop based on the
enabledstate we get from BE instead of the manually set one I mentioned above which is always true hereApp/src/libs/OptionsListUtils.ts
Lines 1118 to 1125 in f438cb7
What changes do you think we should make in order to solve the problem?
We need to change this here
App/src/libs/OptionsListUtils.ts
Lines 990 to 997 in f438cb7
to
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Feb 19, 2024
@sakluger, @alitoshmatov Huh... This is 4 days overdue. Who can take care of this?
81 remaining items
puneetlath commentedon May 21, 2024
@Krishna2323 has been paid.
@alitoshmatov bump on the checklist.
alitoshmatov commentedon May 21, 2024
Do we agree 👍 or 👎
mallenexpensify commentedon May 22, 2024
I happened to be subscribed here so I created the TR GH
Looks payments are still pending, so leaving open.
puneetlath commentedon May 23, 2024
Oh, thanks @mallenexpensify!
@alitoshmatov has been paid. Thanks everyone!