[HOLD for payment 2021-11-04] Allow inviting multiple users to a workspace by reusing the OptionsSelector component
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Expected Result:
When accessing the "Invite People" page we should be able to choose users from a list of our contacts (personalDetails) similar to how the Bill Split page works maybe?

I'm not totally sure how we want this design to work yet and could use some feedback from design.
cc @JmillsExpensify @MitchExpensify
Actual Result:
We can only add one user at a time.

Workaround:
Can invite multiple people in the current design by separating the emails by a comma. This feature is not very clear as documented by @Santhosh-Sellavel in https://github.com/Expensify/App/issues/4668
Platform:
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:
Triggered auto assignment to @michelle-thompson (Design), see these Stack Overflow questions for more details.
Just commenting here to follow this discussion!
I can work on this if you decide how the user interface should look. I have experience with OptionsSelector and OptionsListUtils.js in #2818
Big fan of being consistent and using the same invite design as "New Group" for workspace invites. One small note is that you can invite multiple people in the current design by separating the emails by a comma so the "workaround" and "actual result" sections are a little off. I still think we should 100% make this change
this seems like a good external candidate. Please share any proposals here and we'll get you hired for the Upwork job cc @kakajann @Santhosh-Sellavel
https://www.upwork.com/jobs/~01efc6bdfcc984aaa3
Triggered auto assignment to @Julesssss (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Initial Proposal
We could reuse the code from IOUParticipantsSplit.js
In WorkspaceInvitePage which is currently.
Need to modify few lines as per our need here.
Let's pause here.
@MitchExpensify We need to clear few things before a head start:
- What's the flow now. The invite page is a single or multiple page?
- Need a design with
copiesto understand the flow required. - Is there any limit to the total no of workspace users?
One clarification will I get a bonus for this since issue #4668 which I raised was closed. And we are proceeding with this one. And changes I suggest in there are already implemented now.

Thanks!
We need to await the design before accepting any proposals here. CC @michelle-thompson
One problem I see is that our previous usages of the OptionsSelector Component extend to the full page. In this case, we might need to reduce the height to include the personal message field. Another problem is that the component will extend infinitely as the user selects users to invite, further hiding the personal message field.
@Santhosh-Sellavel
- What's the flow now. The invite page is a single or multiple page?
- Need a design with
copiesto understand the flow required.- Is there any limit to the total no of workspace users?
Thanks for the clarifying questions. There is no workspace user limit. We'll need to hold on to answering the other questions until the design is finalized.
One clarification will I get a bonus for this since issue #4668 which I raised was closed. And we are proceeding with this one.
@Santhosh-Sellavel I think you have a reasonable claim to that bonus, but I don't think this is the right issue to claim the bonus on. Your initial proposal was to include a hint in the input field and as this was added as a part of this issue I think you should raise this point there instead.
Before we get this on Upwork, I think we should nail down the design first. Does anyone agree?
Just a suggestion. 2 screens would be good to solve this issue.
1st screen:
OptionsSelectorto select users.- Next
button.
2nd screen
- Preview selected Users.
- Personal message
input. - Invite
button.
I can grab this one quickly @michelle-thompson
I think it would be better if we could still keep the message and the user selection all on one screen... that being said, not sure if this feels a bit awkward but here is what we would have:

Ideally the textarea would grow/shrink depending on the message in it too to save some space. Thoughts?
Hey @marcaaron - it looks like this issue is related to what was initially reported here by Santhosh.
Can you confirm I have this correct, this issue relates to fixing what was originally reported by Santhosh?
If that's the case, then we'll want to pay Santhosh for originally reporting this issue (I will start that process). Thanks!
@shawnborton it sounds good to me, but it would be useful to know which of the components should scroll when the invited user's list expands further?
- The full Modal content scrolls, user has to scroll down to see 'Next' button
- The user list scrolls, so the 'Next' button remains in view at all times
Both the green button and the bottom message input would be docked to the bottom. Everything else except the page header and search input would be scrollable. That might not work so well on small mobile devices though.
Hey @marcaaron - it looks like this issue is related to what was initially reported here by Santhosh.
@Christinadobrzyn Sorry I don't have a clear answer for you there. It was reported by me internally weeks prior, but no issue created in our public facing repo since it's still in the design / planning phase. I would maybe ask other contributor management team members for feedback on what to do in this case.
Thanks, Shawn. We're ready for proposals now.
@MitchExpensify assigned you as CM cuz you assigned yourself earlier via the External label. Update if needed