-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2023-07-21] [$2000] Selecting a chat message and pressing any key focus the message instead of switching the focus to the composer. #16098
Comments
Triggered auto assignment to @sophiepintoraetz ( |
Bug0 Triage Checklist (Main S/O)
|
Tomorrow |
Hopefully have some time today - now that I'm recovering! |
Triggered auto assignment to @PauloGasparSv ( |
Making this external! (btw, the platforms here only mention Web but I think this should work the same way for Web and Desktop so I'm checking that platform too) |
Job added to Upwork: https://www.upwork.com/jobs/~0108a1ba7c41369017 |
Current assignee @sophiepintoraetz is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Current assignee @PauloGasparSv is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Clicking on chat message and pressing a key will focus the message instead of the composer What is the root cause of that problem?Since the ReportActionItem is focusable and focus-visible will be applied when we press any key on it. What changes do you think we should make in order to solve the problem?we need to add a code where we listen for a keypress event and then focus the composer. Additionally, we want to ensure that the key pressed is preserved so that we can update the comment based on the keys that were pressed. // Register an event listener to detect key presses
this.unsubscribeOnKeyPress = DomUtils.onKeyPress((e) => {
// If the composer is already focused, exit early
if (this.state.isFocused) return;
// Otherwise, focus the composer and update the comment with the pressed key
this.focus();
this.updateComment(`${this.state.value}${e.key}`, true);
}); i am using keypress because it fires when a key that produces a character value is pressed down and not for other keys like After implementation Screen.Recording.2023-03-27.at.5.19.23.AM.movWhat alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.When clicking on a chat message and click on any character, the message gets focused and the composer is not. What is the root cause of that problem?The What changes do you think we should make in order to solve the problem?We should make the behavior consistent with Slack, by automatically focusing on the Composer if we press on regular characters like a, b, c, d (not non-character keys like This can be done by:
This function will insert the
Here we'll check:
If all the above is true, we'll focus on the composer (
What alternative solutions did you explore? (Optional)
|
Not overdue! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.40-5 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 2023-07-21. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@Santhosh-Sellavel can you complete the Checklist please? I see you are raising requests through NewDot as well, so can you fire a payment through for |
Note: there has been another regression #23184 from this issue's PR. |
Please hold on from any action there @parasharrajat. I'm proposing to create a follow-up issue to tackle this issue & invest some more time to test this to capture other bugs and handle them holistically by discussing and improving the feature handling. |
Thank you @Santhosh-Sellavel - that's a great idea. I will close this one out but let's reference this one in your master GH when you create it - lmk if you need a hand wrangling it together! |
There is another #23403 regression from this |
Reopening to get some movement on these regressions: @Santhosh-Sellavel please feel free to close once a new issue has been created as discussed here. |
We are discussing these in this slack thread |
Not overdue, still in discussion over at the thread |
Hey, we decided over at slack to close this issue and work on the 2 bugs/regressions in their respective issues instead of rolling the feature back and re-implementing it with a doc or fixing both regressions here. I'll close this issue and comment this on each of the individual bug issues. |
Reviewed the details for @Santhosh-Sellavel. Approved for payment in NewDot based on the BZ summary above. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
...is Melvin okay? I don't think that's correct, right @PauloGasparSv? |
@sophiepintoraetz Yes Melvin is fine. This issue was a referenced in discussion or proposals |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Character is typed in the message composer
Actual Result:
Message gets focused instead
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.87-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:
Monosnap.screencast.2023-03-17.13-47-59.mp4
Recording.1730.mp4
Expensify/Expensify Issue URL:
Issue reported by: @pecanoro
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1679075457783789
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: