6557 Commits

Author SHA1 Message Date
Jonathan Rainville
02d80429d6 fix(@desktop/communities): request to join fixes (#14287) 2024-05-08 16:17:10 -04:00
Jonathan Rainville
9ad27133d0 fix: make button active as soon as the permission to join check resolves 2024-05-08 14:46:09 -04:00
Lukáš Tinkl
dbd3e6dc62 fix: can't join an encrypted community
- fix the corner case and allow the user to join a community without an
explicitely stated "Member" permission
- enable/disable the Share/Join/Save buttons when the permission to join
check is ongoing, or when the permission check failed
- display tooltips over the disabled buttons explaining why it's disabled
- always display the eligibility button floating on top of the
(scrollable) contents

Fixes #14473
Fixes #14299
2024-05-08 14:46:09 -04:00
Lukáš Tinkl
054c5736e3 feat(SharedAddresses): display the eligibility bubble in edit mode too
- previously, we'd display the bubble only when joining the community
- now we display it also when editing the shared addresses, with a
slightly different wording (eg. "You're an admin" -> "You'll be a
member"), hinting the user about the future change
- remove the usage of `ModuleWarning` as we don't want its delay or
transitions here, replace it with a regular red `Rectangle` + text

Fixes #13397
2024-05-08 14:46:09 -04:00
Jonathan Rainville
7f0d7fdaa9 chore: update icons to use the new multicoloured Status logo
Fixes #14531
2024-05-07 19:39:59 -04:00
Lukáš Tinkl
1cbc94491c fix: Hovering community in the profile showcase leads to crash
- messing around with the DropShadow layer lead to a nasty crash
somewhere deep inside Qt mouse event handlers

Fixes #14596
2024-05-03 13:28:59 -04:00
Dario Gabriel Lipicar
a971095444 fix(wallet): fix missing community image in collectibles view community tag
Closes #14437
2024-05-02 15:39:32 -04:00
Lukáš Tinkl
74b92dd848 fix(StatusCard): fix some visual glitches
- correct propagation of hover events, fixes card flicker
- improve the ugly thick border
- token icons are now correctly rounded
- fix text descent lines are cut of ("y" and "p" truncated at the
bottom) due to excessive clipping, set correct max line count
- fix tag outline not being visible in dark mode
- add/update the corresponding SB page, with more controls to play
around with the different params

Fixes #14555
2024-05-02 15:08:28 -04:00
Alex Jbanca
6b7256cc13 fix: Hide members count from community cards when the community is encrypted and the community info is not available 2024-05-02 14:43:29 -04:00
Valentina Novgorodtceva
864a676835 chore: add object names for enable create community button and confirm community tags button 2024-05-02 13:08:31 -04:00
Jonathan Rainville
1dfc5de878 chore: disable history archive for new user and add advanced setting
Fixes #14534
2024-05-01 09:18:33 -04:00
Jonathan Rainville
e463590a40 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-04-30 13:18:08 -04:00
Jonathan Rainville
e17782102b Revert "chore(CommunitiesPortal): change CreateCommunity to Import from Discord"
This reverts commit 05626a886e4dde17af03790f90b477c4373d53fd.
2024-04-30 13:18:08 -04:00
Lukáš Tinkl
f24420a84b 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 16:54:19 +02:00
Jonathan Rainville
05626a886e chore(CommunitiesPortal): change CreateCommunity to Import from Discord 2024-04-25 09:32:38 -04:00
Emil Sawicki
e84a33c75c fix(wallet): Fetch details 2024-04-25 11:51:01 +02:00
Sale Djenic
e787dce368 fix(wallet): displaying L1 gas cost in UI
Fixes #13892
2024-04-19 09:40:12 -04:00
Anastasiya Semiankevich
3d21085fc4 chore@StatusSyncCodeInput: add object names for buttons 2024-04-19 09:36:52 -04:00
Stefan
34fd4fc814 fix(wallet): update wallet assets and collectibles order on user action
Add a specific state to the saveSettings action to update the model
by reloading the data.

The previous implementation was using the same save address which
doesn't update. Either in the past there was a side effect that made it
work or it was never working.

Closes #14365
2024-04-18 14:36:52 -04:00
Stefan
d0a3b6ac55 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-04-18 14:36:52 -04:00
Dario Gabriel Lipicar
6b4307acd1 fix(@desktop/wallet): properly handle collectible groups in send modal
Fixes #14080
2024-04-18 09:40:15 -04:00
Alex Jbanca
32d70c1715 chore(ProfileShowcase): Cherry-pick profile showcase loading state
https://github.com/status-im/status-desktop/pull/14260
2024-04-15 10:03:57 -04:00
Alexandra Betouni
9cad3db60f feat(ProfileShowcasePopup): Adding interactions in delegates
Closes #13702

(cherry picked from commit 53db09412af4efc27ed72d8dcf0aa516119b207b)
2024-04-15 10:03:57 -04:00
Alex Jbanca
d1d69ceba7 fix(ProfileShowcase): Filter out communities the user hasn't joined from 2024-04-15 10:03:57 -04:00
Alex Jbanca
822e170b6d fix(PRofileShowcase): Fixing conflict merge error 2024-04-15 10:03:57 -04:00
Alexandra Betouni
29e3e41410 [ProfileShowcase] Updated delegates as per design + added web tab
Closes #13421
Closes #13606
2024-04-15 10:03:57 -04:00
Alex Jbanca
c720d48d61 feat(ProfileShowcase): Integrate profile perspective selector 2024-04-15 10:03:57 -04:00
Alex Jbanca
dda9b80fb6 feat(ProfileShowcase): Add profile perspective selector component 2024-04-15 10:03:57 -04:00
Mikhail Rogachev
5caadda171 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-04-15 10:03:57 -04:00
Emil Sawicki
b810687049 fix(wallet): Update amount to send decimal handling 2024-04-12 11:28:56 -04:00
Lukáš Tinkl
80704308eb fix[Shared Addresses] Can't edit shared address while the join request is pending
- disallow changing the Shared addresses while our request to join
community is still pending

Fixes #14292
2024-04-11 10:39:55 -04:00
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
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
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