Commit Graph

5208 Commits

Author SHA1 Message Date
Sale Djenic a2f5d81f7f fix(@desktop/wallet): derivation path is not pre-selected by default when importing account in wallet
Closes: #10153
2023-04-04 20:26:58 +02:00
Lukáš Tinkl 894cb9eff3 fix: Remove syncing header from ‘Notifications and Sounds’
Fixes #9683
2023-04-04 19:00:32 +02:00
Sale Djenic 6885fda217 fix(@desktop/general): authenticate with previously stored pass/pin to a Keychain issue fixed 2023-04-04 15:37:36 +02:00
Sale Djenic 3f4dd40a3b fix(@desktop/onboarding): pressing enter/return key issue fixed
- skipping some screens pressing enter/return key fixed
- pressing enter for all screens will trigger a primary button for that screen
2023-04-04 15:37:36 +02:00
Khushboo Mehta 0426d7de55 fix(@desktop/wallet): Remove auto retries for connections errors. In case of an error there are two things that can happen
1. The user can manually click on "Retry now"
2. We have a 10 in timer on wallet, after whichb all the data shown is refreshed

fixes #10124
2023-04-04 15:24:37 +02:00
Anthony Laibe ef4ffce909 fix(@wallet): warnings from wallet
fixes #10086
2023-04-04 14:46:20 +02:00
Lukáš Tinkl bef6092652 fix: Edit Community / Community Color selector dialogue does not need the back button
Fixes: #9790
2023-04-04 13:54:39 +02:00
Lukáš Tinkl c964e99b0c chore: make it possible to customize/remove the back button 2023-04-04 13:54:39 +02:00
Lukáš Tinkl 3252eaf340 fix: Excessive vertical spacing between subtitle and standard colour selector in all colour selectors
- use spacing as designed in Figma
- re-use StatusColorSelectorGrid title label component (not leaving extra
space behind whern empty)
- always use white text for the color previews (our color palette/picker
are designed for this)
- give Channel color dialog a title (as designed)
- use BE spelling (as designed, and to be consistent with the rest of the app)

Fixes: #9841
2023-04-04 11:32:55 +02:00
Lukáš Tinkl 7523b1a62b fix: draw the inner radio indicator border
... as designed/intended in Figma

plus fix a TODO, use HoverHandler instead of a MouseArea to chaneg the
mouse cursor shape
2023-04-04 11:32:55 +02:00
Lukáš Tinkl 47c8747473 fix(CommunityTagsPanel): unbreak the tags panel
yet another little victim of the StatusScrollView regression; same
(similar) thing for the color panel

Fixes #9971
2023-04-04 11:31:12 +02:00
Lukáš Tinkl cde9f810e6 fix(CreateCategoryPopup): move the delete button into footer
Adjust according to Figma design
- the asset size should be 40x40
- fix the listview's horizontal alignment
- fix the confirmation dialog(s!) title

Fixes #9887
2023-04-04 11:30:18 +02:00
Michał Cieślak 6768f62451 feat(Airdrops): Component for selecting recipient addresses and members
Closes: #9799
2023-04-04 09:56:47 +02:00
Lukáš Tinkl 0ebc5e4194 fix(StatusPasswordInput): enable mouse interaction
enables selecting text with mouse

Fixes: #9837
2023-04-03 21:24:46 +02:00
Lukáš Tinkl 13c8ce3b94 chore: handle numpad enter key as well
a TextField has an appropriate `accepted()` signal
2023-04-03 21:24:46 +02:00
Lukáš Tinkl 49651fe044 chore: use OS enum value
and not a string
2023-04-03 21:24:46 +02:00
Lukáš Tinkl de5f0cb960 hotfix: unbreak showing encryption splash screen
those evil typos :)

Fixes #10039
2023-04-03 16:48:33 +02: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 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
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
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
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
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
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 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 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
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 223e4f1bc2 feat(@desktop/wallet): new "Add Account" modal added
Closes: #9733
2023-03-28 18:09:39 +02:00
Sale Djenic 7b16a93cc0 chore(@desktop/wallet): old add account modal and corresponding methods from `walletSectionAccounts` module removed 2023-03-28 18:09:39 +02:00
Sale Djenic 388fab4a4a feat(StatusQ.Components): `StatusPageIndicator` component introduced
Added `StatusPageIndicator` component which displays buttons in a row,
representing pages from the set range.

Corresponding page in API Documentation added.
2023-03-28 18:09:39 +02:00
MishkaRogachev 8eba843a5e fix(Chat): Fix pin popup and actions for communities and group chats 2023-03-28 11:05:07 -04:00
MishkaRogachev 4d4ec22ba6 feat(Chat): Disable unpin action for PinnedMessagesPopup 2023-03-28 11:05:07 -04:00
MishkaRogachev 1f54d96f5f feat(Chat): Disable chat actions for non-contacts 2023-03-28 11:05:07 -04:00
MishkaRogachev ad4838e4f8 feat(Chat): Disable sending messages for non contacts
Close #9899
2023-03-28 11:05:07 -04:00
Alex Jbanca 75571c9f22 fix(StatusItemsSelector): Allow icons to be provided by the model
Fixing https://github.com/status-im/status-desktop/issues/9766
The main change is that the model will now provide the image type, on top of the image source. The image type can be either icon or image. Icons will be coloured with the same colour as the text.
2023-03-28 12:46:20 +03:00
Alex Jbanca 17834ecbc1 fix(MintTokens): Use localised amount for total supply
Fixing: https://github.com/status-im/status-desktop/issues/9763
Changes:
1. Use int to pass around the supply amount from one component to another
2. Transform the supply amount to localised string when it is displayed to the user.
2023-03-28 12:17:02 +03:00
Michal Iskierko c8aefe4e66 feat(@desktop/communities): Airdrop community tokens
Issue #9783
2023-03-27 19:43:10 +02:00
Jonathan Rainville caebc9b93f fix(community-members): fix pending request buttons + updates
Fixes #9973

The buttons didn't work because we weren't using the right model + the section model didn't expose the PendingMemberRequestsModel.
I also fixed the service to update the community correctly and send the event. It should feel snappy-er to approve someone now.
2023-03-27 11:17:34 -04:00
Michal Iskierko d759bda81d fix(@desktop/communities): Computing fees in ETH and USD for Sign Transaction dialog
Issue #10007
2023-03-27 16:25:49 +02:00
Alex Jbanca 2142a6bf9c fix(ActivitiCenterTolltip): Position tooltip arrow in the middle of the button 2023-03-27 14:19:43 +03:00
Pascal Precht 81d4ea05e9 fix(communities): only require auth for token gated communities
There's a bug that all requests to join a community require the user to
authenticate themselves. This should only be needed for community that
are token permissioned.

This commit fixes it by only performing auth when requesting from the
tokengated community view.

Fixes #10010
2023-03-24 15:22:47 -04:00
Jonathan Rainville 9d0e14b680 refactor(chats): separate calls to getChats for each section
Fixes #9858
2023-03-24 13:05:19 -04:00
Lukáš Tinkl d75d723f5e fix: unbreak importing community from settings
the ProfileSectionStore is simply missing the required method to proceed
(note that this popup is used in 2 different contexts; the one in
Community Portal works fine due to the fact it's passed a different
store!)
2023-03-24 17:53:06 +01:00
Lukáš Tinkl c65de87ad0 fix: unbreak displaying community invitation bubble
it would fail to fetch the community info due to the undefined variable
name
2023-03-24 17:53:06 +01:00
Khushboo Mehta 5b3a115f55 fix(@desktop/wallet): Loading screen after adding account
1. Removing logic for loading to nim
2. Handling error state for asset view also on the nim side

