Demo: trigger Angie on sidebar open in full-config example - #48
Merged
Conversation
…ar boot process - Added ExternalHeadersCallback type to support dynamic header retrieval. - Integrated initHostApiBridge function to initialize the host API with external headers. - Updated bootSidebar to call initHostApiBridge with the necessary configuration. - Created tests for host API bridge to validate header retrieval and error handling. - Ensured callbacks are preserved in the configuration resolution process.
- Added support for retrieving website and analytics context from the host configuration. - Updated initHostApiBridge to accept host configuration, including website and analytics data. - Implemented new message types for website and analytics context requests. - Enhanced tests to validate the retrieval of website and analytics context from the host. - Introduced localStorage handling for GET and SET operations in the host API bridge.
Add integration README, full-config browser demo with host CSS, and link from root README.
Wire the full-config demo toggle to call triggerAngie with an SEO prompt when opening Angie, and sync package-lock.json to v1.4.9.
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
load-sidebar-v2-full-configdemo toggle to calltriggerAngiewith an SEO prompt when opening Angie (capture phase so it runs before the SDK collapse handler).package-lock.jsonroot version fields to1.4.9to matchpackage.json.Test plan
#demo-togglenpm cisucceeds with the updated lockfile✨ PR Description
1. Problem & Context
Demo showcase for triggering Angie AI assistant with contextual prompts when user opens sidebar. Demonstrates the
triggerAngieAPI capability in full-config example (ticket: AI-8410).2. What Changed (Where)
host.js: Added click handler to toggle button that fires SEO optimization prompt when sidebar opensindex.html: Documented the new SEO prompt behavior in demo description3. How It Works
Toggle click listener checks
aria-expandedattribute; if opening (not 'true'), callssdk.triggerAngie()with SEO prompt. Captures sidebar open event via existing toggle element.4. Risks
None — demo-only code with optional chaining (
?.), guarded byisOpeningcheck preventing duplicate triggers on close.Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how