-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-06-23] [$1000] Invite message input is not auto focus after going back #20092
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Invite message input is not auto focus after going back What is the root cause of that problem?Currently we only trigger focus for invite message input when componentDidMount App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 81 to 90 in 0813e2c
So when we're in the Invite Message page, we go to Assistance page then go back, the Invite Message is not mounted again so above focus logic won't be triggered What changes do you think we should make in order to solve the problem?I think we can listen on navigationFocus change. If the Invite Message previously is not focus, now it's focus, we should trigger focus logic above. More implement details:
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
ProposalPlease re-state the problem that we are trying to solve in this issue.invite message input is not auto focus after going back What is the root cause of that problem?In App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 81 to 90 in 0813e2c
we focus the input only when the component is mounted. When we open What changes do you think we should make in order to solve the problem?I think we should fix this problem in BaseTextInput.
ResultScreen.Recording.2023-06-05.at.17.28.12.mov |
Job added to Upwork: https://www.upwork.com/jobs/~010b8ccb7d8f4f0c12 |
Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Triggered auto assignment to @AndrewGable ( |
Validated this is a bug in slack, moving forward. |
I will work on this |
@hoangzinh Thanks for the proposal. Your RCA is correct and the solution makes sense. Let's do it 🚀 🎀 👀 🎀 C+ reviewed cc @AndrewGable |
@tienifr Thanks for the proposal. I think it's the same as @hoangzinh's proposal but shifted to BaseTextInput. For this issue I think it may be better to keep the logic in the same page. I prefer to keep navigation related HOC at the pages level as navigation may not be available in some outside cases. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Whenever the user comes back from the assistance, the focus is not restored. This happens at least in two pages : the WorkspaceSettingsPage and the WorkspaceInviteMessagePage, What is the root cause of that problem?The cause is twofold:
What changes do you think we should make in order to solve the problem?I would modify Form.js:
What alternative solutions did you explore?I did not thoroughly explore it, but it may be desirable to prevent buttons in general from stealing the focus when being touched. |
📣 @raphaelppp! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@raphaelppp Thanks for your interest here but we have a proposal template to follow, please read the contributing guide. |
Proposal[Updated](link to proposal) |
📣 @hoangzinh You have been assigned to this job by @AndrewGable! |
Ah I missed this comment, thank you! |
Offers sent to @s77rt and @hoangzinh . @dukenv0307 , can you apply to the job in upwork for reporting? |
@s77rt @AndrewGable PR is ready #20667. Please help me review it. Thanks |
@kevinksullivan applied, thank you! |
@dukenv0307 hired 👍 |
🎯 ⚡️ Woah @s77rt / @hoangzinh, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
watching this for 5 more days before paying out. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.28-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-06-23. 🎊 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:
|
Regression Test Proposal
|
Testrail update GH is created, will pay this out in a few days assuming no regressions. |
@AndrewGable, @hoangzinh, @s77rt, @kevinksullivan Huh... This is 4 days overdue. Who can take care of this? |
@kevinksullivan is going to payout! |
Ah sorry for the delay. This is all set! |
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:
Invite message input shout auto-focus after going back
Actual Result:
Invite message input is not auto-focus after going back
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.22-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
Screencast.from.01-06-2023.11_35_36.webm
Recording.851.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685594152627279
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: