Clive Updates - final part bindings in the TUI

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@thebeedevs·
0.000 HBD
Clive Updates - final part bindings in the TUI
This release completes our work on bindings. We have made many small improvements to make using Clive TUI more convenient. We have also simplified the use of the update authority operations in CLI.  We hope you will like the changes.
In addition, we’ve been busy working on technical issues: we updated Schemas (used Schemas internally for working with operations), Wax, Beekeepy and Textual (the TUI framework), which required extensive testing and code adjustments. As a result, Clive CLI is now faster, although there’s still more work to be done.

### Adding global bindings to the bottom menu
The global bindings work across many views. Compared to the previous version, we have added two new bindings: `lock wallet` and `switch a node`. 
So now, the following global bindings are available:
`?` - help
`Ctrl+x` - clear notifications
`Ctrl+d` - go to the dashboard (available in unlocked mode)
`Ctrl+o` - load a transaction from a file (available in unlocked mode)
`Ctrl+l` - lock a wallet (available in unlocked mode) - newly added 
`Ctrl+s` - go to settings (profile configuration) (available in unlocked mode)
`Ctrl+n` - switch a node (available in unlocked mode and during profile creation) - newly added
`Ctrl+t` - go to the transaction summary (cart) (available in unlocked mode)
`Ctrl +p` - open the palette
`Ctrl+q` - quit

The bindings: `lock wallet`, `go to the transaction summary`, `go to the dashboard` and `go to the settings` are very useful and frequently used. Therefore, they are added to the bottom menu.

 ![Global bindings](https://images.hive.blog/DQmQ2J28y2FhNi26uUnPa9rRpsqAs1QVhUEwZdFHnDLg728/Global%20bindings.png)  

### Context bindings for account management in the dashboard
We have added context binding for removing accounts from the dashboard (`r`) and for viewing details (`d). These bindings apply to the highlighted account and they are also visible in the bottom menu.

 ![Dashboard - context menu](https://images.hive.blog/DQmXCLRfoi2r79Bmv3BS4Z2Wkr66peczQkXjVU1nn5bDMm5/Dashboard%20-%20context%20menu.png) 

### Improvements that make TUI easier to use
We get used to certain basic behaviours in applications that we expect, even when it is an application in a terminal like Clive. We have implemented these smaller features such as:
- Navigate using the arrow keys in the button list on the `Operations` and `Settings` 
- Navigate using the arrow keys through rows and columns in tables
- Highlight currently focused row in the tables
- Added missing but useful buttons (`Add new alias`, `Load from file` - during the onboarding process)

 ![Transaction summary - highlighted row](https://images.hive.blog/DQmWqCD8Fz6vKNYS46io8xSgLVdrNvv9QWytAPhytPMANKr/Transaction%20summary%20-%20highlighted%20row.png) 

 ![Manage key aliases - new button](https://images.hive.blog/DQmU2ssh9MuwAbJUQnz9vdTMuFFgfDAyFqEfATX1dDD3aB4/Manage%20key%20aliases%20-%20new%20button.png) 

### Change the execution directory
We have added a new mapped folder called `mapped_host_directory` inside the '.clive/` folder on the host. This folder is created when you use the scripts to start Clive. You can use it to transfer data between the host and  Docker. By default, your transaction will be saved in this folder. You can also load a transaction or a private key from this directory.


 ![TUI - mapped directory](https://images.hive.blog/DQmSajvWArzgajD5yQakNQHpJS1GpdsT79uYaF4SabWkzsw/TUI%20-%20mapped%20directory.png) 

Clive CLI also starts now in this folder.

 ![CLI - mapped directory](https://images.hive.blog/DQmayoUwqgza3BCtEhvwq8AppYBKd5WFbmYpC3ruLF7dvM3/CLI%20-%20mapped%20directory.png) 

### Simplified the most sophisticated command in CLI - update authority
The commands for updating authorities include subcommands, options and common options. To make them easier to use we have relaxed the command’s strictness: -  the common options `--sign` can now be used with any subcommand even at the end of the command. However it can only be used once.

 ![CLI - update authority - help](https://images.hive.blog/DQmcamNibeJT8zz426DJ2y9c2Dd6Q7GHHprM2Zjm8ihFEjK/CLI%20-%20update%20authority%20-%20help.png) 

Please be aware that commands have its own help and options:

 ![CLI - update authority - options](https://images.hive.blog/DQmZ1cHfuYiWiPZke336Z787NtRLcje7GyqzZMhhLDa4MmA/CLI%20-%20update%20authority%20-%20options.png) 

##### Examples:
User `alice` wants to update the posting authority. She wants to change the threshold from 2 to 1, remove `mary` and add `bob`.

Posting authority of `alice` before updating
 ![Posting authority of alice - before updating](https://images.hive.blog/DQmSjHranHSZxcRHZf9cF6hQF2fAso6zymdW1BHZC58cBhP/Posting%20authority%20of%20alice%20-%20before%20updating.png) 

Command:
```
clive process update-posting-authority --threshold 1 add-account --account bob --weight 1 remove-account --account mary --sign alice_key
```

 ![Update authority - execution](https://images.hive.blog/DQmUYVnRBuAhFzaPxpjyeQNo9hqTNfZihD6bU3m2v2hee7Z/Update%20authority%20-%20execution.png) 

Posting authority of `alice` after updating

 ![Posting authority of alice - after updating](https://images.hive.blog/DQmaomqMKs4QBrWhH2HTmJPWmBN2rtVj4kbxY47HVqS5AeC/Posting%20authority%20of%20alice%20-%20after%20updating.png) 

[Complete list of corrected issues](https://gitlab.syncad.com/hive/clive/-/releases/v1.27.11.6)


The scripts that allow you to run Clive are here:
https://gtg.openhive.network/get/clive/


### Your feedback is invaluable and always welcome. 
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,