Commit Graph

6173 Commits

Author SHA1 Message Date
Noelia c2bfc6b8f4 feat(SQ/Aggregator): Created utility `Aggregator`
- Abstract class created: `Aggregator`
- Derived abstract class created: `SingleRoleAggregator`
- Derived class created:  `SumAggregator`
- `Storybook` page created.
- Added unit tests.

Closes #12685
2023-12-01 18:57:01 +01:00
Cuteivist e552a01d2b
fix(@desktop/wallet): Use second chain activity details data (#12705) 2023-12-01 15:31:47 +01:00
Khushboo Mehta ab7085a184 fix(@desktop/wallet): Adds STT for default tokens visible
remove condition for showing only tokens with non zero balance as that part is already done on status_go side
2023-12-01 09:31:49 +01:00
Andrea Maria Piana 94159746ea
Add fetch messages button
This commit adds a fetch messages option in the chat.
If clicked it will re-fetch messages for that chat for 1 month.

It's disabled in production since that's not something we want to go
live with, but it's very helpful for dogfooding/debugging while message
reliability has still some issues.
2023-11-30 14:26:41 +00:00
Stefan 17c7e46917 feat(wallet) Wallet Connect: process delete_session
Requires the specific status-go changes that brings WCChangePairingState

Process delete session and update internal pairing history state

Updated testing while fighting for the issue of not deleting the session
Found out that the client requests a different topic in the delete
session request.

Also:

- update debugging UX to support session events
- update storybook to support mocking session events
- fix go test utility to account for refactoring

Updates #12858
2023-11-30 10:47:41 +01:00
Boris Melnik 82a829de0c fix(contacts): Fix new url format validation in contact request dialog from settings
Fixes: #12829
2023-11-30 01:51:24 +03:00
Boris Melnik 34097f9dea fix(new-links): Fix processing links to profile without encoded data
Fixes: #12848
2023-11-29 21:01:36 +03:00
Lukáš Tinkl 3b60506460 feat(token mgmt): update main wallet view layout with community assets
- update the AssetsView.qml view and delegates according to the latest
design
- add AssetsView to Storybook
- add new section for Community Assets
- (re)use the community badge with tooltip and link action to take the
user to the respective community
- add Community Assets info icon + popup
- create context menu for token delegates with actions
(Send/Receive/Manage tokens/Hide)
- add confirmation popups when hiding a single or all community tokens
- emit a toast bubble after hiding the token(s)
- plus related controller/backend methods for handling the
settings-related actions
- some smaller fixes/cleanups

Fixes #12369
Fixes #12372
2023-11-29 16:13:08 +01:00
Cuteivist 8e0db2e666
fix(@desktop/wallet): Display balance for all accounts (#12632) 2023-11-29 12:19:59 +01:00
Mykhailo Prakhov 3af73a44a5
feat: show activity center notification if user must reveal addressed to join/rejoin the community (#12856) 2023-11-28 14:41:11 +01:00
Valentina1133 3cbb93f88d
Chore/messaging elements object names (#12882)
* chore: added object names for messaging elements

* chore: added object names for messaging elements
2023-11-28 13:29:18 +04:00
Stefan 5b9e4faa8a feat(wallet) run WebEngineView as a service in background
This is required to control the resource consumption in case of no
usage of wallet connect
Hence we load the WebEngineView only if we have active pairings and
such that SDK events are expected from the paired dapps.

Also:

- Moved the generic WebEngineView communication bridge to StatusQ
- Added basic tests for WebEngineLoader
- Add a way to know when wallet is loaded (`walletReady`)
- Add storybook support for mock of nim sections as context properties

Updates: #12639
2023-11-27 22:54:11 +01:00
Sale Djenic ce0dbe533b feat(@desktop/walletconnect): aligning namespaces with WalletConnect v2.0 protocol
Closes: #12825
2023-11-27 18:15:57 +01:00
Alex Jbanca f96460ead7 fix: Fix LeftJoinModel tests on Qt 5.15.8 2023-11-27 15:52:39 +02:00
Lukáš Tinkl 0dbbea383d fix(chat): Emoji is html-encoded in message reply
revert to previous behavior, we want RichText even though we really
don't :)

Fixes #12786
2023-11-27 12:46:18 +01:00
Mykhailo Prakhov 4225873cf4
fix: show info about control node offline, during rejoin to the community after the ownership change (#12869) 2023-11-27 10:53:37 +01:00
Lukáš Tinkl 88d0c2493e fix: supported image formats are case sensitive
check for the (supported) extension in case insensitive manner

Fixes #12835
2023-11-25 15:51:06 +01:00
Lukáš Tinkl db8cb6c74c fix: Misaligned profile image in chat header
align the left padding with the chat contents; reapply the needed extra
margin for the back button

Fixes #12859
2023-11-25 14:52:54 +01:00
Michał Cieślak 4d1806a656 fix(StatusQ): run all unittests via make and on CI
Closes: #12841
2023-11-24 23:32:08 +01:00
Mykhailo Prakhov fae038df3b
fix: quit from community settings in UI if member privileged role changed (#12846) 2023-11-24 16:39:09 +01:00
Jonathan Rainville d66540d74f feat(messages): add deleted system message that tells who deleted
Fixes #11712
2023-11-23 16:14:54 -05:00
Lukáš Tinkl fdc36b72e6 fix(Windows): unbreak Windows build
a feeble attempt to make M$ compiler grok otherwise valid C++17 code
2023-11-23 14:32:27 +01:00
Noelia 743ba6929c feat(MintToken): Validation on name / symbol if exists in standard token list
- It adds link to the corresponding tokens model in `EditCommunityTokenView`.
- It adds validation for `name` and `symbol`.
- It updates `storybook accordingly.`

Closes #12365
2023-11-23 12:07:46 +01:00
Godfrain Jacques aaa759f70c
Fix(@message) Album of images disappears from reply after reloading the application (#12806)
Fixes #10986

This PR contains 2 changes :

1- Adding of properties for the quotedMessage
2- Update of the view with the properties with Qml binding
2023-11-22 14:32:50 -08:00
Jonathan Rainville 4e296d5acf fix(notifs): only process notifs once the loading screen is done
Fixes #10912
2023-11-22 15:07:55 -05:00
Lukáš Tinkl 8791d028e6 feat: Integrate the new manage assets/collectibles panels into Settings
- display a customized floating bubble to save/apply the settings
- display a toast message on Apply with an action to jump to Wallet main
page
- add home/end/pgup/pgdown keyboard shortcuts to StatusScrollView to be
able to navigate more easily in long list views
- some smaller fixes and cleanups in wallet and settings related views

Fixes https://github.com/status-im/status-desktop/issues/12762
2023-11-22 18:29:31 +01:00
Alexandra Betouni 77197040a4 fix(StatusImage): Improved sourcesize width/height
Closes #10139
2023-11-22 17:33:13 +02:00
Alexandra Betouni 3d6bb8f52e fix(CommunityIntroDialog): Unable to join token gated community
Closes #12678
2023-11-22 17:09:22 +02:00
Sale Djenic 132e05a8c6 feat(@desktop/walletconnect): signing tx or personal sign via keycard
Closes: #12730
2023-11-22 11:11:19 +01:00
Khushboo Mehta 26f29a4fe6 chore(@desktop/wallet): Unifying the various "TokensTypes" across the app
fixes #12501
2023-11-21 13:02:26 +01:00
Stefan 0d10d30b30 feat(wallet): WalletConnect web engine view runs SDK in background
Validated that WebEngineView runs SDK in background and can be hidden
from view.

Closes: #12639
2023-11-21 08:08:33 +01:00
Stefan a87a11f92f fix(tests) fix UI tests when run from scratch
The STATUSQ_SHADOW_BUILD will allow loading the qml files from sources

The StatusQ dependency helps building StatusQ which is used for C++
helpers

Updates #12639

ghstack-source-id: cbe0a994e7
Pull Request resolved: https://github.com/status-im/status-desktop/pull/12787
2023-11-20 20:38:19 +01:00
Khushboo Mehta 961babc65a fix(@desktop/wallet): Wallet TEST_MODE: account ordering is buggy when in test mode
fixes #12777
2023-11-20 19:41:22 +01:00
Alexandra Betouni 9665e07146 fix(CommunitySettings/Tokens): Updated page title
Closes #12648
2023-11-20 15:37:22 +02:00
Mikhail Rogachev 7830310591
fix(ActivityCenter): Simplify and fix AC notifications read/unread states (#12753)
* fix(ActivityCenter): Simplify and fix AC notifications read/unread states

* fix: review fixes
2023-11-20 12:53:34 +04:00
Igor Sirotin 4239f77941
Fix/issue 12651 unfurl status links (#12751) 2023-11-17 16:28:31 +00:00
Lukáš Tinkl ba30afd202 feat: Manage Collectibles panel UI component & model
- implements a QML panel to organize collectibles
- factors out the delegates to separate files to be reusable with the
Assets tab
- adds QML tests to assess the UI functionality (move, show/hide, save/load)
- does not cover the problematic "Arrange by collection" switch (TBD
later)

Fixes: https://github.com/status-im/status-desktop/issues/12379
2023-11-17 14:12:48 +01:00
Sale Djenic 48c9e372dc chore(@desktop/walletconnect): communication between qt desktop app and loaded wallet connect sdk is made via web channel 2023-11-17 13:55:20 +01:00
Anthony Laibe 98207381da fix(@wallet): toast ui url add extra space 2023-11-17 12:18:57 +01:00
Jonathan Rainville d66c1f7b0d feat(sharding): add shard info args to requestCommunityInfo calls
Fixes #12015
2023-11-16 13:32:48 -05:00
Anastasiya Semenkevich c7e5dc75bc chore: object name in ProfileLayout.qml 2023-11-16 13:17:53 +03:00
Anastasiya Semenkevich d73c4c5a3a chore: add object names to UserAgreementPopup.qml 2023-11-15 22:24:45 +03:00
Stefan 783a755230 feat(wallet) integrate Wallet Connect sign APIs
Bump status-go that brings the sign APIs support for send transaction
and personal sign

Extend SDK

- simple SDK event handling in QML
- support session request response APIs
- pairing management

Closes #12637
2023-11-15 17:21:27 +01:00
Godfrain Jacques 9743fb2537
fix(Onboarding): Apply 2 line constraint for create password description text (#12628) 2023-11-15 07:50:27 -08:00
Noelia 611598ec71 fix(TokensStore): Warnings cleanup
Warnings cleanup
2023-11-15 16:13:15 +01:00
Stefan bcf5b64298 feat(wallet) Wallet Connect Pair integration
Implement Controller to forward requests between status-go and SDK
implementation in QML.

Other changes:

- Source Wallet Connect projectId from env vars
- Mock controller in storybook

Updates #12551
2023-11-15 15:51:50 +01:00
Mikhail Rogachev 53d19b0e5e
feat(ActivityCenter): load new notifications on scroll to bottom (#12712)
Close #9637
2023-11-15 15:29:03 +04:00
Khushboo Mehta b315d8b9b8 chore(@desktop/wallet): Wallet: explore streamlining "all tokens model" spread across different sections
closes #12424
2023-11-15 10:40:36 +01:00
Sale Djenic 5257d003d9 fix(mocked-keycard-lib): details for the default export public flow updated 2023-11-15 09:53:08 +01:00
Igor Sirotin fc09027fcd
fix(LinkPreviewMiniCard): dark theme background color (#12733) 2023-11-15 08:00:25 +00:00
Lukáš Tinkl 81d99c44e9 fix: workaround to crash on startup with Qt 5.15.11
the most recent Qt upstream version introduced a regression that causes
our app to crash right on startup when a grouped property is assigned to
inside a `PropertyChanges` handler

upstream issue: https://bugreports.qt.io/browse/QTBUG-107795

Upstream fix will be released with Qt 5.15.12, code being at
https://codereview.qt-project.org/c/qt/qtdeclarative/+/424702
2023-11-14 18:11:42 +01:00
Cuteivist 90cfc0842a
bug(@desktop/wallet): Fix new transaction button visuals (#12589)
* Fixed duplicated wallet activity fetch request
* Fixed not resetting tab on wallet account add
2023-11-14 11:35:18 +01:00
Boris Melnik 69783e173b fix(discord): Process `delete channel & restart import` button
Fixes: #12684
2023-11-14 13:26:39 +03:00
Anastasiya Semenkevich b50dfc99c3 chore(@SplashScreen): add object name 2023-11-14 13:24:32 +03:00
Godfrain Jacques a42fa6d8dc
Fix incorrect suggestion input when entering seed phrase (#12662)
Co-authored-by: kounkou <jacques@status.im>
2023-11-14 02:00:54 -08:00
Noelia 3b06ae5893 fix(FinaliseOwnership): Fixed ownership decline flow
Fixes ownership decline flow where finalise popup was not correctly closed.
2023-11-13 15:24:38 +01:00
Richard Ramos de68d250a6 feat: shards.test fleet 2023-11-13 09:09:47 -04:00
Anthony Laibe 3521d0a3ae feat(@wallet): Add buffer to max input
fixes #12215
2023-11-13 13:59:03 +01:00
Noelia 8bede5e569 feat(TransferOwnershipToasts): Created new `ToastsManager.qml` class and new nim backend for special toasts visualization
This is a first step to globalize how toasts are treated in the qml layer:
- Created `ToastsManager.qml` class to deal with all app toasts generation.
- Started moving community transfer ownership related toasts to the new manager class.
- Some small cleanup in `AppMain.qml`

Nim backend:
- Created new api method to deal with extended / action toasts.
- Updated needed model / item with new needed roles.

Closes of #12175
2023-11-10 23:38:27 +01:00
Alex Jbanca 97da863d70 fix: Use StatusSynthaxHighlighter to format the hyperlinks in the chat input
1. Move the hyperlinks formatting from qml to c++ (StatusSynthaxHighlighter)
2. Update StatusChatInputPage
3. Update tests
2023-11-10 15:55:48 +02:00
Alexandra Betouni 7d9414ef93 fix(WarningBanners): updated show/hide as per design
Closes #10607
2023-11-10 14:07:22 +02:00
MishkaRogachev 4a4f1b8bf9 feat(Profile): Move profile showcase out of contact 2023-11-09 15:57:03 -05:00
MishkaRogachev e2c3cebdb5 feat(Contacts): refresh profile on live data update, review fixes 2023-11-09 15:57:03 -05:00
MishkaRogachev 84f3626390 feat(Contacts): Show profile showcase data for contacts 2023-11-09 15:57:03 -05:00
Anastasiya Semenkevich c5e37382cd chore(@AccountView.qml): object name to interact with toggle 2023-11-09 14:29:58 +03:00
Lukáš Tinkl 7183621369 feat: Manage tokens panel UI component & model
- implements the UI component to manage regular & community tokens
(drag'n'drop or context menu to reorder, show/hide, group by community)
- implements a custom C++ QAIM model which acts as a fake proxy model
for the above QML panel (internally it does all the
sorting/grouping/hiding and preserves the custom sort order)
- adds and corrects support for cascading submenus in StatusAction, and
StatusMenu[Item]
- adds support for mirrored (horizontally flipped) StatusSwitch
- adds a new SortOrderComboBox.qml (this was being used in the first
Figma version, can be ignored now, will be used by the main wallet view
later)
- some minor fixes and cleanups in the used components

Iterates #12377
Closes #12587
2023-11-09 11:45:32 +01:00
Cuteivist d73c51d380
bug(@wallet/desktop): Show toast on account removal (#12597) 2023-11-09 11:26:09 +01:00
Sale Djenic 930d9ef9b7 fix(@desktop/general): buying ens usernames/stickers fixed 2023-11-09 11:17:38 +01:00
Noelia 88c09b3941 feat(@desktop/communtiies): Set signer flow
Setting signer logic and computing fees.
AC messages for different transfer ownership states.
Declining ownership logic.
Added `CommunityTokensStore.qml` stub.
Removed deprecated property.

Issue #11964
2023-11-08 14:35:51 +01:00
Noelia e8c0275137 feat(ActivityCenter): Transfer ownership messages
- It created all possible AC notification types and notification component for transfer ownership flow.
- It adds `storybook` support for the new component.
- It adds call from activity center to finalise ownership popup.

Part of #12175

a
2023-11-08 14:35:51 +01:00
Noelia 1600b5fc11 feat(SQ/Theme): Extended `getColor` allowing random colors
- It extends `getColor` method to be used also to get random colors with alpha param.
2023-11-08 14:35:51 +01:00
Noelia f1d4462f69 feat(FinaliseOwnershipPopup): Moved to Popups
- Moved finalise ownership and decline ownership popups from `ChatLayout` to `Popups`.
- Removed instance from `ChatLayout`.

Part of #12175
2023-11-08 14:35:51 +01:00
Boris Melnik 3030a689d8 feat(discord): Process import cancelled event
Fixes: #12504
2023-11-07 16:43:30 +03:00
Boris Melnik 99712a076b feat(discord): Import single channel from discord
Fixes: #12238
2023-11-07 16:43:30 +03:00
Sale Djenic 94953bb925 fix(@desktop/wallet): send modal not working with bridge hop (mainnet to optimism)
Fixes #12615
2023-11-06 21:39:04 +01:00
Igor Sirotin 52dd0abbce
feature: live status link previews (#12613)
* feat: live received status link previews
* link preview cards: active members count
* update `requestCommunityInfo` to new backend. Add `requiredTimeSinceLastRequest` arg
2023-11-06 19:26:44 +00:00
Michał Cieślak 7fe6e10b81 chore(StatusQ): Tests for SubmodelProxyModel added 2023-11-06 12:26:04 +01:00
Michał Cieślak d4d72038bd feat(StatusQ): Generic proxy model allowing setting proxies like SFPM or LeftJoinModel for submodels
It allows transforming model, including submodels outside of the view
component consuming the model. Thanks to that now there is no need
to create proxies for submodels in view's delegate. It can be done
earlies, on the level of the main view.

Closes: #12630
2023-11-06 12:26:04 +01:00
Patryk Osmaczko 59048b2069 feat(communities): integrate community sharding
closes: #12408
2023-11-03 17:11:18 +01:00
Sale Djenic ad7774799a feat(@desktop/keycard): joining communities using addresses migrated to a keycard
Closes: #12170
2023-11-03 16:14:18 +01:00
Sale Djenic 0e16a4e2fb feat(@desktop/general): signing flow added globally
Signing flow can be run globally (similar as authentication flow is run) emitting
`SIGNAL_SHARED_KEYCARD_MODULE_SIGN_DATA` from any part of the app
and listening for a signal `SIGNAL_SHARED_KEYCARD_MODULE_DATA_SIGNED`
to get corresponding result.
2023-11-03 16:14:18 +01:00
Sale Djenic 9c9bcef6d2 feat(@desktop/keycard): sign flow added to the shared keycard module 2023-11-03 16:14:18 +01:00
Sale Djenic 37e35d143e chore(@desktop/community): unused code removed 2023-11-03 16:14:18 +01:00
Alex Jbanca 81fd27526e fix: Fixing broken binding on text input enabled property
The enabled property of the text input needs to have a binding to the StatusChatInput enabled property

+ re-enable the squish test
2023-11-03 14:53:44 +02:00
Anthony Laibe 8cf2c3047b fix(@wallet): hide store section for watch only accounts
fixes #12582
2023-11-03 11:33:59 +01:00
Alex Jbanca 0f07ea09da fix(LinkPreviews): Left align the message link preview tight corner 2023-11-02 14:32:22 +02:00
Khushboo Mehta bcdb37b0c5 fix(@desktop/wallet): Use LeftJoinodel to link networks with chainId in various models such collectibles model, assets models.
fixes #8923
2023-11-01 20:11:43 +01:00
Anastasiya Semenkevich 63112545a8 chore(@AccountContexMenu.qml): make the context menu dynamic
Removed the predefined width to the new option of including/excluding from total balance is fully visible
2023-11-01 20:32:16 +03:00
Mikhail Rogachev c7c5ec340d
feat(Profile): Profile showcase backend (#12510)
* feat(Profile): simplified approach to reuse existing models with profile

* feat(Profile): adapt nim models for view actions (move and change visibility)

* feat(Profile): save profile showcasse model changes to the db

* feat(Profile): update profile showcase models on changes from status-go

* feat(Profile): Various bug fixes for profile showcase

* fix(Profile): Fixes storing profile order and review fixes

* chore(Profile): Rename and minimise signals for updating base model filters
2023-11-01 20:54:22 +04:00
Noelia 35ed0e5987 feat(WalletStore): Created new `TokensStore`
It creates new `TokensStore` that will provide all needed token models for all app sections:
- sourcesOfTokensModel
- flatTokensModel
- tokensBySymbolModel
2023-11-01 10:58:21 +01:00
Noelia e0179bb2b5 feat(WalletSettings): Display token list as well as popup to see each token in it
- It creates new component `SupportedTokensListsPanel`.
- It updates tokens list tab content with the expected one.
- It creates new component `TokenListPopup`.
- It adds support to new created components in `storybook`.

Closes #12374
2023-11-01 10:58:21 +01:00
Noelia b1064644e8 feat(SQ/StatusBaseButton): Added `textHoverColor` property
Added `textHoverColor` property allowing more customization.
2023-11-01 10:58:21 +01:00
Noelia a7d430e309 feat(ShapeRectangle): Added icon
Added icon
2023-11-01 10:58:21 +01:00
Noelia d302bf4782 feat(WalletSettings): Add `Manage tokens` entry in wallet settings
Closes #12376
2023-11-01 10:58:21 +01:00
Mykhailo Prakhov b414d616a6
feat: info msg if owner is not awailable after community ownership change (#12560)
feat: info msg if the owner is not available after community ownership change
2023-10-31 18:55:41 +01:00
Anthony Laibe a5aba6e4e2 fix(@wallet): send to only operable account
fixes #12509
2023-10-31 10:28:28 +01:00
Michał Cieślak 04b6fb54c3 feat(LeftJoinModel): Use QAbstractItemModel::match for searching key idx in right model
It creates a possibility to transparently improve performance of id lookup
in right model by implementing fast search on given role in the righ model
itself by reimplementing QAbstractItemModel::match.

Closes: #12574
2023-10-31 09:46:37 +01:00
Michał Cieślak 7847cb3b11 chore(LeftJoinModel): add detection of duplicated roles 2023-10-31 09:46:37 +01:00
Michał Cieślak cc964508f1 chore(LeftJoinModel): QAbstractItemModelTester added to tests 2023-10-31 09:46:37 +01:00
Valentina1133 0f1b16006e
chore: object names added for keycard controller elements (#12583) 2023-10-30 17:57:24 +01:00