rahafoundation / raha-web-app

The Raha identity network supporting universal basic income.
https://web.raha.app
Apache License 2.0
10 stars 3 forks source link

refactor trust button, add api calls lib and reducer #103

Closed osdiab closed 6 years ago

osdiab commented 6 years ago

Refactor of trust button to use new redux state, and to behave correctly.

Requires #101 before this works, hence tests failing

Also includes a system for calling raha-api over HTTP in a consistent and error-handling way, and keeping track of their current state in the redux store. While that perhaps could have been its own PR, this is the first code that uses it

I also didn't split this into multiple commits after wrangling all the merge conflicts, but I can if it would help. sorry that this is so big haha but a lot of this boilerplate will make future things ease up a bit.

Later on the specific types for the API can probably be shared between this and raha-api—we'd probably move them there ultimately.

osdiab commented 6 years ago

Closes #90

rahulgi commented 6 years ago

Overall, really cool changes! The API infrastructure is awesome.