thewca / worldcubeassociation.org

All of the code that runs on worldcubeassociation.org
https://www.worldcubeassociation.org/
GNU General Public License v3.0
331 stars 176 forks source link

Delegate & Memberships manage page #8123

Open danieljames-dj opened 1 year ago

danieljames-dj commented 1 year ago

In user edit page, can we have two more tabs - 'Delegate' and 'Membership'?

Each will have the 'Active Roles' and 'Past Roles' sections. In each row, it will show the role, start date and end date (for active roles, end date won't be shown, instead something like 'Since '). For the active roles, we can also have an 'edit' button which when clicked will open a form to update the role status, or end role. We will also have a button 'add role' to add a new role to the user.

The UI component can be shared with the component mentioned in https://github.com/thewca/worldcubeassociation.org/issues/8096.

This implementation will also solve our issue of not sending emails for changes in memberships.

dunkOnIT commented 1 year ago

Is it possible to create a level of abstraction that combines these? For example, a "Roles" tab where a User's Delegate and Memberships would be listed.