Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of updates 1.2.0 #261

Merged
merged 49 commits into from
Jan 27, 2019
Merged

Lots of updates 1.2.0 #261

merged 49 commits into from
Jan 27, 2019

Conversation

nicarq
Copy link
Contributor

@nicarq nicarq commented Jan 27, 2019

nicarq and others added 30 commits December 27, 2018 20:15
added default wallet type to CWTWeb if given type is undefined
ID calculation for newly sent transactions
… diagram for basic use cases(create new wallet, send funds)
* change password restrictions

* fixed tests

* fixed more tests
upgrade to react 16 and react-router v4
Babel 7 + Latest Flow + Other necessary dependencies
To upgrade to the latest version of `react-polymorph` (v8) we need to do two upgrades:

- [x] upgrade to v7.2 (based on [this PR](input-output-hk/daedalus#950))
- [x] upgrade to v8 (based on [this PR](input-output-hk/daedalus#1139))

I made both upgrades as the two commits to this PR and it's probably easier to read if you code review the two commits individually (since the changes are orthogonal). I also have a README change that explains what `react-polymorph` v8 does but you can find something similar in the Daedalus PR I linked above.

v8 also introduces large refactoring changes that makes a mess of the whole thing. I tried my best to make all the UI look the same while keeping the improvements from v8 but one thing I couldn't stop is that the font size is not 1px bigger across the app (which honestly is not a big deal so I didn't bother). There are probably small things that changed here in there but I manually compared the whole UI and everything looked close enough I don't think anybody would notice any difference that did occur.
SebastienGllmt and others added 19 commits January 18, 2019 05:05
### WIP points

- [x] fix UI bug in React-polymorph
- [ ] add release steps in the repo README
- [x] make CI run in parallel for Firefox

### Notably changes

1) Source maps tend to fail on Firefox so your console will be filled with warnings such as 
```
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: moz-extension://930fbb33-10a2-403b-b57c-56df447157dd/js/yoroi.bundle.js
Source Map URL: NumericInput.js.map
```
This also causes error messages not to render properly in the logs (i.e. stack traces will look something like0
```
ExtendableError@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/vendor.js:174903:14\nLocalizableError@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:569:65\nNoInputsError@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:2551:60\n_callee$@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:34270:19\ntryCatch@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:42539:37\ninvoke@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:42792:22\ndefineIteratorMethods/</prototype[method]@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:42572:16\nstep@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:904:30\nstep/<@moz-extension://380304b4-a7df-49e9-b7b8-7b207f40792f/js/yoroi.bundle.js:915:13\n
```
You read why, see: 
webpack/webpack#1194 (comment)
https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map
1) Need to add icons in the manifest to `default_icon` key (Firefox loads from here instead of the `icons` key in Chrome)
1) Need to add addon ID for firefox inside the manifest (I describe why we need to do this and why this requires a custom version of Selenium in the code)
1) Unlike Chrome, Firefox addons get a different URL either every session or every install (deliberately done to avoid fingerprinting)
I described how we tackle this inside the unittest framework
1) Need to rename `zip` file to `xpi` to install
1) Need to set `xpinstall.signatures.required` in `about:config` to be able to add unsigned build locally (in non-temporary mode)
	This is a hack though. To conform to the spec, you must either use the developer edition or use a signed extension.
1) Firefox does not support 'http://127.0.0.1' or 'http://localhost' as script
	Fortunately this is not used for mainnet and the unittests bypass this restriction (but it will fail for development)
1) Two Firefox-specific CSS bugs (details commented inside the code)
Fix onClick in WalletSendConfirmationDialog
Show fee & Intrawallet transactions
Show fee & Intrawallet transactions

New translations en-US.json (Russian)

New translations en-US.json (Korean)

New translations en-US.json (Chinese Simplified)

New translations en-US.json (Japanese)

New translations en-US.json (Korean)

New translations en-US.json (Russian)

New translations en-US.json (Chinese Simplified)

New translations en-US.json (Chinese Traditional)

New translations en-US.json (Russian)

New translations en-US.json (Japanese)

New translations en-US.json (Korean)

New translations en-US.json (Chinese Simplified)

New translations en-US.json (Chinese Traditional)

New translations en-US.json (Japanese)

New translations en-US.json (French)

New translations en-US.json (Japanese)

New translations en-US.json (Korean)

New translations en-US.json (Russian)

New translations en-US.json (Chinese Simplified)

New translations en-US.json (Chinese Traditional)

New translations en-US.json (French)
Export transaction to file [ITERATION 1]
@vsubhuman
Copy link
Contributor

@rdlrt check out this release, and especially #241 🙌 There was a problem previous where people could get incorrect balance if they sent coins to their own address in the same wallet. This solves it, but if they already got that incorrect state - they need to re-restore the wallet, tho

@nicarq nicarq merged commit 5a98ce2 into master Jan 27, 2019
@nicarq nicarq mentioned this pull request Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants