status-im / status-desktop

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

[Profile Showcase] Add `permissionsModel` in the communities model #14238

Open alexjba opened 5 months ago

alexjba commented 5 months ago

The profile showcase delegates need to display the community permissions the same way we're showing them in the community portal. We'll need the permissionsModel in the communities model similar to the curatedCommunitiesModel implementation.

          The `permissionsModel` is missing from the communities model. Adding a task to add it in nim

_Originally posted by @alexjba in https://github.com/status-im/status-desktop/pull/13607#discussion_r1544871703_

jrainville commented 5 months ago

@alexjba can you clarify what is needed here. Which communities model are you talking about?

alexjba commented 5 months ago

The communities delegates from profile showcase now consumes the same data as the curated communities from communities portal. We'll need the community permissions model to display the necessary permissions to join the community and if the user meets the requirement. See the Rariable community below from the design

The communities from the communities portal have this permissions model available here

In profile showcase we're consuming the global communities model and we don't have the permissions info in this model to fill the delegates.

Screenshot 2024-04-09 at 22 52 29
jrainville commented 4 months ago

Moving Profile showcase tasks to next milestone