Commit Graph

7077 Commits

Author SHA1 Message Date
Lukáš Tinkl 49651fe044 chore: use OS enum value
and not a string
2023-04-03 21:24:46 +02:00
Patryk Osmaczko 847ad5e7de fix(chat): correct logic in `switchToOrCreateOneToOneChat`
fixes: #10129
2023-04-03 17:52:09 +02:00
Jonathan Rainville e86a625b92 fix(edit): don't send new message event on edits
Fixes #10108

We were sending SIGNAL_NEW_MESSAGE_RECEIVED and SIGNAL_MESSAGE_EDITED, but the former is not needed, because the message editing is all done with the latter.
The new message signal was sending the OS notification, which is not wanted, plus it did some useless processing, like trying to re-edit the message model, when it was already done.
2023-04-03 11:40:48 -04:00
Lukáš Tinkl de5f0cb960 hotfix: unbreak showing encryption splash screen
those evil typos :)

Fixes #10039
2023-04-03 16:48:33 +02:00
Dario Gabriel Lipicar bbf260067e fix(@desktop/wallet): fix how collectibles are shown after an error, according to the design
Part of #10063
2023-04-03 10:58:51 -03:00
Dario Gabriel Lipicar 7f72f87f30 fix(@desktop/wallet): make collectible loading items appear on initial fetch
Part of #10063
2023-04-03 10:58:51 -03:00
Dario Gabriel Lipicar 7f7d43d372 fix(@desktop/wallet): lower collectibles chunk size to improve app response time
Part of #10063
2023-04-03 10:58:51 -03:00
Dario Gabriel Lipicar 42139c19ed fix(@desktop/wallet): handle collectibles fetch error and account deletion
Part of #10063
2023-04-03 10:58:51 -03:00
Sale Djenic 52bb597106 fix(@desktop/general): clicking anywhere outside a modal dialog should close it
Fixes: #9702
2023-04-03 14:14:07 +02:00
Sale Djenic cab6af212f fix(@desktop/wallet): add account button is enabled in ambiguous state
Fixes: #10078
2023-04-03 14:13:53 +02:00
Sale Djenic 490e8ff258 fix(@desktop/wallet): default wallet account color sorted out 2023-04-03 14:13:53 +02:00
Sale Djenic ea53fce030 feat(@desktop/wallet): edit account reusing new "Add Account" popup
Closes: #9847
2023-04-03 14:13:53 +02:00
Sale Djenic 3325241b0f feat(@desktop/wallet): right click context menu - delete account option added 2023-04-03 14:13:53 +02:00
Sale Djenic 0ef3096756 feat(@desktop/general): copy button identified, will be mostly used as a built in component 2023-04-03 14:13:53 +02:00
Sale Djenic d8b1e47984 feat(@desktop/wallet): right click context menu added for wallet accounts
Handled options from the context menu for wallet accounts:
- Copy address
- Add new account
- Add watch-only account
2023-04-03 14:13:53 +02:00
Boris Melnik baa7bd161d fix(edit-message): Blocks edit function for image messages
Fixes: #10072
2023-04-03 14:41:08 +03:00
Boris Melnik 0302b7972e fix(Albums): Fix extra count of messages for image albums
Fixes: #9958
2023-04-03 14:39:38 +03:00
Alex Jbanca 5dc60f5782 fix(JoinCommunityView): Change Reveal Address button icon based on auth type 2023-04-01 08:33:06 +03:00
Patryk Osmaczko b72fff3f04 feat(communities): extend community with active members count
closes: #8016
2023-03-31 22:03:10 +02:00
Khushboo Mehta a6df4566dd fix(@desktop/wallet): checkConnected API doesnt return correct values
fixes #9833
2023-03-31 19:59:49 +02:00
Jonathan Rainville 7ca3084dde fix(edit): fix mentions in edits not counting towards the badge
Fixes #10077

The fix itself is in the status-go PR.
The desktop changes are just to clean up the old code that no longer worked
2023-03-31 12:51:23 -04:00
Stefan eb39d2814f feat(wallet): implement DerivationPathInput control
The enforcing of the derivation path editing rules is done in a structured
way by handling all the changes on the array of `Element` stored in
d.elements and then recomposing the HTML string to be displayed after
every change.

Main limitation is the workaround in `onTextChanged` that regenerates
the text in order to dismiss foreign characters introduced by pasting
which I couldn't find a way to disable without disabling also the ability
to copy content to clipboard.

Highlights:
- Implement DerivationPathInput control that intercepts the modifiable
keyboard events in order to edit the visible TextEdit.text while
respecting the requirements of the derivation path editing
- Implement a JS Controller that handles the logic of the
  decomposing and recomposing the derivation path string
- Add anew StatusQ with the TextEdit basic look and feel to be used
  in DerivationPathInput control without duplicating the style
- Allow passing modifiable events that are not generating characters in
  order to allow copy to clipboard
- Disable add account when control is in error state
- Limit to maximum 5 elements in the derivation path

Testing:
- Integrate the control with StoryBook for a quick preview of the
  control
- Add unit tests for the Controller basic functionality and regression
  for the main control Item
- Removed forcing x64 architecture on apple arm64 hardware from the
  storybook build configuration

Note: initially the implementation was suppose to be simple parse the
derivation path string edit elements and format it. However, I could not
find a quick way fix the circular dependency issue between editing the
text and reformatting it. The solution was to use a one way from the
structured data to the formatted string which complicates the
implementation logic.

Closes: #9890
2023-03-31 17:08:19 +02:00
Stefan 81c3463816 feat(wallet): implement DerivationPathInput control
The enforcing of the derivation path editing rules is done in a structured
way by handling all the changes on the array of `Element` stored in
d.elements and then recomposing the HTML string to be displayed after
every change.

Main limitation is the workaround in `onTextChanged` that regenerates
the text in order to dismiss foreign characters introduced by pasting
which I couldn't find a way to disable without disabling also the ability
to copy content to clipboard.

Highlights:
- Implement DerivationPathInput control that intercepts the modifiable
keyboard events in order to edit the visible TextEdit.text while
respecting the requirements of the derivation path editing
- Implement a JS Controller that handles the logic of the
  decomposing and recomposing the derivation path string
- Add anew StatusQ with the TextEdit basic look and feel to be used
  in DerivationPathInput control without duplicating the style
- Allow passing modifiable events that are not generating characters in
  order to allow copy to clipboard
- Disable add account when control is in error state
- Limit to maximum 5 elements in the derivation path

Testing:
- Integrate the control with StoryBook for a quick preview of the
  control
- Add unit tests for the Controller basic functionality and regression
  for the main control Item
- Removed forcing x64 architecture on apple arm64 hardware from the
  storybook build configuration

Note: initially the implementation was suppose to be simple parse the
derivation path string edit elements and format it. However, I could not
find a quick way fix the circular dependency issue between editing the
text and reformatting it. The solution was to use a one way from the
structured data to the formatted string which complicates the
implementation logic.

