Mintplex-Labs / vector-admin

The universal tool suite for vector database management. Manage Pinecone, Chroma, Qdrant, Weaviate and more vector databases with ease.
https://vectoradmin.com/
MIT License
1.49k stars 227 forks source link

Workspace Search on Sidebar and Workspace Table #18

Closed timothycarambat closed 1 year ago

timothycarambat commented 1 year ago

As a user with many workspaces, I can already infinite scroll the workspaces available to the user. However, to find a workspace of specific interest I crtl+f the page and try to find it. Since infinite scroll was implemented I can no longer use this method.

An automatic "search filter" should be present on the side bar below the workspace header that I can type in and the desired (or no result) will appear once done typing.

Screen Shot 2023-08-01 at 4 31 01 PM

Likewise, a "search" filter function should be present on the Workspaces table on the Org page. It should function the same.

Screen Shot 2023-08-01 at 4 36 17 PM

Dev notes: The workspaces on the side bar and in the table are logically linked. Updating workspaces on the sidebar will impact the results in the table. The table should probably not auto-filter.

Some other considerations are a "Search" and "Infinite" scroll mode. When the search input is non-null/empty we hide infinite scroll and show only search results. Same for the table. This way the original workspace state does not change constantly.

The sidebar component will be busy adding this so I suggest extracting the Search/Infinite scroll to a new component or subcomponent of the Sidebar. Adding this all into the Sidebar file will be a mess.