Algolia search/side panel#2824
Conversation
|
@swastik7805 is attempting to deploy a commit to the Consensys Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
@bgravenorst @alexandratran @AyushBherwani1998 @yashovardhan hey guys, i have successfully integrated the Algolia Ask Ai sidepanel.Tested it out and resolved SSG error builds and styling css bleed as suggessted by cursorbot. PR is not updated and ready for review. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
| 'Have a question about integrating with MetaMask? Ask here and get an answer from the developer docs.', | ||
| }, | ||
| }, | ||
| }} |
There was a problem hiding this comment.
Translations prop incorrectly nested inside panel prop
Medium Severity
The translations configuration is passed nested inside the panel prop, but according to the DocSearchSidepanel API, translations is a separate top-level prop, not a sub-property of panel. The panel prop accepts layout options like variant, side, width, etc. As a result, the custom introductionText string is silently ignored and the sidepanel displays default text instead of the intended "Have a question about integrating with MetaMask?" message.
Reviewed by Cursor Bugbot for commit b2101a3. Configure here.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 553d40f. Configure here.
|
Thanks for your contribution @swastik7805 🚀 |


Description
This PR integrates the Algolia Ask AI Sidepanel (
<DocSearchSidepanel />) into the MetaMask documentation, adding a floating "Ask AI" button that enables users to query Algolia's AI directly from the docs.Key changes include:
@docsearch/reactSidepanel component tosrc/theme/Root.tsxto globally render the floating button. Dynamically mapped credentials fromthemeConfig.algolia.src/scss/theme/_doc-search.scssto fix Sidepanel specific regressions—such as oversized textareas, misaligned submit icons, and transparent backgrounds. Tailored the chat UI to follow MetaMask's design tokens.useIsBrowser.Feature Requested
Algolia Ask AI floating button feature
Fixes #2756 proposed by @bgravenorst
Preview
Algolia-Ask-Ai.mp4
Checklist
External contributor checklist
Note
Medium Risk
Adds a new third-party UI surface rendered globally from
Root.tsxand applies broad CSS overrides, which could impact rendering/styling across the site and cause SSR/hydration issues if misconfigured.Overview
Integrates Algolia’s Ask AI sidepanel into the docs by adding
@docsearch/react/@docsearch/cssand conditionally rendering<DocSearchSidepanel />fromsrc/theme/Root.tsxwhenthemeConfig.algoliaincludes anassistantId(guarded byuseIsBrowser).Extends
src/scss/theme/_doc-search.scsswith targeted overrides for the floating “Ask AI” launcher and sidepanel UI (chat input/layout, typography, related sources, dark/light theming) to match MetaMask design tokens and avoid style bleed into the main DocSearch modal.Reviewed by Cursor Bugbot for commit 553d40f. Bugbot is set up for automated code reviews on this repo. Configure here.