hyperledger-labs / blockchain-carbon-accounting

This project implements blockchain applications for climate action and accounting, including emissions calculations, carbon trading, and validation of climate claims. It is part of the Linux Foundation's Hyperledger Climate Action and Accounting SIG.
https://wiki.hyperledger.org/display/CASIG/Carbon+Accounting+and+Certification+WG
Apache License 2.0
188 stars 104 forks source link

UI changes for deployment (limited mode) #137

Closed sichen1234 closed 3 years ago

sichen1234 commented 3 years ago

This is to make UI changes to the React app when the emissions token network is under #108 (limited mode):

  1. Issue Tokens button is removed
  2. When proposing tokens, issue to address is shown. By default all tokens are issued to contract owner (admin)
  3. Manage roles, transfer, and retire buttons are not available if the user cannot do those things.
jamesondh commented 3 years ago

See commits https://github.com/opentaps/blockchain-carbon-accounting/commit/bd774a43c80ed1b0b870118706cbbe90a2e93911 https://github.com/opentaps/blockchain-carbon-accounting/commit/6208a079f0a19a206ccf038b6c3302308e5969fb and attached screenshot for updates

2021-04-05_14-15

sichen1234 commented 3 years ago

When issuing Audited Emissions you should still be able to set the address. When issuing carbon offsets or RECs then the address should be set to admin/contract owner.

The button for "Create DAO Proposal" should be "Must be a dealer" if the user does not have the role to issue REC or carbon offset (ie consumer)

Pls change "Must be dealer" to "Must be authorized dealer"

jamesondh commented 3 years ago

See commits: https://github.com/opentaps/blockchain-carbon-accounting/commit/975e751ba93bae431f3517c30e570db018122cef https://github.com/opentaps/blockchain-carbon-accounting/commit/74d84e88f79d395e05206a9fd0c866aaa0ad9b0a https://github.com/opentaps/blockchain-carbon-accounting/commit/24161bebd8390687f9bbbddbc938a35132b4af73 https://github.com/opentaps/blockchain-carbon-accounting/commit/20ccf1b3070282ae3857a4955b717016128a6d45

Screenshot from 2021-04-15 09-09-35 Screenshot from 2021-04-15 09-09-49 Screenshot from 2021-04-15 09-12-58

sichen1234 commented 3 years ago

All works now. Thank you!