-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] Thread - The compose box is not focused after starting a thread #58874
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
Comments
Triggered auto assignment to @NicMendonca ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The compose box is not focused after starting a thread What is the root cause of that problem?The logic to focus the composer automatically is in App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx Line 271 in c9c9d1e
and We don't have the logic to focus after user starting a thread What changes do you think we should make in order to solve the problem?We should add the condition to check if they want to start the thread. That means it's the empty thread
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Job added to Upwork: https://www.upwork.com/jobs/~021903068815363671624 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
This is not a bug, that's expected. @NicMendonca Can we close this? |
Why do you think it's expected? When we start a thread, that means we want to reply, so opening the keyboard looks right cc @NicMendonca |
@daledah Same thing when you open a chat with any user we don't show up the keyboard. Maybe we should check with the QA team why this is reported (e.g. check if it was caught as part of a regression test) |
IMO, when open the chat on small screen, the users may want to read the message only so always showing the keyboard doesn't necessary. But in this case after reply in a thread, the user actually want to type something so opening the keyboard makes more sense. Please let me know your idea @NicMendonca |
ProposalPlease re-state the problem that we are trying to solve in this issue.Thread - The compose box is not focused after starting a thread What is the root cause of that problem?autoFocus will be false because and shouldFocusInputOnScreenFocus is false for small screen (canUseTouchScreen) App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx Line 271 in c9c9d1e
What changes do you think we should make in order to solve the problem?We initially used to auto focus for mobile if the report is empty chat report but not transaction thread App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx Lines 301 to 307 in acc2e84
This is because we normally don't auto focus for mobile to avoid keyboard opening disturbing user experience but if the report is empty there is nothing to see unless it is transaction thread so we auto-focus. But in here we removed (shouldFocusInputOnScreenFocus || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentReportAction))) && to auto focus but only avoid the keyboard openingBut another problem arose and we readded shouldFocusInputOnScreenFocus condition in here to avoid auto focus on mobile So in the process we lost the important condition || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentReportAction)) .Therefor we should re-apply it What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N / A What alternative solutions did you explore? (Optional) |
This is intended behavior. We are intentionally not opening the keyboard under any condition. Tagging the @Expensify/design team for their input. |
That is indeed correct, I think we can close. I could see an argument that if you are going to start a thread, you might want the compose box immediately focused but I don't feel too strongly - I think this is a case where I would prefer consistency and that we don't auto focus. Let's see what the other designers think though! |
@shawnborton What about our previous logic of autoFocusing for empty chats which is:
|
I would prefer to never autofocus—even when starting a new chat/thread. |
Okay cool, I say we close then. |
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: 9.1.16-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
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): n/a
Issue reported by: Applause Internal Team
Device used: iPhone 13 / 18.3.2
App Component: Chat Report View
Action Performed:
3.Start a thread in an owned message
Expected Result:
The compose box is focused after starting a thread
Actual Result:
The compose box is not focused after starting a thread
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6777503_1742513865978.ScreenRecording_03-20-2025_18-33-59_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rtThe text was updated successfully, but these errors were encountered: