Jonathan Rainville
6906ddcb61
fix: make sure admin status is up to date when opening the popup
2020-10-21 10:37:33 -04:00
Jonathan Rainville
fc4a179dc7
fix: fix group info popup layout and clean it up
2020-10-21 10:37:33 -04:00
Jonathan Rainville
d83ca70bef
fix: don't close group info popup when closing profile popup
2020-10-21 09:40:12 -04:00
Jonathan Rainville
4371501efc
feat: style mention suggestions and make it work with keyboard
2020-10-20 17:21:02 -04:00
Jonathan Rainville
0c1156b33c
feat: reuse signtxModal and show success and failure
2020-10-20 14:42:36 -04:00
Jonathan Rainville
08f8035b31
fix: add timeout to scroll bottom at all times to make sure we do scroll
2020-10-20 13:52:13 -04:00
Pascal Precht
3d0f50a5b3
feat: allow users to configure notification settings
...
Can choose between all, just mentions, or nothing
2020-10-20 13:50:49 -04:00
Pascal Precht
ebda8b19a9
fix(Chat): ensure transaction bubbles are render on the correct side
...
Fixes #1198
2020-10-20 13:48:20 -04:00
Pascal Precht
85f18057ae
fix: don't allow users to start chats with themselves
2020-10-16 10:44:42 -04:00
Pascal Precht
6f138f2d44
uiux(Chat): change channel background when hovering over them
2020-10-16 10:43:48 -04:00
Pascal Precht
8bf82e1dd6
feat: allow for fetching messages older than 24 hours
2020-10-16 10:43:38 -04:00
Jonathan Rainville
b05a9a8ff6
fix: fix text in bubbles being too low
2020-10-07 11:22:29 -04:00
Pascal Precht
ec22de8c24
uiux(Chat): add margin between group header messages and fetch-more button
...
Closes #1087
2020-10-07 11:22:04 -04:00
Pascal Precht
c64424990d
uiux(Chat): remove sent badge
...
Closes #919
2020-10-07 11:21:54 -04:00
Pascal Precht
e2bb81885f
feat(Chat): show 'no search results' message
...
Closes #1081
2020-10-07 11:20:29 -04:00
Pascal Precht
12a7d7c067
feat: introduce new chat input component
...
Closes #757
2020-10-07 14:03:12 +02:00
Richard Ramos
2da4abf8eb
fix: "Contact / Not a contact" indicator was not being updated when an user was added/removed as contact
2020-10-05 10:56:38 -04:00
hydr063n
0ed41902a8
fix: change arrow button to 'start chat' for join public chat modal
2020-10-05 10:52:11 -04:00
hydr063n
5da0d47c5a
feat: introduce character limit of 2000 when sending messages
...
fix: refactor sticker query
2020-10-05 10:50:12 -04:00
Richard Ramos
cdcb928a0c
refactor: simplify ProfilePopup usage
2020-10-02 12:48:58 -04:00
Richard Ramos
2fb9d569f7
refactor: open profile popup
2020-10-02 12:48:58 -04:00
Jonathan Rainville
261460f8fb
fix: fix chat height being too high in compact mode
2020-10-02 12:48:02 -04:00
Jonathan Rainville
fe3995bb3d
refactor: clean compact mode message
2020-10-02 12:48:02 -04:00
Jonathan Rainville
7478415c64
fix: fix image padding
2020-10-02 12:48:02 -04:00
Jonathan Rainville
c37ba24f7b
fix: fix padding around stickers in compact mode
2020-10-02 12:48:02 -04:00
Jonathan Rainville
df76fb815b
refactor: make Sticker a Loader so that we only load it if needed
2020-10-02 12:48:02 -04:00
Pascal Precht
edfd952166
feat(Chat): allow viewing unfurled images via popup
...
Fixes #668
2020-10-02 12:37:57 -04:00
emizzle
6d5bd52d0a
fix: Estimating gas prevents transaction modal continue
...
Fixes : #926 .
Gas estimations were not being decoded correctly (indicated with "error getting gas price predictions" in the console) and were preventing transaction dialogs from continuing past the step containing the GasSelector component. This affected mainnet only, because in testnet we have hardcoded gas prices (for when the gas prices on mainnet are insane) which is why it was not apparent in testnet.
fix: Contract address not showing correctly
This was caused by `getStickerMarketContractAddress` being moved to `utilsView` but not updated in QML
2020-10-02 12:33:28 -04:00
emizzle
1d2774283f
fix: Update StatusRoundButton colours
...
Update StatusRoundButton colours to support a "tertiary" style (background and icon color overlay), as well as tertiary hover colour.
Fix the modal header close button so that it more closely matches the design.
Replace the buttons in the onboarding modals with StatusRoundButtons were possible.
2020-10-02 12:31:55 -04:00
Jonathan Rainville
8bac59e98c
feat: show the error when sendImage fails
...
Plus improve toastMessage to better handle wide messages
2020-10-02 12:28:41 -04:00
emizzle
64b0a11757
feat: add sticker loading UI
...
Closes : #586
Previously, loading sticker packs and stickers would show a lot of blank and non-interactive content.
Now, stickers and sticker packs have grey circles to indicate loading. Additionally, the sticker market button (+) shows a loading indicator until the sticker packs are loaded.
2020-09-29 15:19:42 -04:00
Jonathan Rainville
9acb6609ab
feat: only show the scrollDown when scrolled up 400 pixels
2020-09-29 14:43:58 -04:00
Jonathan Rainville
3881d1e012
fix: make chatMessages new message box clearer
2020-09-29 14:43:58 -04:00
Jonathan Rainville
39f06d0741
feat: implement design for the new messages box in chat
2020-09-29 14:43:58 -04:00
Jonathan Rainville
1dfd16f83d
fix: missing type and missing id
2020-09-29 14:34:26 -04:00
Jonathan Rainville
ba0af727dc
refactor: add funciton to change the username instead of using a global
2020-09-29 14:04:32 -04:00
Jonathan Rainville
6a57eeccb2
feat: implement new design for the nickname popup
2020-09-29 14:04:32 -04:00
Jonathan Rainville
577dbba831
fix: fix code review and fix deleting colon closes emoji popup
2020-09-29 14:04:13 -04:00
Jonathan Rainville
cf734796d1
feat: enable adding emojis from the suggestion list
2020-09-29 14:04:13 -04:00
Jonathan Rainville
15bebaa0f5
feat: add basic emoji list when entering an emoji
2020-09-29 14:04:13 -04:00
Jonathan Rainville
9f9bad2fa3
feat: add a read more button and crop text when message is too long
2020-09-29 14:02:33 -04:00
Jonathan Rainville
dad1dcf2c5
fix: fix eth2Wei returning a bad string
2020-09-29 14:01:44 -04:00
Pascal Precht
dcc0a1d321
uiux: introduce StatusChatCommandsPopup component
2020-09-29 13:57:52 -04:00
Pascal Precht
bd63ae6bab
feat: introduce StatusChatCommandButton
...
This is a new version of our `ChatCommandButton` so it is an actual
`Button` element.
2020-09-29 13:48:36 -04:00
Pascal Precht
bc7b825f55
uiux(Chat): ensure chat input gets focus when changing views and channels
...
Fixes #804
2020-09-29 13:48:13 -04:00
emizzle
5eabcd2725
feat: Add loading and reload states to stickers/packs
...
Related to: #586 .
Adds a loading state to stickers, so that a loading indicator appears while the sticker is being downloaded from IPFS.
In the case of a network failure or timetout, a reload button is shown instead. Once network is restored and the reload button is clicked, the image is reloaded from the network, going through the same lifecycle of showing the loading state first.
2020-09-29 13:27:50 -04:00
emizzle
1fc0e26a0f
fix: update tx modal validity
2020-09-29 13:27:29 -04:00
hydr063n
25748ce682
chore: update ui screens to use utilsModel instead
2020-09-28 10:38:23 -04:00
Jonathan Rainville
81f5e4e7d8
chore: update translations
2020-09-23 17:19:57 -04:00
Jonathan Rainville
88de02b1dc
fix: fix color and warning
2020-09-23 17:19:43 -04:00
Iuri Matias
9d356fc4f7
change status-spanish to status-espanol, it's more guay
2020-09-23 17:19:17 -04:00
Jonathan Rainville
024e7a18ae
fix: fix suggested channels border and height
2020-09-23 16:40:52 -04:00
Iuri Matias
1bbd720743
cleanup qml
2020-09-23 15:52:27 -04:00
Iuri Matias
bcb8970817
cleanup qml
2020-09-23 15:52:27 -04:00
Iuri Matias
0da4633318
cleanup qml
2020-09-23 15:52:27 -04:00
Iuri Matias
1d8d11a06e
display channel suggestions in main channel list
2020-09-23 15:52:27 -04:00
Iuri Matias
a3441fb45f
refactor channel suggestion list into one component
2020-09-23 15:52:27 -04:00
Iuri Matias
6ac3f86951
fixes for empty view
2020-09-23 15:52:27 -04:00
Iuri Matias
2204a7b785
update empty view with list of channels
2020-09-23 15:52:27 -04:00
Iuri Matias
fbf8302474
fixes for qml layout
2020-09-23 15:52:27 -04:00
Iuri Matias
52d394ded4
update join chat suggested channels to include the full list of categories and channels
2020-09-23 15:52:27 -04:00
Jonathan Rainville
eb7b9c2383
chore: fix qml warnings in a couple of components
2020-09-23 15:16:34 -04:00
Jonathan Rainville
c36f1f82cd
feat: add a button to scroll back to the end of the chat list
2020-09-23 15:16:22 -04:00
Jonathan Rainville
4060b40ccf
fix: fix mentions box being too big because plainText was the pubKey
2020-09-23 15:15:44 -04:00
Jonathan Rainville
26dd599e06
chore: fix comment typo
...
Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
2020-09-23 15:15:22 -04:00
Jonathan Rainville
6fc56b5035
fix: fix spaces and line breaks disappearing when pasting
2020-09-23 15:15:22 -04:00
Pascal Precht
599f788e67
feat: introduce `StatusChatInfo` and `StatusChatInfoButton` components
...
These components are used to render the chat info in the top bar of the chat view.
`StatusChatInfoButton` is an clickable button that will open chat info dialogs.
Closes #923
2020-09-23 08:53:23 +02:00
Pascal Precht
fac0e50e37
feat: introduce StatusIdenticon components
...
This component introduces `StatusLetterIdenticon`, `StatusImageIdenticon`
and `StatusIdenticon`.
- `StatusLetterIdenticon` renders an identicon with a single letter based on a
name.
- `StatusImageIdenticon` renders an actual image based on an identicon URL
- `StatusIdenticon` is a composition of the former both, but with a loading mechanism
to decide which should be rendered
The commit also ensures all of these components are used respectively throughout
the application.
2020-09-23 08:52:30 +02:00
Jonathan Rainville
a8d42e5e1e
fix: fix reaction direction in compact mode for current user
2020-09-22 11:31:19 -04:00
Jonathan Rainville
49849edbac
fix: channel description and reaction colors in dark mode
2020-09-22 11:30:30 -04:00
Jonathan Rainville
a35130ff68
fix: fix reply colors in dark mode
2020-09-22 11:30:30 -04:00
Pascal Precht
c992cce9f5
chore: update translations
...
Fixes #900
2020-09-22 09:36:05 -04:00
Richard Ramos
ca0416dd30
fix: code review and style changes
2020-09-21 15:03:17 -04:00
Richard Ramos
2fb8f2ea55
fix: join/decline group
2020-09-21 15:03:17 -04:00
Jonathan Rainville
f6199ac179
fix: fix undefined string warning in group info popup
2020-09-21 12:52:05 -04:00
Jonathan Rainville
f359f7c45d
fix: fix nickname not refreshing in contact lists for groups
2020-09-21 12:52:05 -04:00
Jonathan Rainville
fd93650b23
refactor: remove duplicated methods in chatModel and use profileModel
2020-09-21 12:52:05 -04:00
Jonathan Rainville
0c0baf29e8
fix: small fixes to the profile popup
2020-09-21 12:52:05 -04:00
Jonathan Rainville
6e357cb5e2
feat: show nickname in the modal from the contact list
2020-09-21 12:52:05 -04:00
Jonathan Rainville
bc3b7a5533
feat: enable setting a nickname to a contact
2020-09-21 12:52:05 -04:00
Jonathan Rainville
697ae321d2
feat: add nickname modal
2020-09-21 12:52:05 -04:00
Jonathan Rainville
c59ba5f24d
feat: add Nickname entry in the profilePopup
2020-09-21 12:52:05 -04:00
Pascal Precht
f0939a01fe
chore: update i18n
2020-09-18 17:23:35 -04:00
Jonathan Rainville
7dce940e68
fix: fix message order being messed up because of the messageId
2020-09-18 17:23:09 -04:00
Iuri Matias
7d1bae9b96
fix use text instead of label
2020-09-17 15:32:59 -04:00
Pascal Precht
1aba28b1cf
uiux(Settings): add slider to control audio volume
...
Closes #843
2020-09-17 15:16:32 -04:00
Pascal Precht
e0adc3056e
chore: update translations
...
Closes #801 #841
2020-09-17 15:16:09 -04:00
emizzle
7c520a8032
fix: close tx modals after sending
2020-09-17 12:22:15 -04:00
emizzle
c9c1dce6ea
fix: Sticker market dark mode support
2020-09-17 12:22:00 -04:00
emizzle
7b0d3c496c
fix: exception handling in mutli-threaded transactions
...
Currently, exceptions thrown during transactions or gas estimation that were spawned in another thread are not being propagated, due to a limitation in nim (see https://nim-lang.org/docs/manual_experimental.html#parallel-amp-spawn ).
This means any exceptions from status-go were not propagated correctly and would cause the app to crash. This includes entering the wrong password when trying to send a transaction.
The issue was addressed by passing a `success` variable by reference, which is set to false if an exception was thrown by status-go.
2020-09-17 12:21:29 -04:00
Jonathan Rainville
bcbcd13611
refactor: use profileSettingsFile QtProperty instead of profile directly
2020-09-16 16:58:55 -04:00
Jonathan Rainville
db9472bc0b
refactor: change settings to use a filename instead
2020-09-16 16:58:55 -04:00
Jonathan Rainville
23ca5f9930
feat: make settings user dependant and clean settings uses
2020-09-16 16:58:55 -04:00
Richard Ramos
e4ffc897d7
fix: code review + reset sticker pack pending state
2020-09-16 14:22:29 -04:00
Richard Ramos
d0bca7afa6
fix: show stickers as pending while trx is being mined
...
Fixes #885
2020-09-16 14:22:29 -04:00
Richard Ramos
e75958d78d
fix: code review
2020-09-16 14:22:29 -04:00
Richard Ramos
83b0c8057e
fix: code review
2020-09-16 14:22:29 -04:00
Richard Ramos
0091fded3a
feat: toast messages for sticker and ens trxs
2020-09-16 14:22:29 -04:00
Jonathan Rainville
17aa8d274e
fix: fix defaultTokenList use in QML
2020-09-14 14:54:17 -04:00
Richard Ramos
6c7a3d6340
fix: use messageid in comparator
...
Fixes #324
2020-09-14 14:39:06 -04:00
hydr063n
b479dba001
feat: open modal when user left clicks on message containing image
2020-09-14 14:38:41 -04:00
emizzle
2c7dd929ad
feat: enable token transactions
...
Fixes #788 .
Fixes #853 .
Fixes #856 .
refactor: gas estimation and transaction sends have been abstracted to allow calling `estimateGas`, `send`, and `call` on the contract method (similar to the web3 API).
Moved sticker pack gas estimation and purchase tx over to the new API
*Sticker purchase:*
- gas estimate is done using new API and debounced using a timer
*Wallet send transaction:*
- tokens can now be sent
- gas is estimated correctly for a token tx, and debounced using a timer
***NOTE***
1. If attempting to send tokens on testnet, you must use a custom token as the token addresses in the pre-built list are for mainnet and will not work on testnet.
2. The new API should support all existing gas estimates, send txs, and calls. The loading of sticker pack data, balance, count, purchased sticker packs, etc, can be moved over to the new API. Almost all of the `eth_sendTransaction`, `eth_gasEstimate`, and `eth_call` could be move over as well (that's the idea at least).
2020-09-11 12:01:08 -04:00
Jonathan Rainville
f3f27a5e59
fix: address more comments about the chat commands
2020-09-09 15:03:45 -04:00
Jonathan Rainville
91c8089716
fix: fix decimals problem with Chat commands
...
The problem was that the BigInt lib did not handle decimals at all. `divMod` only let the remainder be what is after the dot. So I created my own divde and multiply methods to move the dot depending on the number of decimals
2020-09-09 15:03:45 -04:00
Jonathan Rainville
348e0a9bdc
fix: address review comments for the send forms
2020-09-09 15:03:45 -04:00
Jonathan Rainville
6b3cac31bc
feat: enable sending chat requests
2020-09-09 15:03:45 -04:00
Jonathan Rainville
60492b4db1
feat: add chat command bubbles for received txs
2020-09-09 15:03:45 -04:00
Iuri Matias
4e801c5336
add missing source comments
2020-09-09 14:08:19 -04:00
Iuri Matias
aeb8d2958d
display first menu option; include channel id
2020-09-09 14:08:19 -04:00
Iuri Matias
5e2c3c9ca7
add leave/quit for context menu
2020-09-09 14:08:19 -04:00
Pascal Precht
2cd6260515
uiux(Chat): make entire contact item clickable when starting new chat
...
Closes #847
2020-09-08 14:24:12 -04:00
Pascal Precht
a9fe6eb3b2
fix(Chat): use qsTr() over qsTrId() due to non-existent i18n id
...
Fixes #848
2020-09-08 14:23:40 -04:00
Pascal Precht
4bea011417
uiux(Chat): show loading indicator when fetching more messages
2020-09-08 14:09:09 -04:00
Pascal Precht
1481f2648f
feat: introduce "fetch more messages" button to request old messages
...
Closes #149
2020-09-07 10:20:17 -04:00
emizzle
d8b0145eb3
feat: Add Sticker purchase transaction modal
...
Add gas estimate for sticker pack purchase.
Update transaction for sticker pack purchase.
Add GasValidator component which validates gas is selected correctly and displays an error message if not. This component is not visible until it is not valid (at which point the valdiation error message is displayed).
In a future PR, need to:
1. estimate gas for token txfer (sendTransaction) via a normalised method for estimating gas for EthSend
2. move sticker pack purchase to use an EthSend object so gas can be estimated and tx sent
2020-09-04 16:13:33 -04:00
hydr063n
4f409f76c8
replace console.log with comment on popup section
2020-09-04 15:31:46 -04:00
hydr063n
e77b6d193e
refactor and add support for converting to emoji after pasting text
2020-09-04 15:31:46 -04:00
hydr063n
542020d6a6
extrapolate cursorPosition to account for the fact the emojis are not length 1
2020-09-04 15:31:46 -04:00
hydr063n
deacefb03f
poll for emoji event when user moves cursor with kbd or mouse and replace emoji token with code point
2020-09-04 15:31:46 -04:00
hydr063n
1cc43c15e7
implement emoji handler that replaces text 😂 with text
2020-09-04 15:31:46 -04:00
Richard Ramos
1d0e4fe2cf
feat: disable reply on stickers and make sticker images smooth
2020-08-28 11:11:08 -04:00
Jonathan Rainville
1592115dde
feat: change other components to use Address where needed
2020-08-27 17:48:03 -04:00
Pascal Precht
6fd4c363e7
uiux(Chat): replace status ens address with user names in suggestion box
...
UX request mentioned in #769
Fixes part of #769
2020-08-27 17:38:32 -04:00
Pascal Precht
de5b62030b
fix(Chat): ensure cursor is set correctly in when selecting suggestion
...
This commit fixes a regression that was introduced in: https://github.com/status-im/nim-status-client/commit/459de8cd1
where the cursor position in the chat input was calculated incorrectly.
It also introduced a bug in the text processing which is described in #769
Partly fixes #769
2020-08-27 17:38:32 -04:00
Jonathan Rainville
0c686c3fcf
chore: run qstrConverter script
2020-08-27 17:09:37 -04:00
Jonathan Rainville
d19f15bb84
fix: fix chat links in a couple of ways
...
- link color in compact mode
- channel links did not have a #
- clicking on a mention should show that profile
- The AddChat button image didn't reposition when closing
2020-08-27 17:09:04 -04:00
Jonathan Rainville
3ca1c470a5
feat: enable toggling emoji reactions using the reactions themselves
2020-08-27 16:34:35 -04:00
Jonathan Rainville
5f119e1ead
feat: enable removing emoji reactions from the context menu
2020-08-27 16:34:35 -04:00
Jonathan Rainville
99ca0e9e55
feat: enable adding reactions to chat messages from the menu
2020-08-27 16:34:35 -04:00
Jonathan Rainville
72af6adb69
feat: get and display emoji reactions in chat
2020-08-27 16:34:35 -04:00
Jonathan Rainville
60f7a3cbe2
feat: format timestamp in TransactionBubble like the Chat
2020-08-27 16:15:27 -04:00
Jonathan Rainville
9e2bf87d84
feat: add TransactionBubble for use with the chat commands
...
Add only the UI component for the TransactionBubble
Was not thoroughly tested since it was only developed in QT Designer
2020-08-27 16:15:27 -04:00
Pascal Precht
f4d16d7661
refactor(IconButton): turn IconButton into proper button control
...
So far our `IconButton` hasn't been a proper button control which comes
with many downsides, such as:
- Some default button behaviours need to be simulated (e.g. `onClicked`)
- Any support built-in features for all controls in QML like `ToolTip` aren't can't be used
- There are probably accessibility aspects to it as well
We use the `IconButton` in many different places. Sometimes it doesn't
even act as a button, but just as an icon. I suggest we introduce a separate
`StatusIcon` component for that in future changes.
This commit turns the `IconButton` into a proper `RoundButton`, restoring
the control behaviour and features we get from QML.
This also required to expose the `icon` property as a `iconImg`,
because a `RoundButton` already comes with an `icon`.
On the other hand, we could remove the `onClick` simulation and can now
take advantage of components like `ToolTip`.
2020-08-25 10:26:34 +02:00
Iuri Matias
69b3ea57d6
fix volume of notification sounds
2020-08-20 13:39:57 -04:00
Jonathan Rainville
d35c971c8b
fix: fix layout of input buttons when some are hidden
2020-08-19 15:25:13 -04:00
Jonathan Rainville
474f68cf8a
feat: add chat command modal shell
...
It doesn't do anything for now
2020-08-19 15:25:13 -04:00
Jonathan Rainville
59cba0f125
refactor: make ChatButtons a Row to not have to position them manually
2020-08-19 15:25:13 -04:00
Jonathan Rainville
8ac2d66f63
refactor: make ChatInputButton to reduce duplication
2020-08-19 15:25:13 -04:00
Iuri Matias
9b6ae2e6ad
close join channel popup when clicking a suggestion
2020-08-19 14:39:45 -04:00
Pascal Precht
ef22fb348d
feat: allow users to mute and unmute channels
...
Closes #152
2020-08-19 14:39:31 -04:00
Richard Ramos
f6cf197983
fix: pixelated icons on the menu
2020-08-17 11:57:32 +02:00
Pascal Precht
4f7486afbe
refactor: Introduce more generic confirmation dialog for simpel cases
2020-08-13 14:40:03 -04:00
Pascal Precht
6d0d0fb2aa
feat: introduce dialog to confirm removal of contacts
...
Closes #632
2020-08-13 14:40:03 -04:00
Pascal Precht
04ff3393fa
feat: introduce confirmation dialog for blocking contacts actions
...
Closes #632
2020-08-13 14:40:03 -04:00
Richard Ramos
477f5aa460
feat: display empty state when user has no contacts
2020-08-11 08:39:10 -04:00
Richard Ramos
d3b6ff32b8
fix: additional text on channel identifier
2020-08-11 08:39:10 -04:00
Richard Ramos
edbb183242
fix: show ens and alias on profile popup header
2020-08-11 08:39:10 -04:00
Richard Ramos
e96f3ed47f
fix: display ens names with correct format in all screens
2020-08-11 08:39:07 -04:00
Pascal Precht
17396c85cb
feat(GroupInfo): allow user to visit group member profile page
...
Closes #638
2020-08-10 09:42:47 -04:00
Jonathan Rainville
156aaba0aa
feat: improve style of the notification box
...
Use the Channel box for that
2020-08-10 09:34:02 -04:00