Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #705 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #705 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
AdrianDAlessandro
left a comment
There was a problem hiding this comment.
I know you haven't requested a review yet, but this is already looking pretty good.
Inviting members and promoting them to manager remain separate.
Have you opened separate issues to tackle this? The inviting members option should be really easy (just include a button that links to the "team-invitation-link" url), so it might be easy to just add that to this PR.
Promoting to manager requires a little more thought.
Additionally, managers should be able to delete their teams. And members should be able to leave their teams. Possibly a red button (btn-danger) at the bottom?
| <h1>My Teams</h1> | ||
| <div class="d-flex flex-wrap align-items-center justify-content-between gap-2 mb-3"> | ||
| <h1 class="mb-0">My Teams</h1> | ||
| <a class="btn btn-dark" href="{% url 'team-create' %}">Create team</a> |
There was a problem hiding this comment.
| <a class="btn btn-dark" href="{% url 'team-create' %}">Create team</a> | |
| <a class="btn btn-primary" href="{% url 'team-create' %}">Create team</a> |
| <form method="post"> | ||
| {% csrf_token %} | ||
| {{ form|crispy }} | ||
| <button type="submit" class="btn btn-dark">Create team</button> |
There was a problem hiding this comment.
| <button type="submit" class="btn btn-dark">Create team</button> | |
| <button type="submit" class="btn btn-primary">Create team</button> |
|
Thanks @AdrianDAlessandro. I've added an "Invite members" button to the team page, shown only to managers, linking to the invitation link page. Promoting/demoting managers, leaving a team and deleting a team each need a bit of design (e.g. protecting the last manager, confirmation before deleting), so I've opened #912, #913 and #914 for those rather than grow this PR. The service functions for leaving, removing members and changing roles already exist in |
Summary
Closes #705. Inviting members and promoting them to manager remain separate.
Evidence
pytest: 317 passed, 37 expected accessibility failures.mypy ., pre-commit, andmkdocs build --strictpassed. The new controls fit at 390px and 1280px in Chromium.Merge Danger
Door: Two-way. No model or migration changes. Reverting the form leaves teams already created in place.
Blast Radius: Teams.