Closed JayWongjedjan closed 8 months ago
Add property to team data model for invite link This property should be hidden on the response for non-captain or owner users
Create endpoint for joining team based on code team/{teamId}/{inviteCode} (Or code in body whatever works)
Create endpoint for refreshing the code for owners/captains (in case the code leaked or something)
For migration for existing teams, generate a code @AydinE
implemented in team profile page, wait for new design of team register flow
Confirmed that feature is implemented on team profile page.
Waiting for team registration flow implementation.
Is your feature request related to a problem? Please describe. Currently, if the user wishes to invite their teammate to the team they will need to get each player invite ID from their profile and invite them one by one which is a bit of work for team owner to complete this team process
Describe the solution you'd like
1. Add a button to generate team invite link from Create New Team flows on the tournament page. Replace the search for player button with copy team invite.
When creating a new team from the tournament registration button, instead of giving a manage player roster prompt (because they will be no roster to select for a new team anyway), we say that you have successfully created the team and provide them the team invite link so they can use it to send out to invite their teammate and maybe add another button for them to go to their team profile
Example:
Figma: https://www.figma.com/file/89WgpM857ACY8DD0tuHJYc/Component-Library?type=design&node-id=1097-51721&mode=design&t=23BvCzzp502toVh1-0
2. Add a copy team invite button on team profile page
Figma https://www.figma.com/file/89WgpM857ACY8DD0tuHJYc/Component-Library?type=design&node-id=2853-61740&mode=design&t=23BvCzzp502toVh1-0