-
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
[$150] Web - Workspace - Invite new members" field is not focused #44182
Comments
Triggered auto assignment to @adelekennedy ( |
@adelekennedy FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Workspace - Invite new members" field is not focused What is the root cause of that problem?We are directly using App/src/components/SelectionList/BaseSelectionList.tsx Lines 525 to 538 in 854a8a1
What changes do you think we should make in order to solve the problem?We should use useEffect(() => {
if (!textInputAutoFocus || !shouldShowTextInput) {
return;
}
inputCallbackRef(innerTextInputRef.current);
}, [textInputAutoFocus, inputCallbackRef, shouldShowTextInput]);
const prevTextInputValue = usePrevious(textInputValue);
const prevSelectedOptionsLength = usePrevious(flattenedSections.selectedOptions.length); What alternative solutions did you explore? (Optional)Use App/src/components/SelectionList/BaseSelectionList.tsx Lines 516 to 523 in 854a8a1
/** Function to focus text input */
const focusTextInput = useCallback(() => {
if (!innerTextInputRef.current) {
return;
}
InteractionManager.runAfterInteractions(() => {
innerTextInputRef.current.focus();
});
}, []); |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Workspace - Invite new members" field is not focused What is the root cause of that problem?Because of the newly added focusTrap and the Workspace_Invite screen is not included in SCREENS_WITH_AUTOFOCUS: App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 57 to 61 in b021195
When user returns to previous screen, focusTrap will refocus last focused element, What changes do you think we should make in order to solve the problem?We should add the alternatively, if we want to disable refocusing last active element in previous screen we could return false here.. |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
and it is set to
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
I can reproduce, and while this is a small bug I think it's worth it to fix |
Job added to Upwork: https://www.upwork.com/jobs/~01bda364df69d71d2a |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
@rushatgabhane already three proposals above to review |
Upwork job price has been updated to $150 |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @tsa321 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@rushatgabhane PR is ready |
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. |
This issue has not been updated in over 15 days. @rushatgabhane, @srikarparsi, @adelekennedy, @tsa321 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! |
It looks like this was deployed to prod on the 15th and payment is due! |
Payouts due:
|
Do we need a regression test here @rushatgabhane? |
@adelekennedy this was caught by QA so I don't think we do. And it's a very minor edge case bug. |
$150 approved for @rushatgabhane |
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.0.0-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: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Invite members page field is focused
Actual Result:
The invite members page field is not focused
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6520591_1718982403717.Invite_field_Issue.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: