Commit Graph

240 Commits

Author SHA1 Message Date
Stefan Dunca c03cdef684 fix(browser): Fix favorite entries for malformed and long names
Limit long named tabs
Also avoid breaking visualization by escaping HTML

fix: #4961
2022-03-28 23:05:32 +03:00
Khushboo Mehta 33e3d2377e fix(@desktop/wallet): User stays on removed account view in wallet after account removal from settings
fixes #5037
2022-03-25 08:30:52 -04:00
Patryk Osmaczko e74de32296 chore: adapt to StatusBaseInput changes 2022-03-22 19:53:30 +01:00
Anthony Laibe 4b48bc69bd fix(@browser): unlink wallet account and browser account
fixes #5034
2022-03-18 15:17:04 -04:00
Anthony Laibe 9c77f2162b fix(@browser): Fix disconnect when url is resolved by ens 2022-03-17 14:54:24 +01:00
Khushboo Mehta f5e67fc658 feat(@desktop/wallet): adapt receive modal design
closes  #5039
2022-03-16 15:27:00 -04:00
Khushboo Mehta ade6a22fda fix(@desktop/wallet): Disconnect button doesnt disconnect Wallet from Browser
fixes #4053
2022-03-16 12:36:58 +01:00
Anthony Laibe 6e453dbbba fix(@browser): Fix etherscan link
fixes #4786
fixes #5014

also fixed simpledapp.eth due to need to resolve previous issue
2022-03-16 11:10:42 +01:00
Anthony Laibe 0908b13ad5 feat(@settings): new dapp permissions view 2022-03-14 13:48:57 +01:00
Alexandra Betouni c2977e468f feat(onboarding): Added SplashScreen
- Added SplashScreen as initial screen before
onboard as per new designs.
- Also moved all onboarding related code from
main to onboarding section and switched to
import this and all other sections as
qml modules, exposing this way only
necessary files.
- Cleaned up unecessary qmldir files and
imports.

Closes #4954
2022-03-08 14:02:24 -05:00
Anthony Laibe bfda545646 refactor: add back eip1559 2022-03-01 15:10:23 -05:00
Sale Djenic d0e0df1e3b fix(@dekstop/chat): clicking on `enable in settings` redirects to network settings
Fixes #4890
2022-02-25 12:11:57 -05:00
Sale Djenic 4f65286ead refactor(@desktop/browser): move provider logic to `status-go`
Fixes #4693
2022-02-21 15:22:22 +01:00
Alexandra Betouni 8e6ae3c047 fix(Browser) Transaction Popup was misaligned
Fixed transaction popup position
Fixed JSDialogWindow title was going
off popup boundaries

Closes #4361
2022-02-15 00:06:21 +02:00
Jonathan Rainville b7bfd334f3 feat(ens): [re-add] new backend
Fixes #4694

also add back pending transaction
2022-02-10 09:24:38 -05:00
Patryk Osmaczko ba7a6d5d34 style: remove trailing whitespaces 2022-02-09 11:16:23 +01:00
Jonathan Rainville d4410c1aa7 fix(browser-provider): fix browser provider not asking for authorization
Fixes #4721
2022-02-04 13:21:10 -05:00
Noelia bed7ca20fb fix(@desktop/browser): [base_bc] renaming bookmark is not persistent
Edit existing bookmark name is now correctly updated in the view.

Fixes #4549
2022-02-01 11:51:31 +01:00
Noelia caa85a79b4 fix(@desktop/browser): [base_bc] permissions modal looks off in dark mode
Add Theme in ´StatusBaseText´ components used in ´BrowserConnectionModal´.

Fixes #4547
2022-02-01 11:50:51 +01:00
Noelia 2a1e7b3a2d fix(@desktop/browser): [base_bc] add a bookmark ui is broken
Browser header is now correctly placed when trying to add a bookmark.

Fixes #4548
2022-02-01 11:50:50 +01:00
Jonathan Rainville a027ec98f8 refactor(community): add member list model and hook it + updates to comm 2022-02-01 11:49:34 +01:00
Sale Djenic e220599612 refactor(@desktop/general): necessary changes applied due to refactored `Contacts` sub-section of the `Settings` section 2022-02-01 11:47:46 +01:00
Alexandra Betouni 0eb40287fa refactor: removed dynamic scoping from shared module
Properties and functions moved to Global:
- toastMessage
- openProfilePopup()
- getProfileImage()
- popupOpened

Closes #4248
2022-02-01 11:46:39 +01:00
Sale Djenic 6e1438d241 refactor(@desktop/general): `globalUtils` instance added (changed old `utilsModel`) 2022-02-01 11:44:56 +01:00
Khushboo Mehta f41ed8a522 fix(@desktop/browser): Clicking on add buttons adds the same button twice
fixes #4280
2022-02-01 11:44:42 +01:00
Sale Djenic b3f8af8e06 refactor(@desktop/general): qml code referring to the old code base commented out
Qml code referring to the old code base commented out, but not deleted,
due to easier refactoring the rest of the app.
2022-02-01 11:42:42 +01:00
Khushboo Mehta 83d4aaa0e8 refactor: remove dynamic scoping from browser module
closes #4246
2022-02-01 11:39:45 +01:00
Alexandra Betouni 336f90a60f feat(desktop/wallet) Removed dynamic scoping from wallet
Removed all dynamic scoping parts in wallet section plus

- Renamed Config to Global and added more functions there
- Moved changeAppSectionBySectionType function to Global
  and updated all places where is used to call it from
  Global instead
- Moved openLink function to Global and updated all places
  where is used to call it from Global instead
- Moved errorSound to Global, introduced playErrorSound
  function  and updated all places where is used to call
  this function from Global instead

Closes #4245
2022-02-01 11:38:27 +01:00
Sale Djenic 6e3b065d34 refactor(@desktop/general): app sections handled within main module 2022-02-01 11:32:28 +01:00
Khushboo Mehta 619d0e56ac fix(@desktop/wallet): browser tab, can't click send button
fixes #4351
2022-01-05 16:30:17 +01:00
Richard Ramos f5d53f9112 refactor: move provider logic to status-go 2021-12-22 16:13:23 +00:00
Khushboo Mehta b1746d6d8e fix(@desktop/browser): Website URL overlaps with reload and add favourite buttons
fixes #4214
2021-12-06 11:29:15 +01:00
Khushboo Mehta 5b9f5f5990 fix(@desktop/browser): Sign message to dapp is broken
fixes #4154
2021-11-24 10:45:08 +01:00
Khushboo Mehta f475e7edbd fix(@desktop/browser): Wallet permissions and enter password modals are stretched
fixes #4150
2021-11-24 10:44:59 +01:00
Anthony Laibe ebaa150082 fix(@desktop/tx): Fix tx modal 2021-11-22 10:04:12 +01:00
Richard Ramos 29b1d30bed fix: connection modal 2021-11-19 10:19:11 -04:00
Richard Ramos a9a5469f72 fix
- missing account color and balance
- revoking permission on account change
- UI errors on message signing modal
2021-11-19 10:19:11 -04:00
Richard Ramos f9b08abd72 fix: review 2021-11-19 10:19:11 -04:00
Richard Ramos 1989ad7971 refactor!: provider transactions 2021-11-19 10:19:11 -04:00
Khushboo Mehta da28629ffc fix(@desktop/browser): Fix for Favorites bar is not shown without disabling and enabling toggle
Also fixed issue of overlap after a switch between disbaled to enabled state

fixes #4105
2021-11-17 15:43:52 +01:00
B.Melnik 663fea0272 fix: Fix missing setup url for new opeed tab
Closes: #4107
2021-11-16 20:43:18 +03:00
Anthony Laibe da4d895131 fix(desktop/browser): Fix add bookmark button
This button needs special case when it is not a real bookmark
2021-11-15 19:54:02 +01:00
Khushboo Mehta 1f636e1198 fix(@desktop/browser): Fix for custom homepage not launched in dapp browser
fixes #4036
2021-11-11 09:29:00 -05:00
Richard Ramos 46f9e1fc93 fix: provider chainid format 2021-11-05 15:55:35 -04:00
Khushboo Mehta 0d7d09e351 fix(@desktop/browser): Add new bookmark Modal doesnt display url and name of website.
Also fixed behaviour of add/removing a bookmark.

