-
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
[$125] Web - Inconsistent behavior of tag disappearing and reappearing when requesting money #38744
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
@joekaufmanexpensify I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think that this bug might be related to #wave-collect - Release 1 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Tag - Inconsistent behavior of tag disappearing and reappearing What is the root cause of that problem?The useEffect below is autoselecting the tag even when user deselects it. App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js Lines 507 to 521 in 9c8ac29
What changes do you think we should make in order to solve the problem?The Resultauto_selected_tag.mp4AlternativelyWe can just remove the dependencies array of the |
1 similar comment
ProposalPlease re-state the problem that we are trying to solve in this issue.The tag field first becomes empty and there is a noticeable delay before the selected tag "Child: Tom" shows up again. This behavior is different from the one seen on step 4, where there is no noticeable delay. What is the root cause of that problem?We have a App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js Lines 506 to 515 in 8970d08
But In This bug is the same for category What changes do you think we should make in order to solve the problem?Since we auto select the tag if it's required and there's only one tag to select, we should disable user go to
Update the condition to show the right icon here to
And update the
Do the same way for category What alternative solutions did you explore? (Optional)NA |
Job added to Upwork: https://www.upwork.com/jobs/~010aab18242acca3aa |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
@luacmartins could you reproduce this? I'm not able to reproduce the behavior shown in OP at all. Maybe the performance is a bit slower on the second attempt to request, but nothing like the above video. If this is just impacting one tag, feels like pretty minor edge case, no? Not sure like it feels worth prioritizing. 2024-03-22_12-17-26.mp4 |
@joekaufmanexpensify, it's reproducible on slower machines I guess but I have reproduced it easily, also the important issue here is that the user is unable to deselect the tag which is possible when we have more than one tag. |
I haven't tried to reproduce, but it seems like it might happen on slower connections so maybe we can try to throttle it in the browser inspector. Also, I looked at the issue and this doesn't seem related to simplified collect, so I'm removing that from the project. |
@luacmartins @joekaufmanexpensify, the problem lies in the code below, which automatically selects a tag when there is only one available and it is required. We need to disable the deselection of the tag on the tag selection page when there's only one tag available and it's required. The reason it disappears and reappears is because, on the tag selection page, we allow tag deselection. As a result, it gets deselected, and when we return to the confirmation list, the code below once again selects the tag. We might also want to show an error message when user deselects it. App/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js Lines 507 to 521 in 9c8ac29
|
So it seems like this is the expected behavior? Tags are required and we have only one tag, so it should be selected and user's can't deselect it. Maybe in that case we should disable the editing of tags altogether. |
@luacmartins, yep, we need to make changes so that users can't deselect it on tags selection page. |
I meant if tags are required and users only have a single tag, we auto select it and the |
@luacmartins, I guess disabling the option on categories options page makes more sense so users can get know they only have one category and that is the reason why they can't deselect it. |
Issue not reproducible during KI retests. (Second week) |
Alternative Proposal from @Krishna2323 looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Great, let's just proceed with removing the dependencies array. Thanks for the convo here! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@sobitneupane, PR ready for review. |
Great. TY! |
Issue not reproducible during KI retests. (Third week) |
@joekaufmanexpensify, PR was deployed to production on 22nd April, this is ready for payments process. |
All set to issue payment! We need to issue the following payments:
|
@Krishna2323 $125 sent and contract ended! |
@sobitneupane please request $125 via NewDot, and confirm here once complete. |
Bumped @sobitneupane in slack here. |
Requested payment in newDot |
Great. TY! All set. Payment summary is here. |
$125 approved for @sobitneupane |
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.4.55-0
Reproducible in staging?: y
Reproducible in production?: y
Issue reported by: Applause - Internal team
Action Performed:
Preconditions:
In OldDot under admin, create a Collect group policy, enable tags and add the tag "Child: Tom", and it should be the only tag in the policy. Add the employee to the policy. Setup OldDot Collect Policy:
https://sites.google.com/applausemail.com/applause-expensifyproject/wiki-guides/newdot-categories?authuser=0
Expected Result:
The behavior seen on step 4 should be the same for step 8 as well
Actual Result:
The tag field first becomes empty and there is a noticeable delay before the selected tag "Child: Tom" shows up again. This behavior is different from the one seen on step 4, where there is no noticeable delay.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6421398_1711004073820.bandicam_2024-03-21_09-47-07-173.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: