Commit Graph
126 Commits
Author SHA1 Message Date
Jaco 607f4b3e3b 2022 (#957) 2022-01-01 09:26:35 +02:00
Jaco fc76a8c4b6 Rename *.test.ts -> *.spec.ts (#948)
* Rename *.test.ts -> *.spec.ts

* *.test.tsx -> *.spec.tsx
2021-12-28 11:59:17 +02:00
Jaco 2884060027 Add tsconfig references (#929)
* Add tsconfig references

* Adjust

* tesconfig.eslint.json

* lint includes

* test paths
2021-12-14 08:44:38 +02:00
Jaco 686f344a38 Adjust import to polyfill for non-Chrome (#917)
* Adjust import to polyfill for non-Chrome

* Update packages/extension-ui/src/index.ts

* Remove spurious console.log

* Dedupe error log

* Update error log catch

* Adjust

* Update packages/extension-ui/src/components/Address.tsx

* linting

* Adjust
2021-12-10 12:49:32 +02:00
Jaco 9e9911dc8a Allow for creation via QR seed (#918) 2021-12-10 10:19:29 +02:00
Jaco 7150c52a56 Bump deps (#894)
* Bump deps

* Bumps

* i18next fix

* Adjust provider signature
2021-11-18 15:28:32 +02:00
Jaco cf503c6662 Correctly use chain type in account creation (#882)
* Correctly use chain type in account creation

* CHANGELOG
2021-11-08 12:09:50 +02:00
Thibaut Sardan 3d5d63b00a Add account filtering feature (#832)
* add account filter

* Update packages/extension-ui/src/partials/Header.tsx
2021-11-07 13:38:55 +02:00
Jaco c41566c461 Bump dev (w/ eslint 8 & fixes) (#855) 2021-10-18 08:11:26 +03:00
Jaco 8ea2d6fa4c Condense menu (#818) 2021-09-14 14:45:52 +02:00
Jaco 6a9f58952e Jest config cleanup (#807)
* Jest config cleanup

* jsx linting
2021-09-01 18:39:04 +02:00
Jaco cf072c459b Bump dev (w/ jsx linting) (#799) 2021-08-26 10:38:54 +02:00
Antoine EstienneandCrystalin b9e7c37944 Allow ethereum format for ethereum chains (#776)
* allow ethereum format for ethereum chains

* remove logs

* remove load event

* lint

* add ethereum and handle ethereum format

* Moves onChangeNetwork outside of rendering

* Restore window load event

* Lint

* Updates create account test

Co-authored-by: Crystalin <alan@purestake.com>
2021-08-22 20:33:00 +02:00
Jaco b39a4b00de Bump deps (#759) 2021-06-23 11:18:41 +02:00
Nikos Kontakis a8c9166735 Fix issue that was breaking extension ui (height collapsed and non-visible); Fixes #720 (#731) 2021-05-31 06:41:44 +02:00
Jaco Greeff a14651ab7f 0.37.2 (#661)
* 0.37.2

* Update CHANGELOG.md

* Update CHANGELOG.md

* Build packageInfo

* autolint
2021-02-28 15:16:02 +01:00
Thibaut Sardan ed35f3de97 Icon consistency (#641)
* icon consistency consistent

* make icons consistent

* nit
2021-02-01 16:48:39 +01:00
Thibaut Sardan 05e5d4d512 fix renaming position, enter and error background (#634) 2021-01-27 18:33:01 +01:00
Thibaut Sardan e8c1dc17f9 allow giving a name to ledger (#630) 2021-01-25 19:40:46 +01:00
Thibaut Sardan 2b9274c40f Add network selector when importing an account with mnemonic, and refactor (#627)
* add network selector and refactor

* fr trad that didnot apprear before

* with useRef

* font-size

* nit still failing

* and that work .. but not what I need

* giving up on the test :(
2021-01-25 18:20:35 +01:00
Thibaut Sardan ef9ac7b941 Fix toggle offset when the dropdown has a label (#626)
* fix toggle offset

* and a forgotten trad

* and a forgotten trad
2021-01-22 14:23:46 +01:00
Thibaut SardanandJaco Greeff 8d351e06c4 Ledger nano support (#624)
* networks

* bump

* wip

* settings checkbox

* add @polkadot/networks and hw-ledger

* bump

* wip

* better error

* cleanup

* icon, cannot change genesis, tests for address and account

* clean workflow with refresh

* bump keyring

* I said bump keyring

* Add siging - unexpected call index

* can sign

* refactor

* refactor useLedger

* better error

* first time flow in a new window

* stray comments

* cleanup

* useless rerendering because of t :|

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* number casting after select

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* address comment

* parenthesis

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-01-21 15:22:28 +01:00
Thibaut Sardan 967b69ffde Refactor seed import and add explicit derivation path field (#619)
* refactor import from seed

* stray import

* clean up duplicates

* remove unneeded global suri

* wip use AccountNamePassword component

* AccountNamePasswordCreation component and tests

* use in Derive and enhance test

* extract SeedAndPath in dedicated component

* fix disabled button

* pass address

* keep address in component
2021-01-13 10:31:26 +01:00
Thibaut Sardan 261e357bd5 with useEffect (#609) 2021-01-04 15:31:03 +01:00
Jaco Greeff 297b2af14c 2021 (#605) 2021-01-03 11:33:53 +01:00
Thibaut Sardan f381fa1722 Some more tests for the Address component (#599)
* child accounts and network info with metadata

* typo
2020-12-24 10:46:12 +01:00
Thibaut Sardan fb378d6f7b Add tests for Address component (#597)
* generic test suite for ed, sr ecdsa and ethereum

* extend with account not from context

* stray comments

* with genesis hash and tiny bug fix!

* cleanup and external account name

* beforeEach -> beforeAll
2020-12-23 16:03:45 +01:00
3c43132cf0 Support ethereum accounts (#560)
* refactor restoration

* support eth icon

* hack with as any

* remove hack

* bump keyring

* recode and correctly import Json

* create and restore by seed

* lint

* glitch

* cleanup

* remove restoration and creation

* fix yarn.lock

* round icons

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-18 11:44:31 +01:00
Thibaut SardanandJaco Greeff 722fc4bf1a Website access management (#589)
* list websites

* persist in local storage

* with filter and styling

* cleanup

* styling for long list

* fix icon alignment and lint

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* add return ( )

* lint

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-17 14:02:53 +01:00
Thibaut SardanandGithub Actions 07951f472b hide too long names (#581)
Co-authored-by: Github Actions <action@github.com>
2020-12-12 10:44:44 +01:00
Thibaut SardanandGithub Actions 2ae1c6b86b use account info to retrieve genesisHash (#575)
Co-authored-by: Github Actions <action@github.com>
2020-12-11 12:24:07 +01:00
Jaco Greeff 52505a9183 Dev bumps (#576) 2020-12-11 12:23:01 +01:00
Jaco Greeff dec07f6e96 Bump dev (import sorting) (#564)
* Bump dev (import sorting)

* Bump dev
2020-12-08 11:20:57 +01:00
Jaco Greeff 58b1320d41 Use type import (#556)
* Use type import

* Small updates
2020-12-01 14:18:19 +01:00
Thibaut SardanandGithub Actions 10a7db7066 Fix error overlap and translation (#557)
* fix error overlap and translation

* translation

Co-authored-by: Github Actions <action@github.com>
2020-12-01 14:17:59 +01:00
1cb36bb73c unify warning and error and add capslock warning (#545)
* unify warning and error and add capslock warning

* Update packages/extension-ui/src/Popup/Signing/Unlock.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/extension-ui/src/Popup/Derive/SelectParent.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* check capslock using onKeyPress

* lint

* fix tests

* add test for caps-lock

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-11-25 13:20:07 +01:00
6b43954d05 Hide visibility button on signing popup (#543)
* hide visibility button

* Update packages/extension-ui/src/components/Address.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-11-24 12:12:58 +01:00
Thibaut SardanandGithub Actions 3aa54a081c Ability to set account visibility from main screen (#523)
* set in/visibility on main screen

* change title

Co-authored-by: Github Actions <action@github.com>
2020-10-31 08:18:07 +01:00
Thibaut SardanandGithub Actions 9b33cc579c Use nunito fonts (#530)
* use nunito

* set to 400 (or remove since 400 is default)

* style.

Co-authored-by: Github Actions <action@github.com>
2020-10-30 09:55:09 +01:00
Thibaut SardanandGithub Actions 6eb9c7ab31 Fix error field being shown before entering any name (#522)
* fix test and bug

* use useIsMounted hook

Co-authored-by: Github Actions <action@github.com>
2020-10-26 22:08:03 +01:00
e7fb3651ab Style component global cleanup (#518)
* ButtonArea

* List

* Box and Welcome screen

* Svg

* remove single used Title

* ValidateInput

* VerticalSpace

* View

* Export

* Forget

* DropdownAddress

* Accounts

* Request

* Authorize

* SelectParent

* Header

* Menu item spacing

* fix tests

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Refactor Request into smaller components (#519)

* refactor into smaller components

* stray component

* Update packages/extension-ui/src/Popup/Signing/Request/SignArea.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* lint

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-23 20:26:14 +02:00
Thibaut SardanandGithub Actions 34e16c2a04 Refactor password error in request pop up and remember checkbox (#503)
* error and remember checkbox refactoring

* make it build

* remove margin

Co-authored-by: Github Actions <action@github.com>
2020-10-20 16:34:48 +02:00
Thibaut SardanandGithub Actions f4d705ed13 use overflow auto (#511)
Co-authored-by: Github Actions <action@github.com>
2020-10-20 15:18:10 +02:00
fe4148f12f Use FontAwesome as much as possible (#499)
* header

* menuAdd

* bring in regular and ActionText

* settings menu

* replace arrow-left

* warning

* lock unlock derivation path

* fix test Header

* fix test Header

* alpha ordering

* neutral colors for menu icons

* Update package.json

* add a back button hover color (#502)

Co-authored-by: Github Actions <action@github.com>

* Update package.json

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-17 17:03:01 +02:00
Thibaut SardanandGithub Actions 7d6542fba7 Use @polkadot/networks (#504)
* use @polkadot/networks

* address comments

* icon is set

* pull latest beta

* filtering out if no genesis

Co-authored-by: Github Actions <action@github.com>
2020-10-16 14:35:41 +02:00
Thibaut Sardan a11244adf4 Show a specific icon on external account (#484)
* icon to show external account

* revert renaming

* lint

* use find instead of some

* before the name

* Update packages/extension-ui/src/Popup/Forget.tsx

* Update packages/extension-ui/src/components/Address.tsx
2020-10-10 12:01:05 +02:00
Thibaut SardanandJaco Greeff 91cfad0c0e Add error boundaries with fallback component to show any error (#471)
* add error boundaries with fallback component

* use own ErrorBoundaries

* fix build

* simplistic implementation

* Update packages/extension-ui/src/components/ErrorBoundary.tsx

* keep fragments

* at the root only

* weird svg error

* double click needed

* remove trigger

* demove errorDisplay and move goHome to class

* cleanup and button

* Update packages/extension-ui/src/Popup/ImportSeed.tsx

* use trigger

* remove intentionnal error

* Update packages/extension-ui/src/Popup/index.tsx

* Update packages/extension-ui/src/components/ErrorBoundary.tsx

* fix build

* Update packages/extension-ui/src/Popup/index.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-10 10:42:35 +02:00
Jaco Greeff bc4e57e353 SPDX (#459) 2020-09-17 16:12:32 +02:00
Thibaut Sardan 539a0a9c5f fix back button (#438) 2020-09-07 17:38:40 +02:00
Jaco Greeff 206c0b4d85 Swap to actual react-i18next (#431)
* Swap to actual react-i18next

* Update i18n creation
2020-09-04 16:32:42 +02:00