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

The search box issue #7

Open
mohsenkhosroanjam opened this issue Jan 3, 2025 · 1 comment
Open

The search box issue #7

mohsenkhosroanjam opened this issue Jan 3, 2025 · 1 comment
Labels
fix For issues that involve bug fixes, layout adjustments, or functionality corrections in the project. good first issue Good for newcomers

Comments

@mohsenkhosroanjam
Copy link

Description:
As a user, I can search for something at the top of the website.

Actual result:
When I write something in the search box and press enter, nothing happens.

Expected result:
When the user searches for something, the result should be shown based on the keywords.

Steps to reproduce:
1- Go https://codecandy.suraniharsh.codes/
2- Write something in the search box
3- Press enter

Screenshot:
search

@suraniharsh suraniharsh added fix For issues that involve bug fixes, layout adjustments, or functionality corrections in the project. good first issue Good for newcomers labels Jan 3, 2025
@suraniharsh
Copy link
Owner

Hi @mohsenkhosroanjam ,

Thank you for pointing out this issue! I agree that the search functionality is crucial for improving the user experience. Here’s the detailed plan for fixing the search functionality:

"Fix Search Functionality: Enabling Search to Return Results"

Description:
Currently, when a user enters a search term in the search box and presses enter, nothing happens. The goal is to fix this issue so that when a user searches for something, the relevant results are displayed based on the entered keywords.

Expected Outcome:

  • When a user enters a search query and presses enter, the results based on the search keywords should be shown.
  • Ensure that the search results match the relevant content on the website, making it easy for users to find what they’re looking for.
  • If no results are found, display a friendly message like "No results found."

Tasks:

  1. Investigate the current search functionality to understand why it’s not working.
  2. Implement the logic to capture the search input and query the relevant content.
  3. Display search results based on the keywords entered in the search box.
  4. Handle cases where no results are found and provide appropriate feedback.
  5. Test the search functionality to ensure that it works correctly across different content types.
  6. Create a separate branch for this fix and submit a pull request once the fix is implemented.
    • Branch Name:
      • fix/search-functionality
  7. Address any feedback provided by code reviewers.

Screenshot of the Issue:
[Attach a screenshot of the current search bar and the expected result after implementing the fix.]

Deployed Link:
[Provide the live link to the website where the fix will be implemented.]

I’ve created a branch named fix/search-functionality to resolve this issue and will make sure the search works smoothly. Let me know if you have any questions or suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix For issues that involve bug fixes, layout adjustments, or functionality corrections in the project. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants