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

Adopter Fosterer Dashboard: add fostered pets resource #1023

Open
kasugaijin opened this issue Oct 2, 2024 · 3 comments
Open

Adopter Fosterer Dashboard: add fostered pets resource #1023

kasugaijin opened this issue Oct 2, 2024 · 3 comments
Assignees

Comments

@kasugaijin
Copy link
Collaborator

If you log in as an adopter and go to the dashboard and click on adopted pets, you will see the adopted pets, and you can then click on two tabs to show the files and incomplete tasks.

We need to copy this implementation for fosterers, so they can do the same for their fostered pets. The fosterer should be able to go to their dashboard, see a link that says 'Fosters', click it, and see tiles for each dog currently in foster, and then click a tile to see that dog's files and incomplete tasks. This link should not be visible to users that are adopters only.

For reference, this is for pets with aMatch where the person_id matches that of the fosterer user, and the Match has a match_type of foster and it is a current match.

Implementation suggestions

  • a new Organizations::AdopterFosterer::FosteredPetsController and route to render the correct collection of fostered pets
  • re-use the same policy
  • re-use the same resources and implementation of these resources as the adopted pets flow
  • if you see opportunities to reduce duplication in the view, feel free to make shared partials that can live in Organizations::AdopterFosterer::Shared
@kasugaijin kasugaijin added the Ready Make a comment to get assigned. label Oct 2, 2024
@kasugaijin
Copy link
Collaborator Author

@sarvaiyanidhi FYI this issue is up and very similar to what you just worked on, if you are interested :)

@sarvaiyanidhi
Copy link
Contributor

Sure @kasugaijin I would love to work on it.. Can you please assign it to me?

@kasugaijin kasugaijin removed the Ready Make a comment to get assigned. label Oct 2, 2024
@kasugaijin
Copy link
Collaborator Author

@sarvaiyanidhi all yours!

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

No branches or pull requests

2 participants