feat(cas): add fullscreen mode support#103
Draft
scottcmg wants to merge 1 commit into
Draft
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
📊 Coverage Report
|
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.
What
Adds a
mode?: "embedded" | "fullscreen"prop to the conversational-agent-chat widget. Previously the widget hardcoded Apollo'sAutopilotChatMode.Embedded, so it could never render the standalone fullscreen experience — which is the default of the iframe-based chat this widget is meant to replace.In fullscreen mode Apollo renders the agent sparkle icon next to the title (it gates that logo on
chatMode === FullScreen), so this also resolves the "missing icon" gap vs. the existing standalone chat.Changes
types.ts— new publicmodeprop, defaults to"embedded"(non-breaking).ConversationalAgentChat.tsx— mapmodeto the Apollo enum in the chat config, add it toinitChatdeps so a prop change reinitializes, and apply a--fullscreenwrapper modifier class.ConversationalAgentChat.scss—--fullscreendrops the wrapper border so Apollo's own viewport-height container owns the chrome (avoids a double frame).modecontrol + a dedicated Fullscreen story with a full-viewport decorator.mode: FullScreenand applies the class.Notes
"embedded"(non-breaking). The iframe app being replaced defaults to fullscreen — easy to flip if we want parity.Verification
tsc --noEmit: clean🤖 Generated with Claude Code