feat: assistant widget#6754
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ba07b1a. Configure here.
| observeDocsTheme(assistant); | ||
| notifyAssistantReady(); | ||
| void syncAssistantTheme(assistant).catch(reportAssistantError); | ||
| }; |
There was a problem hiding this comment.
Theme sync overrides playground
Medium Severity
openAssistantWidget notifies the playground to apply its settings, then syncAssistantTheme immediately patches appearance.theme back to the docs theme. The theme MutationObserver keeps doing the same on every docs theme toggle, so an explicit light/dark choice in the playground cannot stick.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit ba07b1a. Configure here.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |


Documentation changes
Brief description of what's being updated
Closes
For Reviewers
When reviewing documentation PRs, please consider:
✅ Technical accuracy
✅ Clarity and completeness
✅ User experience
Note
Low Risk
Documentation and client-side embed wiring for a single docs route; no auth, API, or core product logic changes.
Overview
Adds Assistant Widget documentation under Optimize → Assistant, covering install, custom triggers,
update(), API reference, and CSP guidance for@mintlify/assistant-widget.The new
assistant/widgetpage includes an interactive Widget playground that adjusts presentation, theme, hooks, and emits copy-ready HTML or Next.js install snippets while syncing options to a live widget on that page.assistant-widget.jsloads the hosted embed only on/assistant/widget, opens it afterinit(), keeps appearance aligned with docs light/dark mode, and tears the widget down when navigating away (viadata-current-path/popstate).Reviewed by Cursor Bugbot for commit ba07b1a. Bugbot is set up for automated code reviews on this repo. Configure here.