feat: embedded agent shortcuts#244
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
superwall-docs | 7808377 | Commit Preview URL Branch Preview URL |
Jul 08 2026, 08:13 PM |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1f519fa. Configure here.
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.

Summary
widget.jsAPI so the site can choose floating or docked presentation.Cmd/Ctrl+Iopens or closes the floating agent,Esccloses the agent UI, andCmd+Shift+Iopens/toggles docked mode.--superwall-agent-panel-widthvariable so docked mode pushes the docs layout on desktop.Validation
bunx oxlint src/components/AgentChatWidget.tsx src/components/SearchDialog.tsxbun run build:cfbun testEscclose, docked open, and docked close behavior./Users/dcrawbuck/.agents/skills/autoreview/scripts/autoreview --mode localreported no accepted/actionable findings.Note
Medium Risk
Touches global keyboard handlers and third-party widget lifecycle (init/destroy), which can affect layout and shortcut behavior site-wide, but failures are caught so docs stay usable.
Overview
Replaces passive
widget.jsinjection with manualwindow.SuperwallAgentinitialization so the docs site can pick floating vs docked presentation, re-init when the mode changes, and seed opens with an optional query.Adds keyboard control:
Cmd/Ctrl+Itoggles the floating agent (close if open, else open),Esccloses it, andCmd+Shift+Itoggles docked mode. Search Ask AI and in-dialogCmd/Ctrl+Inow callopenAgentWidgetdirectly (with the current search text);Cmd+Shift+Ifrom search opens docked. The Ask AI control gets an accessible shortcut tooltip styled like other search kbd hints.Layout/CSS: introduces
--superwall-agent-panel-widthand animatesmargin-righton the main Fumadocs layouts so docked mode pushes content on desktop; drops the old locally ported[data-agent-*]panel/teaser styles now owned by the hosted widget.Reviewed by Cursor Bugbot for commit 7808377. Bugbot is set up for automated code reviews on this repo. Configure here.