-
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
[HOLD for payment 2023-05-29] [$1000] ‘Message’ input field is not auto-focused even though it is the only input field in the page #18371
Comments
Triggered auto assignment to @abekkala ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPosting proposal early as per new guidelines Please re-state the problem that we are trying to solve in this issue.Within workspace invite message page, Message input field is not auto-focused even though it is the only input field in this page. What is the root cause of that problem?Message input field is rendered via this code. App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 193 to 205 in c7a8a88
We can see that text input component is not focused by any way on this page. This is the root cause of the problem. What changes do you think we should make in order to solve the problem?We have to create ref for text input and autofocus it at transition end. i.e. We have to pass <ScreenWrapper
onEntryTransitionEnd={() => {
if (!this.welcomeMessageInputRef) {
return;
}
this.welcomeMessageInputRef.focus();
const length = this.welcomeMessageInputRef.value.length;
this.welcomeMessageInputRef.setSelectionRange(length, length);
}}
...
>
....
<TextInput
ref={el => this.welcomeMessageInputRef = el}
...
/>
...
</ScreenWrapper> So this will solve the issue as shown in result video. Note: We can also keep existing text as selected while focus the text input by using What alternative solutions did you explore? (Optional)We can also set <TextInput
autoFocus
shouldDelayFocus
...
/> Results18371-InviteMemberAutoFocus.mov |
Job added to Upwork: https://www.upwork.com/jobs/~0144056c8fb602a0e4 |
Current assignee @abekkala is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
1 similar comment
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @hayata-suenaga ( |
not overdue external label was just added now |
ProposalPlease re-state the problem that we are trying to solve in this issue.Invite Message input field should be auto focussed at the end of the invite message. What is the root cause of that problem?No real autofocusing prop was used in the TextInput field where the message is rendered. What changes do you think we should make in order to solve the problem?The problem can be solved by adding 2 extra props on the faulty TextInput field.
expensifyrecord.mov |
📣 @rasulkhan-work! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@mollfpr when you have chance, can you review the proposals? |
Reviewing now! |
@hayata-suenaga proposal from @PrashantMangukiya looks good to me! We should use the 🎀 👀 🎀 C+ reviewed! |
@mollfpr thank you for the review. I agree. assigning @PrashantMangukiya |
reviewing now |
@PrashantMangukiya @abekkala @mollfpr @hayata-suenaga this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
ops forgot to update I'm approving the PR now |
@abekkala I belive this issue should be considered as a bonus issue as @PrashantMangukiya finished his PR within three days. I was taking time to check something in his PR but it turned out the PR is alright if no regression arises during the wait period, that is |
merged! |
@hayata-suenaga Thank you. I think there is some automation glitch here, because Reviewing label not applied by Melvin-bot, can you please apply the Reviewing label for the issue. Have a nice day. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.16-7 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-05-29. 🎊 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:
|
Payments to be made on May 29:
|
@mollfpr I have sent the contracts - once the checklist is done above and contracts accepted I can initiate the payments. |
Thanks @abekkala I will complete the checklist within hours. |
No offending PR. This is an improvement for the invite workspace member page; we have yet to set the autofocus before the form refactor here #18791.
The regression step should be enough to catch this bug.
Propose regression step
|
@mollfpr and @PrashantMangukiya Payments have been made and contracts ended - Thank you! 🎉 @Natnael-Guchima once you accept the contract offer in Upwork I can send your payment! |
@abekkala it seems you have sent me a $1000 offer for bug reporting bonus. I think it should be 250. |
Hmm, ok, I thought I changed it to $250. I can redo it! |
@Natnael-Guchima updated to $250! |
@abekkala accepted. Thanks. |
@Natnael-Guchima paid and contract ending - thank you! 🎉 |
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:
Message input field should be auto-focused
Actual Result:
Message input field is not auto-focused
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.9-14
Reproducible in staging?: y
Reproducible in production?:
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
2023-05-03.04.42.18.mp4
Recording.470.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Natnael-Guchima
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683078396397269
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: