97 Commits

Author SHA1 Message Date
Anthony Laibe
6e24b0eb85
Remove uneeded handler 2018-10-23 11:04:00 +02:00
Anthony Laibe
96c3575e75
Add Contract Events to UI 2018-10-23 11:03:59 +02:00
Jonathan Rainville
2edbef81e4
conflict in constants 2018-10-23 11:02:09 +02:00
Jonathan Rainville
c833f9b3bf
store theme in localstorage 2018-10-23 11:02:08 +02:00
Jonathan Rainville
be0129fea9
use redux to store the theme 2018-10-23 11:02:08 +02:00
Iuri Matias
70b62bdc16
rename command_suggestions to commandSuggestions 2018-10-23 11:00:28 +02:00
Iuri Matias
f5479baf4c
fix misc issues reported by linter 2018-10-23 11:00:27 +02:00
Iuri Matias
1906b17c5d
fix options update; add sorting 2018-10-23 11:00:26 +02:00
Iuri Matias
ce19fd96c4
intiial code to get suggestions from embark 2018-10-23 11:00:26 +02:00
Jonathan Rainville
43030980b1
use cross-env for cd and make sure values are specified 2018-10-23 10:59:15 +02:00
Anthony Laibe
9aac039e7e
Adding selector 2018-10-23 10:58:34 +02:00
Anthony Laibe
de009db74f
Use process log ids 2018-10-23 10:57:05 +02:00
emizzle
5d29ab1d42
Minor PR comments
Removed a null check and intialised `this.context` to an empty object.
2018-10-23 10:57:05 +02:00
emizzle
46511bcfe8
Rebase updates
After the code was rebased, there were some additional changes for getting websockets logs that needed to be catered for.

When there is a call to get all logs for a process, the state entity is updated with a new array item containing all the logs (this is then reduced and selected for rendering). In the case of a websocket log that simply returns only one log item, the latest full log for the process is found in the state entities, and it’s logs are appending to with the data from the websocket.

Additionally, log limits were updated to be passed in as a parameter to the API calls from the frontend. Parameter validation (for `limit`) was also added in this commit.
2018-10-23 10:57:04 +02:00
emizzle
0fa1e11ac7
Fixed issue with compounding duplicated logs
On every load of the component, the API request would fetch the entire log history, and effective append it to the list of process logs, so that if a component was loaded multiple times (ie click to different tab, then back to home), the log would be duplicated.

This was solved by timestamping and labelling each fetch response, then getting the latest response in the selector, and filtering by process name in the component.
2018-10-23 10:53:25 +02:00
Anthony Laibe
41176f0f70
Add id to process logs 2018-10-23 10:50:41 +02:00
Anthony Laibe
0e872c99e6
Update layout with new theme 2018-10-23 10:50:38 +02:00
Anthony Laibe
36602c30b6
Limit the number of commands/logs we keep 2018-10-23 10:50:38 +02:00
Anthony Laibe
ca55a8091e
Only store ether value 2018-10-23 10:50:38 +02:00
Anthony Laibe
c475244fb6
Save to when navigating 2018-10-23 10:50:38 +02:00
Anthony Laibe
1a0eb829e8
Keep ether conversion in state 2018-10-23 10:50:38 +02:00
Anthony Laibe
d6b348a869
Disable websocket and limit the number of record 2018-10-23 10:50:03 +02:00
Anthony Laibe
c52c0abb77
Allow to customize host 2018-10-23 10:47:25 +02:00
Anthony Laibe
2fb5d907ec
Add ability to logout 2018-10-23 10:42:00 +02:00
Jonathan Rainville
e2b3dcf629
use redux instead of directly localStorage 2018-10-23 10:42:00 +02:00
Jonathan Rainville
b196a54a30
fix linting 2018-10-23 10:41:22 +02:00
Jonathan Rainville
39a0fae69a
basic implementation of tabs for process logs 2018-10-23 10:41:21 +02:00
Jonathan Rainville
7a4f1180cf
add noLoading flag in action to not show loader 2018-10-23 10:41:20 +02:00
Anthony Laibe
a08690ef43
File Editor 2018-10-23 10:41:20 +02:00
Jonathan Rainville
5593534343
conflict in reducer 2018-10-23 10:40:13 +02:00
Jonathan Rainville
9d262e6a25
watch oracle changes 2018-10-23 10:40:13 +02:00
Jonathan Rainville
198b3c5cc1
conflicts in reducer and saga 2018-10-23 10:39:57 +02:00
Jonathan Rainville
77258f8636
add gas station component 2018-10-23 10:38:12 +02:00
Jonathan Rainville
7080be9fb1
conflicts in action and saga 2018-10-23 10:38:11 +02:00
Anthony Laibe
b945b87d4d
File explorer 2018-10-23 10:38:11 +02:00
Anthony Laibe
18253886fb
Fix order of command 2018-10-23 10:37:28 +02:00
emizzle
6207023bec
Refactor logic to FiddleContainer
Refactored fiddle logic to be contained in the `FiddleContainer` and the components as purely presentational.

Added scroll from summary to errors/warnings/fatal/deployed cards.

Added fatal error support (ie network error in api)

Removed `lodash`
2018-10-23 10:37:00 +02:00
emizzle
05b324dffe
Fiddle use cases fixed
Handle use cases:

1) handle case when temp.sol doesn’t exist - due to the new saga updates, the response from retreiving a temp fiddle from the filesystem (even if it doesn’t exist) is forward to the compilation endpoint, which returns an ENOENT, and this is handled in the selector.
2) delete all code - shouldn’t return last fiddle and should compile an empty string.
3) Switch to different tab (ie contracts) then back to fiddle - previous fiddle should remain.

Also fixed an issue (most likely due to latest rebase) when deploying fiddle contracts. The gasLimit was not being specified.

Handled issue where entities stored in the state were not being put in the correct order, so a timestamp was sent with the requests and then sorted when the response was returned.
2018-10-23 10:37:00 +02:00
Anthony Laibe
4ecb092ed3
Remove last fiddle, and use code to compile 2018-10-23 10:37:00 +02:00
emizzle
b8b98cd6c4
Remove ‘async’ from function name and remove comments 2018-10-23 10:36:59 +02:00
emizzle
cba4e9fb91
Fiddle file stored in filesystem
Fiddles are now stored in the filesystem so they can be preserved across page reloads, but also so that contracts deployed via fiddles can have their source code shown.

Fiddles deployed as contracts now fully work with existing contract list UI and functionality. Fiddle deployed contracts are listed in a separate section in the UI.

Current limitation is that only single contracts per file are supported. If the fiddle contains multiple contracts, it’s currently not supported.
2018-10-23 10:36:59 +02:00
emizzle
59d3a3be83
Fiddle deploy integration
Fiddle is properly deploying now, except the source code needs to be saved to the filesystem in order to be recalled later.

Fixes for handling errors on deploy and compilation.

Update contract state UI for determining state / interface / deployed.
2018-10-23 10:36:58 +02:00
emizzle
609d4eb762
Fix Tabler browser errors
Fixed browser errors caused by tabler (bodyItems and headerItems complaints) as well as staticContext issues caused by using withRoute(NavLink)

Also added a response to fiddler deployment.

Added loading states to fiddler results, that shows the errors/warnings as having a loading state when compiling/deploying
2018-10-23 10:36:58 +02:00
emizzle
b9041d1434
Removed loadingEntities and added to FiddleContainer 2018-10-23 10:36:58 +02:00
emizzle
83326bfd98
loading entity work 2018-10-23 10:36:58 +02:00
emizzle
e53152624f
Start with reducer/selector for loading entity 2018-10-23 10:36:58 +02:00
emizzle
4d195657dd
Added loading entities
Moved functionality out of FiddleDeployButton component

Added loading entities (WIP) to separate loading messages
2018-10-23 10:36:57 +02:00
Anthony Laibe
6038da4339
Deploy contract 2018-10-23 10:34:18 +02:00
Anthony Laibe
3c9cea594c
Make call successfully 2018-10-23 10:34:17 +02:00
Anthony Laibe
f3bef0c3a6
Show sources 2018-10-23 10:34:17 +02:00