-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: integrate customer-io in-app messages #9510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR integrates Customer.io's in-app messaging SDK into Insomnia, enabling the display of targeted in-app messages to users. The integration includes SDK initialization, user identification, and workarounds for protocol handler conflicts.
Key changes:
- Added Customer.io SDK integration with a custom React hook for initialization and user identification
- Implemented workarounds for iframe redirect and protocol handler conflicts
- Added Google Fonts bypass to the custom HTTPS protocol handler
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/insomnia/src/ui/hooks/use-cio.tsx | New React hook that initializes the Customer.io SDK and handles user identification with a global singleton pattern |
| packages/insomnia/src/ui/containers/app-hooks.tsx | Integrates the Customer.io hook into the app's lifecycle |
| packages/insomnia/src/entry.client.tsx | Adds postMessage event interception to work around iframe redirect issues with Customer.io SDK |
| packages/insomnia/src/main/api.protocol.ts | Adds Google Fonts domains to bypass custom protocol handler |
| packages/insomnia/src/common/constants.ts | Adds helper functions to retrieve Customer.io API keys and site IDs |
| packages/insomnia/config/config.json | Adds Customer.io configuration for development and production environments |
| packages/insomnia/package.json | Adds @customerio/cdp-analytics-browser dependency |
| package-lock.json | Lock file updates for new dependencies |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
✅ Circular References ReportGenerated at: 2025-12-26T07:18:32.104Z Summary
Click to view all circular references in PR (167)Click to view all circular references in base branch (167)Analysis✅ No Change: This PR does not introduce or remove any circular references. This report was generated automatically by comparing against the |
yaoweiprc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
INS-1642
Background
Integrate customer io in-app messages into insomnia
Changes
Did some tricks to ensure cio messages and google fonts work on insomnia