Commit Graph

10691 Commits

Author SHA1 Message Date
Anastasiya Semenkevich 3623807f62 chore: update password range and make change password test required for PRs 2024-10-16 22:24:56 +02:00
Lukáš Tinkl b052416666 fix(PasswordView): Password instructions missing max length requirement
- set the pass max length to 100 (via `Constants`, not with a hardcoded
regexp)
- delay the validation until the user hits the limit
- clear the categories (lower/upper/num/sym) info if the password is
cleared too
- update the error messages according to latest Figma designs

Fixes #16239
2024-10-16 22:24:56 +02:00
Michał Cieślak 62f85acf31 fix: bump SFPM to fix ussues caused by bug in SFPM
Closes: #16531
2024-10-16 13:55:06 +02:00
Sale Djenic fe5c135486 chore: sign the flow only once if approval and transaction need to be placed once after another (swap flow)
Closes #16337
2024-10-16 09:52:46 +02:00
Alex Jbanca 684d0b4d63 fix: DAppsWorkflow flaky test 2024-10-15 13:40:48 +03:00
Anastasiya Semenkevich eeef165743 chore: fix community tests to have tag filled in 2024-10-15 10:29:31 +03:00
Michał Cieślak 663364452e DappPermissionsView and related sub-components removed
Closes: #16517
2024-10-14 23:28:05 +02:00
Michał Cieślak fe08742cc3 Various small unused components removed 2024-10-14 23:28:05 +02:00
Michał Cieślak 1f61b77739 ChatCommandsPopup and related sub-components removed 2024-10-14 23:28:05 +02:00
Michał Cieślak 912b94859d TransactionBubbleView and related sub-components removed 2024-10-14 23:28:05 +02:00
Michał Cieślak d5a0589591 Remove unused RecipientSelector and related components 2024-10-14 23:28:05 +02:00
Anastasiya Semenkevich e864897863 chore: filling in tags for community is now required 2024-10-14 11:39:58 +02:00
Lukáš Tinkl 26dddcaff9 feat(CreateCommunityPopup): validation and ensuring min. 1 tag added
- enable the Next button, and delay the validation after it's been clicked
- visually display required fields also for logo, banner, and tags (min
1 tag is required now)
- when pasting over limit, chop the text to the maximum length, instead
of just leaving the text field empty
- do not let the popup autoclose on clicking outside or pressing Esc
- add a StoryBook page
- minor cleanups and alignments to the latest Figma designs/flows

