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

Improve compare cmd UI #1963

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

s7tya
Copy link
Contributor

@s7tya s7tya commented Aug 14, 2024

I've added the ability to select artifacts and metrics interactively. Now, an interactive prompt will start if the artifacts or metric isn't explicitly specified. I'm curious to know how many people are using a non-instructions:u metric. If the number is significant, we could consider defaulting to instructions:u and disabling the prompt to streamline the user experience.

Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Pretty nice, thanks! I think that we should definitely default into instructions. However, with inquire, it's probably quite non-trivial to "go back" and display the metric selector once you have already shown the result. That's something that leads into a more interactive dialog and ratatui. So for now we can keep the metric dialog.

collector/Cargo.toml Show resolved Hide resolved
collector/src/compare.rs Outdated Show resolved Hide resolved
collector/src/compare.rs Outdated Show resolved Hide resolved
collector/src/compare.rs Show resolved Hide resolved
@s7tya s7tya force-pushed the improve-compare-cmd-ui branch 2 times, most recently from 48f404e to dcf0405 Compare August 14, 2024 08:41
@s7tya
Copy link
Contributor Author

s7tya commented Aug 14, 2024

Thank you for the review! I've fixed them.

Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Got one more idea, left a comment.

collector/src/compare.rs Outdated Show resolved Hide resolved
collector/src/compare.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks!

@Kobzol Kobzol enabled auto-merge August 14, 2024 09:02
@Kobzol Kobzol merged commit aa77f26 into rust-lang:master Aug 14, 2024
11 checks passed
@s7tya s7tya deleted the improve-compare-cmd-ui branch August 14, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants