Commit Graph

4732 Commits

Author SHA1 Message Date
Michał Cieślak 75b2364d99 ContactsStore: contacts model adaptor moved outside store
Closes #16549
2024-11-19 17:09:03 +01:00
Michał Cieślak cf1ee80dc2 ContactsStore encapsulation improved 2024-11-19 17:09:03 +01:00
Michał Cieślak 6718491198 Chat/RootStore: contactsModel property removed 2024-11-19 17:08:47 +01:00
Jonathan Rainville 2ca7fef0bd refactor(contacts): improve updates by not removing and re-adding
We used to update contact items by removing them from the models and re-adding them. This is highly inefficient.
Instead, the proper way is to update only the values that changed.
2024-11-19 17:02:54 +01:00
Jonathan Rainville f09acd1a70 chore(contacts): remove useless and duplicated contact properties
OptionalName and isSyncing were never used.
DefaultDisplayName was not really used and is actually a duplication of preferredDisplayName, so I replaced the limited usages of DefaultDisplayName by preferredDisplayName
2024-11-19 17:02:54 +01:00
Jonathan Rainville 9315dd26e0 refactor(contacts): refactor 5 contact models into one and filter in QML
Fixes #16549

Refactors the 5 types of contact models (all, mutuals, banned, received and sent) into only the `allContacts` and use an Adaptor on the QML side to filter into the needed models.
This cleans the Nim side a lot and makes applying updates to the contacts' model way simpler.

rthh
2024-11-19 17:02:54 +01:00
Lukáš Tinkl 1c255175ab feat(ProfileContextMenu): Add "Mark as Trusted" and "Remove trusted mark"
- enhance and fix the SB page to be able to show all the permutations,
including profile image, emoji hash and ring

Fixes #16586
2024-11-19 15:51:55 +01:00
Anthony 22c4bb2846 feat: hide mercuryo
fix #16757
fix #16765
2024-11-19 11:16:16 +01:00
Michał Cieślak 325d3588d3 ActivityNotificationMessage/Chat.RootStore: remove dependency on nim model's onItemChanged signal
Closes: #16754
2024-11-14 15:13:24 +01:00
Michał Cieślak ea584f0693 ActivityNotification: unnecessary code removed 2024-11-14 15:13:24 +01:00
Michał Cieślak 32c1d174ad UserListPanel made store-independent, Storybook page fully operable
Closes: #16717
2024-11-13 09:49:07 +01:00
Michał Cieślak 74113cbbe1 ProfileContextMenu.removeNickname signal aligned 2024-11-13 09:49:07 +01:00
Michał Cieślak b09713a53d ProfileContextMenu: unnecessary calls to store removed when opening menu 2024-11-13 09:49:07 +01:00
Michał Cieślak ef8fdd7d54 getProfileType/getProfileType helpers moved from store to Utils 2024-11-13 09:49:07 +01:00
Michał Cieślak 544f749f44 ProfileHeader and related components refactored to use compressed key directly 2024-11-13 09:49:07 +01:00
Michał Cieślak 8fac4bf5de UserImage: unused param pubKey removed 2024-11-13 09:49:07 +01:00
Michał Cieślak e95202ab61 Unused ContactRequestPanel removed 2024-11-13 09:49:07 +01:00
Michał Cieślak f3021ec757 Global signal related to contact popups simplified
Global.openContactRequestPopup
Global.openReviewContactRequestPopup
Global.openNicknamePopupRequested
Global.blockContactRequested/unblockContactRequested
Global.openMarkAsUntrustedPopup
Global.removeContactRequested
Global.openMarkAsIDVerifiedPopup/openRemoveIDVerificationDialog
2024-11-13 09:49:07 +01:00
Michał Cieślak b8f9566116 UserImage refactored to remove dependency on backend via Utils 2024-11-13 09:49:07 +01:00
Dario Gabriel Lipicar 3e9e8bfe07 chore: remove unused components 2024-11-08 17:09:14 -03:00
Dario Gabriel Lipicar a53eb6001f feat(activity): remove activity details screen 2024-11-08 17:09:14 -03:00
Michał Cieślak 5238074ed3 Settings list simplified
- UI simplified, made independent from the backend
- dedicated model created, filtering on the level of model instead of
  per delegate
- using ListView instead of mutliple Repeaters
- UI models removed from ProfileSectionStore

Closes: #16675
2024-11-04 13:53:28 +01:00
Sale Djenic e3128587d8 fix: fill missing fees in tx object received from dApp
Fixes #16528
2024-11-04 11:32:19 +01:00
Lukáš Tinkl 623333ab8c fix: improve image type detection
- use the same approach as status-go to detect the image type, relying
on "magic" type matching instead of looking at the file extension (now
using C++ and QMime*)
- add a little error popup when the user tries to upload an unsupported
image type while creating/editing a community
- expose all the image related properties from the C++ backend instead
of constructing and duplicating them in QML
- cleanup some unused/dead code

Fixes #16668
2024-11-04 10:29:01 +01:00
Dario Gabriel Lipicar ea94065c57 fix(swap): invalidate old uuid and route when a new route request is made
Fixes #16574
2024-10-31 12:12:28 -03:00
Michał Cieślak c009321ba2 chore: unused, outdated code removed from ContactsView
Closes: #16650
2024-10-31 11:11:30 +01:00
Michał Cieślak ba80ba97f7 compressedPubKey exposed via backend models, usages of Utils.getCompressedPk removed, SB pages simplified 2024-10-31 11:11:30 +01:00
Michał Cieślak 28f6bee90e Utils.getCompressedPk removed from multiple components 2024-10-31 11:11:30 +01:00
Michał Cieślak 0f98244e1f UserListPanel simplified, dependency on utilsStore removed 2024-10-31 11:11:30 +01:00
Michał Cieślak 143cf63dc0 Community invite flow: dependency on stores reduced 2024-10-31 11:11:30 +01:00
Michał Cieślak ff5e1654ec Unused hasAddedContacts property removed from multiple components 2024-10-31 11:11:30 +01:00
Michał Cieślak adc8f5bc3a ContactPanel api simplified 2024-10-31 11:11:30 +01:00
Michał Cieślak 9b5b5a4a60 ContactPanel delegate made backend-independent 2024-10-31 11:11:30 +01:00
Jonathan Rainville 9e70e69faf
fix(mentions): fix wrong user list given to mentions model (#16656)
Fixes #16602

This was broken when we refactored the members to use a single model for public channels. Those public channels then didn't have any members in their model they used for suggestions.
This is fixed by putting the logic in the UsersStore and reusing that store whenever we need a list of the members.
2024-10-30 15:02:46 -04:00
Jonathan Rainville a466747c5e
fix(airdrop): fix wording of the error when selecting the wrong account (#16632)
Fixes #16562
2024-10-30 11:45:20 -04:00
Sale Djenic 03a0a18313 fix: links do not work in the terms of name registration popup
Fixes #16658
2024-10-30 14:10:40 +01:00
Sale Djenic 54d0d62b37 fix: cant fetch fees when releasing ens name, token is not set, as well as value
There are a few things improved in this commit:
- the account the username was bought with is selected for releasing
- if the account was removed in meantime, we warn user displaying a popup message
- ETH token is selected
- 0 value is set

Fixes #16611
2024-10-30 09:53:40 +01:00
Anastasiya Semenkevich 4409c20264 chore(@e2e): change object name for AccountListItem 2024-10-29 21:16:40 +03:00
Jonathan Rainville d511c25d2e
remove old code about ID verification and fix trustStatus bug (#16548)
* chore: remove old code about ID verification

* refactor(trust): remove untrustowrthy and isVerified from items and use trustStatus

* chore(status-go): up status-go to get fix for trustStatus reseting

Fixes #16392

* chore: remove verified/trusted profile showcase category
2024-10-29 14:08:12 -04:00
Sale Djenic f2883fdcee fix: animation for updating fees added to send and swap modal
Closes #16624
2024-10-29 16:12:07 +01:00
Sale Djenic f6055946d4 chore: usage of goerli removed 2024-10-29 15:46:09 +01:00
Khushboo Mehta b279bcedc2 fix(@desktop/wallet): Swap transaction - Wrong copy on the tooltip of the 'Swap' button
fixes #16568
2024-10-29 14:45:40 +01:00
Lukáš Tinkl ab92672deb fix: Share community link is gone
- pass the correct community ID

Fixes #16637
2024-10-29 12:58:56 +01:00
Lukáš Tinkl fe9fa7d086 fix(PermissionsSettingsPanel): fix initial view being too wide
Fixes #16617
2024-10-29 10:36:55 +01:00
Lukáš Tinkl bd6289d4f2 feat(CommunitySettingsView): add "Invite ppl" button
- this adds direct access to sending invitations to new ppl (aka adding
members), instead of going thru the secondary nav context menu
- the new community context menu will be tackled in a separate
task/issue

Fixes #16597
2024-10-29 10:11:51 +01:00
Michał Cieślak fe249225a2 Storybook pages - multiple fixes regarding stores 2024-10-28 23:16:31 +01:00
Michał Cieślak 4c7205fc5d getEmojiHashAsJson moved from Utils to UtilsStore 2024-10-28 23:16:31 +01:00
Michał Cieślak f6f73c188a isAlias moved from Utils to UtilsStore 2024-10-28 23:16:31 +01:00
Michał Cieślak a76ae0ade6 isCompressedPubKey moved from Utils to UtilsStore 2024-10-28 23:16:31 +01:00
Michał Cieślak 14226af5a0 UtilsStore creaed, isChatKey method moved 2024-10-28 23:16:31 +01:00