[CI] (6b2dc8b) react-native/react-native-saas - #3736
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
|
Now I have all the context needed. Let me produce the evaluation. PR Evaluation ReportSummaryThis PR integrates PostHog into a React Native SaaS app using the
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo issues.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-react-native@^4.66.3 added with peer deps (react-native-svg) |
| PostHog client initialized | Yes | Correctly uses new PostHog(token, { host, captureAppLifecycleEvents: true }) |
| capture() | Yes | 9 meaningful capture calls across auth, members, projects, and teams sagas |
| identify() | No | Uses email as distinct_id (acceptable fallback) but incorrectly wraps properties with `` |
| Error tracking | Yes | PostHogErrorBoundary wraps the navigation stack with a fallback component |
| Reverse proxy | N/A | Mobile app — reverse proxy only applies to browser-based posthog-js |
Issues
- **Incorrect
wrapping in identify**: The `identify()` calls pass `{ : { email } }` as userProperties. The `posthog-react-native` SDK's `identify(distinctId, userProperties)` already wraps the second argument asinternally. This double-nesting means the email won't be set as a person property — instead, a property literally named `` will be created with{ email: "..." }as its value. Fix: change to `posthog?.identify(email, { email })`. [MEDIUM]
Other completed criteria
- API key loaded from environment variable via react-native-config
- API host correctly configured from environment variable
- Screen views tracked manually via NavigationContainer's
onStateChangewithposthog?.screen() - Both iOS and Android targets covered by single
posthog-react-nativeinitialization posthog?.reset()called on sign-out- Dev-mode console errors when env vars are missing
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/routes.js |
screen(), captureException (via boundary) |
Tracks screen navigation changes and captures uncaught exceptions |
src/store/modules/auth/sagas.js |
user_signed_in, user_signed_out |
Tracks authentication lifecycle with authentication_method property |
src/store/modules/members/sagas.js |
member_roles_updated, member_invited |
Tracks member management with update_method/invitation_method properties |
src/store/modules/projects/sagas.js |
project_created |
Tracks project creation with creation_method property |
src/store/modules/teams/sagas.js |
team_created, team_selected |
Tracks team management actions |
Issues
No issues.
Other completed criteria
- Events represent real user actions (sign in, create project, invite member, select team)
- Events enable product insights — can build sign-in → project creation → member invitation funnels
- Events include contextual properties (authentication_method, creation_method, etc.)
- No PII in capture properties — email only used in identify calls (person properties)
- Event names follow consistent snake_case naming convention
Reviewed by wizard workbench PR evaluator
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.
Automated wizard CI run
Source: wizard-pr
Trigger ID:
6b2dc8bApp:
react-native/react-native-saasApp directory:
apps/react-native/react-native-saasWorkbench branch:
wizard-ci-6b2dc8b-react-native-react-native-saasWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-01T15:57:02.824Z
Duration: 442.6s
YARA Scanner