fixes #9648
2023-03-24 17:09:09 +01:00
Michał Cieślak 2f3392c7d5 feat(HoldingsDropdown): Open list of all tokens by default when no own/community tokens 2023-03-24 16:09:01 +01:00
Michał Cieślak 5b9017757f feat(HoldingsDropdown): All listed assets / collectibles submenu
Closes: #9263
2023-03-24 16:09:01 +01:00
Noelia b3af519476 feat(HoldingsDropdown): Enable navigation to mint tokens settings section
It enables navigation from holdings dropdown to mint tokens settings view.
2023-03-24 14:22:56 +01:00
Noelia 575ee6a226 feat(HoldingsDropdown): Added no data information message
- Added default no data information message for assets and collectibles.
- Added specific no data information message for airdrop functionality.
- Hidden searcher when there is no data available.

Part of #9938
2023-03-24 14:22:56 +01:00
Noelia a6e29ebc03 feat(Airdrop): Show only collectibles in holdings dropdown
Hide Assets tab in HoldingsDropdown until we can airdrop also assets.

Closes #9938
2023-03-24 14:22:56 +01:00
Noelia e36270c844 feat(HoldingsDropdown): Added property `isCollectiblesOnly`
- Added property that allows to switch the holdings dropdown to only be used in collectibles mode.
- Updated storybook accordingly.

Part of #9938
2023-03-24 14:22:56 +01:00
Boris Melnik 30b4d9eb5c fix(chat): Sent images with text correctly
Fixes: #9564 #6374
2023-03-24 14:33:17 +03:00
Noelia 6c3d5c3ab5 fix(MintTokens): Remote Self Desctruct property fix
Remote self destruct property was not rendered properly when minted item was selected.
2023-03-24 12:08:00 +01:00
Noelia 051fc625a2 feat(MintCollectibles): Add sign transaction dialog in minting creation flow
It integrates sign mint transaction dialog in mint collectibles flow.
Mocked fee data, it still needs backend integration.

Closes #9802
2023-03-24 12:08:00 +01:00
Noelia 6bd8a18d93 feat(MintToken): Created sign mint token transaction popup
New popup created.

Part of #9802.
2023-03-24 12:08:00 +01:00
Noelia e751f8c658 feat(SQ/StatusDialogFooter): Added new property spacing
Added new property spacing, between buttons.
2023-03-24 12:08:00 +01:00
Alex Jbanca d24d233615 fix(JoinCommunityView): Enable activity centre and disable start chat button 2023-03-24 10:41:34 +02:00
MishkaRogachev 3a09ef8fac feat(Contacts): Remove ability to cancel outgoing CR
Close #9901 and #9898
2023-03-24 12:58:11 +07:00
Michal Iskierko ec6d35a6bd fix(@desktop/communities): Fix transferable and self destruct token parameters
Fix #10000
2023-03-23 18:30:18 +01:00
Jonathan Rainville 2f3f8f4e03 refactor(gifs): lazy load tenor api key + make search async
Fixes #9949

Only calls `setTenorAPIKey` once we need it (when doing a search or getting trending). 
Also caches the trending gifs so that they are only fetched once.
Makes the search and trending calls async by create an async tenor query async task.
2023-03-23 13:20:07 -04:00
mprakhov 21d2c00b40 feat(@desktop/chats): Keep only last 5 chats/channels in the memory 2023-03-23 17:41:24 +01:00
Boris Melnik c8ef6bcd9c fix(MembersSelectorView): Change paste event to parsing text for lookup contacts
Fixes: #9881
2023-03-23 19:16:22 +03:00
Khushboo Mehta 072537f61a feat(@desktop/wallet): Implement connection error screens
fixes #9835
2023-03-23 15:26:22 +01:00
Khushboo Mehta df121445ca fix(@deaktop/wallet): Implement error states with automatic retries
fixes #9688
2023-03-23 15:26:22 +01:00
Pascal Precht 054ad18532 feat: add authentication modal to join commmunity view
Users that request access to community that are token permissioned
need to authenticate and enter their password, so they can reveal
their wallet addresses
2023-03-23 14:28:31 +01:00
Pascal Precht 5e965bcbb7 refactor: make accepting member requests to join async
This is necessary because with community token permissions, when owners
manually accept a request, we a) don't want to block the UI when the
users funds are check on chain and b) in case of insufficient funds,
we'll react with a modal that tells the owner that the user can't be
accepted.

All of that is done in this commit.
2023-03-23 14:11:04 +01:00
Jakub Sokołowski f39dfa87f7 move qzxing and SortFilterProxyModel to vendor folder
Lets avoid creating chaos by having multiple vendor folders.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-03-23 12:09:19 +01:00
Jonathan Rainville ff5c618c82 fix(AC): fix store so that community request buttons work in the AC
Fixes #9988
2023-03-23 11:39:46 +01:00
Alex Jbanca ee5e72b088 fix(HoldingsDropdown): Add basic focus management and keyboard support
Closing #9967

When Holdings dropdown is open, activate focus to searcher in assets and collectibles. Changes focus to ENS input in case ENS tab is active.
In Holdings dropdown, when ENS tab is active and Add button is enabled, pressing enter key should behave same than clicking on the button itself.
In Holdings dropdown, when one asset or collectible has been selected, activate focus in the amount input, then when Add button is enabled, pressing enter key should behave same than clicking on the button itself.
2023-03-23 12:24:05 +02:00
Alex Jbanca f18ceff600 fix(StatusInput): forward focus to the input component 2023-03-23 12:24:05 +02:00
Alex Jbanca ad8ce70e09 fix(StatusBaseInput): forward focus to the input component and send signals on Enter/Return pressed 2023-03-23 12:24:05 +02:00
Alex Jbanca 7e9e3ee252 fix(HoldingsDropdown): Implement dynamic height 2023-03-23 09:29:19 +02:00
Noelia 66c32395fd feat(MintToken): Disabled token holders panel until backend ready
Disabled token holders panel until backend ready - Milestone 12
2023-03-23 08:24:45 +01:00
Noelia f691c85127 feat(MintToken) Add select wallet account option
- Added accounts selector in `Create new token` page.
- Added account name box in `Preview` page.
- Updated `storybook` with new account data.
- Updated `deployCollectible` method call account address property.

Closes #9842
2023-03-23 08:24:45 +01:00
Noelia 87f42e6074 fix(MintToken): Preview dark mode boxes color
Fixed dark mode boxes color in collectibles preview.
2023-03-23 08:24:45 +01:00
Noelia c6517c00f3 feat(SQ/StatusEmojiAndColorComboBox): Created new component
Created new `StatusEmojiAndColorComboBox` component that behaves like a combobox but with specific content item and delegate look (emoji + color + text).
2023-03-23 08:24:45 +01:00
Noelia b4355f8003 feat(SQ/StatusComboBox): Added new variant
Added variants related to type and size.
2023-03-23 08:24:45 +01:00
Igor Sirotin 2d22f2f09a
fix(Syncing): Fixed changing device name (#9921) 2023-03-23 10:21:44 +11:00
Jonathan Rainville fee9b31a88 chore(Community): remove unused popups 2023-03-22 15:13:19 -04:00
Michał Cieślak 0bb28f564d fix(CommunityNewPermissionView): Proper size of icon in "Who holds" selector 2023-03-22 14:57:58 +01:00
Michał Cieślak d219d32b72 feat(CommunityPermissions): Limit of 5 permissions for "Become member" permission type
Closes: #9536
2023-03-22 14:57:58 +01:00
Michał Cieślak 083bea0954 fix(CommunityNewPermissionView): proper color of icons in "Is allowed to" section
Closes: #9280
2023-03-22 14:57:58 +01:00
Lukáš Tinkl eecaa0c7b9 fix(StatusEmojiReactions): Text in own reactions has wrong color in dark mode
always use "white on blue"

Fixes #9944
2023-03-22 12:31:11 +01:00