Commit Graph

171 Commits

Author SHA1 Message Date
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
db23034502
Some more FR translations and fix a forgoten one (#600)
* translate and fix a forgoten one

* better translation
2020-12-24 15:13:52 +01:00
Thibaut Sardan
df88d6adab
Separate derivation and creation flow (#596)
* separate new and derived creation

* fix tests
2020-12-24 13:49:42 +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
Thibaut Sardan
57635016a6
Prevent eth accounts to be selected for derivation (#595)
* prevent eth accounts to be selected

* stray log

* use type && [ed25519, sr25519, ecdsa].includes(type)

* use utils

* fix test

* proper testing for eth

* fix derive test (will change these soon anyway)
2020-12-18 15:18:06 +01:00
Thibaut Sardan
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 Sardan
4d6242965a
Show error upon wrong password on Export screen (#594)
* add spinner to forget button

* error and test on export with wrong password

* reset error when typing and test
2020-12-18 11:12:15 +01:00
Thibaut Sardan
3b7ce27e7e
Show the account's name typed in on Account creation screen (#593)
* show name on account card

* with useCallback
2020-12-17 15:18:47 +01:00
Thibaut Sardan
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 Sardan
ba7cf362ea
Fix signing tests and unskip them (#565)
* init with warning on wrong password

* switching between requests

* switching between requests

* all passing

* stray logs

* cleanup

* Signing Test with decodeding (#591)

* decode error

* as unknown

* with decoding :)

* lint

* stray comment/logs

Co-authored-by: Github Actions <action@github.com>
2020-12-17 13:36:57 +01:00
Jaco Greeff
ff4209455e
Hide parent password/path when non-deriving (#586)
* Hide parent password/path when non-deriving

* add test

Co-authored-by: Github Actions <action@github.com>
2020-12-14 12:18:39 +01:00
Thibaut Sardan
07951f472b
hide too long names (#581)
Co-authored-by: Github Actions <action@github.com>
2020-12-12 10:44:44 +01:00
Thibaut Sardan
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
Thibaut Sardan
3b4c01ac5d
refactor restoration (#554)
Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-03 15:25:22 +01:00
Jaco Greeff
58b1320d41
Use type import (#556)
* Use type import

* Small updates
2020-12-01 14:18:19 +01:00
Thibaut Sardan
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
Jaco Greeff
a89450ae21
Show method decode fallback error/log (#550)
* Show method decode fallback error/log

* Pass only valid chains to decode

* Fix metadata registry injection
2020-11-29 11:50:58 +01:00
Thibaut Sardan
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
Jaco Greeff
7eb6e11d5b
Bump deps (#544) 2020-11-24 13:58:14 +01:00
Thibaut Sardan
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 Sardan
e6b608ff80
Show error on wrong parent password when deriving (#527)
* show error on wrong parent password

* add tests

* fix test

* group button and error tests

* Show error upon wrong derivation suri (#528)

* show error when wrong suri and fix tests

* alpha ordering and stray log

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

Co-authored-by: Github Actions <action@github.com>
2020-11-24 08:40:00 +01:00
Thibaut Sardan
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 Sardan
a9dd655612
french translation (#529)
Co-authored-by: Github Actions <action@github.com>
2020-10-31 07:59:14 +01:00
Thibaut Sardan
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 Sardan
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
Thibaut Sardan
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
Jaco Greeff
60fa6d2c33
Bump deps (#521)
* Bump deps

* linting

* React 17 support for enzyme
2020-10-23 14:12:11 +02:00
Thibaut Sardan
e5eef19d04
remove deprecated util-crypto setSs58 (#516)
Co-authored-by: Github Actions <action@github.com>
2020-10-21 16:52:01 +02:00
Thibaut Sardan
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 Sardan
f4d705ed13
use overflow auto (#511)
Co-authored-by: Github Actions <action@github.com>
2020-10-20 15:18:10 +02:00
Thibaut Sardan
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 Sardan
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
154a836e00
Password caching refactoring (#489)
* refactor password caching

* use an update cache function

* rename update -> refresh

* reject when password expired

* refactor the refactoring without messaging

* lint

* Update packages/extension-base/src/defaults.ts

* use timeout in popup

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-15 11:57:47 +02:00
Thibaut Sardan
ae9227ef6d
Add phishing site detection, redirection and information (#488)
* missing type declarations for @polkadot/phishing

* phishing landing page

* Update packages/extension-base/src/background/types.ts

* wording make it short

* fix build

* add test for xml pdf utils

* fix export

* Update packages/extension-base/src/utils/isXmlOrPdf.ts

* use Trans from i18n

* alpha ordering

* i18nKey

* lint

* move pdf and xml detection to enable to prevent unwanted redirection

* styled component refactoring

* import odering

* remove a css hack :)

Co-authored-by: Github Actions <action@github.com>
2020-10-13 14:14:55 +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 Sardan
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
Thibaut Sardan
ba96ce7337
Groupe accounts by network and sort by name, path, creation date (#481)
* sort by name

* compare by path

* fixed and added tests

* sort by network first

* add comment

* use localCompare

* use the same sorting name - path - creation everywhere

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-07 13:25:25 +02:00
Thibaut Sardan
61d4d9efe8
Fix derive suggestion when switching root (#483)
* fix and refactor tests a little

* no test possible :(
2020-10-06 20:10:12 +02:00
Thibaut Sardan
7c01b9e658
Refactor open window (#473)
* add mnemonic redirect like json

* undefined not allowed because request is a defined object

* Apply suggestions from code review

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

* remove redirect

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-01 16:13:47 +02:00
Thibaut Sardan
d713f48a51
Fix missing translations (#475)
* fix fixmes

* fix translation generation
2020-10-01 15:51:06 +02:00
Thibaut Sardan
4fb1fd6067
Add i18n language change dropdown (#467)
* add dropdown and make it work

* clean up

* Update packages/extension-ui/src/util/languages.ts

* lint

* remove lang detection

* rename and clean up getLanguage options util
2020-09-30 21:19:29 +02:00
Thibaut Sardan
68ec6f7c13
Share PASSWORD_EXPIRY default between components (#463)
* generic time

* share expiry minutes and ms

* edit translation
2020-09-22 12:12:46 +02:00
Jaco Greeff
bc4e57e353
SPDX (#459) 2020-09-17 16:12:32 +02:00
Jaco Greeff
38fc061c93
0.34 (#453) 2020-09-15 09:25:40 +02:00
Thibaut Sardan
539a0a9c5f
fix back button (#438) 2020-09-07 17:38:40 +02:00
Jaco Greeff
12ce4af694
Basic optimizations (#432)
* Basic optimizations

* CHANGELOG
2020-09-04 16:53:34 +02:00