fixes #4037
2021-11-05 15:35:05 -04:00
Pascal Precht 313208cfd4 fix(@desktop/browser): fix paste button in favorites modal
This fixes the base button in the favorites modal by replacing the legacy
`Input` component with StatusQ's `StatusInput` and `StatusButton` components.

It also updates the validation mechanism to use the one provided by StatusQ.
The `height` of the modal has been adjusted due to its content growing when
validation errors are shown.

This will go away as soon as we replace `ModalPopup` with `StatusModal`.

Fixes #3977
2021-11-05 11:02:45 -04:00
Richard Ramos c0d87dd063 refactor: provider pt1 and dapp permissions service 2021-11-05 11:02:45 -04:00
Sale Djenic f0b2ed6cca refactor(@desktop/general): `appSettings` moved to Nim 2021-11-05 11:02:45 -04:00
Richard Ramos 70c1095b60 refactor: creating module for bookmarks and provider 2021-11-05 11:02:45 -04:00
Alexandra Betouni 426c116bac refactor(desktop) Made shared a QML module
Use it as import shared 1.0, import shared.controls 1.0
etc instead of import "../../../shared"

Closes #3934
2021-10-27 18:05:45 -04:00
Pascal Precht 8617c70742 refactor: remove AccountSelector and replace with StatusAccountSelector 2021-10-27 11:48:43 -04:00
Alexandra Betouni 056f84c301 refactor(desktop/chat) Cleaning up popups 2021-10-26 16:22:49 -04:00
Pascal Precht 2db77fa31c refactor: replace StatusIcon and StatusLoadingIndicator with StatusQ components 2021-10-26 10:47:47 -04:00
Richard Ramos 7fe218fc85 fix: missing property in browser backend and path to provider.js
Fix #3827
2021-10-26 14:33:37 +02:00
Khushboo Mehta 14b49b800a refactor: remove StatusIconButton from ui/shared/status
fixes #3832
2021-10-26 08:27:11 -04:00
Pascal Precht 684d0b30b6 refactor(@desktop/browser): use StatusQ controls in browser module 2021-10-21 09:22:35 -04:00
Pascal Precht ecec858594 refactor(Browser/FavoritesBar): use StatusQ StatusModal and StatusButton 2021-10-21 09:22:35 -04:00
Alexandra Betouni 9cc361c40a refactor(desktop/chat) Moving chat to new architecture
Closes #3710
2021-10-20 15:29:38 -04:00
Pascal Precht 88049eac49 refactor: move `TransactionSigner` to ui/shared/views 2021-10-14 12:51:27 -04:00
Pascal Precht 87ea584b62 refactor: move `Timer` to ui/shared/controls 2021-10-14 12:51:27 -04:00
Pascal Precht 0b302c08a3 refactor: move `StyledTextField` to ui/shared/controls 2021-10-14 12:51:27 -04:00
Pascal Precht 61ccf9c757 refactor: move `StyledText` to ui/shared/panels 2021-10-14 12:51:27 -04:00
Pascal Precht 638e91717e refactor: move `Separator` to ui/shared/panels 2021-10-14 12:51:27 -04:00
Pascal Precht 322a071aa3 refactor: move `SVGImage` to ui/shared/panels 2021-10-14 12:51:27 -04:00
Pascal Precht 273f0f8961 refactor: move `RoundedIcon` to ui/shared/panels 2021-10-14 12:51:27 -04:00
Pascal Precht 37e71ca431 refactor: move `RecipientSelector` to ui/shared/controls 2021-10-14 12:51:27 -04:00
Pascal Precht fa3adb30e4 refactor: move `PopupMenu` to ui/shared/popups 2021-10-14 12:51:27 -04:00
Pascal Precht cbfe90947e refactor: move `ModalPopup` to ui/shared/popups 2021-10-14 12:51:27 -04:00
Pascal Precht 86a57a308b refactor: move `LabelValueRow` to ui/shared/panels 2021-10-14 12:51:27 -04:00
Pascal Precht bdc7c799d2 refactor: move `Input` to ui/shared/controls 2021-10-14 12:51:27 -04:00
Pascal Precht dc81cda66c refactor: move `CopyToClipboardButton` to ui/shared/controls 2021-10-14 12:51:27 -04:00
Pascal Precht 5d05b415ba refactor: move view and panels components into controls if they belong there 2021-10-14 12:51:27 -04:00
Pascal Precht 2d47223e1c refactor: move `AccountSelector` into ui/shared/panels 2021-10-14 12:51:27 -04:00
Pascal Precht 4e8f2303e6 refactor(@desktop/profile): introduce new QML and store structure in profile section
Closes #3712
2021-10-14 09:29:05 -04:00
Khushboo Mehta 80de3f75eb fix(@desktop/wallet): move QML Wallet section to new architecture
fixes #3714
2021-10-13 13:53:01 -04:00
Khushboo Mehta 77bde47de0 \refactor: move QML Browser section to new architecture
closes #3709
2021-10-05 16:29:18 -04:00
Alexandra Betouni 4ee21ada05 feat(desktop) Added image function in Style
Introduced Style.svg() Style.png() Style.emoji() and
Style.icon() in Style.qml. Those should be used to
set the source in Images instead of using relative
paths. Usage:
Image {
   source: Style.svg("check)
   ....

Also moved all Singletons inside a new "utils"
folder and made it a QML module, to use
import utils 1.0 instead of relative paths

Closes #3678
2021-09-28 15:28:00 -04:00
Anthony Laibe 336ea968de refactor: browser use object 2021-09-28 15:25:57 -04:00
Richard Ramos 285f54dab6 EIP1559 2021-09-10 13:42:19 -04:00
Khushboo-dev-cpp 7d5fac46f1 fix(@desktop/browser) Websites with transparent background not handled properly
Removed background color assignment as by default it is set to white if unassigned. This fixes the issue of strange grey background in dark mode with white components from websites with transparent background

fixes #3209
2021-08-20 14:59:12 -04:00
Khushboo Mehta 27ff37e166 fix(@desktop/browser): Favorite list get truncated when its too long
Adapted the bookmark list to a grid view to accomodate items when the list gets long.
Max column size is 7 and in case screen cannot show 7 columns it will flow to the next row.
Also added ideinticon for a website with no icon
Fixed the issue of DApps launching on all new tabs.

fixes #2009
2021-08-19 11:15:55 -04:00
Anthony Laibe 2b027088e5 fix(@desktop/browser): hide favorite bar when there is none
fixes #3210
2021-08-13 12:35:17 -04:00
Jonathan Rainville 164efde2c4 chore(theme): add dropShadow theme color and use it where needed 2021-08-02 17:02:01 -04:00
Andrei Smirnov 5d837c450c Fixed issues #2560, #2795, #2796. 2021-07-02 08:51:14 -04:00
Jonathan Rainville 702f52f6ed fix(browser): fix browser undefined model 2021-06-22 12:59:11 -04:00
Iuri Matias 599bf731fb refactor: extract 'channels' to its own file 2021-06-18 12:12:01 -04:00
Iuri Matias 6bcdb9ca54 refactor wallet views
add getSettings methods to src/status

fix issue with calling getSettings; document issue

remove most direct references to libstatus; document some common issues

remove most references to libstatus wallet

add mailserver layer to status lib; remove references to libstatus mailservers

remove libstatus accounts references

move types out of libstatus; remove libstatus types references

remove libstatus browser references

refactor libstatus utils references

remove more references to libstatus stickers

remove references to libstatus constants from src/app

remove more libstatus references from src/app

refactor token_list usage of libstatus

refactor stickers usage of libstatus

refactor chat usage of libstatus

remove libstatus references from the wallet view

remove logic from ens manager view

fix issue with import & namespace conflict

remove unnecessary imports

refactor provider view to not depend on libstatus

refactor provider view

refactor: move accounts specific code to its own section

fix account selection

move collectibles to their own module

update references to wallet transactions

refactor: move gas methods to their own file

refactor: extract tokens into their own file

refactor: extract ens to its own file

refactor: extract dappbrowser code to its own file

refactor: extract history related code to its own file

refactor: extract balance to its own file

refactor: extract utils to its own file

clean up wallet imports

fix: identicon for transaction commands
Fixes #2533
2021-06-17 16:11:01 -04:00
Eric Mastro 0b0a542828 fix: loading of wallet history, display of tx datetime
Fixes: #2539.

Transaction history is now correctly being fetched from status-go as per mobile. Firstly, when accounts are added (ie as watch accounts), `wallet_checkRecentHistory` must be called first so that the status-go db is populated. After that, `wallet_getTransfersByAddress` can be called. On app load, when we run the `initBalance` logic, we are calling `wallet_getTransfersByAddress`, asking for the last 20 transactions with the `loadMore` parameter set to false. When the user navigates to the Wallet > History tab, they can then click “Load More” to fetch more transactions from status-go. Once the number of transactions returns false below the expected amount, the remaining transactions to fetch have been exhausted and the “Load More” button is disabled.

feat: add non-archival node warning to the UI to indicate to the user that they may not have complete results

feat: set active account to the added account
Once an account is added to the wallet, that newly added account is selected as the active account.

1. The “load more” button is active when new transactions that aren’t already displayed are returned from `wallet_getTransfersByAddress`. This is the only way to enable or disable the “Load more” button as status-go is not able to return information regarding whether or not there are more transactions to be fetched. The downside to this is that lets say the last page of transactions is returned, but there are no more pages left. These returned txs are not currently displayed, so the “load more” button will still be enabled. However, the next click of the button will return 0 results, thus disabling it. It’s effectively an extra click to get to the disabled state.
2. For more information on how the `toBlock` parameter operates for the `wallet_getTransfersForAddress` RPC call, see https://notes.status.im/XmENTrVRRaqhwE4gK0m8Mg?view.
2021-06-10 10:47:03 +10:00
Richard Ramos 5895495bc3 Add missing accountsChanged event to web3 provider
Fixes #2423
2021-05-18 15:24:41 -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
Richard Ramos 7ee11e27e2 fix: can't send transactions on browser
Fixes #2433
Fixes #2422
2021-05-03 14:13:41 -04:00
Pascal Precht aa8d9a7f48 feat: introduce StatusLoadingIndicator component
A `StatusIcon` that rotates infinitely and can be used for indicating
pending states.

Usage:

```
StatusLoadingIndicator {
    width: 24 // default: 17
    height: 24 // default: 17
    color: "red" // default: loading asset color
}
```

This also removes `LoadingImage` component from `ui/shared`.

Closes #2360
2021-04-27 14:56:09 -04:00
B.Melnik e211acae9b feat: process activeFocusChange event and select all in address line in Browser 2021-04-22 09:58:24 -04:00
B.Melnik 9dc51b82fd feat: add processing CTRL + W to Browser 2021-04-20 12:59:59 -04:00
B.Melnik 35b8699f9f feat: add https protocol to urls without protocol in Browser 2021-04-20 12:06:49 -04:00
Iuri Matias 9621230e6d update default settings 2021-03-16 16:51:14 -04:00
Iuri Matias 9c404a1047 show browser favourites bar by default 2021-03-16 16:51:14 -04:00
Jonathan Rainville 0e699cac65 chore: run translation scripts 2021-02-18 15:23:58 -05:00
Pascal Precht 62183fb414 refactor: replace StyledButton with StatusButton
There are some inconcistencies in the application when it comes to
button UI elements because we're using `StatusButton` in some places,
in other we use `StyledButton`. The latter is the original
component we've created when we started out building Status
Desktop, but is planned to be removed entirely in favour of
`StatusButton`.

This commit replaces the usages of `StyledButton` with `StatusButton`
2021-02-02 10:57:42 +01:00
Jonathan Rainville e459d4dbd4 fix: fix PopupModal to not show a footer at all if there is no children 2021-01-13 14:32:35 -05:00