Closed jmgasper closed 11 months ago
On the Resources tab, we will replace the Edit and Back buttons in the header with Add.
Resources
Edit
Back
Add
The Add button will bring up a popup, allowing the user to:
Assignee
There should be Add and Cancel buttons on the popup. Cancel will just close the popup
Cancel
Add will add the user with the selected role by POST to the resources API, similar to how we add copilots when a challenge is edited to select one:
https://api.topcoder-dev.com/v5/resources
{ "challengeId":"123efaf7-fd1f-4e5b-8df5-ad6d9eed3479", "roleId":"cfe12b3f-2a24-4639-9d8b-ec86726f76bd", "memberHandle":"TCConnCopilot" }
Only users with copilot or manager on the challenge, or admin privileges globally should be allowed to use the Add button
Expected behavior
On the
Resources
tab, we will replace theEdit
andBack
buttons in the header withAdd
.The
Add
button will bring up a popup, allowing the user to:Assignee
field on a taskThere should be
Add
andCancel
buttons on the popup.Cancel
will just close the popupAdd
will add the user with the selected role by POST to the resources API, similar to how we add copilots when a challenge is edited to select one:https://api.topcoder-dev.com/v5/resources
Security
Only users with copilot or manager on the challenge, or admin privileges globally should be allowed to use the
Add
button