Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit 1d9519a

Browse files
ryanioevertonfraga
authored andcommitted
New SendTx and TxHistory windows (#4070)
* WIP - introduce newTransaction to redux * Testing - display wallet locally * WIP - blockies component * WIP - scaffolds the send tx popup * WIP - scaffolding new design * WIP - scaffold transactions * WIP - introduce FeeSelector * WIP - displays USD for conversion and fee * Displays ETH instead of USD if testnet * Show full length addresses * Introduces 'isNewContract' state * Refactors submit form * handleSubmit for transfer and contract creation * Introduces UI for sending tokens * Programmatically sets tx popup window size * Refactors logic into Redux * Corrects color hex * Displays expanded details * Removes identicon overlays * Blacklists conf window from generic window use * * Renames components to shorter names using Tx over Transaction * Aligns from/to addresses * Adds hover help tooltip on fee selector * Removes extra details on new contract creation * Better layout if token transfer, and fetches token details * Persist txs and new tx history window * Improvements to tx history * Updates * Updates * Update pending txs in tx history window * Updates * Fix math * Fixes and better intermediate states * Adds reducer tests * WIP - handles priority * Add peerCount to redux and only switch to local if peerCount > 0 * Stores gas price in txs state * Resolves _persist error * TxHistory window improvements * Adds pricing data to TxHistory window *Renames priceUSD to etherPriceUSD and moves to `settings` reducer for cross-component use * TxHistory: Light font weight for number of confirmations * Introduces SendTx i18n * Handles case of no gas provided * Fixes peerCount bug * Displaying all logs after failure * i18n TxHistory window * Removes Q config * Fixes fourByte bug * Fixes window height bug * Bumps swarm.js to 0.1.38 * Fixes unlocking styles * Cleans up i18n * Fix fee math, add error and loading states for gas price * Adds spinner to FeeSelector while calculating gas * WIP - show loading state and retry gas details * Finishes gas retry refactor * Adds gas warning i18n * Refactors gas error messaging and styling * Adds gasPrice to more details section * Fixes gasEstimate bug * small fixes on CSS * Captures gas errors and displays in SendTx * updates css * Minor UX focus * Connects ContextDescription to redux * Displays an error when gas over blockLimit * Refactors; remove stale GasNotification, simplify state * Adds reducer tests * Fixes formatter error * Adjust window height on all updates * Introduces eth gas station API * Fixes test and uses safeLow * Merge branch 'send-tx-react' of https://github.com/ethereum/mist into send-tx-react * Adds loading state to footer * Adds reducer tests * Cleans up cruft * Add function name * update css to tx history * Fixes null state and error color * removing unnecessary code * Rebuilds artifacts * Fixing token contract name i18n key * Using a shorter text for token contract name * Grabbing token information in a new format * Fixing popup placement after a resize called by the UI * Fixes fractional token display * Alerts user if sending ether
1 parent d5db881 commit 1d9519a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+14378
-2352
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ matrix:
2929
before_install:
3030
# prepare integration tests
3131
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
32+
after_failure:
33+
- cat ~/Library/Application\ Support/Mist/logs/all.*
3234

3335
# MAC
3436
- os: osx
@@ -40,7 +42,9 @@ matrix:
4042
paths:
4143
- $( ls dist_{mist,wallet}/release/* | tr "\n" ":" )
4244
before_install:
43-
- npm install -g yarn
45+
- npm install -g yarn
46+
after_failure:
47+
- cat ~/.config/Mist/logs/all.*
4448

4549
install:
4650
- PATH=$PATH:$HOME/.meteor && curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/1390e0f96162d0d70fc1e60a6b0f4f891a0e8f42/configure.sh | /bin/sh

build-interface/51d5e4c8454886229fb7e93791d18b043e46fc7d.js renamed to build-interface/c3f3e26dc12085ce978b5a191645bf10671d1068.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build-interface/51d5e4c8454886229fb7e93791d18b043e46fc7d.stats.json renamed to build-interface/c3f3e26dc12085ce978b5a191645bf10671d1068.stats.json

Lines changed: 132 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"name": "standard-minifier-js",
44
"version": "2.3.4"
55
},
6-
"totalMinifiedBytes": 2448232,
7-
"totalMinifiedGzipBytes": 671579,
6+
"totalMinifiedBytes": 2779016,
7+
"totalMinifiedGzipBytes": 739549,
88
"minifiedBytesByPackage": {
99
"packages/meteor.js": 9433,
1010
"packages/less.js": 24,
@@ -14,7 +14,7 @@
1414
"packages/meteorspark_util.js": 495,
1515
"packages/modules-runtime.js": 4087,
1616
"packages/modules.js": [
17-
394468,
17+
585575,
1818
{
1919
"node_modules": {
2020
"meteor": {
@@ -42,8 +42,8 @@
4242
"package.json": 66,
4343
"index.js": 71,
4444
"cjs": {
45-
"react.production.min.js": 5048,
46-
"react.development.js": 12445
45+
"react.production.min.js": 5399,
46+
"react.development.js": 14365
4747
}
4848
},
4949
"object-assign": {
@@ -52,40 +52,38 @@
5252
},
5353
"fbjs": {
5454
"lib": {
55+
"invariant.js": 498,
5556
"emptyObject.js": 67,
5657
"emptyFunction.js": 281,
57-
"invariant.js": 498,
5858
"warning.js": 598,
5959
"ExecutionEnvironment.js": 305,
60-
"EventListener.js": 652,
6160
"getActiveElement.js": 192,
6261
"shallowEqual.js": 403,
6362
"containsNode.js": 233,
6463
"isTextNode.js": 102,
6564
"isNode.js": 254,
66-
"focusNode.js": 80,
6765
"hyphenateStyleName.js": 117,
6866
"hyphenate.js": 112,
6967
"camelizeStyleName.js": 116,
7068
"camelize.js": 127
7169
}
7270
},
7371
"prop-types": {
74-
"checkPropTypes.js": 881,
72+
"checkPropTypes.js": 1015,
7573
"lib": {
7674
"ReactPropTypesSecret.js": 94
7775
},
7876
"package.json": 71,
7977
"index.js": 214,
80-
"factoryWithTypeCheckers.js": 5863,
81-
"factoryWithThrowingShims.js": 598
78+
"factoryWithTypeCheckers.js": 5912,
79+
"factoryWithThrowingShims.js": 608
8280
},
8381
"react-dom": {
8482
"package.json": 118,
8583
"index.js": 225,
8684
"cjs": {
87-
"react-dom.production.min.js": 90336,
88-
"react-dom.development.js": 164581
85+
"react-dom.production.min.js": 92735,
86+
"react-dom.development.js": 186222
8987
}
9088
},
9189
"react-redux": {
@@ -115,8 +113,10 @@
115113
}
116114
},
117115
"hoist-non-react-statics": {
118-
"package.json": 83,
119-
"index.js": 806
116+
"package.json": 110,
117+
"dist": {
118+
"hoist-non-react-statics.cjs.js": 661
119+
}
120120
},
121121
"invariant": {
122122
"package.json": 96,
@@ -146,7 +146,9 @@
146146
"_objectToString.js": 93,
147147
"_getPrototype.js": 82,
148148
"_overArg.js": 79,
149-
"isObjectLike.js": 77
149+
"isObjectLike.js": 77,
150+
"package.json": 69,
151+
"lodash.js": 71979
150152
},
151153
"symbol-observable": {
152154
"package.json": 81,
@@ -155,14 +157,98 @@
155157
"ponyfill.js": 228
156158
}
157159
},
160+
"ethereum-blockies": {
161+
"package.json": 80,
162+
"blockies.js": 1364
163+
},
164+
"react-md-spinner": {
165+
"package.json": 80,
166+
"lib": {
167+
"index.js": 402,
168+
"ssr-behavior.js": 812,
169+
"styles.js": 4097,
170+
"MDSpinner.js": 3212
171+
}
172+
},
173+
"css-keyframer": {
174+
"package.json": 81,
175+
"css-keyframer.js": 42391
176+
},
177+
"inline-style-prefixer": {
178+
"package.json": 89,
179+
"dynamic": {
180+
"index.js": 724,
181+
"createPrefixer.js": 2564,
182+
"plugins": {
183+
"cursor.js": 592,
184+
"crossFade.js": 498,
185+
"filter.js": 443,
186+
"flex.js": 483,
187+
"flexboxOld.js": 1267,
188+
"gradient.js": 605,
189+
"imageSet.js": 482,
190+
"position.js": 371,
191+
"sizing.js": 523,
192+
"transition.js": 725
193+
},
194+
"dynamicData.js": 9617
195+
},
196+
"utils": {
197+
"getBrowserInformation.js": 1497,
198+
"getPrefixedKeyframes.js": 289,
199+
"capitalizeString.js": 168,
200+
"addNewValuesOnly.js": 244,
201+
"isObject.js": 170,
202+
"prefixValue.js": 199,
203+
"getPrefixedValue.js": 145,
204+
"prefixProperty.js": 305
205+
},
206+
"static": {
207+
"index.js": 687,
208+
"createPrefixer.js": 648,
209+
"staticData.js": 2199,
210+
"plugins": {
211+
"cursor.js": 282,
212+
"crossFade.js": 398,
213+
"filter.js": 386,
214+
"flex.js": 364,
215+
"flexboxOld.js": 606,
216+
"gradient.js": 437,
217+
"imageSet.js": 395,
218+
"position.js": 192,
219+
"sizing.js": 421,
220+
"transition.js": 1214
221+
}
222+
}
223+
},
224+
"bowser": {
225+
"package.json": 73,
226+
"src": {
227+
"bowser.js": 7752
228+
}
229+
},
230+
"css-in-js-utils": {
231+
"lib": {
232+
"hyphenateProperty.js": 235,
233+
"isPrefixedValue.js": 188
234+
}
235+
},
236+
"hyphenate-style-name": {
237+
"package.json": 80,
238+
"index.js": 159
239+
},
240+
"exenv": {
241+
"package.json": 65,
242+
"index.js": 454
243+
},
158244
"moment": {
159245
"package.json": 70,
160-
"moment.js": 53008
246+
"moment.js": 53049
161247
},
162248
"react-minimal-pie-chart": {
163249
"package.json": 87,
164250
"lib": {
165-
"index.js": 4410
251+
"index.js": 4721
166252
}
167253
},
168254
"@babel": {
@@ -209,7 +295,8 @@
209295
"_to-length.js": 113,
210296
"_to-integer.js": 102,
211297
"_wks.js": 190,
212-
"_shared.js": 124,
298+
"_shared.js": 284,
299+
"_library.js": 29,
213300
"_to-object.js": 81,
214301
"_defined.js": 105,
215302
"_array-species-create.js": 101,
@@ -813,7 +900,7 @@
813900
],
814901
"app/global-imports.js": 1705,
815902
"app/app.js": [
816-
373771,
903+
513448,
817904
{
818905
"client": {
819906
"templates": {
@@ -836,43 +923,54 @@
836923
"template.generic.js": 164,
837924
"template.importAccount.js": 2939,
838925
"template.loadingWindow.js": 287,
839-
"template.sendTransactionConfirmation.js": 17839,
840926
"template.updateAvailable.js": 3310,
841927
"clientUpdateAvailable.js": 222,
842928
"connectAccount.js": 2216,
843929
"generic.js": 70,
844930
"importAccount.js": 2246,
845-
"sendTransactionConfirmation.js": 8959,
846931
"updateAvailable.js": 577
847932
},
848933
"views": {
849934
"template.webview.js": 1356,
850935
"webview.js": 2492
851936
},
852937
"template.index.js": 644,
853-
"index.js": 961,
938+
"index.js": 1122,
854939
"webviewEvents.js": 1598
855940
},
856941
"lib": {
857942
"ethereum": {
943+
"helpers": {
944+
"helperFunctions.js": 2881,
945+
"templateHelpers.js": 1335
946+
},
858947
"1_web3js_init.js": 109
859948
},
860-
"helpers": {
861-
"helperFunctions.js": 2881,
862-
"templateHelpers.js": 1335
863-
},
864949
"signatures.js": 262801,
865950
"thirdParty.js": 207
866951
},
867952
"actions.js": 321,
868-
"appStart.js": 1972,
953+
"appStart.js": 2145,
869954
"collections.js": 385,
870955
"mistAPIBackend.js": 1819,
871956
"windowEvents.js": 980
872957
},
873958
"components": {
959+
"SendTx": {
960+
"ContextDescription.js": 3450,
961+
"ExecutionContext.js": 4247,
962+
"FeeSelector.js": 2337,
963+
"Footer.js": 1102,
964+
"TxParties.js": 2113,
965+
"index.js": 3453
966+
},
967+
"TxHistory": {
968+
"TxRow.js": 5281,
969+
"index.js": 1777
970+
},
874971
"About.js": 928,
875-
"NodeInfo.js": 6488,
972+
"DappIdenticon.js": 862,
973+
"NodeInfo.js": 6534,
876974
"RequestAccount.js": 2850
877975
},
878976
"i18n": {
@@ -894,7 +992,7 @@
894992
"app.zh.i18n.json": 110,
895993
"mist.ca.i18n.json": 111,
896994
"mist.de.i18n.json": 110,
897-
"mist.en.i18n.json": 9709,
995+
"mist.en.i18n.json": 9961,
898996
"mist.es.i18n.json": 120,
899997
"mist.fa.i18n.json": 114,
900998
"mist.fr.i18n.json": 121,
@@ -910,6 +1008,10 @@
9101008
"mist.zh-TW.i18n.json": 143,
9111009
"mist.zh.i18n.json": 110
9121010
},
1011+
"utils": {
1012+
"hqx.js": 134258
1013+
},
1014+
"actions.js": 6525,
9131015
"project-i18n.js": 1150
9141016
}
9151017
]

build-interface/aa96f9c306ce89725438af52215b8025934ec2da.css renamed to build-interface/d96c144c56324d73b0aa50123bcdf4233fb5d3f1.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)