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

implement changes for normalizing item names #40

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

eva-lng
Copy link
Collaborator

@eva-lng eva-lng commented Sep 26, 2024

Description

Created a NormalizeItemName function to capitalize the first letter of an item and convert the rest to lowercase

Related Issue

closes #37

Acceptance Criteria

  • Create a NormalizeItemName function in the ManageList component
  • Use this function in the ManageList component and convert the user's input upon entry before adding the item to the list using the addItem function.

Type of Changes

enhancement

Updates

Before

Before-item List

After

After-item List

Testing Steps / QA Criteria

  • Do npm start in the branch
  • Navigate to the ManageList page
  • Add a new list item with random naming standards
  • Check the name in the list view. It should be normalized

Copy link

Visit the preview URL for this PR (updated for commit acb7feb):

https://tcl-78-smart-shopping-list--pr40-tc-el-normalize-item-haykx7h5.web.app

(expires Thu, 03 Oct 2024 19:16:36 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c781903507c1507075d7a974036959ddeec29c0a

@eva-lng eva-lng merged commit c062b84 into main Sep 26, 2024
3 checks passed
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 this pull request may close these issues.

37.As a user, I want all the items being added to my list to have the same naming standards.
1 participant