Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign chain serve output with bubbletea #2458

Closed
ivanovpetr opened this issue May 10, 2022 · 1 comment · Fixed by #3014
Closed

Redesign chain serve output with bubbletea #2458

ivanovpetr opened this issue May 10, 2022 · 1 comment · Fixed by #3014
Assignees
Labels
component:design Design or UX improvements type:new To implement new feature.

Comments

@ivanovpetr
Copy link
Contributor

Since we now plan to start using: https://github.com/charmbracelet/bubbletea, I believe we can benefit from the refreshing feature (I don't know the exact name for it).

For ex, right now when there are changes in the files, the serve command will print the logs related to rebuilding the binary, proto, installing dependencies etc. again and again:

💿 Saving genesis state...
💿 Genesis state saved in /home/gitpod/.ignite/local-chains/mars/exported_genesis.json
🛠️  Building proto...
📦 Installing dependencies...
🛠️  Building the blockchain...
💿 Existent genesis detected, restoring the database...
🌍 Tendermint node: http://0.0.0.0:26657
🌍 Blockchain API: http://0.0.0.0:1317
🌍 Token faucet: http://0.0.0.0:4500

Instead of reprinting all these on every change, we can show a spinner and/or refresh the current text instead of reprinting it again which makes the serve command more pleasant to use.

We could also use something like this for the c serve command, please run the example to see: https://github.com/charmbracelet/bubbletea/tree/master/examples/send-msg

Something like this when refreshing:

image

And following when app is running (but we also need to print the accounts/mnemonics):

image

For this we can also use some sort of a table too to display accounts and mnemonics and server addresses. See all the examples here. And glamour

Originally posted by @ilgooz in #2420 (comment)

@ivanovpetr
Copy link
Contributor Author

ivanovpetr commented May 10, 2022

We previously had good ideas about improvements of chain serve UX in #1079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:design Design or UX improvements type:new To implement new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants