-
Notifications
You must be signed in to change notification settings - Fork 125
feat: enable Kapa AI chat widget #1937
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables the Kapa AI chat widget by adding an "Ask AI" button to the main navigation bar alongside the existing Algolia search functionality. The implementation replaces the previous A/B testing setup with a permanent integration of the Kapa AI widget.
- Adds a dedicated "Ask AI" button component that opens the Kapa AI chat widget
- Removes unused Inkeep styling overrides and configuration
- Updates the search modal package to support the new dual-search interface
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
static/inkeep-overrides.css | Removes unused Inkeep font size overrides |
apify-docs-theme/src/theme/SearchBar/styles.css | Adds styling for the new Ask AI button and container layout |
apify-docs-theme/src/theme/SearchBar/index.js | Implements KapaAIButton component and integrates it with existing search |
apify-docs-theme/src/config.js | Enables Kapa AI widget script and removes unused Inkeep configuration |
apify-docs-theme/package.json | Updates docs-search-modal package version |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
Comment @cursor review
or bugbot run
to trigger another review on this PR
Preview for this PR was built for commit |
'data-font-size-lg': '1.8rem', | ||
'data-font-size-xl': '2.0rem', | ||
async: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the original values were for. In the last commit, I used the data-scale-factor: '1.6'
attribute, since we're still using the base font size of 10px
.
This made the AI modal look much better, since we're scaling margins / paddings now as well.
)} | ||
</BrowserOnly> | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I talk to the bot, then go to search and from the search, I'll trigger the AI bot again, it will ask the question, but I'm not scrolled to it, I keep seeing the first message of my previous discussion. Could we scroll to the current question being asked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is currently possible with the Kapa AI widget API, sorry.
Preview for this PR was built for commit |
Preview for this PR was built for commit |
Adds an
Ask AI
button to the main top bar and an Ask AI tab to the search modal.