vectara / react-search Goto Github PK
View Code? Open in Web Editor NEWUI widget for adding semantic search to your React UI in just a few lines of code
Home Page: https://vectara.github.io/react-search/
License: Apache License 2.0
UI widget for adding semantic search to your React UI in just a few lines of code
Home Page: https://vectara.github.io/react-search/
License: Apache License 2.0
For insights purposes, we can add a header param to queries coming from search. This helps us measure the usage of this component to query our API/
This will be useful for any device that lacks an “Escape” button, e.g. a touchscreen. This also will fix a critical bug on smaller touchscreens, because on those devices the modal occupies the entire screen and there’s no way to dismiss it.
This hook currently returns { fetchSearchResults, isLoading }
. I noticed two things:
I think we can reconcile these differences and create more symmetry between the action and the state. I suggest erring on the side of verbosity to avoid potential conflicts with the consumer's variables, e.g. a local isLoading
variable. I'd suggest { fetchSearchResults, isFetchingSearchResults }
.
Currently, setting isDeeplinkable
will persist the search query to the search
query parameter. This could collide with a query parameter already in use by the consumer. We can resolve this by providing an option for persisting the search query to a different query parameter.
@mrderyk You were right -- it would be nice to be able to customize this button's text! 😅
Currently, this links to the url
metadata.
We need to verify that this won't break projects on React 18.
Relates to vectara/vectara-docs#227
react-icons currently takes up over 83% of our bundle size. Let's look for an alternative, since we only need one icon, and deep-importing from react-icons doesn't look to be working.
We can support basic themes that change the color scheme, e.g. green, orange, red, dark.
The component needs to handle errors and surface them to the user.
Search results can be configured with arbitrary metadata, and the consumer should be able to use this metadata to drive how a search result is rendered. One solution could be to provide a search result deserializer prop and a render prop.
We need to publish type definitions for TS codebases that consume this component.
We should consider the user journey from using this component in prototypes (API keys) to using it in production (OAuth).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.