althea-net / rita-dash

User dashbaord for managing Rita
https://github.com/althea-net/rita
Apache License 2.0
8 stars 13 forks source link

Router-DAO Address Exchange #33

Closed asoltys closed 5 years ago

asoltys commented 5 years ago

This pull modifies the existing Subnet DAO selection component to make it so that only a single DAO can be joined at a time and provides a mechanism for the router dashboard to exchange information about the ethereum contract address, wallet address, and mesh IP address with the Aragon UI.

The exchange is a two-step process and the order of the steps doesn't matter:

When the QR code is scanned, the router takes the /64 subnet IP address that was generated and assigns itself the first /128 address in the range as its mesh IP.

Because setting the mesh IP address of the router requires rita to restart, a countdown dialog is displayed to let the user know that rita is unavailable and will hopefully be back soon.

Fixes #30 and #32

asoltys commented 5 years ago

rebased on master and fixed an issue with the countdown timer not being cleared properly