Commit Graph

3208 Commits

Author SHA1 Message Date
Lukáš Tinkl a6c897929a chore: Remove custom rowData method from NIM's models
- Some NIM's models define additional (not part of the
QAbstractModelItem API) method rowData to allow access to model's data
on UI side
- The same job can be done relying fully on public QAbstractModelItem
API using ModelUtils utility. It gives full transparency if we need
nim's model or other like ListModel replacement in tests/storybook
- propagate `tokensStore` to unbreak the Browser's wallet menu

Fixes #14805
2024-05-20 18:02:20 +02:00
Richard Ramos 35e4e63b48 feat: shards.staging fleet 2024-05-20 09:33:17 -04:00
Michal Iskierko 458fdd4938 feat(@desktop/permissions): Use permission-check light functions
Light functions are used first in order to reduce the number of calls to blockchain.
If the permission is not met (user is not a member of community/channel member list),
then normal permissions-check function is used.

Issue #14220
2024-05-20 15:00:22 +02:00
Alex Jbanca 7a3b0e0653 feat: Update app icons
Adding app icons with all the necessary sizes bundled in ico/icns
2024-05-20 13:38:04 +03:00
Jonathan Rainville 4c61c115d4
fix(mute): fix muted community still sending notifs and having a badge (#14822)
Fixes #14816

The muted property on the community was never checked anywhere. I don't know how it ever worked, but oh well.

I also made it so that when the mute property on the community changes, the badge gets re-evaluated.
2024-05-17 14:25:30 -04:00
Lukáš Tinkl 93d808d020 fix(CommunityMembershipSetupDialog): wait for the Join Permission response only
- introduce a new boolean property `checkingPermissionToJoinInProgress`
and use it to enable/disable the Join (share addresses) button when
joining a community
- we don't have to wait for both join and channels permissions check to
finish, as the former is much faster
- renamed `joinPermissionsCheckSuccessful` to
`joinPermissionsCheckCompletedWithoutErrors` to avoid confusion

Fixes #14680
2024-05-17 14:26:55 +02:00
Michal Iskierko 93f62a1672 feat(@desktop/communitytokens): Add l1 fees to community token estimations
There is only one status-go call for all fees: suggested fees, gas and l1 fee.

Issue #14166
2024-05-17 10:26:47 +02:00
Patryk Osmaczko 76eda30fc1 fix: `LinkPreview` to json conversion
fixes: #14731
2024-05-17 09:59:46 +02:00
Jonathan Rainville bbd1adcabb
Remove importCommunity from QML and Nim code (#14814)
* Remove importCommunity from QML and Nim code

Handling issue 14310. Removed functions associated with the API.

* Updated pr for suggested changes.

* Updated module.nim

---------

Co-authored-by: Eliza <elsorber@gmail.com>
2024-05-16 17:30:32 -04:00
Andrey Bocharnikov cd7de2a2e5 Fix(ProfileShowcase): send contact update when bio changes
fixes #12617
2024-05-17 01:39:14 +07:00
Cuteivist b771ac6aed
feat: Change optimism network short name (#14766) 2024-05-16 18:37:54 +02:00
Andrey Bocharnikov 9d7d3b245e Fix(settings): crash when enabling history archive and disabling logs
fixes #14643
(see more details in the ticket)
2024-05-16 23:29:18 +07:00
Michal Iskierko 5b5c164a16 feat(@desktop/communitytokens): Move community tokens logic to status-go.
Nim part is only responsible for catching the signal about handled transaction and update UI.
Added CommunityTokenTransactionStatusChangedSignal.

Issue #4351
2024-05-16 17:37:05 +02:00
Sale Djenic 6e1fe678bd fix(keycard): unable to import account from keycard
Handling for recovering Status profile for Linux updated since we don't use biometrics for Linux
and that requires slightly different flow.

Closes: #14673
2024-05-16 07:56:32 +02:00
Cuteivist 2565c8a135
fix(wallet): Show community name in tag (#14622) 2024-05-15 11:14:46 +02:00
Khushboo Mehta 30ff5f3a2b fix(@desktop/wallet): New Collectible Details tabs
fixes #13806

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-05-14 09:32:45 +02:00
Jonathan Rainville b6b21c3744
Refactor out channel groups (#14202)
Fixes #12595

Gets rid of the concept of channelGroups.
Instead, we use the communities and chats directly, to keep the same concepts as status-go.
2024-05-13 15:58:55 -04:00
Roman Chornii f965ab4540
fix(Syncing): cancelling syncing flow should not result in error dialog (#14633)
Closes #11908
2024-05-13 14:24:29 +03:00
Cuteivist 5fbc262dec
fix(wallet): Hide loading when selected account is loaded (#14435) 2024-05-13 13:00:02 +02:00
Cuteivist 406f12d239
feat(settings): Fixed changing network urls (#14353) 2024-05-13 12:06:05 +02:00
Stefan 1f60410db8 feat(dapps) implement wallet connect URI input
Other changes

- start Wallet Connect SDK using web engine after wallet is ready
- source WC project ID from the constants in nim
- close list when opening the `ConnectDappModal`
- remove the old POC modal instantiation
- rename ConnectDappPopup to Modal for consistency
- move specific dapps related user settings to their place in the component
- add DAppsStore to be used for dapps abstraction

Updates #14556
2024-05-13 10:33:16 +02:00
Jonathan Rainville 953fff0e68 feat(community): show a message when the member reevaluation is ongoing
Fixes #14378
2024-05-08 16:44:58 -04:00
Jonathan Rainville 685b83d56d chore: update icons to use the new multicoloured Status logo
Fixes #14531
2024-05-08 10:22:34 -04:00
Khushboo Mehta 03495265d5 feat(@desktop/wallet): Add Swap Feature Flag
fixes #14627
2024-05-08 13:41:17 +02:00
Cuteivist 8049eaa014
fix(wallet): Update currency format on startup (#14623) 2024-05-08 11:46:57 +02:00
Andrey Bocharnikov 688238fdd3 Fix(Profile): Fix saving of profile identity changes (#14464)
Problem:
There were no difference between the fact that the avatar is not changed and the avatar is deleted. The same for bio and displayName

On NIM, this state was simply rewritten
Solution
(The problem was discovered due to the fact that if the picture does not change, then Nim receives a base64 encoded source - instead of the path to the new Avatar. Which Status go could not parse as a file.)

On the QML side, if we see that there have been changes, we add changes to changesMap Json, if there are no changes, then do not add. (This is the way to implement Option).

On the NIM Side - convert to saveData

On the Module side - distinguish Nil from an empty string

fixes #14464
2024-05-03 10:43:29 -04:00
Dario Gabriel Lipicar 1884f6e033 fix(@desktop/wallet): prevent collectibles controller crash if network unknown 2024-05-03 08:50:02 -03:00
Dario Gabriel Lipicar 7dea2e248c feat(wallet): add grove support for opt sepolia and arb sepolia
Closes #14501
2024-05-03 08:49:01 -03:00
Jonathan Rainville 1ff424aea1 chore: disable history archive for new user and add advanced setting
Fixes #14534
2024-05-02 10:45:52 -04:00
Jonathan Rainville bfb506540f chore: hide create community button behind advanced setting
Fixes #14530

(includes a revert of the previous hide that wasn't exactly what we wanted)
2024-05-02 10:45:52 -04:00
Stefan 2972531766 chore(global) add the dapps button under a feature flag
Also add basic feature flag support that work with QML and nim

Closes #14553
2024-05-02 12:26:58 +02:00
Stefan 8d6d9c3d7c chore(dapps) update foundation for DApps work
Remove unused and de-scoped elements

Updates #14317
2024-05-02 09:47:30 +02:00
Sale Djenic dd104960ba feat(walletconnect): initial code organization
Closes #14395
2024-05-02 09:47:30 +02:00
Lukáš Tinkl d0658feb26 feat: disable language/translations selection
- make it conditionally available for testing via
Settings/Advanced/Enable translations
- display a tooltip and infobox explaining the current and future
situation
- upon app start, force the language to "en" if the translations are not
enabled; and suggest app restart when they get disabled

Fixes #14527
2024-04-30 13:25:01 +02:00
Alex Jbanca 85066fccc8 fix: Hide members count from community cards when the community is encrypted and the community info is not available 2024-04-30 14:03:38 +03:00
Cuteivist afcf84f705
fix(wallet): Load activity details (#14516) 2024-04-25 12:01:26 +02:00
Cuteivist 72a081ceca
fix(wallet): Update balance loading state on token fetched (#14491) 2024-04-25 11:08:19 +02:00
Igor Sirotin 59cb770ddb
Switch to new login/create/restore status-go endpoints (#14139)
* fix: new login endpoints - iteration 1

* feat: use CreateAccountAndLogin endpoint

* fix keycard import

* better comment

* wip: screens reordering

* cleanup

* force minimum of 30 seconds fetching backup

* keycard flows fixes

* typo fix

* remove ganache argument

* fix: wallet issues

* update status-go
2024-04-24 18:31:22 +02:00
Michal Iskierko ec9bf9fc7b fix(@desktop/communitytokens): Fix too many getOwner calls.
Get owners only for privileged users.
Fix initial call - both communities and tokens should be loaded.

Issue #14282
2024-04-24 15:20:01 +02:00
Michał Cieślak 26b875ea16 fix(CommunitiesModule): Qt props fixed to not crash MonitoringTool
Closes: #14493
2024-04-23 16:18:44 +02:00
Jonathan Rainville bff7936779 fix(edit): fix edits received before the message did not appear
Fixes #14479

The problem is our code assumed that we'd have the original message first, but in the case where messages are sent and edited before we open our app, when we fetch, we can't guarantee the order, so we might get the fully edited message directly from status-go.

The solution is simply to treat those messages as new messages.
2024-04-19 11:01:26 -04:00
Alex Jbanca 5e33540307 fix(CommunityPermissions): Fix token criteria updates in the permissions model
Re-create the token criteria and include all items whenever the model changes.

The previous perf optimisation fix filtered the items where the criteriaMet doesn't change.

(cherry picked from commit a9a83df301)
2024-04-18 23:14:37 +03:00
Jonathan Rainville 4a066a2f48 fix(community): fix saving of communities with no categories
Fixes #14472
2024-04-18 14:00:38 -04:00
Mikhail Rogachev d4b1dac65d
Feat: add check permissions failed signals (#14374)
* Feat: add check permissions failed signals

Close #14313

* Chore: replace check permissions signals with a property
2024-04-18 18:45:01 +02:00
Andrey Bocharnikov b5dbac2e74
fix(Profile flow): ID verification cannot be removed (#14308)
fix(UserListPanel): hide the verification icon for yourself

fixes #13619

* split function for reseting trust status and verification+trust status

* rename function to removeTrustVerificationStatus
2024-04-18 20:09:27 +04:00
Godfrain Jacques eccc9b3bd7
fix(category) Implement collapsed categories (#14135)
This PR implements the nim part for enabling having collapsed categories
that persist into the database
This fixes #13944
2024-04-15 11:34:44 -07:00
Jonathan Rainville 7421d5b425 fix(chat_section): fix parent badge not updating on chat close and open
Fixes #14025
2024-04-15 13:15:20 -04:00
Mykhailo Prakhov 55dd8e3065
feat(@desktop/activityCenter): show notification about invite to group chat from non our mutual contact (#14415) 2024-04-12 18:28:28 +02:00
Ivan Belyakov 3843b53cc0 feat(wallet): toggling `include/exclude from total balance` menu action
filters out assets/collectibles/activities entries.
Fixed direction of transfers for `All accounts` selection on activity
tab.

Closes #14162 #14216
2024-04-12 15:18:19 +02:00
Ivan Belyakov 6ba0cdfafa feat(wallet): removed allAddresses flag as redundant 2024-04-12 15:18:19 +02:00
Ivan Belyakov b9268d8f1e fix(wallet): fixed precision loss for balance amount in nimqml
fixed currency amount property type to be handled by QMetatype properly
2024-04-12 13:20:50 +02:00
Sale Djenic 42a60642e8 fix(wallet): user is unable to authenticate using biometrics
Fixes #14404
2024-04-12 07:46:00 +02:00
Mykhailo Prakhov f743d2f059
chore: do not show permissions change notifications if permission is private or we are not a community member (#14386) 2024-04-11 11:29:00 +02:00
Sale Djenic ced5a9bb4b feat(keycard): noticeable delay in starting flows
This is not an issue actually, instead a request was if the Keycard is present to display an
appropriate state based on the Keycard content, which requires the following steps when a user
clicks any flow to run:
- run appropriate keycard flow
- wait for a response from the keycard
- resolving state that needs to be displayed based on the response
- display appropriate state

This commit changes that to the following:
- display keycard reading state immediately after the user clicks any flow to run and then the rest as it was
- run appropriate keycard flow
- wait for a response from the keycard
- resolving state that needs to be displayed based on the response
- display appropriate state

With this change on OS' where communication between the app and keycard is slow it wouldn't look
like a delay in running flow, but instead, a user will be aware immediately that something is ongoing.

Closes #13242
2024-04-11 10:00:15 +02:00
Igor Sirotin 795b999ad8
chore: extract move gifs module (#14315) 2024-04-09 19:01:24 +01:00
Igor Sirotin e2eddc525c
fix: proper content for bridged messages in OS notifications (#14377) 2024-04-09 18:21:47 +01:00
Cuteivist 277dda7533
feat(wallet): Disable send for soulbound collectibles (#14327) 2024-04-09 16:16:03 +02:00
Stefan 473e2e273f feat(wallet) connect assets ordering with saving to DB backend
Also refactor the existing code based on the latest understanding.

Closes #13312
2024-04-09 09:34:52 +02:00
Sale Djenic 5bf8f5c456 feat: swap via paraswap backend implementation
Closes #14241
2024-04-08 11:00:19 +02:00
Michal Iskierko 62c48a0072 chore(desktop): upgrade status-go
Issue #14044
2024-04-08 11:22:51 +03:00
Michal Iskierko d41625932e fix(@desktop/chat): Fix displaying edits of bridge messages
Fix #14044
2024-04-08 08:01:37 +02:00
Michal Iskierko 5f2193b2c5 fix(@desktop/communitytokens): fix converting json to dto
Fix #14307
2024-04-07 21:46:02 +02:00
Alexandra Betouni 53db09412a feat(ProfileShowcasePopup): Adding interactions in delegates
Closes #13702
2024-04-05 12:31:11 +03:00
Jonathan Rainville 8f5efc6cb0 fix(permissions): fix view and post permission overwritten by view perm
Fixes #14209
2024-04-04 16:32:04 -04:00
Jonathan Rainville 5c75c265af fix(permissions): fix hang when all channel perm check return (#14259)
* fix(permissions): fix hang when all channel perm check return

Fixes #14234

The problem was that we updated **all** the models from **all** the channels of a community each time the channel requirement checks returned.

The fix is to first of all, make sure we don't call that check too often. It sometimes got called twice in a row by accident.

The other better fix is to check if anything actually changed before updating. This solves the issue almost entirely.  Since the permissions almost never change, the updates now take only a second.

* fix(permisisons): never run permission checks for privileged users

Also fixes #14234 but for admins, TMs and Owners.

Admins+ were still getting the hang, because the permission checks always returned something different than the models, because the models knew that admins have access to everything, but the permission check was running as if it were a normal user (I think, un-tested).

Anyway, the solution is more simple, we never need  to run the permission checks on admins+, because they always have access to everything!

* fix(Communities): prevent channels model from emitting unnecessary signals

Closes: #14274

* chore(Communities): improve channels metadata lookup performance

ChannelsSelectionModel is removed, replaced with plain LeftJoinModel.
Transformations of left-side model are done in a single place, not in
every delegate making the join.

* only call update functions when there is something to update + move permission model creation when needed

---------

Co-authored-by: Michał Cieślak <michalcieslak@status.im>
2024-04-04 12:14:39 -04:00
Mykhailo Prakhov 1e155046e7
fix(@desktop/communities): request to join fixes (#14287) 2024-04-04 18:03:10 +02:00
Mikhail Rogachev 6883db3b58
Fix: fix compilation warning (#14273) 2024-04-04 16:42:37 +02:00
Andrey Bocharnikov de74a6ce03
fix(Profile Flow): Marking as ID verified is not reflected in community member (#14269)
fixes #13772
2024-04-04 00:43:24 +04:00
Igor Sirotin 3750b9933e
chore: supress UnreachableCode check in keycard_popup/controller.nim (#14254) 2024-04-03 14:47:52 +01:00
Igor Sirotin 89408adc00
chore: fill holes in ChatType enum (#14257)
* chore: fill holes in ChatType enum
* chore: fix Spacing warning
2024-04-03 14:47:41 +01:00
Mikhail Rogachev d86be3a970
fix(Profile): Fix crashing when showcase collectible having disabled chainIds (#14252)
Close #14243
2024-04-03 11:51:15 +02:00
Stefan 65791a8e87 fix(wallet) sending community tokens doesn't work
The contract address is not resolved for the community tokens because
of symbol usage to identify assets. The symbol is not resolved by
`getTokenBySymbolByTokensKey`.
This fix changes from using symbol to always using assetKey to identify
the token for all non-native and non-collectibles transfers.

Closes #14074
2024-04-03 10:08:20 +02:00
Stefan fd964337a8 Remove relative imports and unused variable from transaction/service.nim 2024-04-03 10:08:20 +02:00
Stefan a2e8b6ebd7 fix(wallet) start a session in case of tmp activity models
Closes: #14250
2024-04-03 07:55:22 +02:00
Dario Gabriel Lipicar cd3a1180b0 fix(@desktop/wallet): properly handle collectible groups in send modal
Fixes #14080
2024-04-02 12:55:08 -03:00
Andrey Bocharnikov accd4da214
fix(Permissions): tokenOwner is present in the list of collectibles when adding a permission (#14236)
fixes #13561
2024-04-02 14:38:08 +04:00
Lukáš Tinkl b191caaec6 feat: Add missing eligible to join tag in CommunityMembershipSetupDialog
- implement the eligibility check in C++, returning the highest possible
role the user would be allowed to join under
- enable/disable the "Share" button based on the above permissions check
- remove all the locally placed components, access teh popup only via
Global/Popups
- calculate the `accessType` internally based on the permissions present
- update the eligibility as the async check for permissions is finished
- fix the permissions panel background color
- partially revert the share/finish/cancel buttons behavior; it must be
one button due to StatusStackModal limitations
- fix some other minor UI issues or differences to current Figma designs
- adjust SB, add the possibility to play around with different
permission models

Fixes #14100
2024-03-29 16:11:59 +01:00
Lukáš Tinkl 255f318627 fix: consider TM when evaluating permissions to join
seems like this check had gone missing
2024-03-29 16:11:59 +01:00
Mikhail Rogachev 839f2c6b21
Feat: New showcase models for a contact (#13998)
* Feat: New showcase models for a contact

* feat(ProfileShowcase): Integrate the new profile showcase backend

* fix(Storybook): Fix ProfileShowcaseModelsPage

* fix: fetch only requested profile showcase data

Support PR for https://github.com/status-im/status-go/pull/4982

* feat: Load and validate profile showcase for a contact in two steps

* fix: fetching criteria for profile showcase collectibles

* fix: review fixes

---------

Co-authored-by: Alex Jbanca <alexjb@status.im>
2024-03-29 12:43:49 +01:00
Khushboo Mehta c710f0e809 fix(@desktop/wallet): Remove profile section's networks submodule and udpate logic for combined networks 2024-03-28 17:08:49 +01:00
Mykhailo Prakhov 7804d4ca39 fix: set correct permision UI 2024-03-28 10:59:40 -04:00
Dario Gabriel Lipicar b5f2a11bc8 fix(@wallet): prevent collectibles error due to irrelevant chain state 2024-03-28 10:10:44 -03:00
Sale Djenic 7047ecf2b6 chore: move logic for resolving suggested derivation path to status-go
Closes #14188
2024-03-28 12:48:26 +01:00
Khushboo Mehta 5473e3b14e chore(@desktop/wallet): Simplify the wallet networks service
fixes #12717
2024-03-28 11:47:33 +01:00
Sale Djenic d9945b39dc fix(wallet): displaying L1 gas cost in UI
Fixes #13892
2024-03-28 10:36:09 +01:00
Sale Djenic 9b8401b641 fix(communities): keycard authentication marked automatically as authenticated
Closes #14174
2024-03-28 07:38:42 +01:00
Sale Djenic cbf0fd3d71 fix(general): when biometric is setup the authentication flow is not correct showing the password one instead
Closes #14173
2024-03-28 07:38:15 +01:00
Stefan b1f8c8efa2 fix(wallet) serializing type for collectibles settings to backend
It seems `%*` operator we use in the `rpc` generics doesn't use the
`serializedFieldName` marker and `type` was serialized as `itemType`
and value the enum name instead of `type` and integer value

Updates: #13971
2024-03-27 20:26:15 +01:00
Stefan 26542970ee feat(wallet) save/load collectibles user handled state in DB
Add a separation layer for save/load/clear to ManageTokensModel
so that we can save/load from external sources.
The separate layer is composed of JSON as protocol, a set of signals
and slots for interface. The implementation forwards data to current
QSettings for storybook and nim controllers for the app.

Updates #13313, #13312
2024-03-27 20:26:15 +01:00
Khushboo Mehta f45a39bfcf feat(@desktop/wallet): Link out from collectible details view to opensea
fixes #13918
2024-03-27 17:47:06 +01:00
Cuteivist fae7e82e0a
fix(@wallet): Copy viewed account details (#14161) 2024-03-26 16:49:12 +01:00
Jonathan Rainville e937dfb56c fix(main): set personnal chat as active if last active was profile
Fixes #14111
2024-03-26 11:03:27 -04:00
Andrey Bocharnikov c53e4aeb92
(Chat): Display system messages about adding/removing members immediately after an update is performed (#14146)
* (Chat): Display system add/remove messages immediately after update

fixes #9876

* (Chat): Display system "pinned" message immediately after update

fixes #10702

* fix issues from the PR
2024-03-26 18:13:22 +04:00
Stefan a066cbeecb chore(wallet) remove unused code 2024-03-26 11:24:08 +01:00
Stefan fb530a099a fix(wallet) counterparty loading forever in activity history
Closes: #14067
2024-03-26 11:24:08 +01:00
Cuteivist 1deb5e86e5
fix(wallet): Add token data when new token is added (#14061) 2024-03-25 18:31:01 +01:00
Sale Djenic 10a8469b9e fix(communities): deltas between designs and build for join token gated community flow
This commit:
- improves selection of addresses to reveal
- keeps the selection state for the popup lifetime
- brings higher granularity in terms of signed requests by keypairs
- meets new requirements from the latest related Figma
- merges edit shared addresses feature and request to join community features
into a single component, cause the flow is logically the same, with the only
difference that when editing revealed addresses we don't show the community
intro screen

Fixes at least points 3 and 4 from #13988
2024-03-25 14:16:32 +01:00
Lukáš Tinkl 9ef513b419 fix(TokenManagement): Asset balance threshold value not reflected in main wallet view
- take the balance threshold value into account when presenting the
assets in the main wallet view
- additional fix from Emil for storing the threshold value
- storybook fixes to display the correct `currentCurrencyBalance` values
based on the address/wallet filters and mocking the threshold values
using TransactionStore

Fixes: #14017
2024-03-23 11:37:37 +01:00
Jonathan Rainville e71d749ef2
fix(category): fix missing category when empty (#14086)
Fixes https://github.com/status-im/status-desktop/issues/14059
2024-03-22 12:55:40 -04:00
Godfrain Jacques af6dd257cc
(fix/desktop) fix sporadic empty community token hodler list (#14057)
This PR fixes #13650

- Reduces the timer for fetching the token hodlers to refresh cashe
- Check for temporary contract address before making requests
2024-03-21 16:49:34 -07:00