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

⚡[FEAT] Reorganize components #84

Closed whoabuddy closed 2 years ago

whoabuddy commented 2 years ago

Is your feature request related to a problem? Please describe.

When I go to update and add new components/functionality, the current directory structure feels messy to say the least.

image

Describe the solution you'd like

Components should be reorganized and renamed based on the related parts of the protocol, perhaps even stored in folders, e.g.

/common
/dashboard
/mining
/stacking
/profile

Additional context

If we really want to get into it, all contract calls should be from a library instead of some being in components, and blocks.js is a misleading name.

It'd be nice to balance these changes against the amount of work required, however with a cleaner structure it'd be much easier to make updates.

Atoms could be used in more places as well.