Fixes #13966
Fixes #16479
Fixes #14902
2024-10-14 11:39:58 +02:00
Anastasiya Semenkevich 5518df3af9 chore(@e2e): enable change password test in nightly 2024-10-14 11:52:23 +03:00
Anastasiya Semenkevich 748b9b94fc chore(@e2e): update test for sharing wallet address 2024-10-14 11:52:23 +03:00
Michał Cieślak 03db15529e Cleanup after #16497 workaround 2024-10-11 23:37:50 +02:00
Michał Cieślak f75e4e0c47 Introduce ability of calling StatusQ methods from nim
Closes: #16496
2024-10-11 23:37:50 +02:00
Anastasiya Semenkevich 14637a8709 chore: fix max limit for password to keep it 64 chars 2024-10-11 18:48:37 +02:00
Anastasiya Semenkevich bebeaf2de3 chore: change tests for adding saved address according to new flows 2024-10-11 18:48:37 +02:00
Khushboo Mehta 3f55e6c9c5 feat(@desktop/wallet): Remove preferred chains from wallet accounts all over the app 2024-10-11 18:48:37 +02:00
Khushboo Mehta 7003ba73e2 feat(@desktop/wallet): Remove network prefixes in saved addresses and ReceiveModal 2024-10-11 18:48:37 +02:00
Khushboo Mehta 95369bca11 feat(@desktop/wallet): Remove network prefixes from main wallet accounts list 2024-10-11 18:48:37 +02:00
Khushboo Mehta 16a403e3e5 feat(@desktop/wallet): Remove network prefixes in Profile, Profile showcase and Profile preview 2024-10-11 18:48:37 +02:00
Khushboo Mehta 60fb566580 feat(@desktop/wallet): remove address prefixes from wallet account settings 2024-10-11 18:48:37 +02:00
Jonathan Rainville d6031f8126
refactor(members): use a single members list for public community chats (#16301)
Fixes #16288

Introduces a new instance of the users module, but managed by the section module.
This user module is managing the "public" community members list. Meaning that everytime we have a public channel in a community, we use that module instead.

The channel's user module is empty for public channels to reduce the amount of processing and memory used.

If the channel becomes private, we update the member list and populate it.
2024-10-11 12:35:35 -04:00
Jakub Sokołowski 3e4e3591cd fix(ci)_: move nim cache to workspace tmp folder
An error has shown that Nim compilation uses cache folder in `jenkins` home:
```
clang: error: no such file or directory:
'/Users/jenkins/.cache/nim/nimsuggest_r/@m..@slib@swrappers@slinenoise@slinenoise.c.o'
```
This is a bad idea as parallel CI builds can result in very bizzarre bugs.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-10-11 13:23:35 +02:00
Michał Cieślak 206bc79ab4 downloadImageByUrl moved to SystemUtils 2024-10-11 12:14:53 +02:00
Michał Cieślak 3f9f175e07 restartApplication() removed from Utils.qml and nim 2024-10-11 12:14:53 +02:00
Michał Cieślak 417ad03ce1 StatusQ: Redundant TextUtils removed 2024-10-11 12:14:53 +02:00
Michał Cieślak 9f9dcefcf8 chore: using StringUtils.plainText consistently
There were two version of plainText - one exposed from the backend,
another, backend-independent in StringUtils. The latter one is now
used in all cases.
2024-10-11 12:14:53 +02:00
Alex Jbanca 17be3bfb2c chore(E2E): Use `mouseWheel` method to scroll
This makes the scrolling work for any qml type where the child supports scrolling.
By default the cursor is positioned in the middle of the scrollable item and scroll in steps of 30px.
2024-10-11 09:22:16 +03:00
Anastasiya Semenkevich 65798a0046 chore: fix tests 2024-10-11 01:37:10 +03:00
Alex Jbanca e99f817ccc chore: Migrate to the new WC packages
Migrate from `Web3Wallet` to `WalletKit`.
More details in the WC docs https://docs.reown.com/walletkit/upgrade/from-web3wallet-web
2024-10-10 23:32:50 +03:00
Lukáš Tinkl 28e9b6da27 fix(CommunityMemberMessagesPopup): fix displaying of messages
- fix a refactoring bug in the stores
- disable the context menu since it's not really usefull and we're still
missing like a dozen of stores needed for MessageView anyway
2024-10-10 21:50:58 +02:00
Lukáš Tinkl 6ba74fae8e fix(StatusChatInfoButton): missing lock icon
- propagate and set `requiresPermissions` + `locked` from the
`chatContentModule.chatDetails`
- set the icon accordingly for community chats

Fixes #16502
2024-10-10 21:50:58 +02:00
Jonathan Rainville 0bb2bc0e03
Fix some of the freezes experienced by the admins when the community updates (#16384)
* fix: force focus on search inputs in permissions and sort members
* fix(admin): fix freezes when community gets updated
* fix(airdrop): use FastExpressionFilter to speed up

Iterates #16043

When the community gets updated by any means, we reconstruct the section item, which is already bad, but we also re-fetch all tokens and all shared addresses, which in turn re-updates models for no reason.

Instead, I make sure to only fetch those on first section build, then, I get the new shared addresses when members join using the request to join response that comes from status-go
2024-10-10 13:01:47 -04:00
Anthony Laibe 70fccb3835 chore(@wallet): Desktop is in beta
Remove warning discouraging usage
2024-10-10 13:21:46 +02:00
Alex Jbanca fd99b96cb5 feat(WalletConnect): Handle sign request expiration
Implementing the user-story for sign request expiry and add qml tests
+ other minor fixes

## Acceptance Criteria

```
//Always show the expiration
Given the sign/transaction request dialog is shown
When request has an expiration date
Then the user sees a 1 minute countdown in the dialog
```

```
// Show 1 minute timer
Given the sign/transaction request dialog is shown
When the request has 1 minute or less before expiring
Then the user sees a 1 second countdown in the dialog
```

```
Given the sign/transaction dialog is open
When the request expires
Then the Accept button is removed
And the only option for the user is to close the dialog
```

```
Given the sign/transaction request dialog is open
When the request expired
Then the `Sign` and `Reject` buttons are removed
And the `Close` button is visible
```

```
Given the sign/transaction request expired
Then a toast message is showing
And it contains the "<dapp domain> sign request timed out" message
```

```
Given the sign/transaction request dialog is open
When the request expired
Then the sign/transaction request dialog is still visible
```

```
Given the sign/transaction request expires
Then a console message is shown
And it contains 'WC WalletConnectSDK.onSessionRequestExpire; id: ${id}`'
```
2024-10-10 12:49:15 +03:00
Anastasiya f536c3447f chore: update tests 2024-10-10 10:33:13 +03:00
Lukáš Tinkl bf666c20f5 fix(chat): chat input accepts DnD for blocked users
- do not allow DND when the StatusChatInput is disabled
- remove `Global.dragArea` variable from the Global singleton
- move the `DropAreaPanel` into `StatusChatInput` and handle its
enabling from there

Fixes #16451
2024-10-10 10:33:13 +03:00
Alex Jbanca 92d8d601e5 fix: Enable WebEngineLoader qml tests 2024-10-10 10:29:12 +03:00
Alex Jbanca 0c0b2292bc fix: WebEngineView with qt 5.15.2
Adding `--disable-seccomp-filter-sandbox` flag to chromium as a workaround for https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468
2024-10-10 10:29:12 +03:00
Alex Jbanca 63f6323185 fix: Remove forced OpenGl context sharing
This is freezing the app when initialising the webengineview on linux with qt 5.15.8
2024-10-10 10:29:12 +03:00
Sale Djenic 11f1e1541b fix: optimizes send modal flow for buying stickers 2024-10-09 13:10:14 +02:00
Sale Djenic 46f34ec8fc fix: optimizes send modal flow for ens usernames 2024-10-09 13:10:14 +02:00
Sale Djenic 5783e11181 fix: brings back remove and release ens username options
Fixes #16452
2024-10-09 13:10:14 +02:00
Anastasiya Semenkevich a4e7b63918 chore: stabilise test for permission management by randomisation 2024-10-09 13:44:06 +03:00
Alex Jbanca c9549079b9 chore: update WC qml tests with the new DAppsWorkflow API 2024-10-09 13:32:53 +03:00
Alex Jbanca 7603f24372 refactor: Remove business logic from WC ui components
This commit brings a separation of concerns for the UI components involved in dApp interactions.

Issue: The UI components depend on the WalletConnectService and also on its dependencies like DAppsRequestHAndler. As a result the UI components have a hard dependency on the WalletConnect specifics and are incompatible with BC. This results in duplication of logic.
Issue: The UI components operate on WalletConnect specific JSON object. E.g. session objects, session proposal etc. As a result the UI is built around the WalletConnect message format.
Issue: The UI components operate on ListModel items received through functions and stored internally. Any change in the model would result in a crash.
Solution: Remove the WalletConnectService dependency from DAppsWorkflow. The DAppsWorkflow now operates with models, signals and functions. This is the first step in the broader refactoring. Moving the logic into the service itself will allow us to further refactor the WC and BC.

How does it work now:

Dependencies - The UI components have a dependency on models. SessionRequestsModel and DAppsModel.
Pairing - The pairing is initiated in the UI. On user input a pairingValidationRequested signal is emitted and the result is received as a function pairingValidated. If the url is valid the UI requests a pairingRequested. When the WalletConnectService is refactored we can go further and request only pairingRequested and to receive a pairingResult call as a function with the result. In the current implementation on pairingRequested we'll receive a connectDApp request.
Connecting dApps - The flow is initiated with connectDApp function. This call currently contains all the needed info as args. In the next step it could be replaced with a ConnectionRequests model. The connectDApp call triggered a connection popup if we're not currently showing one to the user. If we're currently showing one it will be queued (corner case). The connection can be accepted with connectionAccepted and rejected with connectionDeclined. Once the connection is accepted we're expecting a result connectionSuccessful or connectionFailed. The connectionSuccessful also expects a new id for the established connection.
Signing - The signing flow orbits around the SessionRequestsModel. Each item from the model will generate a popup showing the sign details to the user. Sign can be accepted or rejected using signRequestAccepted or signRequestRejected. No response is currently expected. The model is expected to remove the sign request item.
2024-10-09 13:32:53 +03:00
Siddarth Kumar 7c39fe40b0
fix(status-go)_: install protobuf (#16488) 2024-10-09 14:46:33 +05:30