Integrate @probie-dev/react-native passive session signals (env-gated) - #28
Open
grasskin wants to merge 1 commit into
Open
Integrate @probie-dev/react-native passive session signals (env-gated)#28grasskin wants to merge 1 commit into
grasskin wants to merge 1 commit into
Conversation
Mounts ProbieProvider around the app (inside PostHogProvider) via a conditional wrapper: the SDK throws on a missing token, so without EXPO_PUBLIC_PROBIE_TOKEN the provider never mounts and the app is unchanged — the same opt-in-by-environment contract as PostHog. identify()/reset() are wired next to their posthog counterparts. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@grasskin is attempting to deploy a commit to the arjunpkulkarni's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Adds Probie passive issue capture to the Expo app via the published
@probie-dev/react-nativeSDK (v0.1.0). Capture only — renders no UI.Auto-capture from the SDK: JS errors, unhandled rejections, failing requests (XHR interceptor, which covers RN fetch), app-lifecycle flushing. PII-safe: hashed labels, query strings dropped.
What changed
apps/mobile/package.json+ lockfile — add@probie-dev/react-native@^0.1.0(its expo-* / async-storage deps were already in the app)apps/mobile/src/lib/probie.tsx— conditional wrapper: the SDK throws on a missing token, soFitfoProbieProvideronly mountsProbieProviderwhenEXPO_PUBLIC_PROBIE_TOKENis set; otherwise it renders children unchanged (same opt-in-by-environment contract as PostHog)apps/mobile/App.tsx— wrapper mounted insidePostHogProvider;probieIdentifynext toposthog.identifyon login,probieResetnext toposthog.reseton logout (both are safe no-ops when the provider never mounted)apps/mobile/.env.example— documentsEXPO_PUBLIC_PROBIE_TOKEN/EXPO_PUBLIC_PROBIE_HOSTNot wired: screen tracking (the app uses hand-rolled navigation, not expo-router/react-navigation —
trackScreen()can be added at nav sites later) andProbiePressable/useProbieFormopt-in instrumentation.Enabling it
Set
EXPO_PUBLIC_PROBIE_TOKEN(the project's public widget token,pb_...) in the build environment. No token in this PR; without it nothing mounts.Verified
tsc --noEmit: 126 errors on cleanmain, 126 on this branch — no new errorsvitest: identical to cleanmain(8 files / 1 test pre-existing failures, unrelated)401 invalid widget tokenon a placeholder POST)🤖 Generated with Claude Code