107 Commits

Author SHA1 Message Date
Pascal Precht
8562a3f6c8
feat(cockpit): enable query param authentication in development mode
Prior to this commit it wasn't possible to authenticate using the
`token` query param as the `host` used for authentication doesn't
match the one of the Embark host.
2018-10-23 11:12:47 +02:00
Anthony Laibe
4e23acb558
PR feedback 2018-10-23 11:12:47 +02:00
Anthony Laibe
a4d4278dc9
Adding option to switch deployment pipeline 2018-10-23 11:12:47 +02:00
Iuri Matias
d5cd0b0ff7
address code review 2018-10-23 11:12:00 +02:00
Anthony Laibe
fb29e5a7c8
Add/remove breakpoints 2018-10-23 11:12:00 +02:00
Iuri Matias
b06d224883
fix services & processes; improve UI 2018-10-23 11:11:58 +02:00
Pascal Precht
eb412c026b
feat(cockpit/utils): introduce components to sign and verify messages 2018-10-23 11:11:14 +02:00
Jonathan Rainville
5cfe208f6f
little fixes 2018-10-23 11:04:01 +02:00
Jonathan Rainville
847e20d092
change page on search result 2018-10-23 11:04:00 +02:00
Jonathan Rainville
890dc50768
conflict in reducer and sagas 2018-10-23 11:04:00 +02:00
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