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

Admin tweaks - Delete stream badges and change logic for build submission rejections #125

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

Pabl0cks
Copy link
Member

Description

Couple of tweaks in /admin:

  • When a grant is in approved status, users can submit their builds to be able to complete their grant and receive the rest of their grant amount (if admins approve the build proposal).

    In case the build is not complete, and admins want to reject the build submissions, changed the logic of reject action, to change the status of the grant to "approved" instead of "rejected", so users can resubmit the build when they fix their problems. The condition I'm checking is if the current status of the grant prior executing the rejection logic was "submitted".

    The reject/approval notes were always showing in /my-grants for grants in approved status, so didn't need to tweak it.

    Closes Kick back build submissions #123

  • Also deleted stream badges since regular streams don't exist anymore.

    Closes Delete regular stream info from submissions at /admin #124

Copy link

vercel bot commented Jun 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
grants-bg ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 11:01am

@Pabl0cks Pabl0cks requested a review from carletex June 20, 2024 11:03
Copy link
Contributor

@carletex carletex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it and it's working great. Thanks @Pabl0cks

I think this is the most simple & clean solution. It might introduce some confusion (people seeing their grant as "approved" again... but with a rejected note :D), but I think it's a good first iteration.

We can always add a new state "reject-build" in the future.

@carletex carletex merged commit 85a25da into main Jun 20, 2024
3 checks passed
@carletex carletex deleted the admin-tweaks branch June 20, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete regular stream info from submissions at /admin Kick back build submissions
2 participants