Conversation
Once we also have the fallback avatars for Orgs I am hoping that the Avatar component can be refactored so that the full Identity or Org data is passed as one prop and Avatar knows how to handle it. |
@MeBrei Generally the surface should only expect the minimum amount of information needed to fullfill it's purpose. Passing entire objects lends itself to deep coupling. Instead it should only require what is necesary to render itself correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, not super certain about the inline requests in the primitve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(╹◡╹)♡
With #218 avatar fallbacks are provided for identity and can be queried with a handle. This PR extends the
Avatar
component to use the fallback avatar or query it if a handle is provided. This prepares #216 and #211.Note that most of the Avatars in the app are currently still using hardcoded imgUrl which should be replaced when refactoring the components.