Commit Graph

10582 Commits

Author SHA1 Message Date
Iuri Matias 39cccd3a30 refactor: make MessageContextMenu a functional component
refactor: make MessageContextMenu a functional component

remove root store

simplify signals in message context menu

abstract copyToClipboard as a signal

simplify code
2024-09-24 10:11:39 -04:00
Iuri Matias 16770cd709 fix issue with menu option not working on community members panel; update nickname 2024-09-24 10:11:39 -04:00
Jonathan Rainville ef512b7c4f chore(notiifcations): stop logging messages in debug logs for notifs (#16381) 2024-09-24 10:11:39 -04:00
Anastasiya Semenkevich 470f261c47 chore: fix test for sending transaction 2024-09-24 10:11:39 -04:00
Anastasiya Semenkevich acb1ce0115 chore: merge tests into a single flow 2024-09-24 10:11:39 -04:00
Sale Djenic c57aaaf254 fix: check for the route if 0 value is entered
When 0 value was entered checking for the best route was not done cause the amount change
signal was not emitted.
2024-09-24 10:11:39 -04:00
Lukáš Tinkl 3927c1ee50 fix(MembersTabPanel): unbreak context menu
- restore backwards compatibility; a lot of the actions in the component
relies on the old StatusListItem's `title` property to work correctly
- fixes the missing image and name in the profile context menu, among
others

Fixes #16367
2024-09-24 10:11:38 -04:00
Anastasiya Semenkevich 22d0da1a77 chore: update locators 2024-09-24 10:11:38 -04:00
Lukáš Tinkl 70eef677ec fix(StatusMenu): StatusSuccessAction is not taken into account for Menu width
- StatusSuccessAction, despite its name, is a visual item (`MenuItem` ->
`AbstractButton`) which is not part of the `contentModel` but just added
to the menu container
- therefore we don't use a ListView but a ScrollView/Repeater instead
and set the width/maxWidth manually after the menu items have been added
to the layout

Fixes #14037
2024-09-24 10:11:38 -04:00
Michał Cieślak b330f10195 CONTRIBUTING.md extended with section regarding unit tests
Closes: #16370
2024-09-24 10:11:38 -04:00
Anastasiya Semenkevich e1043710bb chore: fix sync devices test and enable it back in PRs 2024-09-24 10:11:38 -04:00
Anastasiya Semenkevich c75ef86c12 chore: update status-go version to latest develop 2024-09-24 10:11:38 -04:00
Michał Cieślak 57d4bfed2d Token/Asset selectors fixes
- clear search on close (AssetSelectorCompact)
- sectionProperty removed
- highlighting fixed in TokenSelectorPanel
- setCustom renamed to setSelection
- test data moved into Component object
2024-09-24 10:11:38 -04:00
Michał Cieślak 0e8a97681e TokenSelectorPanel: tabs layout/sizing simplified 2024-09-24 10:11:38 -04:00
Michał Cieślak 1cd48de0d2 TokenSelectorPanel tabs selection depending on set models fixed 2024-09-24 10:11:38 -04:00
Michał Cieślak de86c1f2a7 TokenSelectorNew renamed to TokenSelector 2024-09-24 10:11:38 -04:00
Michał Cieślak 37132d9c98 Old version of TokenSelector removed 2024-09-24 10:11:38 -04:00
Michał Cieślak ecd0c75731 AssetSelector covered with unit tests 2024-09-24 10:11:38 -04:00
Michał Cieślak f38047b965 Storybook: TestUtils singleton added 2024-09-24 10:11:38 -04:00
Michał Cieślak c56978a5f0 TokenSelectorAssetDelegate simplified
Moreover:
- reset search box for AssetSelector on close
- fix highlight when Asset/Token selector reset
- storybook pages/tests adjusted
2024-09-24 10:11:38 -04:00
Michał Cieślak 14965edc95 Bump SFPM version fixing model roles initialization issue
Closes: #16310
2024-09-24 10:11:38 -04:00
Michał Cieślak 4db11835a2 SwapInputPanel using AssetSelector instead of TokenSelector
Closes: #16220
Closes: #16025
2024-09-24 10:11:38 -04:00
Michał Cieślak ac8ac1192a BuyCryptoModal refactored to use AssetSelectorCompact 2024-09-24 10:11:38 -04:00
Michał Cieślak b4b0caeb89 AssetSelectorCompact added 2024-09-24 10:11:38 -04:00
Michał Cieślak cd60e474c8 TokenSelector: TokenSelectorSectionDelegate excluded to separate component 2024-09-24 10:11:38 -04:00
Khushboo Mehta cad3526fb3 feat@(desktop/wallet): Make Send Via Personal chat enabled by default 2024-09-24 10:11:38 -04:00
Khushboo Mehta f1fc26b1af feat@(desktop/wallet): Launch SednModal when an address or ens name is detected in a 1-1 chat and validate it when launched
closes #16293
2024-09-24 10:11:38 -04:00
Khushboo Mehta 24875ec00e feat(@desktop/wallet): Added feature flag FLAG_SEND_VIA_PERSONAL_CHAT_ENABLED for the send via personal chat feature
Also added logic in order to detect and highlight an address/ens name in the chat
2024-09-24 10:11:38 -04:00
Cuteivist 8dd49ecedb feat(wallet): Remove unused functions (#16342) 2024-09-24 10:11:38 -04:00
Sale Djenic b9ef276981 fix: browser connect - send transaction command
Fixes #16063
2024-09-24 10:11:38 -04:00
Igor Sirotin e01dbecf7e fix: logs in utc time (#16373)
* chore_: update nim-chronicles

* fix: chronicles_timestamps RfcUtcTime
2024-09-24 10:11:38 -04:00
Alex Jbanca c4b1de89ae chore: bump status-go 2024-09-24 10:11:38 -04:00
Alex Jbanca b36dff9a96 chore: Remove the experimental log
Reason: Not experimental for quite some time
2024-09-24 10:11:38 -04:00
Alex Jbanca c8d7899ee4 fix(WalletConnect): Fixing crashes
1. In some cases it was crashing on JSON.stringify for the model item
2. Avoid storing model objects
3. Fixing storybook
2024-09-24 10:11:38 -04:00
Anastasiya 6ae3517a31 Update test_onboarding_sync_with_code.py 2024-09-24 10:11:38 -04:00
Anastasiya ce1228a34d chore: disable sync test temp from critical path 2024-09-24 10:11:38 -04:00
Lukáš Tinkl 9826bc276c fix(MessageView): unbreak GIF unfurling
- need to refer to the RootStore singleton under an alias now

Fixes #16368
2024-09-24 10:11:38 -04:00
Iuri Matias 5cf658b8d6 feature: add remove from group option to group chats
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

feature: add remove from group option to group chats

feature: add remove from group option to group chats

add isAdmin property

move removeMemberFromGroupChat to root store
2024-09-23 12:10:48 -04:00
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
Lukáš Tinkl 894a5f19c9 feat(SendModal): add a spinner when resolving an ENS name
- update the SB page with the toggle too

Fixes #16355
2024-09-20 12:10:26 +02:00
Lukáš Tinkl 6a2b3faeb0 feat: add countdown pill to sign dialogs and make them unclosable
- show countdown until which the sign (WalletConnect and Swap) dialogs
expire
- after expiration, hide the Reject/Sign buttons and display a plain
Close button
- make the dialogs non-closable by clicking outside or pressing Esc; the
user has to explicitely click some of the footer buttons

Fixes #16327
Fixes #16314
2024-09-20 09:47:10 +02:00
Lukáš Tinkl 2739d2cf68 feat(CountdownPill): implement a countdown pill component
- shows the remaining time until expiration with the circular progress
bar and a tooltip
- configurable timestamp and timeout in seconds (between 5 min and 7
days)
- add the respective storybook page
2024-09-20 09:47:10 +02:00
Lukáš Tinkl 02066d098d feat(StatusCircularProgressBar): add a circular progress bar
- based on QML Canvas
- visualizing progress value (0..1) on a circle with 2 configurable
colors
2024-09-20 09:47:10 +02:00
Lukáš Tinkl 0c37700d52 chore(IssuePill): add a Primary type
- wrap the icon in a Loader and make it configurable
- add a storybook page with controls allowing to explore the various
types and config options
2024-09-20 09:47:10 +02:00
Jonathan Rainville 3f8dfee3cd
refactor(community_tokens): only fetch holders when going to the page (#16308)
* refactor(community_tokens): only fetch holders when going to the page

Fixes #16307

Instead of fetching community token holders each time members change, we fetch when the page for the token is opened.
It shows a small loading text then the resulting holders.
If the list is already available (fetched previously, we show it directly).
There is still the timer to refresh the list if you stay on the page.

* add loading property to storybook
2024-09-19 16:32:38 -04:00
Sale Djenic ea8827ec97 fix: wallet connect - sake.lido.fi dApp - staking transaction gets stuck
Fixes #16096
2024-09-17 19:39:32 +02:00
Dario Gabriel Lipicar ff45e76782 fix: use proper networks model for detection of offline chain providers 2024-09-16 18:00:33 -03:00
Anastasiya Semenkevich ffe046df29 chore: fix nightly failures 2024-09-16 19:47:15 +03:00
Anastasiya Semenkevich 7914688769 chore: add object names to actions 2024-09-16 17:20:36 +03:00
Anastasiya Semenkevich 2949e5ccd4 chore: group chat e2e test is fixed 2024-09-16 17:20:36 +03:00