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

10. As a user, I want to be alerted when I’m entering an empty item or an item that's already on my list #10

Closed
4 tasks done
fullybaked opened this issue Aug 7, 2024 · 0 comments · Fixed by #27
Closed
4 tasks done
Assignees

Comments

@fullybaked
Copy link
Contributor

fullybaked commented Aug 7, 2024

Summary

Users shouldn't be able to add an empty item to their list, or add the same item twice. If they try to do this, we need to show them an error message that explains the problem. This way, we’ll prevent some clutter in their lists.

Acceptance criteria

  • Show an error message if the user tries to submit an empty item
  • Show an error message if the user tries to submit a new item that is identical to an existing name. For instance, if the list contains apples and the user adds apples.
  • Show an error message if the user tries to submit a new item that matches an existing name with punctuation and casing normalized. For instance, if the list contains apples and the user adds aPples or apples, or a pples.
  • The user’s original input is saved in the database

Notes

  • There are a couple of ways to approach this task. If you’re not sure how to begin, ask your mentors for advice!
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 a pull request may close this issue.

3 participants