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

validator exiting ux improvement, add a log and update size for promptui #13542

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

james-prysm
Copy link
Contributor

What type of PR is this?

Other

What does this PR do? Why is it needed?

a size was not passed for promptui resulting in only 5 public keys displayed while using voluntary exits, this PR adds a log to print recommendations and allows the user to use promptui with more than 5 keys.

@james-prysm james-prysm added the UX cosmetic / user experience related label Jan 26, 2024
@james-prysm james-prysm requested a review from a team as a code owner January 26, 2024 21:20
Comment on lines +45 to +46
if len(pubKeyStrings) > 5 {
log.Warnf("there are more than %d potential public keys to exit, please consider using the --%s or --%s flags", 5, flags.VoluntaryExitPublicKeysFlag.Name, flags.ExitAllFlag.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 feels like a bit of a magic number, is there a constant we can use for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a magic number in that library we are using if you look in that promptui not sure if it changes on updates

@james-prysm james-prysm added this pull request to the merge queue Jan 30, 2024
Merged via the queue into develop with commit 2581233 Jan 30, 2024
17 checks passed
@james-prysm james-prysm deleted the promptui-exiting-ux branch January 30, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX cosmetic / user experience related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants