-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-08-19] [$250] Onboarding tasks - User can write and send a message if fast even if composer hides #46775
Comments
Triggered auto assignment to @kadiealexander ( |
@kadiealexander FYI 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 |
@lanitochka17 : for me the composer never hides. it stays active always. is it supposed to be not brought up at all for "Meet your setup specialist" task or for any task? When is the composer expected to be active like a usual chat as per requirement? below screenshot is 5 min after i reproduced your test steps in staging now. |
Edited by proposal-police: This proposal was edited at 2024-08-04 00:18:56 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Able to send a message from composer, if really quick in action, before composer is hidden. What is the root cause of that problem?We display the composer optimistically until the response from
Hence the composer is not displayed as defined in
The code that defines this logic is present in
This delay is processing of the What changes do you think we should make in order to solve the problem?On average it takes between 450ms to 600ms at my side for We can choose to not optimistically display the composer as an option. Or display the composer in the What alternative solutions did you explore? (Optional)Reproduced the behaviour locally with
Someone from backend can please let me know why |
@kpadmanabhan Your proposal will be dismissed because you did not follow the proposal template. |
Nicely configured github-actions. I typed in most of the items with proposal template itself and saved as draft so that i do not loose it by mistake. @kadiealexander : i hope the proposal wont be dismissed for this reason. |
Job added to Upwork: https://www.upwork.com/jobs/~01a5540041e5f900a2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
@dukenv0307 please review the proposal above, thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.If user opens the read only task and writes something in the composer and sends it fast then user can send a comment before the composer hides What is the root cause of that problem?With the App/src/libs/actions/Report.ts Lines 3231 to 3235 in b8539ab
Another problem, Line 5782 in b8539ab
What changes do you think we should make in order to solve the problem?
Line 5782 in b8539ab
App/src/libs/actions/Report.ts Line 3348 in b8539ab
What alternative solutions did you explore? (Optional) |
Thank you for your proposals @kpadmanabhan Your solution seems like a workaround to me Is the |
@dukenv0307 I mean the system chat is
This report exists in Onyx. |
@dukenv0307 We have to not enable / show composer while reports are being loaded. Other alternative is to have backend expose a light-weight API explicitly defining the type of report clicked. This way we can decide whether to show or hide composer without having to parse all contents of I tried doing the check for We have 2 factors that cause this behaviour here.
Even if I short circuit point 2 as I mentioned above, point 1 will still lead to this behaviour. In my opinion to display optimistically an enabled composer for all reports is not the wise approach, as it leads to issues like this. UX may also choose to show an indication of composer loading until |
We can update the data optimistically. So it can work even in offline mode. Proposal from @nkdengineer looks good to me. We should update permission of task reports optimistically in App/src/libs/actions/Report.ts Line 3348 in b8539ab
One minor suggestion is to add 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @stitesExpensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.18-10 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 2024-08-19. 🎊 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:
|
Payouts due:
Upwork job is here. |
@dukenv0307 please complete the checklist! |
BugZero Checklist:
Regression tests:
Do we 👍 or 👎 |
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: 9.0.16
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): bezawitgebremichael+112233@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
If the task thread is intended to be a read only thread then user should not be able to write and send anything in the composer regardless of the speed of typing
Actual Result:
If user opens the read only task and writes something in the composer and sends it fast then user can send a comment before the composer hides
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6554855_1722100580801.4_5848162808948069277.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: