Commit Graph

5231 Commits

Author SHA1 Message Date
Patryk Osmaczko ec7bd963e9 fix(chat): use loader for `ChatMessagesView` instead `ChatContentView`
fixes: #10285
2023-04-19 11:13:01 +02:00
Dario Gabriel Lipicar da1839fbbb feat(@desktop/wallet) reduce number of digits shown for large currency amounts
Fixes #8917
2023-04-18 10:11:18 -03:00
Lukáš Tinkl a2a6287537 fix(StatusStickersPopup): fix reloading views with online status changes
- hide the market and other stuff that can't be used while offline
- recent stickers and already installed packs can still be used; they
will be sent when we return online
- when we return online, reload the views instead of closing the popup
- fix an evil NIM typo that prevented reloading the already installed
sticker packs
- remove the NIM parts that haven't been ported to the async nature; just
`loadStickers()` on the QMl side does the trick
2023-04-18 13:45:38 +02:00
Lukáš Tinkl 7a5dbbd952 chore(StatusStickerButton): refactor to use StatusButton
- make it possible for StatusBaseButton to be icon-only (ie just icon, no
text, rounded if needed)
2023-04-18 13:45:38 +02:00
Lukáš Tinkl 05e5b3dad6 fix(StatusStickerPackClickPopup): fix passing/parsing price
when trying to buy a sticker pack
2023-04-18 13:45:38 +02:00
Lukáš Tinkl bfe44ca4a8 fix(StatusStickerList): add scrollbar to the grid view
and remove unused properties
2023-04-18 13:45:38 +02:00
Lukáš Tinkl 70fa0bf3b2 chore(StatusStickerMarket): add scroll bar
and extract the buyPopup component out of the delegate
2023-04-18 13:45:38 +02:00
Lukáš Tinkl e506bbfd6b fix(StatusStickerPackClickPopup): fix crash
the button to (un)install would be either greyed out or result in a crash:
- we were passing the popup a wrong store (w/o networkConnectionStore)
- the condition to `greyedOut` was inverted
2023-04-18 13:45:38 +02:00
Lukáš Tinkl 86a58d3298 chore(StatusStickersPopup): unify the footer height
and fix spacing
2023-04-18 13:45:38 +02:00
Lukáš Tinkl b2f5cd2b35 fix(StatusStickersPopup): prevent overlapping load error
Fixes: when the Mainnet is unavailable you see overlap between error and
the downloaded sticker packs
2023-04-18 13:45:38 +02:00
Lukáš Tinkl 0cd7e3650a fix(StatusStickerMarket): do not confirm enabling wallet
wallet is already enabled by default for users and there's no way to
enable it if it gets disabled by using an env var
2023-04-18 13:45:38 +02:00
Lukáš Tinkl 8d322092cf fix: `packId` is a string in NIM backend
fixes the currently selected sticker pack not being highlighted in the
popup footer

