Commit Graph

977 Commits

Author SHA1 Message Date
Pascal Precht 3bf15785fa fix(Profile): ensure invite friends link is rendered
There's a but in the app's profile section where the link to
invite friends is never rendered, even if the currently logged-in
user has no added contacts.

This is because the UI refers to the count of *all* contacts the
user has (even removed ones - remember that, once added, removing
a contact is only done by removing a tag).

This commit ensures that the invitation link is rendered by
relying on the *added* contacts list. It also prevents the
"blocked contacts" button from rendered when there's no blocked
contacts.
2021-02-01 11:57:24 -05:00
Jonathan Rainville 9026108e86 fix: status update not using the right component 2021-02-01 11:54:26 -05:00
Jonathan Rainville b773766055 fix: fix chatIdentifier binding loop 2021-02-01 11:54:26 -05:00
Jonathan Rainville b245d858aa feat: redisgn compact mode part 1
redesigns the compact mode to have a nice hover, easier replying and adding reactions and more

Missing parts are aligning chat command, images and unfurlings, redesigning mentions and the channel list and also trying to find a way to re-enable link hovers in the text
2021-02-01 11:54:26 -05:00
Pascal Precht d1faf98f80 chore: remove reference error
There's a reference error in our code that `mouseArea` is undefined.
This seems to be a left over, so this commit is removing its usage.
2021-02-01 11:53:44 -05:00
Pascal Precht b1e5a15e2a refactor(ChannelContextMenu): remove dependency on active channel
This commit does a bunch of things:

- First and foremost, it removes the active channel dependency.
  This is needed to have it operate on the correct channel object,
  without forcing us to change the active channel (e.g. right-clicking
  on a channel item that's not active, will make it active eventually)
- To make that work, this commit changes the `ChannelContextMenu`
  to receive a `ChatItemView`, so it can be used for things like determining
  what menu options are shown, what members are in a group, whether
  someone is admin of a group etc.
- This also required a new `QtProperty` called `contextChannel`.
  The reason this is required, is because in some cases, like receiving
  members count of groups, we need a complete `ChatItemView` object
  as we don't have access to certain APIs otherwise.
- Unfortunately, we can't pass down `activeChannel` every where for that
  because sometimes the context menu should not actually operate on
  the active channel.

Fixes: #1755
2021-02-01 11:53:06 -05:00
Jonathan Rainville 682d5dcd21 fix: fix privacy setting page design and spacings 2021-01-22 13:41:46 -05:00
Jonathan Rainville 13dc160d11 fix: fix muted chats modal not showing correctly 2021-01-22 13:41:46 -05:00
Pascal Precht 4fbe1f202f uiux: adjust hover color for menu items in profile and channel list 2021-01-22 13:39:15 -05:00
staked-smart-ace 062c2e26b2 Updated profile settings icon color. Fixes #1731 2021-01-22 13:38:47 -05:00
staked-smart-ace 492fcc2dcd Updated profile settings icon color. Fixes #1731 2021-01-22 13:38:47 -05:00
Jonathan Rainville fe3698a912 feat: improve contact list clicks and hovers 2021-01-21 12:05:09 -05:00
Jonathan Rainville dc313e200a fix: fix mention list having no currentIndex on mouse select 2021-01-21 12:04:50 -05:00
Pascal Precht f5bcaa5ac5 refactor: introduce ChannelContextMenu component
This commit introduces a new `ChannelContextMenu` component that can be reused
in different places, such as the channel list, as well as the chat bar.

At the moment we use two different pop up menus that also show two different
set of menu options. By using `ChanelContextMenu` in both of these places,
we get the same menu and same experience.

Closes #1711
2021-01-21 12:02:41 -05:00
Jonathan Rainville 21edea4a9a fix: fix double popup for estimating gas errors 2021-01-21 11:59:51 -05:00
Pascal Precht 3a538acb1e feat: introduce StatusWalletColorSelect component
This is a new form control component to select colors for wallet
accounts. It will replace the currently used `ColorSelect` in the
Status Desktop application so it aligns with the new designs.

Closes #1497
2021-01-21 11:59:34 -05:00
staked-smart-ace 74a8cfd880 Fixed filtering contacts issue on when create new chat. Fixes #1705 2021-01-21 11:40:34 -05:00
staked-smart-ace 8acdaff6f9 Fixed filtering contacts issue on when create new chat. Fixes #1705 2021-01-21 11:40:34 -05:00
staked-smart-ace 5b3d202797 Updated group naming functionality. Fixes #1693 2021-01-21 11:40:11 -05:00
Richard Ramos d8345c5e0e fix: Adding contacts via profile settings 2021-01-19 16:52:37 -05:00
Jonathan Rainville 444072f599 feat: call getPreviewData (url unfurling) in a separate thread
Fixes #1678
2021-01-19 16:51:59 -05:00
Pascal Precht 787354b0dc feat: introduce StatusExpandableAddress component
This introduces a new component to render Addresses that can be
expanded as well as copied using `CopyToClipBoardButton`.
While there's already an `Address` component that allows for expansion,
it doesn't give us control over it's look and feel and, should rather
be a `Button` anyways.

There's also cases in the application where we render a collapsed address
and don't allow for expanding it. In such cases, we might not want/need
a button at all.

Might make sense to introduce a separate address component that just shows
a collapsed address without any behaviour, which can then be used inside
`StatusExapandableAddress`.

Closes #1633
2021-01-19 16:48:26 -05:00
staked-smart-ace a289871482 Updated font color name Fixes #1616 2021-01-19 16:47:52 -05:00
staked-smart-ace 9edcb1dc4d Updated group chat member list likes the design. Fixes #1616 2021-01-19 16:47:52 -05:00
Jonathan Rainville 32570e39c8 fix: update privacy settings like design 2021-01-19 16:47:16 -05:00
Jonathan Rainville eb6c865e5b fix: fix lists of browser settings 2021-01-19 16:45:57 -05:00
Jonathan Rainville c26e91ab35 fix: fix lists in browser settings 2021-01-19 16:45:57 -05:00
Jonathan Rainville 7fef440a97 fix: fix design of appearance in settings 2021-01-19 16:45:57 -05:00
Jonathan Rainville acac683dc2 feat: fix Notification page and lists of contacts 2021-01-19 16:45:57 -05:00
Malik Al-Jabr 3ad3739218 fix: gas estimate error
fixes #935
A bug occurs when someone requests a large amount of funds from you since the gas estimation will fail and there isn't a way of handling errors in the source yet.

This PR handles the error appropriatley for both `estimateGas` and `estimateTokenGas` where the response is only converted from hex to int if the RPC call was successful. Otherwise return the error message as the response and let the UI decide how to display it.

Currently the error for gas estimation in transaction bubbles is displayed in a popup however, ive come to realize that 2 popups open instead of one. This is a new bug of which I can't pinpoint the root cause at the moment and have opted to file a separate issue for it.
2021-01-19 16:11:06 -05:00
staked-smart-ace 086c868bdc
uiux(StatusButton): introduce warn type
Fixes #1603
2021-01-19 12:45:03 +01:00
staked-smart-ace ac6d55ae2d Updated main tap's profile badge. Fixes #1619 2021-01-18 15:27:56 -05:00
staked-smart-ace 1f3be224b8 Updated main tap badge. Fixes #1619 2021-01-18 15:27:56 -05:00
staked-smart-ace 2de8faf5a5 Updated main tap badge. Fixes #1619 2021-01-18 15:27:56 -05:00
staked-smart-ace 78479749c6 Keep item ID. Fixes #1619 2021-01-18 15:27:56 -05:00
staked-smart-ace 6ae099ab11 Keep string explanation comment. Fixes #1619 2021-01-18 15:27:56 -05:00
staked-smart-ace c84806aa4e Adjusted badge positions as designs. Fixes #1619 2021-01-18 15:27:56 -05:00
Jonathan Rainville 76688733f5 feat: add muted states for channel
Fixes #1615
2021-01-15 13:52:50 -05:00
Jonathan Rainville 8462c1c013 fix: fix QML warnings + some UI fixes to match the design 2021-01-15 13:52:05 -05:00
staked-smart-ace f2eda36569 Fixes #1610 2021-01-15 13:51:52 -05:00
staked-smart-ace 1d2ad3092f Fixes #1610 2021-01-15 13:51:52 -05:00
Richard Ramos efc1feb2fa feat: add custom mailserver 2021-01-15 13:51:31 -05:00
Pascal Precht 14809cebfe uiux(About): revamp about page
Closes: #1625
2021-01-15 10:57:31 -05:00
Jonathan Rainville 7230cdf7c7 feat: only show profile pics for contacts by default
But add a profile switch to show them for everyone
2021-01-15 10:53:45 -05:00
Jonathan Rainville 5ab99cbeac feat: show time and sent status on the image itself 2021-01-14 16:02:27 -05:00
Pascal Precht d4227e75d0 uiux(Glossary): make links behave the way they should
Closes #1624
2021-01-14 16:02:10 -05:00
Pascal Precht 61e5bcb24b fix(Contacts): make add contact button work again
Adding a contact through the Add Contact Modal isn't working because the
function being called to add a contact doesn't actually exist.
This was most likely a mistake as the change was just to call that function
in question from a different property.

This commit does exactly that.

Fixes #1660
2021-01-14 16:00:20 -05:00
Pascal Precht c328f332f6 fix(Wallet): fix bug that prevented users from setting the currency
Setting the default currency through the UI doesn't work because of a `MouseArea` that
is masking the an underlying `StatusRadioButton` which will tricker the default currency
change.

This commit enhances the `MouseArea` to trigger the default currency change and it
also ensures the UI is responding accordingly. Namely that the new default currency
is correcly selected in the list of currencies.

There's also a little change in the background hover color so it works well across
light and dark themes.

Fixes #1632
2021-01-14 16:00:10 -05:00
Jonathan Rainville be8e2c82f0 fix: fix image click not opening on click
Fixes #1607
2021-01-14 15:58:55 -05:00
Pascal Precht 7c8aca0fbc uiux(Wallet): improve asset manager usability and UI
This commit does a couple of things:

- It changes a label in the wallet menu from "Add/remove Token" to "Manage Assets"
  as it has been designed
- It changes the asset list so a hover state could be introduced. Previously there
  was no visual effect or response to mouse hover on asset items
- It improves usability of the asset list by making an entire asset item
  clickable to toggle the asset in the wallet. This was not possible before.
  Users had to click the checkbox achieve this effect

Closes #1631
2021-01-14 15:43:29 -05:00