Commit Graph

56 Commits

Author SHA1 Message Date
Jaco
0870570407
Adjust styles for styled-components 6.x (#1279)
* Adjust styles for styled-components 6.x

* Additional cleanups

* Cleanups

* Adjust

* styled with <Props>

* Adjust

* Additional

* Theme jiggling

* Non-vars overrides

* Adjust

* Adjust

* Adjust
2023-08-20 09:39:29 +03:00
Jaco
c7dac675e0
Adjust hooks for index import (#1271) 2023-07-11 11:07:38 +03:00
Jaco
727f14f2c3
Adjust object index typings (#1265)
* Adjust object index typings

* CHANGELOG

* Bump common

* Bumpo ui

* 0.46.5

* Bump util
2023-06-12 08:50:26 +03:00
Jaco
a5380d268f
Move type-only imports (w/ verbatimModuleSyntax) (#1245) 2023-04-02 11:49:57 +03:00
Jaco
6bfddb09e8
Use .js imports in src (#1224)
* Use .js imports in src

* Bump dev

* Add WP extension aliases
2023-03-09 11:04:13 +02:00
Jaco
3b2dedc05d
Bump deps (#1213) 2023-02-20 13:13:31 +02:00
Jaco
c71492a5f4
Update headers for 2023 (#1189) 2023-01-01 10:23:00 +02:00
Thibaut Sardan
00aa001c80
Account selection when authorizing a website (#1068)
* account selection design and functionnality

* fix build and tests

* lint

* fix FIXME

* dedicated screen when the user has no account

* add test for no account

* remove websote toggle and isAuthorized property

* place remove auth on the left

* account management

* fix build

* get rid of rejection message - similar to selecting 0 accounts

* show visibility action on account management

* fix build

* nit

* cleanup state on account forget

* add tests for hidden accounts in the auth view
2022-07-14 09:24:50 +03:00
Jaco
607f4b3e3b
2022 (#957) 2022-01-01 09:26:35 +02:00
Thibaut Sardan
05e5d4d512
fix renaming position, enter and error background (#634) 2021-01-27 18:33:01 +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
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
Jaco Greeff
297b2af14c
2021 (#605) 2021-01-03 11:33:53 +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
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
Jaco Greeff
7eb6e11d5b
Bump deps (#544) 2020-11-24 13:58:14 +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
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
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
Jaco Greeff
bc4e57e353
SPDX (#459) 2020-09-17 16:12:32 +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
Jaco Greeff
270930db9e
Plumbing for i18n (key -> key) (#429)
* Plumbing for i18n (key -> key)

* Update test text

* Apply suggestions from code review

* i18next-scanner for extraction
2020-09-04 15:34:15 +02:00
Jaco Greeff
cb8dd7d42d
Remove prop-types overrides (#382) 2020-07-02 11:20:19 +02:00
Jaco Greeff
baf9a7b0a1
Bump deps (#381) 2020-07-02 09:43:25 +02:00
Jaco Greeff
2b2d428868
Sort injected based on creation timestamp (#368)
* Sort injected based on creation timestamp

* Adjust shadow
2020-06-08 09:48:13 +02:00
Jaco Greeff
a7132a95aa
Adjust account menu position (#367) 2020-06-07 12:47:53 +02:00
Jaco Greeff
99b9596bdd
Menu for adding accounts (#366)
* Menu for adding accounts

* Cleanup menu, remove buttons
2020-06-07 09:27:18 +02:00
Jaco Greeff
f773342343
Tie account to genesis (#355)
* Tie account to genesis

* Allow (faster) partial retrieval

* Edit toggles menu
2020-06-01 17:46:30 +02:00
Jaco Greeff
3593bbe6d4
Allow accounts to be hidden, i.e. not injected (#354) 2020-06-01 15:49:05 +02:00
Jaco Greeff
db0b7e0eb3
Display child when parent has been removed (#349)
* Display child when parent has been removed

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

* Small styling updates
2020-05-31 10:51:29 +02:00
Jaco Greeff
837fb52a3a
Bumps w/ eslint (#338)
* Bumps w/ eslint

* Additional

* Additional

* Additional

* Additional

* Additional

* Linting done, tsc fixes remain

* Final round
2020-05-24 12:17:53 +02:00
Ivan Rukhavets
ed36ed24bb
Create new account as a child of a master account by default (#318)
* derive accounts for master account

* Add master field to account context (#75)

* add master field to account context

* add tests for buildHierarchy function

* Fix selection master account

* Add path numeration for derived accounts (#76)

* add path numeration for derived accounts

* Fix PR notices. Add util for Path generation.

* Correct test

Co-authored-by: Ivan Rukhavets <ivanruch@gmail.com>
Co-authored-by: VladStarostenko <vlad@DESKTOP-V12SRE8.localdomain>

* Add arrows to buttons (#77)

* Add parent label (#80)

* refactor parent label

* refactor parent label

* refactor parent label

Co-authored-by: Ivan Rukhavets <ivanruch@gmail.com>

* Implement new create account flow (#78)

* Add copied snackbar (#83)

* refactor parent label

* Add "Copied" snackbar

* Add "Copied" snackbar

* Hide suri input behind a spoiler (#84)

* Disallow changing parent account when 'Derive' option is clicked (#82)

* Add lock to path input (#85)

Co-authored-by: VladStarostenko <38181661+VladStarostenko@users.noreply.github.com>
Co-authored-by: VladStarostenko <vlad@DESKTOP-V12SRE8.localdomain>
2020-05-11 12:27:00 +02:00
Ivan Rukhavets
53d3ebce37
Show labels of account parent (#306)
* Show derived accounts indentation

* Add parent labels

* Update branch

* styling

* CR requests

* Slightly reword derive documentation

* Remove derivation path from account metadata
2020-04-03 10:45:30 +02:00
Jaco Greeff
0be206d4e0
Bump dev, adjust JSX props (#303) 2020-04-01 13:39:47 +02:00
Bartłomiej Rutkowski
eeac2c1064
Allow account creation by derivation from existing one (#296)
* Allow specifying derivation path on account creation (#57)

* Allow specifying derivation path on account creation

* Improve linting and formatting

* Highlight input field when der-path is invalid

* Fix header

* Hide advanced options

* Add tests

* Fix name

* Improve styling

* Change names

* Fix case

* Add arrow icon

* Add smooth transition

* Refactor tests

Co-authored-by: Bartłomiej Rutkowski <bar.rutkow@gmail.com>

* [CI Skip]  0.22.0-beta.7

skip-checks: true

* Import account derivation path (#59)

* Import account derivation path

* Fix test

* fix scroll

* Lint fix

* add tests to importSeed

Co-authored-by: Bartłomiej Rutkowski <bartek@ethworks.io>
Co-authored-by: Kamil <kamil@ethworks.io>

* [CI Skip]  0.22.0-beta.8

skip-checks: true

* Hover and copy button (#58)

* copy button and change hover

* working on

* add Toast

* chage address width

* Minor fixes

* Add cursor: hand

* Finish merge

Co-authored-by: Kamil <kamil@ethworks.io>
Co-authored-by: ivan <ivanruch@gmail.com>

* [CI Skip]  0.22.0-beta.9

skip-checks: true

* Fix build

* [CI Skip]  0.23.0-beta.0

skip-checks: true

* [CI Skip] Undo Github Actions version bump

* [CI Skip] 0.23.0-beta.5

skip-checks: true

* Add derive screen (#60)

* Add derivation screen

* Remove "///password" from derivation path placeholder

* Refactor tests

Co-authored-by: Bartłomiej Rutkowski <bar.rutkow@gmail.com>
Co-authored-by: Anze1m <bartek@ethworks.io>

* Improve account menu; fix linting (#61)

* Fix test

* Fix account menu

* Fix linting

* [CI Skip] 0.23.0-beta.6

skip-checks: true

* Add proper account decoding (#62)

* Add proper account decoding

* Improve tests and error handling

* Fix linting

* Add refactoring

* Update packages/extension/src/background/handlers/Extension.ts

Co-Authored-By: Ivan Rukhavets <ivanruch@gmail.com>

* Fix test

* Fix linting

* Fix actions

* Slight UX improvement

* Add big red button

* Change red button to orange

* Wrap in useCallback

* Fix linting

* Add proper password checking method

* Fix linting

Co-authored-by: Ivan Rukhavets <ivanruch@gmail.com>

* [CI Skip] 0.23.0-beta.7

skip-checks: true

* Apply merge fixes (#65)

* Fix linting

* CI

* [CI Skip] 0.24.0-beta.1

skip-checks: true

* CR requests

* [CI Skip] 0.24.0-beta.2

skip-checks: true

* [CI Skip] 0.24.0-beta.2

skip-checks: true

Co-authored-by: Ivan Rukhavets <ivanruch@gmail.com>
Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Kamil <kamil@ethworks.io>
2020-03-30 16:55:53 +02:00
Amaury Martiny
89dad985fb
Pull out extension-base (#271)
* Create a extension-base package

* Fix lint and test

* Update to beta.3

* Yarn install

* Update package

* Fix merge errors

* Remove useless single-entry folders

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-03-21 11:07:11 +01:00
Jaco Greeff
7efd915506
Bump deps (#216) 2020-01-06 15:27:25 +01:00
Ivan Rukhavets
85db56cd0f Redesign (#203)
* Inject theme using styled-components' ThemeProvider (#3)

* Apply colors from design, styles refactoring (#5)

* Add new tip and accounts screen without accounts (#7)

* Sync with upstream (#10)

* Use Nunito font (#11)

* Create account first page (#14)

* Customizable identicon (#13)

* Inline buttons (#16)

* Welcome screen styling (#17)

* Account creation second step (#15)

* Add new header (#20)

* change welcome screen (#19)

* Account screen (#18)

* Update from upstream (#21)

* Window title (#25)

* New authorize (#24)

* Refactor and remove unnecessary stuff from theme (#22)

* refactor add  accounts screen (#29)

* Export and forget screens, change general padding to 24px (#27)

* Signing screen (#26)

* Import account screens (#31)

* Change header with settings (#28)

* Refactor button and mnemonic (#30)

* Restyle checkbox (#33)

* Remove opacity from background; add borders (#32)

* Code style polishing (#34)

* Move fileMock to __mocks__ (#35)

* Add light theme (#36)

* Small design changes (#38)

* Change background color (#39)

* Sync with upstream (#41)

* Update screenshots in readme

* [CI Skip]  0.14.0-beta.7

skip-checks: true

* fix error for display menu (#42)

* fix display of authorization (#43)

* firefox scrol (#45)

* small change for rename account (#44)

* Sync with upstream

* Print and back button (#48)

* delete print button and change cancel to back button

* Set body color (#49)

* Fix the fix of account rename (#52)

* Update generic sign screen (#47)

* Improve UI/UX design (#53)

* [CI Skip]  0.14.0-beta.10

skip-checks: true

* Improve QR code recognition on dark theme (#54)

* Add proper tx/sign texts and headers (#55)

Co-authored-by: Kamil Dąbrowski <kamil@ethworks.io>
2019-12-20 10:06:43 +01:00
Jaco Greeff
1f858a8024
Button alignment (#182)
* Button alignment

* Adjust test for new button layouts

* Bump deps
2019-10-24 15:48:38 +02:00
Bartłomiej Rutkowski
29122d1f8f Export account (#166)
* setup tests

* export account WIP

* Fix linter errors.

* Frontend test for Export component.

* Test for account export by background handler.

* Add password to export.

* Add simple account export functionality.

* Add dedicated selectors.

* Improve export view layout

* make export textarea bigger

* Fix linter error.

* Update wrapper in test to make it pass.

* test refactoring

* add copying exported JSON to clipboard

* lint fix

* add UI tests

* fix dependencies

* refactoring

* copyright headers; minor refactorings

* make input field blink after entering wrong password

* download exported JSON

* simplify exported JSON download

* removed redundant tests

* disable export functionality for external accounts

* add export restrictions tests

* tests refactoring

* after successful export go back to main screen
2019-10-04 17:03:36 +02:00
Jaco Greeff
4945417982
Mobile signer support (via Qr) (#134)
* Add typings to messages

* Fix eslint (after merge)

* Mobile signer support (via Qr)

* Bump common

* Pass through genesisHash

* Ok, well, it does something... not recognized

* Bump ui

* Exclude build from lint

* **

* Display accounts with prefix from genesisHash

* Adapth for object via scan interface

* Bump deps

* Split address recoding

* Cleanup decoding readability

* Display chain affinity overlay

* -1 prefix dropdown description

* Add generator command

* Fix TypeScript error

* Lint

* Consistent naming

* Better promise error handling

* Small consistency updates

* Constraint handle typings as much as tsc will allow

* State naming

* Typo in cheain descriptions

* Add signature handler (unused)

* e2e roundtrip

* remove (useless) dev 0.5.1 chain

* Insert ActionBar

* Revert to empty Props interfaces

* SeedLengths type

* Add type to transport subscription message

* nit

* Typecheck passing callback to sendMessage when none expected

* Bump api

* Small lint fixes

* Bump  api

* Not sure it works... but linting passes

* Split public/private

* Alphabetical

* Don't show button on no media

* Remove unneeded resolve - NOT hacking around linting

* Pass edited name through to accounts component

* genesisHash alignments

* Remove KeyringJson

* SignRequest with account

* Align with master naming

* Some manual merges

* Manual (small) conflict resolution

* Fixup extension account mapping

* Remove ununsed messages (less code = better)

* Update comment around generation

* Add copy-to-apps script (debugging)
2019-09-06 13:03:55 +02:00
Jaco Greeff
0d1485db6b
Replace with* with useContext as applicable (#135) 2019-09-01 16:07:52 +02:00
Jaco Greeff
92f749c8ab
Typescript-eslint 2 (#132)
* Setup

* Linting fixes
2019-08-31 09:20:00 +02:00
Jaco Greeff
83a50e3081
Bump API (new SignedExtra) (#123) 2019-08-19 10:16:01 +02:00
Jaco Greeff
c70d9a0e63
Swap to eslint (#72)
* 626 problems (430 errors, 196 warnings)

* A start.

* < 200

* 80

* 0
2019-07-12 20:09:44 +02:00
Jaco Greeff
d8728e473e
Display requests with Iconbox (#32)
* Display requests with Iconbox

* Make (X) clickable

* Remove cc-test-reporter
2019-05-26 14:56:18 +02:00
Jaco Greeff
a025f5e752
Rework inputs (#26) 2019-05-24 07:52:25 +02:00
Jaco Greeff
f241e7191d
Introduce the enable() interface (prompts user) (#20)
* Introduce the enable() interface

* Provider

* Add auth requests to state

* injector comments

* Background extension list, spprove & reject

* Cleanups

* Untested, but the UI parts are there (test next)

* linting

* Not pretty, but seems to auth

* Small styling adjustments

* Adjust Box layout slightly

* Small styling adjustments

* signing -> transactions

* isDanger for links

* Styling defaults
2019-05-23 12:43:55 +02:00