status-desktop/ui/app/AppLayouts/Profile/stores
Iuri Matias 96d0760488 refactor ProfileContextMenu to make it a functional component
refactor ProfileContextMenu to make it a functional component

refactor ProfileContextMenu to make it a functional component

refactor ProfileContextMenu to make it a functional component

This refactor ProfileContextMenu to make it a functional component by:

refactored out direct calls to backend, and passing backend data structures and moved this logic to the callers, also refactored common calls between the callers
common types of context menus have been extracted to their sub components which removes a lot of logic too and makes the behaviour very clear
user verification workflow (which was already disabled) has been removed

refactor: use signals and call singletons on the parent instead

remove unused code for now from profile context menu

refactor profile context menu into two components; add property to storybook

extract blocked profile context menu and self profile context menu

use profileType instead of individual bools

refactor to pass trustStatus as an argument

make contact type a parameter

remove unnecessary method from RegularProfileContextMenu

add ensVerified property to ProfileContextMenu components

add onlineStatus property to ProfileContextMenu components

move ProfileContextMenu storybook controls to the right sidebar

move contactDetails logic up from the view

add local nickname property to ProfileContextMenu components

fix issue with missing signal; fix logs in storybook

use constant for profileType instead of string

refactor common code into a single method

refactor getProfileContext

remove references to contactDetails which are not longer needed

remove unnecessary comments

fix bridged constant

refactor into a single ProfileContextMenu component

refactor into a single ProfileContextMenu component

refactor into a single ProfileContextMenu component

simplify imports

remove unused store field

move methods from utils to contacts store

remove onClosed signal

remove unused param

rename ProfileContextMenu variables

simplify signals in ProfileContextMenu

remove ;

refactor: do early return

simplify ifs

move ProfileContextMenu to its own storybook page

fix wrong params

fix profile context menu separator

add missing signals to profile context menu on the members tab panel
2024-09-24 10:04:10 -04:00
..
AdvancedStore.qml chore: Remove the Browser from the app completely for now 2024-08-07 16:45:31 +02:00
AppearanceStore.qml refactor(@desktop/settings-appearance): appearance settings updated 2022-02-01 11:47:18 +01:00
ContactsStore.qml refactor ProfileContextMenu to make it a functional component 2024-09-24 10:04:10 -04:00
DevicesStore.qml fix(@desktop/syncing): keypair syncing - function renamed to avoid confusion, request from the code review 2023-06-29 15:08:29 +02:00
EnsUsernamesStore.qml Using ClipboardUtils.setText instead of nim's copyToClipboard 2024-08-29 15:46:17 +02:00
KeycardStore.qml feat: limits applied when running keycard flows that add new key pairs/accounts 2024-08-08 10:28:30 +02:00
LanguageStore.qml chore: Consolidate date/time formatting 2023-01-17 16:42:34 +01:00
MessagingStore.qml fix(HistoryNodes): Fix mailserver management UI controllers 2024-06-04 15:37:06 -04:00
NotificationsStore.qml fix(notifs): only fetch notification exemptions when going to the page (#16166) 2024-08-22 14:48:04 -04:00
PrivacyStore.qml Mark mnemonic as shown on revealing it to the user (#12947) 2023-12-06 16:24:10 +01:00
ProfileSectionStore.qml fix(Stored): Make stores typed 2024-08-27 10:52:18 +02:00
ProfileStore.qml Using ClipboardUtils.setText instead of nim's copyToClipboard 2024-08-29 15:46:17 +02:00
WalletStore.qml Using ClipboardUtils.setText instead of nim's copyToClipboard 2024-08-29 15:46:17 +02:00
qmldir fix(Stored): Make stores typed 2024-08-27 10:52:18 +02:00