status-im / status-desktop

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

[Profile Showcase Popup backend]: Backend needed for delegates #13782

Open alexandraB99 opened 8 months ago

alexandraB99 commented 8 months ago

Description

MishkaRogachev commented 8 months ago

My vision of what the backend should provide:

alexjba commented 7 months ago

@alexandraB99 The new backend will use a different models structure and most of the data required for the new delegates should be there once the profile showcase is integrated.

Social links model with at least url and domain

The domain could be fetched in the UI. We'll probably need a helper function for this.

FIGMA permissionsModel and allTokenRequirementsMet in Communities Model

We need to check if the main communities model contains the permissionsModel as well. We will use this model in the showcase. Otherwise we need another approach. (probably another task to tackle this) @alexandraB99 who do we need allTokenRequirementsMet? I see in the designs the lock indicator when a community has permissions, but I can't spot the case where we need to check if the allTokenRequirementsMet.

userHas (this shows if the user has >1 of a given collectible, some variants showing what we do as that number increases is shown here:

Check balance property in the main collectibles model. If the main wallet model supports this, we should have it in the showcase models as well.

ManageCollectiblesModel: we need to know if the collectible belongs to a community and the community id, and/or the url and domain FIGMA

Already supported in the main wallet model. We'll use the same model for profile showcase.

Assets will need an address to view on GoinGekko (figma) as well as communityName and communityId

We'll probably use the same approach as for the collectibles. If we have this in the main wallet model it's fine. Otherwise we'll probably need to add it there. TBD

jrainville commented 6 months ago

Moving Profile showcase issues to 2.30 for now as it's no longer priority