-
Notifications
You must be signed in to change notification settings - Fork 271
Feature/sdks and docs #239
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughThe PR implements a Proxy-based window.op initialization pattern across multiple SDKs, adds comprehensive tracking and onboarding documentation, bumps SDK versions, consolidates TypeScript configurations to a unified SDK schema, and refines the web SDK's type system with new API shapes and validation tests. Changes
Sequence Diagram(s)sequenceDiagram
participant App as App/Page
participant Proxy as window.op<br/>(Proxy Handler)
participant Queue as Internal Queue<br/>(Array)
App->>Proxy: window.op('track', 'click')
activate Proxy
Proxy->>Queue: Push ['track', 'click']
deactivate Proxy
App->>Proxy: window.op.q
activate Proxy
Note over Proxy: get trap: "q" property
Proxy-->>App: Return Queue array
deactivate Proxy
App->>Proxy: window.op.identify({ id: '123' })
activate Proxy
Note over Proxy: get trap: retrieve bound function
Proxy->>Queue: Push ['identify', { id: '123' }]
deactivate Proxy
sequenceDiagram
participant SDK as Framework SDK<br/>(Next.js/Astro)
participant getInitSnippet as getInitSnippet()<br/>Function
participant Script as Script Output
SDK->>getInitSnippet: Call getInitSnippet()
activate getInitSnippet
getInitSnippet-->>SDK: Return minified Proxy init code
deactivate getInitSnippet
SDK->>Script: Prepend snippet + method bindings
activate Script
Note over Script: Combine init snippet with<br/>SDK-specific method setup
Script-->>SDK: Complete inline script
deactivate Script
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (36)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.