status-desktop/ui/imports/shared
Iuri Matias a09b773a50 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-23 12:04:16 -04:00
..
controls feat: add countdown pill to sign dialogs and make them unclosable 2024-09-20 09:47:10 +02:00
img refactor(desktop) Made shared a QML module 2021-10-27 18:05:45 -04:00
panels fix(StatusSeedPhraseInput): accept a common prefix suggestion 2024-09-10 16:00:40 +02:00
popups feat(SendModal): add a spinner when resolving an ENS name 2024-09-20 12:10:26 +02:00
status chore(StatusMemberListItem): refactor to use ItemDelegate 2024-09-12 15:04:22 +02:00
stores refactor(community_tokens): only fetch holders when going to the page (#16308) 2024-09-19 16:32:38 -04:00
views refactor ProfileContextMenu to make it a functional component 2024-09-23 12:04:16 -04:00
DelegateModelGeneralized.qml refactor(desktop) Made shared a QML module 2021-10-27 18:05:45 -04:00
LoadingAnimation.qml bug(@status-desktop): only run animations when they are visible to avoid cpu issues 2022-06-28 11:23:38 -04:00
MacTrafficLights.qml refactor: removed dynamic scoping from shared module 2022-02-01 11:46:39 +01:00
qmldir chore: drop NumberPolyfill 2023-06-26 17:17:59 +02:00