feat: add ADK assistant to the docs bot panel#469
Merged
jacksonyzj merged 3 commits intomasterfrom May 1, 2026
Merged
Conversation
assistant.js changes:
- DEFAULT_BOT_URL / ADK_BOT_URL constants; iframe.src is swapped at
init and on every SPA route change based on isAdkRoute().
- On `requestTheme` messages from the iframe, post the current
<html class="dark"> state back as a themeChanged event.
- MutationObserver on <html> class — broadcasts themeChanged to the
iframe whenever the docs theme toggles.
⚠️ ADK_BOT_URL is currently set to the local dev server
(http://localhost:5173/docs-bot/agent-0-copilot/) for prototyping the
three frontend designs. Swap it to the gh-pages deploy URL or the
production cdn.botpress.cloud URL before pushing this branch.
- Point ADK_BOT_URL at adk-bot-frontend (port 5175, gh-pages path) - Fix isAdkRoute(): only swap bot on /adk/<subpage>, not bare /adk or /adk/ - Restore panel open state across same-tab navigations via sessionStorage - Handle navigate postMessage from iframe (same-origin: same tab, cross-origin: new tab) - Fix bot panel bottom gap: switch from fixed height to bottom:0/height:auto Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
adkah
approved these changes
May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
assistant.jsandstyles.cssto integrate a second bot panel for ADK pages.What changed
Two-iframe approach — both the default docs bot and the new ADK assistant load
on page init. Switching between them is a CSS visibility toggle (opacity +
pointer-events) rather than a src swap, so there's no reload flash when navigating
between ADK and non-ADK pages.
Route-based switching —
/adk/*pages show the ADK assistant; everything elseshows the default docs bot. No change to existing bot behavior on non-ADK routes.
Session restore — clicking a docs link inside the bot navigates same-tab and
automatically reopens the panel on the destination page via
sessionStorage.Theme sync — light/dark class changes are forwarded to both iframes so the chat
UI matches the docs theme.
Panel height fix — changed
calc(100vh - 4.64rem)tobottom: 0; height: autoso the panel fills to the bottom of the viewport correctly on all screen heights.
Follow-up needed after merge
ADK_BOT_URLcurrently points at a fork-hosted preview(
jacksonyzj.github.io/docs-bot/adk-bot-frontend/). Oncebotpress/docs-bot#1 merges and the
GitHub Action deploys to
botpress.github.io, update line 64 to: