Commit Graph

2107 Commits

Author SHA1 Message Date
Iuri Matias a40d2b1e74 add qml api docs 2021-05-21 12:29:34 -04:00
Iuri Matias 068e2cfcd7 document other chat functionality 2021-05-21 12:29:34 -04:00
Eric Mastro 1387ba3157 fix: prevent crash checking pending transactions
There is an unknown state that the data dir seems to get in that causes the application to crash when checking pending transactions. This is fixed by checking if the pending transactions RPC result has a `”result”` field first before attempting to read it.

### NOTE:
Clearing the data directory fixed the issue for me, however I do not know what caused it in the first place. While the crash was happening, there was also an error appearing in the logs:
```
ERR 2021-05-18 15:40:47+10:00 rpc response error                         topics="rpc" tid=3893906 file=core.nim:24 methodName=wallet_getPendingTransactions payload=[] result="{\"jsonrpc\":\"2.0\",\"id\":0,\"error\":{\"code\":-32000,\"message\":\"no such column: transaction_hash\"}}"
```
After clearing the data dir, this error also went away.
2021-05-19 16:24:59 -04:00
Iuri Matias 9d32803b82 document one one chats 2021-05-18 15:30:39 -04:00
Iuri Matias 873d1ef02e document other onboarding 2021-05-18 15:30:39 -04:00
Richard Ramos e35a6141b9 fix: random crash on login 2021-05-18 15:28:56 -04:00
Jonathan Rainville 070f9a2187 fix(community): fix community link
Fixes #2501
2021-05-18 15:28:28 -04:00
Pascal Precht 2a706d2b09 feat(Communities): allow admins to ban users
Closes #2514
2021-05-18 15:27:29 -04:00
Richard Ramos 0b4c465f51 handle cases where the id is nil 2021-05-18 15:25:04 -04:00
Richard Ramos 0fa9064481 fix: add id to signature response
Fixes #2542
2021-05-18 15:25:04 -04:00
Pascal Precht 18ecb87e9b fix(Communities): don't list members in contacts to invite list
When inviting contacts to a community, Status Desktop suggests a list of
all contacts, even if contacts of that list are already members of the community.

This commit introduces a new flag to `ExistingContacts` component that
allows for configuring whether community members should be hidden or not

Fixes #2502
2021-05-18 15:24:50 -04:00
Richard Ramos 5895495bc3 Add missing accountsChanged event to web3 provider
Fixes #2423
2021-05-18 15:24:41 -04:00
Richard Ramos 6fd7142cb5 feat: watch transactions with new wallet API 2021-05-18 15:24:05 -04:00
Richard Ramos 2000018834 bump status-go version 2021-05-18 15:24:05 -04:00
Richard Ramos 3a042a4a09 feat: use new pending transfer API 2021-05-18 15:24:05 -04:00
Richard Ramos 7d56e66a86 fix: check null 2021-05-18 15:24:05 -04:00
Richard Ramos 19d4279237 use new wallet api to receive wallet signals 2021-05-18 15:24:05 -04:00
Eric Mastro 65a0cfbcd3 fix: show emoji in reaction tooltip
Fixes: #2387.

Shows the emoji in the emoji reaction tooltip instead of the shorthand (ie 👎 instead of `👎`).
2021-05-14 12:17:48 -04:00
Richard Ramos 9493839b65 force messages to dissapear if a contact is blocked 2021-05-14 11:56:07 -04:00
Richard Ramos fdf6be5f64 feat: delete messages on block 2021-05-14 11:56:07 -04:00
Pascal Precht 636b39d082 fix(StatusLetterIdenticon): ensure letterSize is correct
Due to historic reasons, conditionally assign a font size for the letter
identicon, based on whether or not the app's compact mode is active.

Compact mode has become the new default a while back and the component's
`isCompact` property isn't set anywhere in throughout the application,
resulting in `letterSize` to always be `21`, which is too big.

This commit removes the condition, defaulting to always having a letter size
of 15 pixels as designed.
2021-05-14 11:48:37 -04:00
Eric Mastro 3deb75b2fe fix: support closing login window using native buttons 2021-05-14 10:28:14 -04:00
Eric Mastro 29ac475385 feat: add DockClicker event filter
Add an event filter to `qApp` that can detect a dock icon click (in macos) when the main window is hidden or closed.

When the event has been triggered, the main window will be shown again.

Co-authored-by: Boris Melnik <82511785+borismelnik@users.noreply.github.com>
2021-05-14 10:28:14 -04:00
Eric Mastro 46caa67d49 fix: add mention hover
Fixes: #2388

Adds a specific background color to hovered mentions.
2021-05-14 10:28:05 -04:00
Eric Mastro 590192ad9e fix: show suggestion profile pics for contacts only
Fixes: #2365.

Previously, suggestions for mentions were showing profile pics even for users who were not contacts. Now, profile pics are only shown for those users who are contacts. The user’s identicon is shown otherwise.

fix: user thumbnail not shown when no profile pic
When a user was a contact, but didn’t have a profile pic, an image would not be loaded and a ‘reload’ image would be shown instead. With this PR, if the user is a contact and they do not have a profile pic, their identicon will be shown instead.
2021-05-14 10:27:53 -04:00
Jonathan Rainville a0029ce270 refactor(ChatInput): refactor text formation to increase perfo and enbale undo 2021-05-14 10:27:47 -04:00
Eric Mastro ee1287b71d fix: prevent crash on generate account wrong password
Fixes #2448.

Currently, if a wrong password is entered when generating a wallet account, the app will crash due to attempting to decode a `GeneratedAccount ` from an rpc response containing only an error.

With this PR, we are detecting if an error is returned in the response, and if so, raising a StatusGoException. This exception is caught in the call chain, and translated in to a `StatusGoError` which is serialised and sent to the QML view, where it is parsed and displayed as an invalid password error in the input box.

refactor: remove string return values as error messages in wallet model
In the wallet model, we were passing back empty strings for no error, or an error as a string. This is not only confusing, but does not benefit from leaning on the compiler and strong types. One has to read the entire code to understand if a string result is returned when there is no error instead of implicitly being able to understand there is no return type.

To alleviate this, account creation fundtions that do not need to return a value have been changed to a void return type, and raise `StatusGoException` if there is an error encountered. This can be caught in the call chain and used as necessary (ie to pass to QML).

refactor: move invalid password string detection to Utils
Currently, we are reading returned view model values and checking to see if they include a known string from Status Go that means there was an invalid password used. This string was placed in the codebased in mulitple locations.

This PR moves the string check to a Utils function and updates all the references to use the function in Utils.
2021-05-14 10:27:37 -04:00
Iuri Matias 4cfe7411ac document communities 2021-05-13 16:37:46 -04:00
Iuri Matias f1fd0457ae document installation and build 2021-05-13 16:37:46 -04:00
Iuri Matias ae804edd3c document onboarding 2021-05-13 16:37:46 -04:00
Iuri Matias c910613131 update sections for dev guide 2021-05-12 17:02:23 -04:00
Iuri Matias 6009a6f01e update baseurl config 2021-05-12 17:02:23 -04:00
Iuri Matias 927d47b31b change config 2021-05-12 17:02:23 -04:00
Iuri Matias e06e5de3d1 document settings 2021-05-12 17:02:23 -04:00
Iuri Matias 08f64387cf remove github action 2021-05-12 16:14:44 -04:00
Iuri Matias a27168ff51 test action 2021-05-12 16:09:04 -04:00
Iuri Matias c02380285a test action 2021-05-12 16:01:39 -04:00
Iuri Matias ca71d90d6e document onboarding/login & some settings 2021-05-12 07:47:34 -04:00
Iuri Matias 730e1def68 document rest of the chat secion and onboarding 2021-05-12 07:47:34 -04:00
Iuri Matias 432648e7e4 update wallet user guide docs 2021-05-12 07:47:34 -04:00
Jonathan Rainville 9e474a3def fix(Onboarding): show warning screen at the start of no account 2021-05-11 14:44:47 -04:00
Iuri Matias 8bae313a2d document app behaviour for chat section, timelines, and wallet 2021-05-11 09:12:36 -04:00
Iuri Matias 51ff63a086 document chat list, other chat functionality 2021-05-11 09:12:36 -04:00
Iuri Matias 80148fa3ce add structure for dev_guide section, fix links 2021-05-11 09:12:36 -04:00
Iuri Matias b71fec3ca1 adjust readme 2021-05-07 16:32:41 -04:00
Iuri Matias 17c2409d6b add action to create site 2021-05-07 16:30:28 -04:00
Iuri Matias f29576d76d update readme & cleanup 2021-05-07 16:12:12 -04:00
Iuri Matias 5bc8629a41 add other sections for main docs 2021-05-07 16:12:12 -04:00
Iuri Matias bcd1983c74 doc: add keyfile for adding a favourite with the star icon 2021-05-07 16:12:12 -04:00
Iuri Matias 88dfad39b4 initial user guide & dev docs 2021-05-07 16:12:12 -04:00