-
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
[$500] User can unpin a report and mark it as unread/read simultaneously. #26917
Comments
Triggered auto assignment to @abekkala ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.User can unpin a report and mark it as unread/read simultaneously. What is the root cause of that problem?The
What changes do you think we should make in order to solve the problem?Solution 1 However, it looks like the delay may be required when the context menu is displayed elsewhere.
Solution 2 Why not a
Solution 3 (not working) To achieve this, the following changes will be made in BaseReportActionContextMenu.
-onPress={() => interceptAnonymousUser(() => contextAction.onPress(closePopup, payload), contextAction.isAnonymousAction)}
+onPress={singleExecution(() => interceptAnonymousUser(() => contextAction.onPress(closePopup, payload), contextAction.isAnonymousAction))} After testing this approach, it does not work as intended. While it works on native platforms, there seems to be no latency on web and the internal What alternative solutions did you explore? (Optional)None. |
ProposalPlease re-state the problem that we are trying to solve in this issue.User can unpin a report and mark it as unread/read simultaneously. What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
Result
Screencast.from.24-08-2023.22.59.14.webm
Screencast.from.25-08-2023.02.26.25.webm |
Job added to Upwork: https://www.upwork.com/jobs/~01c0f25974eee0955c |
Current assignee @abekkala is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Why is this an issue? Does one action prevent the other? or Does one action create issues for the other? |
@parasharrajat I think the expected is: User cannot click two items at once |
Technically, they are being clicked one by one, not at a time. |
@parasharrajat Yeah, I mean that once the ContextMenu is open, user can click on one item |
Ok. It might be but IMO, it is fine. |
It was decided in the Slack discussion that we should ensure the modal is closed when a context item is selected. Rather than staying open after the first selection |
@abekkala, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abekkala, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abdulrahuman5196 have you had a chance to review the proposals that have been provided? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@abdulrahuman5196 have you reviewed the proposals for the fix? |
@abekkala @abdulrahuman5196 Currently, we are using the animation when selecting Mark as unread or Pin so I think we should not close the modal immediately after selecting item Screencast.from.15-09-2023.11.57.21.webm |
@abekkala @abdulrahuman5196 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
Reviewing now |
@abekkala Sorry for the delay.
I agree on this. We can't close immediately. What should be the expected behaviour here? Do we make the other options not clickable? |
@abdulrahuman5196 my proposal will make other options not clickable #26917 (comment) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
But I am doubtful if we want it. Because if its not clickable how can the UI be? It would be better to confirm what exact behaviour we want? Like I have asked here #26917 (comment) cc: @abekkala |
@abdulrahuman5196 Yeah we need to confirm. In my opinion, my proposal will disable other options, and when hovering over these options, it will display as {cursor: not-allowed} and the color will change to any "none-actvie" color |
@abekkala, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@abekkala Gentle ping on this. And another point is, I am also skeptical about changing this behaviour. Because there are multiple other popovers using the same behaviour and we would end up changing others as well. |
@Julesssss pulling you in here as you were on the Slack conversation. Should the modal close and not keep open to click back and forth both options? |
I don't think the animation is necessary tbh. The user doesn't need to see the state change to understand that it has occurred, plus it is causing this bug and looks like UI lag. Having said that, if the animation is desired then let's just do nothing here. Let's ask @Expensify/design for their thoughts. |
Triggered auto assignment to @dannymcclain ( |
I'm actually curious why we think this is a bug? I mean if the menu is open, and the options are selectable, why can't the user select either one as quickly as they want? I mean obviously this is an edge case and we try to close the popover menu after one is selected. But I don't know that this is a "bug" personally. |
@shawnborton You can check this one #24261. In that, we also prevent users from selecting two emojis at once |
Sure, but this is different - these aren't the same action (adding an emoji) - they are two distinct actions. |
@dannymcclain @Julesssss @abekkala @abdulrahuman5196 this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @abdulrahuman5196 is eligible for the Internal assigner, not assigning anyone new. |
Ok, so it sounds like initially in the slack thread we decided this was something to "fix" and now after further reflection we decided this is not a bug. @Julesssss we good to just close this then? |
Yeah, I agree. While not ideal let's not fix something that isn't broken |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
User should be able to select one at a time.
Actual Result:
User is able to select both at a time.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.65-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
Notes/Photos/Videos: Any additional supporting documentation
bug_demo.mp4
web.mov
Expensify/Expensify Issue URL:
Issue reported by: @Krishna2323
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692160684023549
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: