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

Fixes #498: "Validation Message Should be User Friendly" #764

Merged

Conversation

cyrusjc
Copy link
Contributor

@cyrusjc cyrusjc commented Apr 8, 2024

Fixes #498

Just a quick client side change which checks if the trimmed length of issueTitle is 0.

We could add another error message that says "Please enter valid title" or something similar to that effect for further clarification but IMO this is enough.

image

@mattermost-build
Copy link
Contributor

Hello @cyrusjc,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@cyrusjc cyrusjc changed the title Fixes #498: " Fixes #498: "Validation Message Should be User Friendly" Apr 8, 2024
@hanzei hanzei requested review from Kshitij-Katiyar and removed request for hanzei April 8, 2024 06:58
@hanzei hanzei added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Apr 8, 2024
this.setState({
issueTitleValid: Boolean(this.state.issueTitle),
issueTitleValid: Boolean(isValidTitle),
Copy link
Contributor

Choose a reason for hiding this comment

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

@cyrusjc Thanks for the PR.
Here isValidTitle is already going to be a boolean value. Is there any need to type caste into a Boolean again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah no particular reason other than a small oversight on my part.

Copy link
Member

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

Excellent, thank you @cyrusjc! LGTM 👍

@mickmister mickmister added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Apr 23, 2024
@mickmister mickmister merged commit fba634d into mattermost:master Apr 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request Contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation Message Should be User Friendly
5 participants