Commit Graph

6247 Commits

Author SHA1 Message Date
Alexandra Betouni 1c030b398c fix(StatusTextMessage): Handle quote formatting in QML
HTML doesn't know about TextEdit's wrapMode line count so
when text was a quote it was seeing it as single line thus
painting a singleline height quoteline.

Closes #8109
2022-12-13 17:13:16 +02:00
Boris Melnik 123b8e320a fix(warnings): Fix chat, community settings warnings
Fixes: #8293
2022-12-13 17:46:30 +03:00
Lukáš Tinkl 4188193e0e fix(ProfileDialogView): Wrong name "Tokens" in Profile preview
Tokens -> Assets
NFTs -> Collectibles

(to be consistent with the rest of the app)

Fixes #8716
2022-12-13 12:49:32 +01:00
Boris Melnik 046e1d1073 fix(warnings): Avoid flickable manipulations in SettingsPageLayout when dirty toast message isn't active
Fixes: #8293
2022-12-13 13:05:28 +03:00
mprakhov 3ddd470a4a fix(@desktop/chat): use configured font size after restart 2022-12-13 11:17:08 +02:00
Lukáš Tinkl 73cc621f0c fix: Rename "Chat" tooltip to "Messages"
... and do it the proper way, ie. make the string translatable as we
can't handle translations coming from NIM files at the moment

Closes #8418
2022-12-13 03:46:25 +01:00
Lukáš Tinkl ed5893a8d0 chore: extract messages 2022-12-13 03:46:25 +01:00
Jonathan Rainville abd992b3ea fix(chat-input): fix sending images from dialog by using right prop
Fixes #8747
2022-12-12 13:48:44 -05:00
Jonathan Rainville 2b9c1f914d fix(badge): show badge when mentioned even if channel is muted
Fixes #8723
2022-12-12 13:40:07 -05:00
Jonathan Rainville 194e3048bc fix(messages): fix Resend btn not working and add Sending visual state
Fixes #7643

This adds the backend to resend. It then hooks the button to it.
This also adds a visual state for when we are sending. This gives a good indication that a message was sent.
2022-12-12 11:56:21 -05:00
Jonathan Rainville 59a05243af fix(community): fix messages being gone when we re-join a community
Fixes #7512

The problem was twofold.
1. We didn't try to fetch the messages when we re-joined, since the cursor was not reseted
2. The messages are not longer in the DB since they get deleted on joining.

I fixed 1. by reseting the cursor on leave and calling fetch on spectate
I fixed 2. in the status-go PR so that we no longer delete the messages when leaving.
2022-12-12 10:47:17 -05:00
Jonathan Rainville 9067cc408c fix(badge): show badge when mentioned even if channel is muted
Fixes #8723
2022-12-12 10:47:17 -05:00
Khushboo Mehta 9825a48eec fix(@desktop/wallet): Fix for wrong link is generated when transaction is done on testnet
fixes #8681
2022-12-12 15:23:52 +01:00
Khushboo Mehta 5b423a6dbd fix(@desktop/wallet): Wrong decimal place calculation on bridging
fixes #8660
2022-12-12 14:33:02 +01:00
Noelia 5d318d0304 fix(CommunitySettings): Previous page navigations are broken in community settings sections
Added property `previousPageName` into `SettingsPageLayout`.
Added needed slots in `CommunitySettingsView` to get `previousPageName` property changes and display the correct string.
Renamed `updateState` method to `navigateBack` to have a better accurate name.

Fixes #8455
2022-12-12 12:54:15 +01:00
Lukáš Tinkl 668ea868c4 fix(notifications): The sound of notifications is harsh and annoying
Use logarithmic sound volume scale instead of linear when interpreting
the sound volume value

TLDR; we were literally overblowing the speakers with absolute sound
volume levels; for the whole story I recommend reading:
https://www.dr-lex.be/info-stuff/volumecontrols.html

Also play a sound preview when changing the volume in Settings

Needs https://github.com/status-im/dotherside/pull/83

Fixes #8426
2022-12-12 11:39:32 +01:00
Noelia 2087a5322b feat(storybook): Added `CommunityPermissionsViewPage` to storybook
- Created page and added editor for specific page.
- Created needed mocked models.
- Added background in permission related pages to ensure correct dark mode visualization.
2022-12-10 14:02:02 +01:00
Noelia 1db0a0077d feat(storybook): Added `CommunityPermissionsSettingsPanel`
- Added `CommunityPermissionsSettingsPanel`.

- Created panel item editor and basic panel editor layout for `CommunityPermissionsSettingsPanelPage`. Still not linked to a model.

- Added mocked data for collectibles and tokens.

- Created `ChannelsModel` mocked data.

- Added edit / duplicate / remove signals logs.
2022-12-10 14:02:02 +01:00
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
Noelia 5aeef81bad feat(statusq/StatusRoundButton): Added `Quaternary` type red
Added `Quaternary` type - red color.
2022-12-10 14:02:02 +01:00
Igor Sirotin e436d6937d fix: Removing and releasing ENS names 2022-12-09 18:56:33 +03:00
Anthony Laibe 1b81490c55 fix(@wallet): remove uneeded log
fixes #8623
2022-12-09 13:20:03 +01:00
Lukáš Tinkl f62acae911 fix(Settings): cant switch off sounds for notifications
Fix a bunch of problems with handling sound/notifications related options
coming from the backend:
- `volume` and `notificationSoundsEnabled` live in a different settings
object; adjust the stores for that
- unbreak loading the actual wav/mp3 files (was never working on Linux
outside of AppImage!) -> use "qrc:/", same as the NIM backend does
- fix the volume scaling (backend has [1,100], QML is [0, 1])
- simplify our Audio QML item interface; no need for an extra property
and resolving the URL twice (which results in broken scenarios mentioned
above); we know which sounds we want to load

Closes #8668
2022-12-09 11:01:18 +01:00
Jakub Sokołowski 5212590681
ci: update Apple dev team ID to update the org
Otherwise we get failures when notarizing the app:
```json
{
  "message": "Unable to upload your app for notarization.",
  "userInfo": {
    "NSLocalizedDescription": "Unable to upload your app for notarization.",
    "NSLocalizedFailureReason": "--team-id DTX7Z4U3YA is not valid for the user name specified. Use --list-providers."
  },
  "code": -1027
}
```
Related: https://github.com/status-im/status-mobile/pull/14411

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-08 20:07:36 +01:00
Jakub Sokołowski 8b8f514dd4
ci: show output from xcrun_altool on notarize error
Right now we don't see what's actually happening:
```

!!! Notariztion Error
{"tool-version":"5.4211.13411","tool-path":"\/Applications\/Xcode.app\/Contents\/SharedFrameworks\/ContentDeliveryServices.framework\/Versions\/A\/Frameworks\/AppStoreService.framework","os-version":"12.3.1","product-errors":[{"message":"You supplied an invalid RequestUUID: null","userInfo":{"NSLocalizedFailureReason":"Apple Services operation failed.","NSLocalizedRecoverySuggestion":"You supplied an invalid RequestUUID: null","NSLocalizedDescription":"You supplied an invalid RequestUUID: null"},"code":1515}],"warnings":[{"message":"altool has been deprecated for notarization and starting in late 2023 will no longer be supported by the Apple notary service. You should start using notarytool to notarize your software.","userInfo":{"NSLocalizedDescription":"altool has been deprecated for notarization and starting in late 2023 will no longer be supported by the Apple notary service. You should start using notarytool to notarize your software."},"code":-1030}]}
make: *** [notarize-macos] Error 1
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-08 20:04:38 +01:00
mprakhov 873f690fd3 fix(@desktop/settings): empty screen when having 0 communities joined in Profile 2022-12-08 20:56:22 +02:00
Alex Jbanca b414a829e8 Adding qml tests to storybook
+ dummy StatusChatInput test
2022-12-08 15:31:43 +02:00
Michał Cieślak a6c3af97cf chore: bump vendor/DOtherside
to fix the creation of many temporary QNAMs
and potential UB

Closes #8683
2022-12-08 12:12:08 +01:00
Anthony Laibe 56bd8c74b8 feat(@wallet): speed up add account
fixes #8571
2022-12-08 11:21:50 +01:00
Alex Jbanca 007ed915cc Adding StatusChatInput to storybook 2022-12-08 12:09:40 +02:00
Alex Jbanca 0526dca298 Fix "The user signs up with a profile image" squish test case 2022-12-07 20:18:57 +01:00
Boris Melnik ea432f26f5 fix(reactions): Fix reactions popup
Fixes: #8425
2022-12-07 20:39:39 +03:00
Lukáš Tinkl c32dfa48be fix: CTRL+K (jump to) modal is case sensitive
make the ChannelPicker/StatusSearchListPopup search case insensitive

Fixes #8460
2022-12-07 17:10:38 +01:00
Anthony Laibe f7704c719a fix(@wallet): fix token list
there is 2 type of token list, the whole list for send modal and the
list for asset view
2022-12-07 17:02:05 +01:00
Lukáš Tinkl 9391cabcba chore: bump vendor/DOtherside
to fix the QNAM memory/fd leaks

Closes #8667
2022-12-07 10:00:22 -05:00
Pascal Precht dd0c4ab03d chore: update status-go 2022-12-07 14:50:53 +01:00
Pascal Precht 40eead1c8f refactor(communities): use ImportingHistoryArchiveMessages signal for
banner

@John-44 requested that we show the banner only for when messages are indeed
imported into the database, not necessarily already when the torrent data is being downloaded.

This commit ensures Desktop processes the newly introduced
`ImportingHistoryArchiveMessages` signal to render the banner introduced
in d5db1e6356

This needs: https://github.com/status-im/status-go/pull/2998
2022-12-07 14:29:35 +01:00
Sale Djenic 7bae51335b fix(@desktop/onboarding): `Onboarding -> Generate keys for a new keycard` - display name is not set
Fixes: #8671
2022-12-07 14:22:38 +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
Igor Sirotin 16be01495a fix(EnsListView): Fixed message preview visibility 2022-12-07 15:59:40 +03:00
Igor Sirotin 4da18c8de7 fix(EnsListView): Fixed preferred name message preview 2022-12-07 15:59:40 +03:00
Lukáš Tinkl e13726e4af feat(SocialLinkPreview): links are too short to display even short urls
- rework the way social links are displayed/editted; we now only allow to
enter a so called "handle" and then substitute that in the final URL
template
- move the "icon" model role to NIM backend

This has several advantages:
- we display only the "handle" and don't have to elide some long URL
- we won't let users enter random URLs into their profile and spoof the
viewing part into clicking it

Additionally, make the social link "button" clickable -> navigate to the
target URL, and make the tooltip behave as "usual" (on mouse hover).
2022-12-07 12:40:58 +01:00
Boris Melnik 0a37716c7c feat(activity-center): Add details view dialog for contact requests
Fixes: #8461
2022-12-07 12:03:38 +03:00
Patryk Osmaczko 07523d2c85 chore(chat/messages): extract MessageCursor 2022-12-07 00:23:25 +01:00
Patryk Osmaczko 9601ab2668 fix(chat/messages): make initial messages load without scroll
fixes: #8602
2022-12-07 00:23:25 +01:00
Patryk Osmaczko c4525778a8 fix(chat/messages): prevent multiple same cursor fetches
It may happen `asyncLoadMoreMessagesForChat` is called many times in a
row. Previously it did not check whether there is any pending fetch for
a given chat, which resulted in many same cursors fetches from status-go.
Furthermore, in this case, `lastUsedMsgCursor` ended up with the same
value as `msgCursor` resulting in wrong state where there are no more
messages to fetch.

- Simplified message loading code by introducing MessageCursor helper
  type
- Ensured messages are not loaded twice for the same cursor

fixes: #8602
2022-12-07 00:23:25 +01:00
Igor Sirotin 3d6324ce64 Separated chats order scenarios 2022-12-06 23:42:42 +03:00
Igor Sirotin d48ea97027 Minor fixes. Feature comments. 2022-12-06 23:42:42 +03:00
Igor Sirotin a8406b9158 feat(tst_chatsNavigation): Restored chats navigation tests 2022-12-06 23:42:42 +03:00
Pascal Precht 93eaf0fdfd fix: allow whitespaces in display and nicknames
Closes #8391
2022-12-06 19:34:17 +01:00