natbat / pillarpointstewards

Website for pillarpointstewards.com
Apache License 2.0
7 stars 0 forks source link

Ability for team admins to add/remove people from shifts #348

Closed simonw closed 4 weeks ago

simonw commented 4 weeks ago

At the moment volunteers have to add/remove themselves.

simonw commented 4 weeks ago

Pasted the codebase into a Claude Project

files-to-prompt pillarpointstewards/**/*.py pillarpointstewards/**/*.html -c | pbcopy

And prompted:

Implement a feature where team admins can add/remove team members from shifts. It should be at the bottom of the shift page. It should include a select box with all of the members of that specific team and an Add to shift button, plus a list of current members each with a Remove button. It should submit back to the shift page which will make that change and then redirect the user to that page again

https://gist.github.com/simonw/f75a8c54e0e43306b1a3dd8363051dea

simonw commented 4 weeks ago

I started with that and then tweaked it a bit, including adding code to update ShiftChange records and to display those on the shift page.

simonw commented 4 weeks ago

shift-edit