rubyforgood / pet-rescue

Pet Rescue is an application making it easy to link adopters/fosters with pets. We work with grassroots pet rescue organizations to understand how we can make the most impact.
MIT License
59 stars 98 forks source link

Add Filter to Default Pet Tasks page #886

Closed kasugaijin closed 2 weeks ago

kasugaijin commented 1 month ago

Default Pet Tasks are used to create a list of tasks that get automatically created on a new pet. These tasks can apply to all pets, or a specific species. We render these tasks in a table - sign in as staff, go to dashboard, go to Default Pet Tasks.

It would be handy to have a filter so we can filter these tasks on Name, Species, Due After, and Recurring. Please use the same UI design as we do for the Fosters and Adoption Application Reviews page.

ErinClaudio commented 1 month ago

@kasugaijin little help here, please.

is the page below of the tasks page you would like filtered?

Screenshot 2024-07-23 at 2 45 34 PM

if so within the box shown below would you like to

Screenshot 2024-07-23 at 2 47 11 PM

are you thinking of something like this for the filter?

Screenshot 2024-07-23 at 2 50 18 PM
kasugaijin commented 1 month ago

Hey @ErinClaudio

This is for the Default Pet Tasks page at /staff/default_pet_tasks. You can see this page if you log in as as staff and then go to the dashboard and click the Default Pet Tasks link in the navbar.

The filter should look like the one we use for adoption application reviews page /staff/adoption_application_reviews

ErinClaudio commented 1 month ago

It would help if I read the ticket correctly. Thank you

ErinClaudio commented 1 month ago

Got it - I will take this one as long as that is ok.

ErinClaudio commented 1 month ago

start

kasugaijin commented 1 month ago

@ErinClaudio haha no worries. Yes all yours. Please mimick the other filters that use the ransack gem (different from the details provided in your link)

github-actions[bot] commented 2 weeks ago

This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned.