SherwynNg / pe

0 stars 0 forks source link

Error message does not return the specific error #6

Open SherwynNg opened 4 months ago

SherwynNg commented 4 months ago

Steps to reproduce:

Expected: I expected it to return me that the command is invalid.

Actual: It returns me the error message "Names should only contain..."

Screenshot 2024-04-19 at 4.27.12 PM.png

nus-pe-script commented 4 months ago

Team's Response

In this case the app interprets your command as you are trying to name someone BoB Smith x -e@x.x. Therefore the behaviour is not incorrect. If you wanted to specify @x.x as the email, you have to remember the space after the -e.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: While it's true that the app interpreted the command based on its syntax rules, we must consider the user's perspective and the principle of least surprise. Users may not be familiar with the exact syntax requirements or may forget to include a space after the '-e' option. As a result, the current behavior can lead to confusion and frustration for users who expect the app to gracefully handle common input variations.

To improve user experience and mitigate potential errors, the app could implement more robust input validation and provide clearer feedback when encountering ambiguous commands. For example, instead of solely focusing on the format of names, the app could detect the presence of email-like patterns and prompt the user to confirm their intent. Additionally, offering suggestions or corrections for common mistakes, such as missing spaces, can help users correct their input more easily.