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

Ar sm add list filter form #23

Merged
merged 5 commits into from
Sep 1, 2024
Merged

Ar sm add list filter form #23

merged 5 commits into from
Sep 1, 2024

Conversation

arandel1
Copy link
Collaborator

Description

User can now search for items in their shopping list by searching part of the word or list item. The list displayed is an unfiltered list, and it filters once the user begins typing in the input. The user can use the Clear button to clear the input box.

Related Issue

closes 7

Acceptance Criteria

[x] The form includes the following elements List view, above the shopping list
[x] A text field (with semantic !) which narrows down the list as the user types
When there’s text in the field, some kind of button (e.g., an X) to clear the field. When the field is cleared, the list is reset to its unfiltered state.

Type of Changes

feature enhancement

Updates

Before

Screen Shot 2024-08-28 at 3 50 54 PM

After

Screen Shot 2024-08-28 at 3 49 08 PM

Testing Steps / QA Criteria

Visit branch and have a list ready, type letters in the input, and matching words should display, and the clear button should clear the input and the unfiltered list should display.

Copy link

github-actions bot commented Aug 28, 2024

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

https://tcl-76-smart-shopping-list--pr23-ar-sm-add-list-filte-og3ncsb4.web.app

(expires Sat, 07 Sep 2024 22:27:21 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 512b1a88be8ae05fd3e727b99332819df760271d

src/views/List.jsx Show resolved Hide resolved
src/views/List.jsx Outdated Show resolved Hide resolved
@sar-mko sar-mko removed the request for review from fullybaked August 31, 2024 22:28
Copy link
Collaborator

@MarcosPerez16 MarcosPerez16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled the most recent code for this issue and tested the filter. Everything works and great job with the implementation. I had seen that there was two useEffects but that was already covered and fixed. Great job guys! I like the fact that the filter works regardless of whether I type in upper or lower case.

@sar-mko sar-mko merged commit 3a88def into main Sep 1, 2024
2 checks passed
@MarcosPerez16 MarcosPerez16 deleted the ar-sm-add-list-filter-form branch September 5, 2024 16:37
@sar-mko sar-mko mentioned this pull request Sep 30, 2024
2 tasks
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.

6 participants