Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BO33 - Add the capability to change Sponsors' order #198

Open
gregoriopalama opened this issue Apr 17, 2024 · 0 comments
Open

BO33 - Add the capability to change Sponsors' order #198

gregoriopalama opened this issue Apr 17, 2024 · 0 comments
Labels
help wanted Extra attention is needed task This is a Task. Contributors can work on this

Comments

@gregoriopalama
Copy link
Member

Modify the buttons added in #193 to change the order of a Sponsor.
When a sponsor is the first in the list, then the "Put up" button must be disabled.
When a sponsor is the last in the list, then the "Put down" button must be disabled.

Make sure that the list in the page is ordered by the position field for each sponsor.

When a sponsor's position is changed by clicking on a button, we will have 2 sponsors that need the position to change. The call to the Sponsorship API to update the position must be done for the sponsor with the lowest position value: this is because the endpoint will update the position for the other sponsor too.

Depends on #187 and #193.

@gregoriopalama gregoriopalama converted this from a draft issue Apr 17, 2024
@gregoriopalama gregoriopalama moved this from Backlog to Ready in Hedwig Apr 17, 2024
@gregoriopalama gregoriopalama added help wanted Extra attention is needed task This is a Task. Contributors can work on this labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed task This is a Task. Contributors can work on this
Projects
Status: Ready
Development

No branches or pull requests

1 participant