yenly / smart-shopping-list

An exercise in walking in mentees' shoes to understand and empathize.
https://yenly-smart-shopping-list.netlify.app
1 stars 0 forks source link

Feat prevent duplicate items #22

Closed yenly closed 3 years ago

yenly commented 3 years ago

Description

Validate new item does not exist on the list before saving to DB. Validation should account for capitalization and punctuations.

Related Issue

Closes #6

Acceptance Criteria

Type of Changes

Type
:bug: Bug fix
:sparkles: New feature
:hammer: Refactoring
:100: Add tests
:link: Update dependencies
:scroll: Docs

Updates

Testing Steps / QA Criteria

  1. Navigate to https://yenly-smart-shopping-list.netlify.app/
  2. Join a list using token nuance banks packet
  3. Click on Add item
  4. Add "milk", app should display a warning message that the item already exists on the list.
  5. Try adding "milk?!", app should display a warning message again
  6. Try adding a new item, not on the list, app should display a confirmation message and change to list view