citycoins / ui

Basic UI components for interacting with the CityCoin contract. Requires Stacks Wallet for Web.
https://minecitycoins.com
GNU General Public License v3.0
28 stars 13 forks source link

Update data sources and state #130

Closed whoabuddy closed 2 years ago

whoabuddy commented 2 years ago

This PR aims to review and rewrite both the CityCoins UI auth management and user state.

The main goals are to:

This will resolve a few open issues, speed up the load times, and create a more consistent experience that can be built on top of. Definitely still a WIP - collaborators are welcome!

Update: After trying out a few ways to approach data storage and transitions, patterns are emerging! The mining and stacking activity components are a great example of fetching, computing, and storing data. If the block height is updated then data is automatically fetched again.

There are definitely some optimizations to be had here, but it's a great start and will let me focus on the action pages to bring this back to life.

Done

Moved known issues to #129 to track for future PRs.

Fixes #126 Fixes #120 Fixes #117 Fixes #102