The strict equality operator would no longer yield true here:
```
property int selectedPackId
...
selected: stickerPackListView.selectedPackId === packId
```
2023-04-18 13:45:38 +02:00
Igor Sirotin 56633f6ce3
fix(StatusQ): Remove debug postfix (#10337) 2023-04-18 13:35:23 +03:00
Patryk Osmaczko e2697ae5aa feat(chat): implement jump to mention
closes: #9069
2023-04-17 18:53:42 +02:00
Khushboo Mehta 2e68c97c8e fix(@desktop/wallet): Wallet: user can click on dummy loading items from activity-history and open an empty transaction view
fixes #10083
2023-04-17 15:47:56 +02:00
Lukáš Tinkl 4424342dd6 chore: do not block main thread closing the popup
the marking as read can be done in a different thread
2023-04-17 15:42:59 +02:00
Lukáš Tinkl 99b4f1d864 chore(ActivityCenterPopup): fix memleak
the AC popup was being recreated on every click and never destroyed,
leading to:
- memory leaks
- slow operation on opening (it's not trivial to create)

Now we keep a reference the the created popup object, thus making it
faster to appear on every (second) click. It gets destroyed via its
parent at the application shutdown
2023-04-17 15:42:59 +02:00
Lukáš Tinkl 1a81508b5d fix(ActivityCenterPopup): close the AC popup a second time the button is clicked
the Popup has to be modal and the overlay should catch/eat all the mouse
events to prevent them from propagating to the contents behind the popup

Fixes #9838
2023-04-17 15:42:59 +02:00
Michal Iskierko 7055a77a96 fix(@desktop/communities): Displaying toast messages when minting
Fix #9849
2023-04-17 15:11:35 +02:00
Anthony Laibe 2a6d00b939 feat(@wallet): add overview module 2023-04-17 13:31:49 +02:00
Mikhail Rogachev 70405ae053
fix(ActivityCenter): Fix displaying mention as a tag in AC (#10310)
Close #10297
2023-04-17 15:25:03 +04:00
Noelia d5e5ba2796 fix(Mint/Airdrop tokens): Darkmode images
Updated images without background.

Closes #10299
2023-04-17 11:56:25 +02:00
Patryk Osmaczko 89efb1cd71 fix(chat): better integrate new messages marker with loading state
- new messages marker is reevaluated only if chat has unviewed messages
- loading state is reevaluated only when chat is made active, this fixes
  case described here:
https://github.com/status-im/status-desktop/pull/10151#discussion_r1158702638

fixes: #10275
2023-04-14 19:38:45 +02:00
Igor Sirotin aefa2b9f48
fix(StatusQ): StatusQ is QML module (#10207)
* StatusQ QML module
* qzxing is static lib again
* updated StatusQ resources
* fixed Emoji lookup
* added display to tests-imports ci
2023-04-14 11:18:56 +03:00
Sale Djenic 06ba89661b chore(@desktop/wallet): object names added to wallet account related qml components 2023-04-13 19:51:10 +02:00
Sale Djenic 1225a71877 fix(@desktop/wallet): account name character limit not enforced
Closes #10281
2023-04-13 19:18:35 +02:00
Michał Cieślak 57425e77bd fix(Permissions): proper dark/light mode switching in "New permission" view
Implementation of rounded corner line has been changed from Canvas to
plain Rectangle, fixing problem with Canvas not repainting when
dependent properties are changed.

Closes: #9668
2023-04-13 10:50:40 +02:00
Michał Cieślak c38e0701d5 fix(Settings): Spacing updated according to the design 2023-04-13 10:50:40 +02:00
Lukáš Tinkl a8eed304c0 feat: implement ProfileShowcase settings
Implement the UI part of Profile/Settings/Showcase:

- Communities/Accounts/Collectibles/Assets tabs
- drag and drop of items between "hidden" and "in showcase" sections
- ability to set individual items' visibility
- persistency (showcase saved across restarts), not exposed yet due to
  missing backend API

Closes #9936
2023-04-12 11:39:37 +02:00
Lukáš Tinkl d180001f84 feat(StatusMenuItem): add support for "checked" indicator
- it is displayed on the trailing edge, next to the main text, iff the
item/action is `checked`
- fix the text elide (must have a width set)
- fix for setting the icon name/source/color if we directly use a
(Status)MenuItem (as opposed to going via (Status)Action)
2023-04-12 11:39:37 +02:00
Dario Gabriel Lipicar ed6ea5d90c feat(@desktop/wallet): add support for more NFTs media types
Fixes #9836
2023-04-11 12:40:38 -03:00
Noelia 99a9f2ace0 feat(MintToken): Self destruct flow integration
- Enabled self destruct option.
- Added self destruct flow.
- Created needed methods in CommunityTokensStore.

Closes #10051
2023-04-11 16:19:30 +02:00
Noelia 54582db3a6 feat(MintToken): Created self destruct alert popup
Created self destruct alert popup.

Part of #10051
2023-04-11 16:19:30 +02:00
Noelia 7a77748d32 feat(MintToken): Created remote self destruct popup
Created remote self destruct popup.

Part of #10051

remoteselfpopu
2023-04-11 16:19:30 +02:00
Noelia dbf05f4a58 feat(MintTokens): Holders panel updates
Added selector mode that contains a combobox and checkbox.

Part of #10051
2023-04-11 16:19:30 +02:00
Noelia 7882147eaf feat(SQ/StatusItemDelegate): Added property to customize text horizontal alignment
Added property `textHorizontalAligment` to customize text horizontal alignment
2023-04-11 16:19:30 +02:00
Jonathan Rainville fe64d0eb04 fix(mentions): fix @everyone inserting incorrectly sometimes
Fixes #10212

The problem was that we were detecting that the name was empty string and comparing to another empty string and inserting that, which is incorrect.

There was also a problem with the detection of the name being completely written. onKeyPressed didn't take into account the new letter added, onKeyReleased does.
2023-04-11 09:30:20 -04:00
Patryk Osmaczko f9250e7dd4 feat(storybook): add ChatAnchorButtonsPanel
iterates: #9069
2023-04-11 13:35:04 +02:00
Alexandra Betouni 620cad159a [StartChat]: fixed text input scroll
Closes #9885
2023-04-11 12:39:11 +03:00
Anthony Laibe 52c01f1dd5 feat(@wallet): make activity respect networks selector 2023-04-11 10:44:34 +02:00
Alex Jbanca fb86d8745c fix(MintTokensPanel): Update input fields validation
Closing: https://github.com/status-im/status-desktop/issues/9850
Password: 7 characters max, ascii printable characters
Name and description: ascii characters
2023-04-11 11:18:41 +03:00
Ivan Belyakov 056dad2ce2 fix(@desktop/wallet): fix first section in activity to be displayed as loading
Fix balance in loading state to use loading component instead of 0
Fix width of some components in loading state.
Remove property modelDataValid in favor of existing isModelDataValid.
Fix loading items not always properly removed before adding new
transactions.

Fixes #9617
2023-04-10 18:07:15 +04:00
Ivan Belyakov 89055e1b08 fix(@desktop/wallet): fix scrolling transactions list reset to top when
new ones are fetched.

Fixes #9617
2023-04-10 18:07:15 +04:00
Alex Jbanca 172c849c54 fix(AuthenticationIllustration): Final version of the authentication illustration 2023-04-10 12:13:51 +03:00
Lukáš Tinkl 3f66e41929 fix: don't trigger emoji replacement prematurely
... and support all emoji ASCII aliases

- previously we used to trigger the emoji replacement immediately which
led to various bugs like being unable to get the `🍻` emoji ;)
- we now trigger the emoji replacement after typing a certain sequence
followed by a space and then check that word for a possible emoji match
- as a result, we now fully support ASCII aliases, not only those having
a length of 2 (e.g. `:D`) but all the longer ones, like `O_O`, `:-#` or
even `-___-`
2023-04-07 20:40:56 +02:00
Lukáš Tinkl 19e7c42cc2 chore: extract input cursor delegate into StatusCursorDelegate
- unified UI/UX; no code changes, just reduces code duplication
- use the correct OS/platform blink interval with
  `Qt.styleHints.cursorFlashTime`
2023-04-07 20:40:56 +02:00
Lukáš Tinkl 01e96318e9 don't steal chat input focus
when a new banner suddenly pops out in the middle of typing some chat
text
2023-04-07 20:40:56 +02:00
Lukáš Tinkl 05b28e6f6c fix: unbreak handling "up" key event in multiline text
pressing the "down" key was working fine, the "up" key to move the
cursor to the previous line was broken

don't force the focus if it already has it and let the parent TextEdit
internals handle the event if we are not interested in it
2023-04-07 20:40:56 +02:00
Lukáš Tinkl c8877aaf97 fix: speed up emoji parsing and replacements
extract the invariant/const parts out of the inner loop
(`emojiJSON.emoji_json.filter`); greatly speeds up typing speed
2023-04-07 20:40:56 +02:00
Lukáš Tinkl 5dbc08dca3 chore: speedup channel switching
Correctly clear the chat input

We enable/disable the chat input on various occasions (switching
channels, communities, checking for the person being a contact, etc.).
When we do so, we clear the text of the input which causes all sorts of
internal handlers to get fired, namely the `onTextChanged` part which
parses the text, emojis etc... which is very time consuming. More fixes
here in the followup commits; but by using `clear()` it's much faster,
resets correctly the internal state and also doesn't fire when the input
had been empty already before. Found with QML profiler
2023-04-07 20:40:56 +02:00