-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
[Bug]: The Search History from Search Bar and Search Icon is not consistent #3676
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Hello @devilkiller-ag , can you review this issue? I would like to work on it. |
/assign |
Related to asyncapi#3676 Unify the search history between the search bar and search icon. * Introduce a shared search history state in `components/AlgoliaSearch.tsx`. * Update `SearchButton` in `components/AlgoliaSearch.tsx` to use the shared search history state. * Modify `AlgoliaModal` in `components/AlgoliaSearch.tsx` to accept and update the shared search history state. * Update `SearchButton` usage in `components/navigation/NavBar.tsx`, `components/navigation/MobileNavMenu.tsx`, `components/Hero.tsx`, and `components/navigation/DocsMobileMenu.tsx` to pass the shared search history state. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/asyncapi/website/issues/3676?shareId=XXXX-XXXX-XXXX-XXXX).
@Recxsmacx I was planning on working on this. |
Feel free to create a PR @krishi-agrawal |
I made changes to make the search histories consistent, but there is an issue. Now I am able to Search all the 'resources' from my Search bar as well(which was meant to Search docs) , a feature which was expected only from the Navbar search icon I believe. How should I proceed? |
Changing title below search bar to "recent searches in docs" and "recent searches in website" would be a better alternative for this problem. This will provide a more context of the search history to user. |
Fixes asyncapi#3676 Update search functionality to make search history consistent between search bar and search icon. * Update `AlgoliaModal` component in `components/AlgoliaSearch.tsx` to use `INDEX_NAME` for both search placeholders and index name. * Update `SearchButton` component in `components/navigation/DocsNavWrapper.tsx` to use `INDEX_NAME` for searching resources. * Update `SearchButton` component in `components/navigation/DocsMobileMenu.tsx` to use `INDEX_NAME` for searching resources. * Update `SearchButton` component in `components/navigation/NavBar.tsx` to use `INDEX_NAME` for searching resources. * Update `SearchButton` component in `components/navigation/MobileNavMenu.tsx` to use `INDEX_NAME` for searching resources.
@anshgoyalevil I nearly solved this one what to do now?? |
@Recxsmacx Its always better to read contributing guidelines before jumping in to create a PR |
@anshgoyalevil what's the issue here.I cannot understand it |
Describe the bug you found in AsyncAPI Docs.
The Search History from Search Bar and Search Icon is not consistent. This might create confusion for users.
Steps to Reproduce:
Go to https://www.asyncapi.com/docs
Attach any resources that can help us understand the issue.
Searching through the Search icon:

Searching through the Search bar:

Code of Conduct
The text was updated successfully, but these errors were encountered: