You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-10-12] [$500] Web - Members page search bar does not get focused after removing and inviting a member #26955
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Observe that the search bar does not regain its focus after members are removed
Case II
Login to staging new dot
Go to workspaces and select members
3, Click on invite and select a few accounts and click on next and click on invite
Observe that the search bar in members page loses its focus
Expected Result:
Search bar should be focused
Actual Result:
search bar loses focus
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.65.2 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
// If the list has multiple sections (e.g. Workspace Invite list), we focus the first one after all the selected (selected items are always at the top)
// If the list has multiple sections (e.g. Workspace Invite list), we focus the first one after all the selected (selected items are always at the top)
What alternative solutions did you explore? (Optional)
If we only want to re-focus the TextInput for some special pages we can add an extra prop in BaseSelectionList like shouldFocusOnSelect. And then if it's true, we will re-focus on selectRow function.
If (shouldFocusOnSelect) {
textInputRef.current.focus();
}
The search bar does not focus after the invite
In this case, the same goes to the next page and back
In a WorkspaceMembersPage and WorkspaceInvitePage we use SelectionList.
And in BaseSelectionList we just have a logical focus when the component mounts, but when we go to the other page and then go back, the previous page won't unmount which is why the input is not re-focused.
changed the title [-]Web - Members page search bar does not get focused after removing and inviting a member[/-][+][$500] Web - Members page search bar does not get focused after removing and inviting a member[/+]on Sep 11, 2023
changed the title [-][$500] Web - Members page search bar does not get focused after removing and inviting a member[/-][+][HOLD for payment 2023-10-12] [$500] Web - Members page search bar does not get focused after removing and inviting a member[/+]on Oct 5, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.77-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-10-12. 🎊
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.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this 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:
[@jjcoffee] The PR that introduced the bug has been identified. Link to the PR:
[@jjcoffee] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@jjcoffee] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@jjcoffee] Determine if we should create a regression test for this bug.
[@jjcoffee] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
I completed payment for @SofoniasN and @dukenv0307. @jjcoffee could you please complete the BZ checklist so I can complete your payment as well? Thanks!
The PR that introduced the bug has been identified. Link to the PR: N/A - behaviour has always existed
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: N/A
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
Determine if we should create a regression test for this bug. Yes
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Regression Test Proposal
Go to any workspace and select members
Select any member and click on remove
Verify that the search bar regains focus after popover hides
Thanks @jjcoffee! I updated the steps a bit to make them more clear, mainly by using the exact link/button names as well as adding two more steps to cover inviting as well as removing.
I completed payment through Upwork. Thanks everyone!
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Sep 7, 2023
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 7, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)dukenv0307 commentedon Sep 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Members page search bar does not get focused after removing and inviting a member
What is the root cause of that problem?
When selecting an option, we don't re-focus the TextInput same as OptionSelector
App/src/components/SelectionList/BaseSelectionList.js
Lines 170 to 180 in 5db2445
What changes do you think we should make in order to solve the problem?
In
selectRowfunction, we should re-focus the textInput when we select an optionApp/src/components/SelectionList/BaseSelectionList.js
Lines 170 to 180 in 5db2445
What alternative solutions did you explore? (Optional)
If we only want to re-focus the TextInput for some special pages we can add an extra prop in
BaseSelectionListlikeshouldFocusOnSelect. And then if it'strue, we will re-focus onselectRowfunction.namhihi237 commentedon Sep 7, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
We have 2 cases in here
We do not re-focus when select the row here
App/src/components/SelectionList/BaseSelectionList.js
Line 170 in 10ad0cb
The search bar does not focus after the invite
In this case, the same goes to the next page and back
In a
WorkspaceMembersPageandWorkspaceInvitePagewe useSelectionList.And in
BaseSelectionListwe just have a logical focus when the component mounts, but when we go to the other page and then go back, the previous page won't unmount which is why the input is not re-focused.App/src/components/SelectionList/BaseSelectionList.js
Line 273 in 57b7606
What changes do you think we should make in order to solve the problem?
selectRowBaseSelectionListWhat alternative solutions did you explore? (Optional)
N/A
melvin-bot commentedon Sep 11, 2023
@sakluger Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Sep 11, 2023
@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
[-]Web - Members page search bar does not get focused after removing and inviting a member[/-][+][$500] Web - Members page search bar does not get focused after removing and inviting a member[/+]melvin-bot commentedon Sep 11, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01cd4466f923f82031
melvin-bot commentedon Sep 11, 2023
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new.
31 remaining items
[-][$500] Web - Members page search bar does not get focused after removing and inviting a member[/-][+][HOLD for payment 2023-10-12] [$500] Web - Members page search bar does not get focused after removing and inviting a member[/+]melvin-bot commentedon Oct 5, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 5, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.77-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-10-12. 🎊
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.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Oct 5, 2023
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:
sakluger commentedon Oct 13, 2023
I completed payment for @SofoniasN and @dukenv0307. @jjcoffee could you please complete the BZ checklist so I can complete your payment as well? Thanks!
jjcoffee commentedon Oct 13, 2023
Regression Test Proposal
Do we agree 👍 or 👎
jjcoffee commentedon Oct 13, 2023
@sakluger Checklist complete!
melvin-bot commentedon Oct 16, 2023
@sakluger, @jjcoffee, @jasperhuangg, @dukenv0307 Whoops! This issue is 2 days overdue. Let's get this updated quick!
sakluger commentedon Oct 16, 2023
Thanks @jjcoffee! I updated the steps a bit to make them more clear, mainly by using the exact link/button names as well as adding two more steps to cover inviting as well as removing.
I completed payment through Upwork. Thanks everyone!