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-09-27] [$500] Workspaces - Auto select member after invite #26667
Please re-state the problem that we are trying to solve in this issue.
Pressing enter in the workspace invite message page and select the member in the members' page.
What is the root cause of that problem?
Both workspace members and invite member pages use SelectionList to show the list. SelectionList subscribe to enter key to select/toggle the member selection. When the screen is out of focus, in this case, we go to the invite message page, the keyboard subscription is still active.
Activity
melvin-bot commentedon Sep 4, 2023
Triggered auto assignment to @michaelhaxhiu (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 4, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)bernhardoj commentedon Sep 5, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Pressing enter in the workspace invite message page and select the member in the members' page.
What is the root cause of that problem?
Both workspace members and invite member pages use SelectionList to show the list. SelectionList subscribe to enter key to select/toggle the member selection. When the screen is out of focus, in this case, we go to the invite message page, the keyboard subscription is still active.
App/src/components/SelectionList/BaseSelectionList.js
Lines 287 to 299 in b95c1dd
What changes do you think we should make in order to solve the problem?
In OptionsSelector, we already have a fix to unsubscribe the enter listener when the screen is out of focus, so we can apply the same solution.
App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 77 to 83 in b95c1dd
In SelectionList, use
useIsFocusedhook to get the screen focus state and use it to disable the keyboard listener here:App/src/components/SelectionList/BaseSelectionList.js
Lines 288 to 292 in b95c1dd
[-] Workspaces - Auto select member after invite[/-][+][$500] Workspaces - Auto select member after invite[/+]melvin-bot commentedon Sep 8, 2023
Job added to Upwork: https://www.upwork.com/jobs/~011a838c373f60f807
melvin-bot commentedon Sep 8, 2023
Triggered auto assignment to @anmurali (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.33 remaining items
michaelhaxhiu commentedon Sep 27, 2023
Nice job! Let's pay this now.
michaelhaxhiu commentedon Sep 27, 2023
@sobitneupane let us know after you request payment please, so I can close this GH :)
melvin-bot commentedon Sep 28, 2023
Triggered auto assignment to @joekaufmanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.michaelhaxhiu commentedon Sep 28, 2023
I'm re-assigning this to another BZ as part of my preparation for Sabbatical (starting Friday).
Next steps:
joekaufmanexpensify commentedon Sep 29, 2023
@sobitneupane tracks these in his end, so no need to leave this one open for now. We just need to issue payment once he requests it!
sobitneupane commentedon Oct 9, 2023
#26667 (comment)
Requested payment on newDot.
JmillsExpensify commentedon Oct 9, 2023
$750 payment approved for @sobitneupane based on BZ summary.