Skip to content

feat(v4): docsearch askAI context #2587

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

Open
wants to merge 6 commits into
base: v4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cypress/e2e/search/actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('Search', () => {
cy.contains('No results for').should('be.visible');
});

it('should not refer to Recent/Favorite in aria-controls', () => {
it('Should not refer to Recent/Favorite in aria-controls', () => {
cy.get('.DocSearch-Input').should('not.have.attr', 'aria-controls');
});
});
Expand Down Expand Up @@ -165,6 +165,7 @@ describe('Recent and Favorites', () => {

// Make sure the specified elements exist
cy.get('.DocSearch-Input')
.click()
.invoke('attr', 'aria-controls')
.then((value) => {
const ids = value!.split(' ');
Expand Down
4 changes: 2 additions & 2 deletions examples/demo-askai/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function App(): JSX.Element {
indexName="beta-react"
appId="betaHAXPMHIMMC"
apiKey="8b00405cba281a7d800ccec393e9af24"
datasourceId="crawler_rag_beta-react-rag"
promptId="crawler_rag_beta-react-rag"
dataSourceId="crawler-beta-react-rag"
promptId="crawler-betaHAXPMHIMMC-TDE"
insights={true}
/>
</div>
Expand Down
6 changes: 5 additions & 1 deletion packages/docsearch-css/src/_variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
:root {
--docsearch-primary-color: rgb(0, 61, 255);
--docsearch-subtle-color: rgb(214, 214, 231);
--docsearch-text-color: rgba(35, 38, 59, 1);
--docsearch-text-color: #36395a;
--docsearch-error-color: #ef5350;
--docsearch-success-color: #e8f5e9;
--docsearch-secondary-text-color: rgba(90, 94, 154, 1);
--docsearch-background-color: rgb(245, 245, 250);
--docsearch-spacing: 12px;
Expand Down Expand Up @@ -54,6 +56,8 @@ html[data-theme='dark'] {
--docsearch-text-color: rgba(196, 199, 220, 1);
--docsearch-secondary-text-color: rgba(182, 183, 213, 1);
--docsearch-subtle-color: rgba(33, 33, 57, 1);
--docsearch-error-color: #ef5350;
--docsearch-success-color: rgba(67, 160, 71, 0.2);
--docsearch-highlight-color: rgba(69, 122, 255, 1);
--docsearch-focus-color: rgb(154, 200, 255);
--docsearch-background-color: rgba(54, 57, 90, 1);
Expand Down
Loading