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

Better question sequence #368

Open
masnax opened this issue Aug 7, 2024 · 1 comment
Open

Better question sequence #368

masnax opened this issue Aug 7, 2024 · 1 comment
Labels
Feature New feature, not a bug

Comments

@masnax
Copy link
Contributor

masnax commented Aug 7, 2024

I've been thinking of using https://github.com/charmbracelet/bubbletea to revamp the microcloud init command sequence a bit

One possible idea is having submenus rather than a sequence of questions, like this:
https://github.com/charmbracelet/bubbletea/tree/master/examples#multiple-text-inputs

But instead of text inputs, we can put the storage & network questions behind these labelled submenus:

> Setup local storage
> Setup distributed storage
> Setup distributed network
> Print summary (as preseed?)
> Deploy MicroCloud

This would make the setup a bit clearer, and incompatibilities like incorrectly configured network interfaces can be noticed immediately rather than halfway down the question sequence. As well, if something is misconfigured, Deploy MicroCloud can error out and return to the submenu selection page so the user can fix the configuration.

@masnax masnax added the Feature New feature, not a bug label Aug 7, 2024
@roosterfish
Copy link
Contributor

Looks great. Another feature that would be handy for the new password input as part of trust establishment is auto completion. Do you know if this is supported?

We can use a wordlist that contains only words with unique first two characters.
So typing the password on the other side would be very convenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants