Commit Graph

2385 Commits

Author SHA1 Message Date
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
Jonathan Rainville 17b3a44458 fix(Community): leave community from Community profile popup 2021-05-07 11:12:02 -04:00
Jonathan Rainville d2b6bf9310 fix(Input): fix mention formation on rewriting a mention
Fixes #2325
2021-05-05 17:26:48 -04:00
Richard Ramos 521d2372f3 fix: code review 2021-05-05 17:16:12 -04:00
Richard Ramos efd1677b24 show confirmation dialog when leaving chat 2021-05-05 17:16:12 -04:00
Iuri Matias 38be2889cd use StatusIconButton component to avoid pixelized close button 2021-05-05 17:15:40 -04:00
RichΛrd efe550ccd5 Update ui/app/AppLayouts/Chat/ChatColumn.qml
Co-authored-by: Jonathan Rainville <rainville.jonathan@gmail.com>
2021-05-05 17:13:02 -04:00
Richard Ramos fbbfa30b1b Allow image drag/drop in communities 2021-05-05 17:13:02 -04:00
Iuri Matias 3f35bad846 make url color blue 2021-05-05 17:09:43 -04:00
Iuri Matias cfe2139524 fix text formatter icons size & pixelation 2021-05-05 17:09:28 -04:00
Iuri Matias a2655c9b7b hide node tab toggle for now 2021-05-05 17:09:17 -04:00
Jonathan Rainville c45fe44ad5 feat(Community): show community description in CommunityColumn
Fixes #2400
2021-05-04 15:52:35 -04:00
Pascal Precht a53a32c5c0 chore: remove wrong git submodule
As mentioned in https://github.com/status-im/status-desktop/pull/2489/files#r626020553
2021-05-04 15:40:31 -04:00
Jonathan Rainville 9d625016ff chore: fix spacing and width of chat identifier 2021-05-04 14:52:37 -04:00
Jonathan Rainville 49d130a111 feat(ChatMessages): show chat identifier at the top of the window 2021-05-04 14:52:37 -04:00
Jonathan Rainville 64e965ea07 feat(Chat): add Add To Contact banner in 1 to 1 chats 2021-05-04 14:52:37 -04:00
Iuri Matias 11e6ca7e42 don't allow username change for own user 2021-05-04 14:46:32 -04:00
Pascal Precht 7329522a28 chore: add StatusQ as dependency
This commit does a couple of things:

- add StatusQ as a dependency (https://github.com/status-im/StatusQ)
  our emerging component library
- updates the rcc generation script to follow symlinks as well
- add qrc:/./StatusQ/src as import path

At the time of creating this commit `StatusQ` provides only the StatusIcon
component, but more will be added in the future.
2021-05-04 14:42:28 -04:00
Richard Ramos f5dacb40b1 fix: group info font
Fixes #2380
2021-05-03 15:03:51 -04:00
Richard Ramos 9ea56a3ae7 force refetching previews when preview whitelist changes 2021-05-03 15:03:03 -04:00
Jonathan Rainville 659eb6c681 fix: fix lists overflowing 2021-05-03 14:46:25 -04:00
Jonathan Rainville eac7009807 feat(community): fetch community info from link
Fixes #2290
2021-05-03 14:36:37 -04:00
Richard Ramos 7ee11e27e2 fix: can't send transactions on browser
Fixes #2433
Fixes #2422
2021-05-03 14:13:41 -04:00