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

Add inactive donation site filtering and reactivate buttons #5094

Conversation

coalest
Copy link
Collaborator

@coalest coalest commented Mar 13, 2025

Resolves #4543

Description

  • Added filter checkbox to show inactive donation sites
  • Added "restore" button for deactivated donation sites

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Added new request specs

Screenshots

image

@cielf
Copy link
Collaborator

cielf commented Mar 13, 2025

LGTM -- I did notice a further issue with inactive donation sites (that if you have a donation with an inactive site, you effectively can't edit the donation) -- and have added it to the queue of proto-issues.

@cielf cielf requested review from awwaiid and dorner March 13, 2025 18:20
Copy link
Collaborator

@awwaiid awwaiid left a comment

Choose a reason for hiding this comment

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

Minor code shuffle request

@@ -57,14 +60,28 @@ def deactivate
donation_site.deactivate!
rescue => e
flash[:error] = e.message
redirect_back(fallback_location: items_path)
redirect_back(fallback_location: donation_sites_path)
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@awwaiid awwaiid left a comment

Choose a reason for hiding this comment

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

I made a minor change. Looks good, thanks!

@awwaiid awwaiid merged commit ac675e8 into rubyforgood:main Mar 15, 2025
11 checks passed
Copy link
Contributor

@coalest: Your PR Add inactive donation site filtering and reactivate buttons is part of today's Human Essentials production release: 2025.03.16.
Thank you very much for your contribution!

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.

Improvements regarding inactive Donation Sites
3 participants