status-desktop
status-desktop copied to clipboard
[ProfileShowcase - Preview] Prepare the profile showcase data for own profile dialog view
Description
When viewing own profile dialog, the showcase data needs to be fetched from the profile store and joined with the app data to be presented. The current implementation will no longer work after integrating https://github.com/status-im/status-desktop/issues/13908.
This change is needed for all profile views disregarding on how it was opened.
We'll need a similar (but lighter) approach as we're using in the ProfileShowcaseModels
. This approach is already working for the live preview.
Proposal:
- Use https://github.com/status-im/status-desktop/blob/master/ui/app/AppLayouts/Profile/helpers/ProfileShowcaseModelAdapter.qml to adapt the base models and/or showcase models (communities, accounts, collectibles, social links)
- Left join with the app models
Showcase models: https://github.com/status-im/status-desktop/blob/master/ui/app/AppLayouts/Profile/stores/ProfileStore.qml#L34C1-L38C113
Note: Currently it's using the contacts store and there's a hack in the contacts store to facilitate this, but it will be removed.