h-REA / holo-rea-proto

REA economic network coordination software implemented on top of the Holochain prototype (Go version).
GNU General Public License v3.0
17 stars 1 forks source link

Bind demo UI to GraphQL API #13

Closed pospi closed 5 years ago

pospi commented 5 years ago

Updating tactic here: let's just aim straight for queries against the Holochain backend schemas, rather than NRP. You can use the NRP API schema as a guide when writing, just omit the top-level viewerQuery block from the bindings you write.

None of your queries will work yet because src/graphql-adapter/src/queries.ts needs to be implemented in order to bind the GraphQL API to the Holochain API (see #4)- but completing this task should make it clear what needs to be done there.

pospi commented 5 years ago

@ivanminutillo if you start work on this before feature/basic-devops-scripts is merged to master, I recommend you fork off that branch instead. Reason is there is some JS style standardisation in there by eslint that will cause you a lot of conflicts if you don't start with it already implemented. Also there are fixes to make things compatible with Typescript so that you can start the conversion easier (if you wish to).

pospi commented 5 years ago

FYI enough of the GraphQL stuff is in master to start a new branch for this work there now.

pospi commented 5 years ago

Rough UI is there, literally just some unstyled react-tables broken down by each user's name. There is a refresh button, because I found the initial load script for provisioning all the scenario data takes quite a while & it's therefore nicer to redraw the status output that way. If @ivanminutillo wants to take some time to make this pretty, feel free. But I'm not all that concerned about aesthetics for a quick demo.