rubyforgood / homeward-tails

Homeward Tails 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
65 stars 110 forks source link

Add avatar partial so we can use it where we need an avatar #332

Closed kasugaijin closed 9 months ago

kasugaijin commented 11 months ago

When a user visits /staff they see an avatar that is the user's uploaded image or name initials if no image has been uploaded.

See this PR for implementation: https://github.com/rubyforgood/pet-rescue/pull/326

This PR: https://github.com/rubyforgood/pet-rescue/pull/326 implemented a reusable view for avatars but it used view component (which we decided is not a library we want to incorporate at this time) so was reverted. We need the same outcome but using nice_partials instead.

Acceptance criteria

valentina-buoro commented 10 months ago

Hi, can I work on this please?

kasugaijin commented 10 months ago

@queen-x-vee Yes sounds good. I updated the ticket as before we add avatars anywhere, we need a foundational piece of work to create a reusable avatar partial. So let me know if you are happy to implement this.

valentina-buoro commented 10 months ago

Sure! I am.

kasugaijin commented 10 months ago

@queen-x-vee all yours!

kasugaijin commented 10 months ago

How is this going @queen-x-vee ?

kasugaijin commented 10 months ago

@queen-x-vee How's this going? Let me know if you don't want it and I will reassign!

kasugaijin commented 10 months ago

Ok this issue is now up for grabs! FYI @queen-x-vee

phonghpham commented 10 months ago

@kasugaijin, I can take this on.

kasugaijin commented 10 months ago

Ok all yours @phonghpham