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 discoverability of fix option #205

Merged
merged 1 commit into from
Sep 15, 2021
Merged

Improve discoverability of fix option #205

merged 1 commit into from
Sep 15, 2021

Conversation

bmish
Copy link
Owner

@bmish bmish commented Sep 15, 2021

Improves discoverability of this autofix option by showing it when the user sees the mismatching version output. Many users may not realize they can automatically fix all problems detected.

@bmish bmish added the enhancement New feature or request label Sep 15, 2021
@@ -35,7 +35,7 @@ export function mismatchingVersionsToOutput(
return [
`Found ${mismatchingDependencyVersions.length} ${
mismatchingDependencyVersions.length === 1 ? 'dependency' : 'dependencies'
} with mismatching versions across the workspace.`,
} with mismatching versions across the workspace. Fix with \`--fix\`.`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could chalk be used here instead of backticks?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I don't immediately see a chalk formatting option that looks analogous to the backtick/code markdown formatting i.e. --fix.

Copy link
Collaborator

Choose a reason for hiding this comment

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

My idea would be to use bold formatting or something similar since the backticks will appear unformatted in a terminal.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I could try that. One thing I want to be careful about however is that the output looks fine even for users with non-colored terminals.

Copy link
Owner Author

@bmish bmish Sep 15, 2021

Choose a reason for hiding this comment

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

I tried bold and I don't think it made sense to highlight it like that. This isn't critical information.

@bmish bmish changed the title Suggest fix option in mismatching version output Improve discoverability of fix option Sep 15, 2021
@bmish bmish merged commit 0990ab0 into master Sep 15, 2021
@bmish bmish deleted the suggest-fix branch September 15, 2021 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants