Files
trezor-suite/docker
martin 57609e18ed Feat/metadata2 (#2137)
* add oauth receiver file (web, electron)

* add dropbox dependency

* add metadata: actions, middleware, reducer, utils, types

* add metadata services

* add metadata modals

* add metadata storage

* add metadata to TrezorDevice and Account

* add metadata to discovery process

* metadata locally in electron (UserDataProvider)

* Update trezorConnectActions.ts

* use Account metdata in Menu

* tmp: add metadata from tx item

* add DropboxProvider for suite-native

* reset Device.metadata (createInstance, forgetDevice) + update

* labeling button in TransactionItem (remove Container)

* labeling button in Receive

* labeling button in Account Item (Menu)

* labeling button in TransactionItem

* labelling button in SwitchDevice

* update Labeling components

* update MetadataAdd modal

* add missing metadataActions

* fix openMetadataPopup in TransactionItem

* update connect@8.1.8-beta

* update connect files

* implement new fields from connect

* merge develop test

* [wip] metadata: google provider (#2086)

* fix: import fix

* feat: metadata google drive

* native stubs

* test: more tests

* feat: [wip] second path

* feat: settings switch

* feat: metadata progress

* feat: metadata progress

* test: test

* test: pressYes, pressNo, backup fix

* feat: i dont know

* test: does it work now

* test: e2e three basic scenarios

* test: add unit

* feat: bunch of new things

* test: new case

* feat: store metadata locally and sync later

* test: more powerful mocks

* feat: setInterval fetchMetadata and test

* test: split metadata tests by one

* fix: switching providers

* feat: desktop - oauth window closable

* feat: oauth windows in electron

* feat: inline input [wip]

* chore: reimplement stuff after merge

* test: improve

* chore: remova metadata input modal

* feat: nice init/edit/submit

* test: add address labeling e2e test

* feat: tweaking inline input

* feat: better inline input

* feat: remove continue without saving option

* chore: cleanup console.logs

* test: add wallet labeling and output labeling e2e test

* feat: oauth file

* feat: cancel editing if provider not successful

* feat: local oauth files for both providers

* chore: cleanup

* fix: dont save if nothing changed, wait for discovery to finish, and more..

* fix: fix with-passphrase metadata test

* chore: move client ids to constants

* chore: put _error back

* feat: validate oauth state

* test: fix random Id not to be so random in tests

* chore: cleanup

* chore: delete slipped in file

* chore: put back file from develop

* chore: revert unwanted iframe changes

* chore: correct iframe.js

* chore: fix broken git macOS

* chore: split metadata components for better code readability

* feat: add editing field to reducer instead of local state

* fix: add migration to db, filter data to be saved

* fix: get rid of local state in metadata input

it caused troubles in wallets modal

* chore: clean code

* chore: migrations and code cleanup

* fix: dispose device metadata and code cleanup

* chore: texts in error  toasts

* chore: remove isLoading from data providers

* chore: use useDiscovery hook

* chore: remove useEffect from metadata button

* chore: move caret magic to DOM  utils

* chore: remove legacy labeling

* chore: better name for metadata component (MetadataLabeling)

* chore: minor fixes to tests

* absolutePosition for dropdown component, ability to append to arbitrary html element via react portals

* labelling UI improvements

* fix: z-index of dropdown to be over modal

* chore: remove logs

Co-authored-by: Szymon Lesisz <sz.lesisz@gmail.com>
Co-authored-by: slowbackspace <slowbackspace@gmail.com>
2020-08-26 11:36:01 +02:00
..
2020-04-08 13:13:33 +02:00
2020-08-26 11:36:01 +02:00
2020-04-08 13:13:33 +02:00
2020-04-08 13:13:33 +02:00
2020-05-04 17:41:38 +02:00

Disclaimer:

Docker

In /docker folder, you might find few handy docker-compose recipes. But first check if you have docker installed.

docker --version

docker-compose --version

Suite dev

Suite-dev helps you run local suite development server. So, in theory, you don't need to have node.js or yarn installed on your machine. This container shares suite folder with your machine, so if you don't have dependencies installed yet, you shall run this first:

./docker/docker-suite-install.sh

./docker/docker-suite-dev.sh

This will open dev server on http://localhost:3000 and as a bonus a control panel that will allow you to start/stop trezor bridge and work with emulators!

Suite test

Suite test opens cypress test runner and prepares everything to run tests.

./docker/docker-suite-test.sh

Image snapshots

It is possible to run tests with image snapshots to test for visual regressions. To enable snapshots, use env variable:

CYPRESS_SNAPSHOT=1 ./docker/docker-suite-test.sh

Maintenance

Temporarily published on docker-hub under mroz22 account.

To build: cd ./docker

docker build -f ./trezor-user-env/Dockerfile . --tag mroz22/trezor-user-env

docker push mroz22/trezor-user-env:latest