Commit Graph

6998 Commits

Author SHA1 Message Date
Alex Jbanca 24a386d078 fix(WalletConnect): Fixing crash on authentication screen when the app resumes from a few minutes of inactivity
The root cause in this case was the usage of js stored QObjects coming from the model.
2024-08-12 17:13:59 +02:00
Alex Jbanca 21227893c2 fix(WalletConnect): dApp connection state presented in the UI is out-of sync
1. The DAppsListProvider needs to receive all the user accounts so that it can process all dapps the user is connected to (the dapps filtering based on selected account is an internal impl. detail)
2. Call `revokeSession` on disconnect only if the dapp cannot be found in the WC active sessions. There is some overlapping between Browser connector and Wallet connect because both operate on the same data stored in the DB. If Browser connector controller removes WC data, the WC disconnect flows cannot be successfully completed.
3. Reuse the same notification flow for Browser connector as it's used for WC
4. Fix dapp filtering when processing the dapps that will be displayed in the UI.
2024-08-12 17:13:59 +02:00
Cuteivist 41b26e2094
fix(wallet): Don't reset wallet view after filter change (#15997) (#16058) 2024-08-09 13:17:16 -04:00
dlipicar f21f66099c
feat(@desktop/wallet): handle Paraswap price impact error (#16045)
Fixes #15542
2024-08-09 11:00:58 -04:00
saledjenic e4ddfa4042
fix: tx fails if the bonder fee is higher than the amount being sent (#15932)
Closes #15922
2024-08-09 10:58:14 -04:00
Khushboo-dev-cpp d8ec7af414
feat(@desktop/wallet): [Cherry-Pick] Swap:: Added text that links to Paraswaps terms and conditions page (#16042) 2024-08-08 13:13:28 -04:00
saledjenic 0647c1e204
feat: some limits for wallet section (#16031)
Added limitations:
- allowed adding of max 20 accounts
- allowed adding of max 3 watch only accounts
- allowed adding of max 5 key pairs (including the profile key pair)
- allowed adding of max 20 saved addresses per mode

Closes #15934

* feat: limits applied when running keycard flows that add new key pairs/accounts
2024-08-08 11:27:12 -04:00
Michał Iskierko 111fd63035
feat(@desktop/metrics): send basic metrics (#15803)
Issue #15737
2024-08-08 09:41:16 -04:00
Michał Cieślak 28de8375eb fix(CollectiblesView): Workaround for crash when hiding collectibles
In some rare cases hiding collectibles was causing segfault, related to
checking if all timestamps are available. Combination of 2 SFPMs with
the same source and Aggregator working on those models. Additionally
filters/sorters were depending on the Aggregator value. The minimal
crashing sample has been isolated to be investigated in a separate
ticket. In this commit aggregator's value is applied in a deferred way
via Qt.callLater, fixing the issue.

Closes: #15775
2024-08-08 07:35:40 -04:00
Michał Cieślak f57864c46b fix(ManageTokensController): Emit revision change after loading settings 2024-08-08 07:35:40 -04:00
Michał Cieślak 98cacb2d4a Wallet: swap/bridge buttons visibility adjusted
Closes: #15952
Closes: #15931
2024-08-08 07:35:36 -04:00
Anthony Laibe e998262379 fix(@wallet): enable eth bridging
fixes #16018
2024-08-08 07:35:30 -04:00
Godfrain Jacques 34ddfbf53a
feature(connector)_: Add model join to handle connected dApps (#15954) (#16006)
* feature(connector)_: Add model join to handle connected dApps (#15954)

* feature(connector)_: Add model join to handle connected dApps

* Fix review comments

* chore: bump status-go

* chore: bump status-go to latest
2024-08-07 15:55:03 -04:00
Michał Cieślak 39d533acd4 fix(Wallet/SendModal): Using community assets in SendModal unblocked
Closes: #15766
2024-08-06 10:48:30 -04:00
Alex Jbanca 12eda28c08 fix(WalletConnect): Fixing fees parsing when provided by the dApp 2024-08-06 08:22:33 -04:00
Alex Jbanca a5e534ac16 fix: Remove possibility to add watch accounts on release 2024-08-06 08:22:25 -04:00
Alex Jbanca 8e22459e63 fix(WalletConnect): Fixing disconnect notifications
The disconnect notifications were operating on `WalletConnectService.currentSessionProposal`. This object stores the current session object on connect, but it's not necessarily the same session the user wants to disconnect.
To fix this I'm getting the active sessions from status-go when the disconnect request is received (from Status or dapp). If the topic matches to any connection topic owned by the users accounts we'll show a notification.
2024-08-06 08:22:16 -04:00
Roman Chornii 11d7ad83a6
fix(dApps): Improved handling of connected dApps. (#15877)
1. Hiding DApps button on not supported wallet account selection
2. Filtering DApps in connected dApps list based on account selection

closes: #15589
closes: #15647
2024-08-05 14:18:26 -04:00
Lukáš Tinkl 85a88a77ed
fix: Add additional information to the Beta tags (#15988)
- display additional beta information as a tooltip
- don't overlap the Beta badge with the unread msg indicator
- some minor cleanups & fixes

Fixes #15795
Fixes #15929
2024-08-05 14:15:27 -04:00
Anastasiya 4a6b622458
fix(wallet)_: Disable send button on router errors & visually indicate gas issues (#15950)
* Disable the send button when the router returns errors.
 * Display a red arrow on networks lacking sufficient gas for the transaction.

Closes #15700 #15701

Co-authored-by: belalshehab <belal@status.im>
2024-08-02 14:03:30 -04:00
Lukáš Tinkl cf5b712306
fix(Wallet): Hiding assets from wallet's main view doesn't work (#15960)
- partially reuse the already available Global/Popups methods to hide
assets (which also emit proper notifications); those are needed as
anotehr shared modal from Popups uses it too (may come from outside of
Wallet)
- some warnings cleanup in the controller

Fixes #15777
2024-08-02 14:03:17 -04:00
Lukáš Tinkl 5a3c154811
fix: inconsistent/incorrect decimal value formatting (#15963)
- format Big decimal numbers correctly according to the current locale;
some precisions loss is tolerated here for the display purposes
- fixes wrong decimal separators in some places and aligns with the
standard in terms of number of decimals, as everywhere else in the app

Fixes #15612
Fixes #15790
2024-08-02 13:41:44 -04:00
Belal Shehab 29a776114e
fix(wallet): Disable adding new watch-only accounts (#15970)
closes: #15933

Co-authored-by: belalshehab <belal@status.im>
2024-08-02 13:41:05 -04:00
Lukáš Tinkl deff78ca86
fix(SendModal): Bridge modal Simple mode's scroll is very clunky (#15976)
- remove the nested unneeded ScrollView
- cleanups and fixes in mocked models and stores to unbreak showing the
networks/routing in storybook

Fixes #15902
2024-08-02 13:38:00 -04:00
Khushboo Mehta 2f1ae5297e fix(@desktop/wallet): fix for Swap Input parameters reset when balances are reloaded
fixes #15785
2024-08-01 08:41:52 -04:00
Cuteivist 96bb510849
fix(wallet): Constrain token name size to send modal width (#15859) (#15910) 2024-07-31 13:33:50 -04:00
Lukáš Tinkl 415572246d
fix(ConnectDAppModal): don't overflow texts (#15907)
- set the correct widths and elide mode
- fixup the visuals of the NetworkFilter combo box (to disable it w/o
making it look disabled)
- fix passing the connection status down to DAppCard
2024-07-31 13:32:28 -04:00
Belal Shehab 8343fe3076
fix(wallet)_: Filter non-bridgeable assets in Bridge Modal (#15924)
- Implemented a bridgeableGroupedAccountAssetsModel in WalletAssetsStore.qml to dynamically filter assets based on their bridgeability.

closes: #15697

Co-authored-by: belalshehab <belal@status.im>
2024-07-31 13:29:52 -04:00
Cuteivist 9cf9fa0470
chore(wallet): Hide Swap if cannot send (#15914) 2024-07-31 13:25:12 -04:00
Stefan Dunca 112a6f3003
Connection fixes for v2.30.x (#15921)
* chore(dapps) remove the POC wallet connect

Updates: #15598

* fix(dapps) Wallet Connect internet connection reestablishing issue

Add a new NetworkChecker QObject to StatusQ to be used in checking
internet connection status. This is used by the WebEngineLoader
to only allow loading of web pages when there is an active internet
to cover for a corner case on MacOS where the internet connection is
not reestablished if the WebEngineView was loaded without an active
internet connection.

Closes: #15598, #15806

* chore(dapps) disable eth_signTransaction for Wallet Connect

Closes: #15661
2024-07-31 13:23:39 -04:00
Khushboo Mehta ea0c4dfdca fix(@desktop/wallet): Swap modal - Pay input amount - deleting 1 decimal deletes the entire number
fixes #15818
2024-07-31 12:06:22 -04:00
Michał Cieślak d0962a3795 StatusQ/ConcatModel: flag added changing behavior on source model's reset
Closes: #15891
2024-07-31 11:11:39 -04:00
Jonathan Rainville 31bc87b63d
fix(profile): fix canceling modifications in the profile (#15905)
Fixes #15904
2024-07-30 17:27:13 -04:00
Jonathan Rainville 63cf416c98
chore(beta): add beta tag to pairing screens (#15873)
Fixes #15871

Adds a beta tag to the pairing screens on onboarding and settings
2024-07-30 11:33:30 -04:00
Anastasiya 972c190f65
test: community ban member steps added (#15878)
Co-authored-by: Valentina Novgorodtceva <valentina@status.im>
2024-07-30 10:48:39 -04:00
saledjenic 54b82675d6
Cherry pick/needed router changes (#15865)
* chore: build the error reporting mechanism

Closes #15396

* chore: send modal adjustments

Closes #15833
2024-07-29 15:07:30 -04:00
Roman Chornii 3cad15111e
fix(dApps): improved logic for the connected dApps list to always display as many dApps as possible. (#15837)
Fixes: #15595.
2024-07-29 14:41:09 -04:00
Lukáš Tinkl 41b37def71
fix(DAppSignRequestModal): correctly compute text painted height (#15864)
- fixes text overflowing the box height

Fixes #15650
2024-07-29 14:40:32 -04:00
Khushboo-dev-cpp 77addc0b5b
fix(@desktop/wallet): Swap "Approve" button becomes enabled before Approve Tx succeeds/fails (#15858)
fixes #15784
2024-07-29 14:35:55 -04:00
Andrey Bocharnikov 0869fe5ef8
fix(wakunodes): temporarily hide "add waku nodes" in advanced settings (#15838)
Fixes #14929

Correct fix should be done as part of https://github.com/status-im/status-go/issues/5597 after dependency tasks are done

(cherry picked from commit ac04e34c21)
2024-07-29 14:29:50 -04:00
Lukáš Tinkl deaaeebb31
fix(ConnectDAppModal): add scrolling (#15854)
- wrap the contents into a scroll view and don't hardcode the height

Fixes #15592
2024-07-29 14:29:43 -04:00
Roman Chornii d7e3af8165
fix(dApps): Improved logic for disconnecting of dApps in the app. (#15819)
Closes: #15814
2024-07-29 12:46:03 -04:00
belalshehab 1aa2221834 fix(wallet)_: Temporarily disable Max Amount button pending #15709
- This commit temporarily disables the MaxAmount button in the `SwapInputPanel` and `SendModal` components.
     - The MaxAmount button will be reintroduced with the correct behavior in issue #15709 for the 2.31 release.

closes: #15710
2024-07-25 17:53:40 +03:00
Sale Djenic db77654274 fix: buying stickers doesn't work and popup may be misleading for the user
Closes: #15764
2024-07-25 10:30:31 -04:00
Lukáš Tinkl 0c9d4133a8 fix(SwapModal): ErrorTag looks wrong
- wrap the ErrorTag in a Loader, and set the width from there
- added tests for the component width with/without the button

Fixes #15788
2024-07-25 15:11:29 +02:00
Roman Chornii 4bbdeba020
fix(dApps): Added default dApp icon according to the new spec. Extracting dApp name from its url, if no name is provided through walletconnect API. (#15754)
Closes #15593
2024-07-25 15:43:52 +03:00
Khushboo Mehta 7af8ede0e2 fix(@desktop/wallet): Enabled unit tests previously marked as flaky and skipped 2024-07-25 14:15:31 +02:00
Stefan 7d0e77d86f fix(dapps) emoji in wallet connect uri error
Closes: #15594
2024-07-25 12:55:29 +02:00
Stefan e574524b9c feat(dapps) don't allow user selection of networks while connecting
The requirements are that we allow all available networks
to Wallet Connect
Also temporarily disable the tests that validate selection working

Closes: #15638
2024-07-25 12:55:29 +02:00
Stefan f6ae5ceabe fix(dapps) Wallet Connect url validation
The static url validation state `Pairing.errors.ok` was directly
responsible for the validation action in UX. With current change
the validation is now based on the pairing response. When the
pairing response is received the UX is validated and after half second
UX is moved to the approval process (`ConnectedDAppModal`)

Closes: #15591
2024-07-25 12:55:29 +02:00