-
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] [MEDIUM] mWeb – Thread – Missing cursor when start a thread in the request preview of workspace chat. #30689
Comments
Triggered auto assignment to @conorpendergrast ( |
Job added to Upwork: https://www.upwork.com/jobs/~01d26fe014dd5d92c1 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
It's intentional to not auto-focus a transaction thread. #26702 (comment) |
@conorpendergrast, @Santhosh-Sellavel Eep! 4 days overdue now. Issues have feelings too... |
I agree with @bernhardoj; this looks like it's working as-designed. @kbecciv if you're seeing this as part of a QA test, could you link to that and I'll reopen and check? Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Compose not auto-focusing when a user presses reply in thread on a request preview What is the root cause of that problem?We are already calling the focus function on rely in thread here but the code is doing nothing. App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 138 to 140 in 7b546b0
*** This line of code is not working for all cases whether it is a chat or request preview but the reason it is auto focusing for empty chat thread is the autofocus prop passed to Compose component (shouldAutoFocus ) is true because isEmptyChat will be true, hereApp/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 127 to 128 in 7b546b0
This is because App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 443 to 445 in 7b546b0
which is already set before the user pressed reply in thread and when the user pressed the reply in thread it is navigated to the transaction thread route and the main composer is rerendered leaving the ref passed to focusComposerWithDelay pointing to an already unmounted text input so when the focus function is called by runAfterInteraction in focusComposerWithDelay hereApp/src/libs/focusComposerWithDelay.ts Lines 22 to 25 in b8f91a4
the compose will not focus because textInput is refering to the already unmounted text input element belonging to the screen that existed before pressing the reply in thread button 👍 .
What changes do you think we should make in order to solve the problem?The solution is to use the appropriate ref pointing to the current Compose text input element in side App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 182 to 192 in 7b546b0
So we will change App/src/libs/focusComposerWithDelay.ts Lines 9 to 34 in b8f91a4
to
And change
to
as we no longer need to pass the textInput ref in this case. but we will need to pass for App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 361 to 362 in 7b546b0
Lastly we will change App/src/components/Composer/index.js Lines 473 to 478 in 7b546b0
to
This 2023-11-06_18-18-55.mp4What alternative solutions did you explore? (Optional) |
@conorpendergrast @bernhardoj @Santhosh-Sellavel the case @bernhardoj commented is right when user presses on a request preview because they most probably want to set some fields and the auto focus will have a distrubing UX effect (b/c of the keyboard popup) but when they select reply in thread they definitely definitely 💯 want to reply with a message on the transaction thread and they expect the compose to be auto focused. And also as I mentioned it in my proposal, the focus code here is just doing nothing App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 138 to 140 in 7b546b0
so the auto focusing is only working by this line that determines the auto focus prop passed to the Compose component.App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 127 to 128 in 7b546b0
So auto focusing is not working for mWeb and native when we press reply in thread if it is a tranaction thread or non empty chat. I think in both cases the expected behaviour is to auto-focus. And I strongly believe this issue should be fixed 💯 👍 . |
Hmm, yeah, this is a good point:
Ok, thanks - I agree that this is a behaviour we should change when they choose Reply in thread |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@conorpendergrast, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick! |
1 similar comment
@conorpendergrast, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@Santhosh-Sellavel Given my rapid about-turn, does this proposal work? |
Sorry, I missed this one also unassigning this one due to less bandwidth! |
@FitseTLT please raise your PR when you are ready |
Pr will be ready in 2 days |
@FitseTLT how are we doing? |
Sorry @muttmuure will make it ready by EOD |
This issue has not been updated in over 15 days. @allroundexperts, @marcaaron, @FitseTLT, @muttmuure 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! |
Old job expired. @FitseTLT I've sent you a new offer here: https://www.upwork.com/nx/wm/offer/102214608 |
$500 to @allroundexperts for C+ |
@muttmuure Accepted the new offer |
bump @muttmuure |
bump for payment @muttmuure |
1 similar comment
bump for payment @muttmuure |
bump @muttmuure for my payment pls |
Sorry, handling now |
Paid up |
$500 approved for @allroundexperts |
On hold for #15992
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.94.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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Cursor is active
Actual Result:
Missing cursor when start a thread in the request preview of workspace chat.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6259243_1698835220741.Missing_cursor.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: