Commit Graph

1760 Commits

Author SHA1 Message Date
Noelia 1cbb3e2ad3 feat(CommunityPermissions): Created `CommunityPermissionsView` layout
- Created `CommunityPermissionsView` and integrated into the flow.
- Created `PermissionItem` component.
- Added `holdingsListModel`, `permissionsObjectModel` and `channelsListModel` flows with mocked data.
- Added `isPrivate` permission property.
- Added button header in `SettingsPageLayout`
- Added signals/methods for edit/duplicate/remove permissions
- Created new file `OperatorsUtils.qml` specific for `Operators`
2022-12-10 14:02:02 +01:00
Pascal Precht b510b33730 feat(communities): allow community import via public key
Status allows for importing communities via their private keys.

There's a requested feature that users should be able to import a community via
its public key as well.

This will behave differently as private keys won't give users ownership
of the communities. When importing via a (compressed) public key, Status
will try to fetch information about the community from the network. If it
finds such information, it'll load it into the app and create
a communitiy view from which users can then request access.

If it can't find a community or community information in the network,
the user will get a dedicated error message.

This commit also refactors the `ImportCommunityPopup` such that it uses
`StatusDialog` and updates the copy accordingly since importing via
public key is now possible as well.

Closes #8339
2022-12-07 14:18:08 +01:00
Patryk Osmaczko 9601ab2668 fix(chat/messages): make initial messages load without scroll
fixes: #8602
2022-12-07 00:23:25 +01:00
mprakhov d60a4b0c97 fix(@desktop/chat): open 121 chat by pasting chat key of existing mutual contact 2022-12-06 15:01:09 +02:00
mprakhov 32d1d927ef fix(@desktop/chat): Hide 'no results found' when entering the chat key in start chat 2022-12-06 12:39:02 +02:00
Khushboo Mehta 779df7628b fix(@desktop/wallet): Remove gas selector for slow, optimal and fast
fixes #8516
2022-12-05 14:51:39 +01:00
Igor Sirotin e3bfdc0f09 fix(StatusPopupMenu): Refactoring 2022-12-02 10:30:50 +03:00
Lukáš Tinkl 9559789030 chore: reduce the number of (verification) RPC calls
- when calling `Utils.getColorHashAsJson()` we don't actually need to
issue ID verification requests at all and there might be situations when
we know beforehand that we don't need the ENS verification either
- change these helper functions' syntax and do early returns in that case
- in MessageContextMenuView, the "contact details" were duplicated, so
remove one
- remove dead code, fix some warnings
2022-12-01 16:50:23 +01:00
Jonathan Rainville b65211ac94 feat(Settings): Enable Community Archive by default and remove toggle
Closes: #6098
Original commit by @borismelnik
2022-11-30 14:41:48 -05:00
Pascal Precht 3af77c9c96 fix(chat): rename 'Chat' -> 'Messages' headline
Closes #8483
2022-11-30 14:33:20 +01:00
Boris Melnik bff6b22fc4 fix(replies): Get original message from status-go for replies
Fixes: #7248
2022-11-30 14:07:49 +01:00
Pascal Precht 213924f6e9 feat(chat): support copy & pasting images into chat input
This adds support for receiving copied images from the clipboard
and pasting it into the chat input.

After pasting, chat input will recognize the image and render a preview
similar to how it would do it when selecting images via the file dialog.

**Also important to note**:

At the time of this PR, it seems that desktop only supports sending
jpegs to status-go. I'm not sure if this was deliberately done this way
because the protocol says it supports jpg, png, webp and gif.

Because of this, pasting for example pngs will work, however
transparency will be lost (which is also most likely the cause of #8820)

This PR operates on that assumption. So while it adds support for
copy/pasting images, it does not address the lack of file type support.

Closes #3395
2022-11-29 12:31:18 +01:00
Michal Iskierko a46206e4fd fix(@desktop/chat): Hide create chat panel when some other menu items are selected
Fix #7675
2022-11-25 14:17:23 +01:00
Lukáš Tinkl 8767f37bad fix(PinnedMessagesPopup): Pinned messages cover rounded corners of modal
similar to the profile dialog, we need to add an opacity mask in front of
the contentItem to ensure the rounded corners at the bottom are preserved
when we have no margins/padding inside the popup

Fixes #7759
2022-11-23 09:59:21 +01:00
Noelia 1da0cf9c79 test(onboarding): Improved validation after login
Added validation of empty chat panel image to check that `StatusMainScreen` is ready.
2022-11-22 18:55:02 +01:00
Patryk Osmaczko bd7f890cce feat(storybook): add MembersSelector to storybook
closes: #8178
fixes: #8210
2022-11-18 13:13:38 +01:00
Lukáš Tinkl 6e5b98d157 fix(ChatHeaderContentView): reflect nickname changes in 1-1 chat
Fixes #8303
2022-11-17 12:59:19 +01:00
Jonathan Rainville 312dd72955 fix(windows): fix windows chat list empty because of popup overflow
Fixes #7906
2022-11-16 15:41:32 -05:00
Michał Cieślak 93428d8b2e feat(Storybook): adding UsersList in storybook
Closes #8186
2022-11-16 11:37:35 +01:00
Noelia 4cdc2f8a91 fix(CreateChat): Text input is displayed when choosing contacts for new chat
Applied the following solution agreed with design team: When a user types their message, hitting enter, or pressing send, should automatically create the chat and send the message, removing the 'To' input field and Confirm/Reject buttons (that means, directly navigating to the new created chat).

Fixes #7706
2022-11-16 09:33:56 +01:00
mprakhov 707aa16462 fix(@desktop/chat): Limit chat name length #6938 2022-11-14 21:11:04 +02:00
Alexandra Betouni 019a65a786 fix(CreateChatView): fixed tagselector various issues
Closes #7340
2022-11-14 09:46:22 -05:00
Michał Cieślak cb4380582e fix(CreateChannelPopup): cursor not jumping to the end
When typing at non-end position (in channel name filed) cursor
is no longer jumping to the end. Additionally binding loop
on "contentWidth" is fixed.

Closes: #7805
2022-11-11 15:14:44 +02:00
Michał Cieślak 1ca1866993 chore(Storybook): page for CreateChannelPopup added 2022-11-11 15:14:44 +02:00
Patryk Osmaczko 3b866c2ff6 chore(chat/MembersSelector): display "no results" when not found
fixes: #7495
2022-11-11 14:11:07 +01:00
Boris Melnik b10b6617cf fix(edit-message): Add content-type to edit message request
Closes: #7879
2022-11-11 14:01:16 +03:00
Boris Melnik 42234c7d49 feat(communities): User is able to cancel membership request
Part of: #7072
2022-11-10 23:07:22 +03:00
Lukáš Tinkl 2b6164fc8d fix: ens names should not display `@`
Fixes #8122
2022-11-10 10:42:05 +01:00
Michał Cieślak 6237d3c7c1 fix(InviteFriendsToCommunityPopup): adaptive popup height, consistent footer height
Closes: #7604
Closes: #7605
2022-11-08 22:03:56 +01:00
Michal Iskierko 1f2a050695 feat(@desktop/general): Use compressed community key in deep links
Issue #8001
2022-11-08 15:18:39 +01:00
Jonathan Rainville 0806d657d3 fix(community-tests): fix a couple community tests 2022-10-28 14:56:29 -04:00
Igor Sirotin 82bc21b4ff fix: Fixed group and channel mention notifications 2022-10-28 21:21:49 +03:00
Michal Iskierko 234a164597 fix(@desktop/chat): Accept profile deep link in "Send Contact Request to chat key"
Fix #8070
2022-10-28 16:15:40 +02:00
MishkaRogachev 6a72773ab6 feat(ActivityCenter): Refactor AC Store and fix notifications counting
Close #7654
2022-10-28 12:29:40 +03:00
MishkaRogachev 851dd3bc76 feat(ActivityCenter): Review fixed for community membership AС notifications 2022-10-28 00:25:10 +03:00
MishkaRogachev 5d8e3ac252 feat(ActivityCenter): Fix handling membership requests from AC 2022-10-28 00:25:10 +03:00
Boris Melnik 6175beb40a feat(Communities): Add checking access type in Welcome modal
Part of: #7072
2022-10-27 21:39:12 +03:00
Jonathan Rainville e83f46e44a test(community): add test that kicks a member
Fixes #6890
2022-10-26 14:03:21 -04:00
Khushboo Mehta aec7a30d03 feat(@desktop/wallet): Updated UI for bridge and multi routing support
fixes #7334
2022-10-26 18:48:30 +02:00
Jonathan Rainville 68fbaeadc1 test(community): add test that invites a user to the community 2022-10-26 12:32:52 -04:00
Jonathan Rainville afaf7717e8 fix: fix signals not passing the callback
Fixes #8038

We added a callback arg to the signals, but signals do not support default args. You need to pass the exact number of args.
2022-10-26 10:29:33 +02:00
Michał Cieślak 2e05a9784e fix(InviteFriendsToCommunityPopup): invite candidates list made scrollable
Additionally, bottom padding is fixed to avoid cutting-off the list
too early.

Closes: #7603
2022-10-25 17:03:44 +02:00
Michał Cieślak 6b90d4d5a6 chore(Storybook): add pages for InviteFriendsToCommunityPopup and related components
Closes: #8004
2022-10-25 17:03:44 +02:00
Michał Cieślak 57e80255bf fix(Global): Popup components moved from Global.qml to dedicated non-singleton component
Closes: #7992
2022-10-25 15:35:18 +02:00
Michal Iskierko 6d2a2e6e03 fix(@desktop/general): Fix clicking deep links in chat
Clicking any deep-link in chat: /u, /c, /cc does not open browser but executes instantly

Fix: #6302
2022-10-25 08:26:16 -04:00
Richard Ramos 3b3b737956 feat: encrypt communities 2022-10-25 08:26:10 -04:00
Lukáš Tinkl 7a407662e2 feat: New Profile Modal
Fixes: #7360
2022-10-17 12:05:54 +02:00
Michał Cieślak f0e238dce6 chore(general): Remove profile pictures visibility options
From now on, if the image is available it should be displayed
uncoditionally.

Closes: #7609
2022-10-13 07:51:55 -04:00
Lukáš Tinkl 7f944c09be fix: unbreak the "Jump to" menu item
qrc:/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml:143:
  TypeError: Cannot call method 'jumpToMessage' of undefined
2022-10-12 11:16:10 -04:00
Boris Melnik 4cfa4e5451 fix(replies): Fire dataChanged when contact changed in reply
Closes: #7687
2022-10-12 10:54:24 -04:00
Boris Melnik 073e97eecd fix(Communities): Fix elide for communtiy public key
Closes: #7777
2022-10-12 16:33:18 +03:00
Boris Melnik 6a11a89ff3 fix(Reply): Add check if responsed message was deleted and add `<deleted>` to reply message
Closes: #7372
2022-10-12 15:43:48 +03:00
Michał Cieślak 553f1f5beb fix(ChatHeaderContentView): Unreachable buttons in community header at min width
Closes: #7647
2022-10-11 16:58:41 +02:00
Noelia 2716e8a7c9 fix(Chat/CommunityColumn): Create new chat button looks inconsistent across views
Added consistency between chat / community views: Colour and button position modified to be the same.

Fixes #7648
2022-10-11 16:05:35 +02:00
Lukáš Tinkl daa264c366 fix: chat view channels are too thin
Closes #7682
2022-10-10 16:01:25 +02:00
MishkaRogachev 2710d02fea Fix(Communities): Fix cropped list in invite users to community popup
Close #7798
2022-10-10 13:17:12 +04:00
Patryk Osmaczko acbf6fce51 feat(@desktop/communities): add new join community workflow
- user is able to see community without being a member
- invitation bubble always display "Go to Community"
- join community buttons are displayed in community view

main part of: #7072
2022-10-07 09:10:21 +02:00
Noelia bc1b2735ca fix(Community/Settings): Second Nav of community differs from the Design
- 'Settings' title removed and it is shown instead the Community name and number of members
- Overview icon updated according to the design
- Icon of members size updated according to the design
- The spaces between edges of the Secondary Nav tab and items updated according to the design

Fixes #6785
2022-10-06 09:31:16 +02:00
Pascal Precht bf14b06d55 feat(CreateCommunityPopup): add discord import progress panel and discord message handling
This adds the UI plus all necessary models and signal handling to render
discord import progress in the desktop application.

It also introduces message handling for discord chat message types.

Requires status-im/status-go#2826 to function

Co-authored with @caybro
2022-10-06 09:13:57 +02:00
Richard Ramos ed8c0815e2 feat: correct storenode query behavior and remove useless menu item 2022-10-05 10:21:53 -04:00
Noelia 92c62bdbdd fix(Community/Settings): Community overview/settings layout broken
Fixed top margin and content type.

Removed right margin in central panel.

Fixed #7666
2022-10-05 15:15:31 +02:00
Igor Sirotin f32e551c75 fix(InviteFriendsToCommunityPopup): Created single global instance. Fixed profile icons. 2022-10-05 14:37:36 +03:00
Michał 80bcb15bc3 Revert "fix(ChatMessagesView): unbreak closing reply bubble"
This reverts commit d7710ce135.
2022-10-05 13:33:49 +02:00
Michał a6beeee3e7 Revert "fix(ChatMessageView): delayed binding for proper msg height calculation"
This reverts commit 53a3a769d9.
2022-10-05 13:33:49 +02:00
Lukáš Tinkl 99272c580c fix(ChatMessagesView): Loading spinner and scroll to bottom button overlap
- remove the extra spinner (ok'ed by John and Benj)
- use the more modern StatusIcon, w/o the unconditional ColorOverlay
- some minor cleanup

Closes: #7645
2022-10-05 02:59:37 +02:00
Igor Sirotin b65023bf45 fix(PinnedMessagesPopup): Fixed reply messages displaying 2022-10-04 14:09:19 +03:00
Alexandra Betouni 3e3ad7fef5 fix(Community): big space in invite friends popup
Closes #7707
2022-10-04 13:38:50 +03:00
Michał Cieślak 53a3a769d9 fix(ChatMessageView): delayed binding for proper msg height calculation
Direct binding was causing problems with height calculation in some
environments (qt 5.15) and lack of binding in other (5.14). This is
a solution which seems to work in both cases.

Closes: #7703
2022-10-04 11:32:34 +02:00
Noelia 03691ba4b1 test(GroupChat): Broken tests updated
The create a group chat related objects have been updated according to new qml changes.
Now these tests are working (if they don't work it is bc of mailserver reliability).
2022-10-04 11:17:47 +02:00
Sale Djenic a1027ff087 feat(@desktop/keycard): sign transaction using `Authenticate` flow
Actually this is not a signing transaction, but rather authenticating logged in
user when he wants to send a transaction. An authentication is done by entering
password(regular user) or pin(keycard user).

A real signing transaction feature will be (hopefully) added in a near future where
we're going to sign a transaction on a keycard which corresponds to a certain
account, a user wants to send a transaction from.

To sum up... this change just removes password from the send modal and introduces
`Authenticate` flow instead.

Fixes: #7510
2022-09-29 17:28:18 +02:00
Michał Cieślak b34b9fb347 fix(Popups): clipping area fixed in various popups
Closes: #7601
2022-09-29 10:39:07 -04:00
Michał Cieślak b984b04c70 fix(ContactsColumnView): Removed margin when the list positioned not at the end
Closes #7526
2022-09-29 00:23:55 +02:00
Michał Cieślak f48aee2e44 fix(UserListPanel): Removed margin when the list positioned not at the end
Closes #7526
2022-09-29 00:23:55 +02:00
Igor Sirotin 010bdc9956 feat(CreateChatView): Support pasting chat key 2022-09-28 09:55:25 -04:00
Alexandra Betouni fc3daa1451 (StatusSectionLayout): removed big space between header and content
Closes 7312
2022-09-28 15:37:52 +03:00
Noelia 751d61df8b fix(Communities/Settings): Cropped bottom panel in Community Overview
Footer buttons anchored to `leftPanel` bottom.
Improved list view alignment.

Fixes #7322
2022-09-28 12:01:58 +02:00
Alexandra Betouni d45230a6f7 fix(CreateChatView): disable confirm button if no tags added
Closes #7493
2022-09-28 12:53:16 +03:00
Igor Sirotin c8bb6ae30e fix(CommunitySettingsView): Fixed sending community invitations 2022-09-27 19:41:23 +03:00
Lukáš Tinkl a209d39881 fix: ENS name issues
- don't display identicon rings for contacts with an ENS name
- prefer the at-form (@foo-user) whenever possible, and don't display their
  username or pubkey unless they are locally given a nickname
- show compressed keys everywhere instead of the regular ones

Fixes: #7319
Fixes: #7515
2022-09-26 22:38:02 +02:00
Lukáš Tinkl 54c73b0be7 chore: cleanup, fix warning, remove dead code 2022-09-26 22:38:02 +02:00
MishkaRogachev ac9d68b6f5 feat(ActivityCenter): Add ReplyBadge & review fixes
Close 7276
2022-09-26 15:49:46 +03:00
MishkaRogachev d4d22f4094 feat(ActivityCenter): Notification badge with community info 2022-09-26 15:49:46 +03:00
PavelS 6a96bc93b3 fix(@desktop/chat): handle same name mentions
Fixes #7220
2022-09-22 15:01:55 +03:00
Lukáš Tinkl 19391d9052 fix(PinnedMessagesPopup): don't show empty replies and reactions
Fixes: #7498
2022-09-22 12:18:04 +02:00
Lukáš Tinkl d7710ce135 fix(ChatMessagesView): unbreak closing reply bubble
there was a binding loop warning; but this one also fixes overlapping
messages

Fixes: #7481
2022-09-22 08:37:29 +02:00
Alexandra Betouni 311cf5332c fix(Createchat/EditGroupChat view): fixed spacing all over
Closes #7369
2022-09-21 17:39:51 +03:00
Alexandra Betouni b94beff89f fix(TransferOwnershipPopup): copy button right margin
Closes #7412
2022-09-21 16:32:25 +03:00
Michal Iskierko 680dd39c76 fix(@desktop/community): Only admin can open community settings
Fix #7379
2022-09-21 14:25:09 +02:00
Lukáš Tinkl 58b56d831b feat(PinnedMessagesPopup): enable Unpin context menu entry
and remove the context actions we do not actually use

Fixes: #7439
2022-09-21 10:48:20 +02:00
Lukáš Tinkl c7c77b52eb fix(ChatHeaderContentView): don't display "Contact" subtitle
for 1-to1 chats

Fixes: #7419
2022-09-20 18:02:34 +02:00
MishkaRogachev edbd9adbb6 fix(ActivityCenter): Getting any of AC notifications visible
Close #7016
2022-09-20 16:43:21 +03:00
Michał Cieślak 648c943c53 feat(@desktop/communities) Permissions - 'is allowed to' dropdown 2022-09-19 22:00:03 +02:00
Michał Cieślak 34625ad1c4 feat(@desktop/communities) Permissions, 'who holds' section - handling localiezed amounts
Closes #7162
2022-09-19 21:46:44 +02:00
Lukáš Tinkl 9addf1221b fix(PinnedMessagesPopup): “Jump to” button doesn’t work pinned messages popup
This was never implemented, eventhough a similar approach is used with
the global AppSearch. Expose the method `scrollToMessage(messageId)` so
that it can be called from QML directly.

Fixes #7375
2022-09-19 16:34:07 +02:00
Michał Cieślak 992bd01f83 fix(@chat/members): display member's picture according to settings
Closes: #7309

Two fixes:
- current user's picture is always visible
- hide pictures off all members (excluding self) when "noOne" options is
set
2022-09-19 14:53:48 +02:00
Michal Iskierko 62c2b56fc8 fix(@desktop/chat): Improving displaying user names in chat
1. Rename contactDetails.displayName -> defaultDisplayName
2. Add contactDetails.optionalName (filled in contact service)
3. Set in message_model defaultDisplayName and optionalName values
4. Adjust UI

Issue #7241
2022-09-19 11:24:35 +02:00
Michal Iskierko a45770cc98 fix(@desktop/chat): Fix showing contact names after restoring account
Fixes #7241
2022-09-19 11:24:35 +02:00
Michal Iskierko a0c145fbfc fix(@desktop/community): Fix member icons in invite friends panel
Fix #7364
2022-09-19 10:02:36 +02:00
Lukáš Tinkl 9bbbdc828b chore: sync StatusQ
- corrects the spacing in "Pinned by @author" message
- and fix a typo

Fixes: #7305
2022-09-16 15:26:11 +02:00
Lukáš Tinkl 781575c4b5 fix: Import Community panel fixes
Closes #7362
2022-09-16 14:11:40 +02:00