CATcher-org / CATcher

CATcher is a software application used for peer-testing of software projects.
https://catcher-org.github.io/CATcher/
MIT License
71 stars 66 forks source link

Add whitespace validation #1237

Closed MadLamprey closed 5 months ago

MadLamprey commented 5 months ago

Summary:

Fixes #1217

Changes Made:

Screenshot 2024-01-21 at 11 49 03 PM

Proposed Commit Message:

Add validation for title containing only whitespaces

An error message is displayed when user enters only whitespaces but does not provide sufficient information or remedy.

Updating the error message to clearly indicate the problem enhances the user experience.

Let's create a noWhitespace validator to check for title containing only whitespaces.
codecov-commenter commented 5 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (013fbfa) 53.86% compared to head (478b7d1) 53.82%.

Files Patch % Lines
src/app/core/validators/noWhitespace.validator.ts 50.00% 1 Missing and 1 partial :warning:
...ase-bug-reporting/new-issue/new-issue.component.ts 50.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1237 +/- ## ========================================== - Coverage 53.86% 53.82% -0.04% ========================================== Files 101 102 +1 Lines 2885 2889 +4 Branches 534 535 +1 ========================================== + Hits 1554 1555 +1 - Misses 988 989 +1 - Partials 343 345 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.