Closes: #9890
2023-03-31 18:14:50 +04:00
Boris Melnik 3566d64f39 fix(images): Wrap text in image message
Fixes: #10044
2023-03-31 13:36:51 +03:00
Jonathan Rainville 0424715810 fix(edit): fix edit message not sending mentions correctly
Fixes #10074
2023-03-30 15:51:23 -04:00
Igor Sirotin 14c264e350
feature(Syncing): Embed QR code scanner for syncing devices on onboarding (#9981)
* fix(StatusQrCodeScanner): Improve QR code scanner
- Almost async loading
- Added camera selector
- Added `captureRectangle` property
- Add component info to sandbox qr code scanner page
- Embed QrCodeScanner into desktop app
* Compile and link qzxing as shared library
* Hardcode settingCurrentNetwork. Propagate inputConnectionString errors.
* Added qzxing libdir to e2e tests ld_library_path
2023-03-30 20:57:18 +03:00
mprakhov f0d57d19cf fix(@desktop/messages): show reply header if we send image 2023-03-30 16:49:09 +02:00
Patryk Osmaczko 7fb9b37620 chore: bump status-go 2023-03-30 16:19:13 +02:00
Boris Melnik efc9ba41d3 feat(SplashScreen): Display recommendation do not close the app on re-encryption process
Fixes: #10039
2023-03-30 09:59:42 -04:00
Jonathan Rainville 44b9522edb fix(unread): fix badge disappearing because of wrong calculation
Fixes #10058

We were calling `updateParentBadgeNotifications` with wrong values, so we basically removed the badge all the time by accident.
Now, we calculate the unread messages and messages from the service's cache.
Also, we still called `updateParentBadgeNotifications` when a contact is updated, as if the contact requests still went in the old contact request popup.
2023-03-30 09:49:04 -04:00
Igor Sirotin f360a9c193 Fix `WakuConfig` enabled 2023-03-30 16:10:30 +03:00
Alex Jbanca dfbaf9edbb fix(LinkPreviews): Fixing implicitHeight binding loop
Closing https://github.com/status-im/status-desktop/issues/10057
2023-03-30 09:30:06 +03:00
Pascal Precht 57467c65b8 fix(permissions): check ownership of collectibles in permissions view
Marks collectible token criteria items in JoinCommunityView as we owned
if the account owns wallets that match the criteria
2023-03-30 08:26:10 +02:00
Lukáš Tinkl 40e4a3670f fix: StatusComboBox doesn't react on click outside indicator
Redirect the click event and let the CustomComboItem fill the whole
`contentItem` (otherwise a Button over another Button eats all the mouse
events)

Fixes: #9977
2023-03-29 17:18:07 +02:00
Noelia 7d3b0a576b feat(storybook): Added support to change `tokenModel` and update `deployState` property
Added support to change `tokenModel` and update `deployState` property
2023-03-29 15:37:02 +02:00
Noelia 6752d274e1 fix(MintToken): Initial item updated according to `tokenModel` changes
Updated stackview with the corresponding initial item  when `tokenModel` changes.
2023-03-29 15:37:02 +02:00
Noelia 3db1ce70d1 fix(MintToken): Fixed `deployState` property binding
Created `instantiator` object as a mediator to establish appropriate binding between property model and `CommunityCollectibleView`

Closes #10013
2023-03-29 15:37:02 +02:00
Michał Cieślak 27c891fc18 feat(communities): AirdropTokensSelector component added
Closes: #9798
2023-03-29 14:25:46 +02:00
Michał Cieślak 1c80cbb3df fix(Storybook): correct parsing of figma urls with in node-id 2023-03-29 14:25:46 +02:00
Michał Cieślak 2dc9c950d9 fix(StatusFlowSelector): minor adjustments to the design 2023-03-29 14:25:46 +02:00
Michał Cieślak 8cbe2977c2 fix(CommunityNewAirdropView): proper size of selectors' icons 2023-03-29 14:25:46 +02:00
Anthony Laibe 063198fc1f feat(@wallet): do not change value of symbol
fixes #9201
2023-03-29 10:14:08 +02:00
Patryk Osmaczko 27285151bb chore: bump status-go 2023-03-28 22:26:48 +02:00
Jonathan Rainville e5ff0b4a6a fix(images): fix second pasted image replaces the first one
Fixes #9966

Uses the validate function to paste images so that it concatenates the previous images.
FIxes the validate function to also accept data images.
Moves the size validation function to Utils to reuse the data path prefix constant and fix the possible crash when we try to get the size of a data image.
2023-03-28 13:48:10 -04:00
mprakhov b580f0a810 feat:(@desktop/channels): loading state when switching channels/chats 2023-03-28 13:12:58 -04:00
Sale Djenic 5479880cde chore(@desktop/wallet): add account modal - improvements
- `AddAccountStore` moved to `AddAccountPopup`
- watch only address' placeholder text updated
- emoji popup button added to the right side of the account name input field
- `validateMnemonic` proc from accounts service updated
2023-03-28 18:09:39 +02:00
Sale Djenic 51058d9065 feat(@desktop/wallet): new add account modal - amends
Closes: #10020
2023-03-28 18:09:39 +02:00
Sale Djenic c45154c066 test(@desktop/wallet): adding account related test disabled due to massive change in ui and backend logic
Tests will be redone and added through new issue #9997.
2023-03-28 18:09:39 +02:00
Sale Djenic cb66ad6118 fix(@desktop/keycard): authenticate flow, wrong password disabled submit button issue fixed 2023-03-28 18:09:39 +02:00
Sale Djenic 223e4f1bc2 feat(@desktop/wallet): new "Add Account" modal added
Closes: #9733
2023-03-28 18:09:39 +02:00