status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
301 stars 79 forks source link

Decompose `ContactDetails` into smaller, flexible components #16793

Open micieslak opened 21 hours ago

micieslak commented 21 hours ago

Description

Currently ContactDetails takes contact store and profile store to uniformly provide details for contacts, from the model and own profile. It means that components accessing contacts via ContactDetails become dependent on those two stores. However in some cases it's not necessary, and lighter container for contact details would be useful (e.g. preview of own profile).

The idea is to split ContactDetails into 3 elements: