Commit Graph

9188 Commits

Author SHA1 Message Date
Lukáš Tinkl 9d00e82de5 chore(CommunityColumnView): fix typo 2024-04-11 10:39:55 -04:00
Michał Cieślak 2ee103a17c chore(Communities/InDropdown): performance improved
- removed multiple filtering separately for each category
- no instantiation of all delegates up front (regular ListView approach
  used)
- fixed category selection when filtering - selecting/deselecting only
  items fulfilling search criteria
- significant simplification of the code

Closes: #14275
2024-04-11 10:39:55 -04:00
Michał Cieślak bc878be2a7 feat(StatusQ/LeftJoinModel): Add init check on componentComplete
Earier attempts to initialize proxy may fail bc left/right models
may be not ready when they are set. It may lead to a situation where
the model remains uninitialized and reporint 0 row count.
2024-04-11 10:39:55 -04:00
Michał Cieślak 76827265f8 feat(StatusQ/LeftJoinModel): Add possibility to explicitly define roles to be joined
The new property is added to allow indicating which roles from the right
model should be used. It prevents from unnecessary renamings.

Closes: #14298
2024-04-11 10:39:55 -04:00
Lukáš Tinkl 90840a486c chore(SharedAddressesPermissionsPanel): optimize the speed
- don't use the expensive `ExpressionFoo` in SFPM, just use
`AnyOf/AllOf` combinations where possible
- in HoldingsSelectionModel, don't call the `getTokenByKey` twice to
construct the `text`, once is enough
- lastly, rewrite the JS helper `PermissionsHelpers.getTokenByKey` to
C++; this method gets called recursively way too often from many places

In the longterm, we should provide a specific C++ transformation model
for SharedAddressesPermissionsPanel to follow the UI requirements more
closely; that way we'd be able to fix the issues here for good

Fixes #14276
2024-04-11 10:39:55 -04:00
Lukáš Tinkl c193cd9fc3 chore: fix double permissionsModel preparation
we already build it anyway in the Popups.qml when opening the community
intro dialog in all the flows
2024-04-11 10:39:55 -04:00
Igor Sirotin 1a0bcd104d fix: permissions with value>1000 2024-04-11 10:39:55 -04:00
Lukáš Tinkl 1fc6e1f26b feat(SharedAddressesAccountSelector): update account sorting
- implement sorting of the wallet accounts by the number of tokens (aka tags) and
then by alphabet
- due to the delegate complexity here and usage of nested models, keep
track of the tags count separately and outside of the model
- this will be improved later on as part of the complete sort/order
design described in https://github.com/status-im/status-desktop/issues/14192

Fixes #14101
2024-04-11 10:39:55 -04:00
Lukáš Tinkl c61eeb90ea chore(SharedAddressesPermissionsPanel): use FastExpressionFilter
- speed up the construction of the permissions overview panels
2024-04-11 10:39:55 -04:00
Andrey Bocharnikov 4ce61f7ab1 fix(Permissions): tokenOwner is present in the list of collectibles when adding a permission
fixes #13561
2024-04-11 10:39:55 -04:00
Michał Cieślak e3028ffd28 feat(SharedAddressesAccountSelector): Support for collectibles in account's delegate tags
Closes: #14102
2024-04-11 10:39:55 -04:00
Michał Cieślak 0791cccf85 feat(GenericListView): reinitialize on model reset and handle delayed roles initialization 2024-04-11 10:39:55 -04:00
Lukáš Tinkl e044dfcf57 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-04-11 10:39:55 -04:00
Noelia fda0eaa915 fix(CancelCommunityMembership): Added popup instead of directly cancelling request
- Added dialog instead of calling directly to the cancel method.
- Updated `Cancel` button format according to figma in `CommunityMembershipSetupDialog`.

Closes #14097
2024-04-11 10:39:55 -04:00
Lukáš Tinkl 4b22035602 fix: consider TM when evaluating permissions to join
seems like this check had gone missing
2024-04-11 10:39:55 -04:00
Sale Djenic 803f334959 fix(general): when biometric is setup the authentication flow is not correct showing the password one instead
Closes #14173
2024-04-11 10:39:55 -04:00
Sale Djenic 6dfc291105 fix(communities): when only keycard accounts selected (and 1 keycard), authentication is not triggered
Closes #14175
2024-04-11 10:39:55 -04:00
Sale Djenic e2e72f0b0c fix(communities): keycard authentication marked automatically as authenticated
Closes #14174
2024-04-11 10:39:55 -04:00
Lukáš Tinkl af88cf2ef9 fix(JoinCommunity): Merge issues solved and channel hidden logic fixed
- Removed function in merge while it's still needed.
- Modified logic when channels hidden to take into account also `viewOnly` permission cases.
2024-04-11 10:39:55 -04:00
Noelia 4483eded3c fix(JoinCommunity): Add missing state ONLY private permissions and NOT MET (#14164)
* fix(JoinCommunity): Add missing state ONLY private permissions and NOT MET

- Modified `becomeMemberModel` in store to provide all member permissions.
- Modified permissions model filter to only discard  permissions that are private and NOT met.
- Updated `storybook/PermissionsModel` with new only private permissions and added new model option in corresponding pages.

Closes #14104

* fix(JoinCommunity): Text position when all channels hidden

Updated text position when `allChannelsAreHiddenBecauseNotPermitted` in community join process
2024-04-11 10:39:55 -04:00
Mykhailo Prakhov a68559ba90 fix: set correct permision UI 2024-04-11 10:39:55 -04:00
Lukáš Tinkl 76a76dcf4d fix(Shared Addresses): Requirements check pending indicator
- update shared addresses dialog to avoid small jumps when
selecting/unselecting accounts due to requirements check text displayed
- display the pending text and spinner next to the Permissions header

Fixes #14103
2024-04-11 10:39:55 -04:00
Michał Cieślak e728084e4c fix(CommunityJoiningAndAddressSharingDialog): Intro text width fixed 2024-04-11 10:39:55 -04:00
Michał Cieślak e6974f21a3 chore(Communities): CommunityIntroDialog renamed to CommunityMembershipSetupDialog
Closes: #14144
2024-04-11 10:39:55 -04:00
Michał Cieślak 26e8ff9ca3 chore(CommunityIntroDialog): Fix storybook page 2024-04-11 10:39:55 -04:00
Noelia fa781a9340 fix(JoinCommunity): Join CTA labelling: Change text and remove existing icon
- Change text and remove existing icon.
- Removed unnecessary property `loginType` on different files.
- Renamed signals to be more accurate with existing requirements.

Closes #14098
2024-04-11 10:39:55 -04:00
Lukáš Tinkl 85645ff66d fix: can't use the Tab button in the Mint Token form
- manually setup the TAB focus chain; in the future, this should be done
properly on all new components using FocusScopes and similar

Fixes #13891
2024-04-11 10:39:55 -04:00
Iuri Matias 35ec3e7297 release 2.28 2024-04-11 09:28:04 -04:00
Jonathan Rainville 053494cf93 Release 2.28.x RC6 2024-04-08 16:37:47 -04:00
Patryk Osmaczko b3c2181c54 chore: bump status-go 2024-04-08 16:36:49 -04:00
Lukáš Tinkl 981b292a01 fix[Onboarding] Password screen is not correct
- hide the "Current password" label when creating a new password
- fix margins inside the keycard popup
- some minor UI fixups according to Figma

Fixes: #14214
Fixes: #14177
2024-04-04 09:08:06 -04:00
Jonathan Rainville 39f60ff1f0 Release 2.28.0 RC5 2024-04-03 21:48:11 -04:00
Jonathan Rainville e332eb6e6d chore(status-go): up status-go to get RAM fix 2024-04-03 21:47:34 -04:00
Jonathan Rainville 6d78ba83a2
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-03 17:55:33 -04:00
Jonathan Rainville 18453a2383 Release 2.28 RC4 2024-03-28 17:41:43 -04:00
Stefan 7827fd1a86 fix(wallet) wrong properties referenced in TransactionDetailView
Updates: #13663
2024-03-27 12:14:42 -04:00
Emil Sawicki 1a0900ae91 fix(wallet): Add token data when new token is added 2024-03-27 08:26:03 -04:00
Jonathan Rainville 489b02c598 Release 2.28 RC3 2024-03-26 10:10:35 -04:00
Jonathan Rainville 8c6e7a5262 chore: up status-go to get the crash fix for malformed events 2024-03-26 10:10:09 -04:00
Jonathan Rainville 425525e13a fix(main): set personnal chat as active if last active was profile
Fixes #14111
2024-03-26 10:08:44 -04:00
Lukáš Tinkl c26110c5ef fix: Display name is not validated properly (UI part)
- do not use the `alphanumericalExpanded:
/^$|^[a-zA-Z0-9\-_\.\u0020]+$/` regex which contains the dot (`.`)
character too; be explicit here and do what the error message says
- the space character at start/end is validated above with the
`startsWithSpaceValidator`

CHERRY-PICK-TO: 2.28

Fixes #14127
2024-03-25 14:56:39 -04:00
Mykhailo Prakhov 9b9c159f86 chore: update status-go 2024-03-25 13:25:38 -04:00
Sale Djenic 7dcc89ed3b fix(ui-tests): shared addresses popup page removed since we don't need it any more
Since we merged editing revealed addresses into request to join community popup,
cause it logically belongs there, the relevant qml file is removed from story book.
2024-03-25 13:17:56 -04:00
Sale Djenic c864e437aa chore(general): removing unneeded qml file 2024-03-25 13:17:56 -04:00
Sale Djenic 665d1cb949 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 13:17:56 -04:00
Mykhailo Prakhov 3b16f203b5
fix: draw community select bubble after community create (#14107) 2024-03-25 10:06:48 -04:00
Jonathan Rainville 2df380501c Version 2.28 RC2 2024-03-24 21:48:41 -04:00
Mikhail Rogachev 9da8c4d513
chore: bump status-go (#14131) 2024-03-24 17:42:28 -04:00
Mikhail Rogachev 95bc58a474
chore: bump status-go (#14109)
Close #14047
2024-03-22 13:01:50 -04:00
Mykhailo Prakhov 667e0f3e89
fix: open activity center mentions messages (#14075) (#14083) 2024-03-21 13:38:17 -04:00