6735 Commits

Author SHA1 Message Date
Sean Hagstrom
65cdb0dfe7
chore: refactor screens definitions and add more navigation events for screens (#21328)
This change refactors the navigation-screens namespace to organise each screen definition into a group based on the app features. It also adds some metrics tracking to all the of the screens defined in the navigation-screens namespace. 

Additionally, in this change we've introduced a new build configuration for shadow-cljs which allows us to conditionally include code for certain shadow-cljs builds. In this case, we've decided to only exclude the metrics re-frame interceptor from being required when running the component-tests build. This is due to a complication with the metrics interceptor depending on the navigation-screens namespace, which would eventually require many other third-party dependencies that do not have mocks defined for the component tests. To avoid defining more mocks, we've avoided requiring the metrics interceptor for now.
2024-10-23 08:28:41 -07:00
Mohsen
ea18966f33
[#21439] fix: close swap flow after confirmation (#21466)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-23 11:41:36 -03:00
Icaro Motta
e1abe5c6e2
feat(onboarding): Present Terms to users upgrading from v1 or those who need to accept updated Terms (#21487)
Cherry-pick d45eb5ec20.

Fixes https://github.com/status-im/status-mobile/issues/21113

Related status-go PR: https://github.com/status-im/status-go/pull/5977
2024-10-23 11:26:29 -03:00
Volodymyr Kozieiev
f8d4f56d2d
collectible metrics (#21280) 2024-10-22 16:10:14 +01:00
Mohamed Javid
0957fb6e0a
fix(wallet)_: Activity tab is selected on navigating back from the swap flow (#21474)
This commit fixes activity tab is selected when navigating back from the swap flow

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
2024-10-22 18:55:19 +05:30
Lungu Cristian
5118a5095d
Fix networks on select asset screen (#21403)
* fix: filter tokens by balance on select asset

* feat: added network-list-with-positive-balance

* fix: swaps error when using networks with balance

* fix: hide send/bridge/swap when no token balance
2024-10-22 15:55:37 +03:00
Andrey Bocharnikov
01c5cf2498
fix: client should pass a list with "Symbol" and without "ChainID-" prefix to wallet_fetchMarketValues, wallet_fetchPrices (#21453)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-22 09:15:47 -03:00
Parvesh Monu
fae4b34863
fix Group Admin has no option to Edit a Group Chat (#21457) 2024-10-21 22:01:31 +05:30
Parvesh Monu
020d5cc1c1
fix public chat deletion and name display issues post-migration (#21469) 2024-10-21 16:51:41 +05:30
Brian Sztamfater
7e5df7689b
fix(swap): round values for very small values in fiat and crypto (#21442)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-18 12:10:19 -03:00
Mohamed Javid
ff7ec97de4
feat(wallet)_: Add PDF viewer screen to view ParaSwap TnC (#21437)
This commit:

- Adds a PDF viewer screen to view PDFs within the app instead of opening them on the system browser
- Updates the swap provider (ParaSwap) terms and conditions to be displayed within the app
- Increases APK size limit to 80 MB

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Co-authored-by: Siddarth Kumar <siddarthkay@gmail.com>
2024-10-18 16:50:21 +05:30
Mohsen
6105435207
[#20593] fix: show name of saved address in sending flow (#21448) 2024-10-17 19:47:07 +03:00
Ulises Manuel
711fd19967
fix(wallet): "Not enough assets" case in send screen (#21425)
* Make `->bignumbers` more general

* Fix case when there are not enough assets to pay gas fees:
  - Fix the UI to match Figma
  - Fix logic to handle the case
  - Perform refactoring to surrounding code
2024-10-16 13:45:21 -06:00
Brian Sztamfater
d58553f67a
fix(swap): update swap icon and don't show contract address for eth swaps (#21410)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-16 12:51:29 -03:00
Lungu Cristian
6a26ebafa3
fix: clean up state after unmounting (#21435) 2024-10-16 13:27:01 +05:30
Mohsen
3c55fc1fa2
[#21335] feat: add dApp analytics (#21379) 2024-10-15 20:22:05 +03:00
flexsurfer
15a1a15c08
Keycard - Allow user to migrate existing Profile [Part 2] (#21408) 2024-10-15 16:48:47 +02:00
Mohsen
9e43aa04c7
[#21396] chore: rename crypto buy phrases (#21404) 2024-10-15 14:15:07 +03:00
flexsurfer
18f7d05a61
Feature/keycard create pin #21368 (#21413) 2024-10-14 10:33:18 +02:00
flexsurfer
fba631c044
[#21420] Keycard - Auth with password (#21422) 2024-10-11 18:35:39 +02:00
Volodymyr Kozieiev
ad7d58788f
Missed key added to token returned from assets list (#21402) 2024-10-10 11:55:03 +01:00
Alexander
ad4ea0783f
A black square background at the end of Swap confirmation screen (#21372) 2024-10-09 15:37:38 -03:00
Brian Sztamfater
5c44cb6399
fix(swap): display very small max values, fix scientific notation, handle decimal mismatch when changing tokens, display long numbers (#21388)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-09 13:49:45 -03:00
Ulises Manuel
a9e0b3dd6b
fix(wallet): Exception when navigating back from route generation (#21381)
- Slightly improved code style
2024-10-08 19:05:29 -06:00
Ulises Manuel
131da5f444
fix(community): Last message overlapped with "join community" button (#21370) 2024-10-08 18:50:29 -06:00
Brian Sztamfater
874ececc47
fix(swap): update max value when the account is switched (#21395)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-08 18:16:38 -03:00
Brian Sztamfater
00b0d75fc4
fix(wallet): mercuryo on-ramp (#20962)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-08 09:43:56 -03:00
flexsurfer
80ad2b8fca
[#21318] Keycard - Allow user to initiate Profile key pair migration on an empty Keycard (#21359) 2024-10-07 20:15:19 +02:00
Alexander
a8bc93eb17
Account selection drawer with balance tag (#21356) 2024-10-07 14:57:23 -03:00
Parvesh Monu
9d3fc4286e
fix syncing screen only shows paired label after the restart (#21315)
effde33d...12c4e869
2024-10-07 22:35:46 +08:00
Ulises Manuel
6dde1d7b74
fix(onboarding): Increase hit area for all selectors (#21355)
* Increase hit-slop for all selectors

* Remove unnecessary `:f>` wrapper
2024-10-03 13:35:47 -06:00
Sean Hagstrom
1691e2fe34
chore: remove run-tests from wallet-send event tests (#21373) 2024-10-03 12:56:45 +01:00
Parvesh Monu
b536d20713
Add syncing notification to System Tab (#21314) 2024-10-03 07:11:10 +05:30
Ulises Manuel
ca3720be0a
fix(communities): token-gated community info text (#21338) 2024-10-02 14:57:45 -06:00
Ulises Manuel
63d0aaca2a
feat(chats): Implement a simpler chat screen (#21313)
* Change `defonce ^:const` -> `def ^:const` in `status-im.contexts.chat.messenger.messages.list.view` to be more REPL friendly

* Remove animations from `status-im.contexts.chat.messenger.messages.pin.banner.style`

* Simplify placeholder for messages

* Replace shared-value with a ratom usage since no animations were performed.

* Fix the style for the new designs and remove now unnecessary animations

* Improve chat component implementation

    The previous implementation has two main problems:
        1. It is creating atoms and ratoms in non-form-2-components.
        2. Conditionally uses a hook: `rn/use-mount` in `lazy-chat-screen`.

    The new implementation fixes the previous problems, improves the readability and passes only the props needed to its children.

* Remove action buttons from the chat screen

* Remove now unused code

* Replace reanimated/view -> rn/view where no animations are made
2024-10-02 14:35:23 -06:00
Brian Sztamfater
3a4b58f32f
feat(swap): remove feature flag (#21363)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-10-02 12:55:32 -03:00
Lungu Cristian
d748ccdef9
Fix WalletConnect sessions disappearing (#21350)
* feat: moved disconnect logic to function

* ref: moved rpc calls to rpc ns

* ref: moved session approval logic to function

* fix: small fixes for sessions

* test: wallet-connect/on-session-delete event test

* test: added event tests for wc sessions

* fix: require sessions events ns

* fix: the wallet was loaded after wc sometimes
2024-10-02 18:16:20 +03:00
Lungu Cristian
97aff27980
Dapps Typed Data request improvements (#21333)
* feat: added type data flattening + tests

* feat: added typed data flattened ui

* ref: moved typed data utils into their own ns

* ref: small changes & formatting

* feat: show typed data view only for typed data requests

* ref: moved typed-data? into sub

* fix: tests and styling
2024-10-02 13:50:38 +03:00
Brian Sztamfater
0c3e836272
feat: disable swap and bridge options on testnet mode (#21343)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-09-30 13:13:15 -03:00
Mohsen
60fc4f1b9a
[#21132] refactor: improve send transaction content in wc flow (#21266) 2024-09-30 15:11:56 +03:00
Siddarth Kumar
b97e2df2fb
chore: nuke personal INFURA token 2024-09-30 17:09:35 +05:30
Alexander
f539bb5ca2
Swap flows (launch from home / launch from account) (#21269)
* Swap flows (launch from home / launch from account)

* Fixes

* Lint fix
2024-09-30 10:44:25 +02:00
Brian Sztamfater
24f482014b
feat(swap): show and link to provider terms and conditions (#21311)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-09-27 11:21:51 -03:00
Brian Sztamfater
9c73d9d03c
fix: approval of amounts with big decimals (#21326)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-09-27 09:18:54 -03:00
Alexander
7bbd476cf6
Swaps: Asset to Pay / Asset to Receive (#21140)
* Select assets to pay/receive

* Fixes

* Fixes

* Updates

* Fixes

* Fixes

* Fixes

* Fixes

* Small test fix
2024-09-27 12:31:03 +02:00
Mohamed Javid
e0c9800751
fix(wallet)_: Stop route calculation (#21306)
This commit

- Stops route calculation when the user
   - changes FROM account
   - changes the send (input) amount
   - goes back from the routes calculation page
   - after the transaction is successfully submitted
   - goes back from tx confirmation page for collectibles
- Prevents the keyboard being dismissed while entering the password on the transaction confirmation page
- Fixes multiple edit tiles/boxes added to receiver routes

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
2024-09-26 18:56:20 +05:30
Brian Sztamfater
fdc814cdb0
feat: integrate max slippage drawer (#21295)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-09-25 16:03:07 -03:00
Parvesh Monu
59c2b79df2
fix Lost the syncing state in fallback recovery, when first enter the seed phrase for the wrong account (#21298) 2024-09-25 19:40:26 +05:30
Sean Hagstrom
27d1a5f3f4
fix: avoid exceptions related to comparing invalid strings to BigNumber instances (#21282)
This change adapts the code to avoid persisting the string `"<0.01"` in the wallet-send UI state. This change also modifies some of the BigNumber utility functions to validate that only BigNumbers are used with the utility functions. And the this change also tries to stop requesting route suggestions after exiting the wallet-send flow.
2024-09-25 14:50:17 +01:00
Ulises Manuel
5df1e6caf6
fix(wallet): Collectibles stuck in loading for watch-only accounts (#21286)
* Fix `loading?` state for collectible cards
2024-09-24 16:30:21 -06:00