TUI - New tab on Accounts page to show Account Authorities table
Currently this page has tabs for Alarms, Operations (which I think is account history), and Balances (which I suppose is balances of all types of tokens and maybe computed USD value).
-
Add a new tab: Account Authorities
Account Authorities page will query the Lite Accounts API to get a list of account authorities (which includes all registered public keys for the account). Until this function is implemented, we'll use condenser.get_account to get authority info.
-
Improve the title of this page: Replace "(for the X account)" with a dropdown list of working accounts.
Account Authorities table:
| Authority | Key/Authority | Action |
|---|---|---|
| alpha@owner | STM... | Add |
| alpha@active | STM... | Remove |
| alpha@post | STM... | Remove |
| alpha@memo | STM... | Remove |
| alpha@battle | STM... | Add |
-
Leave a line for status messages above the Account Authorities table. Right now we only have one potential status message, display it whenever the private key has been entered for the owner authority: "Danger: For security reasons, remove the owner key from wallet after usage." (display in red) -
Click on a line to enter a private key associated with that line. This will open the Add Key dialog. Modify the AddKey dialog to accept a "required matching public key". So now the AddKey dialog can fail a key for two reasons: 1) if the key is not a valid private key (old functionality) and 2) optionally if public key specified, display "Entered private key doesn't match public key assigned to this authority". -
Grey out Account Authority table lines when the wallet doesn't hold the associated private key. This is just a visual extra, since it will also be clear from the "Add" being visible in the Action column. -
In account selection dropdown, ability to select "All accounts", in which case table is populated with the authorities of all working accounts.
Features for future:
- Support complex authorities as well as simple keys. If authority is simple key, display it. If complex authority, show as:
| Authority | Key/Authority | Weight | Action |
|---|---|---|---|
| alpha@active | total | 1/11 | |
| blocktrades@active | 10 | Add | |
| blocktrades.com@active | 1 | Remove |
-
Allow editing of authorities from this page. Click on Authority field to open Edit Authority dialog for that field. Edit authority dialog will look similar to display in table, but additionally have ability to edit each line, remove, and add lines. Probably a column for remove and an edit box to add a key/authority + weight. Keys will be checked using normal validation procedure, authorities will be checkable via Lite accounts API.
-
Filter and only show authorities where we have the private key.