oss-slu / shelter_volunteers

MIT License
3 stars 4 forks source link

Display the list of shelters based on the text provided in the "Search" field #76

Closed SiriChandanaGarimella closed 8 months ago

SiriChandanaGarimella commented 8 months ago

Is this task related to a feature or a bug? Please include relevant issue numbers below. This task contributes to resolving issue #72

Describe the solution you'd like

  1. Fetch the input provided in the "Search" field after the search button is clicked
  2. Trim the spaces if more than 1 space is provided after or before a word.
  3. Identify the list of shelters that have their names matching with the input provided in the "Search" field.
  4. (OR) Identify the list of shelters that have a word in their name matching with the input provided in the "Search" field.
  5. Display those shelters on the "Sign Up For Shifts" page.
  6. Display all the shelters as per the current logic if no input, only spaces are provided or the user clears the text, in the "Search" field.
  7. Display a text as "No shelter with that name is found" if there is no match to any shelter name and display all the shelters as per the current logic.