Repository navigation
[CI] (22322bc) react-native/react-native-saas - #3653
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
|
Now I have enough context to produce the full evaluation. PR Evaluation ReportSummaryThis PR integrates PostHog into a React Native SaaS app using the
Confidence score: 5/5 🧙
File changes
App sanity check ✅
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-react-native: ^4.66.0 added to package.json |
| PostHog client initialized | Yes | new PostHog(projectToken, { host, captureAppLifecycleEvents: true, debug: __DEV__ }) in src/config/posthog.js with graceful fallback when env vars missing |
| capture() | Yes | 9 meaningful capture calls across auth, members, projects, and teams sagas |
| identify() | No | Uses raw email as distinct_id and incorrectly wraps properties in `` |
| Error tracking | Yes | PostHogErrorBoundary wraps the navigator inside PostHogProvider |
| Reverse proxy | N/A | React Native (mobile SDK) — reverse proxy only benefits browser-based posthog-js |
| Screen views | Yes | Manual screen tracking via NavigationContainer.onStateChange with posthog?.screen(), autocapture screens disabled to prevent duplicates |
| All targets initialized | Yes | posthog-react-native covers both iOS and Android from the JS layer; no separate native init needed |
Issues
- **Incorrect
wrapping in identify**: `posthog?.identify(email, { : { email } })` creates a nested person propertyinstead of settingemaildirectly. The React Native SDK'sidentify(distinctId, userProperties)automatically handles property setting. Correct usage:posthog?.identify(email, { email }). [CRITICAL] - Email used as distinct_id: Both demo and real login flows pass the user's email as the
distinct_id. The PostHog docs recommend using a stable ID from the auth system (e.g., database user ID). The API'sresponse.datalikely includes a user ID that should be used instead. Using email as distinct_id causes fragmented data if a user changes their email. [MEDIUM]
Other completed criteria
- API key loaded from environment variable via
react-native-config - Host correctly configured via environment variable
posthog?.reset()called on sign out- PostHog is conditionally rendered (graceful fallback when config is missing)
captureAppLifecycleEvents: trueenables lifecycle tracking
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/store/modules/auth/sagas.js |
user_signed_in, user_signed_out |
Tracks sign-in (with login_method: demo/password) and sign-out; calls identify and reset |
src/store/modules/members/sagas.js |
member_role_updated, member_invited |
Tracks member management with update_mode, role_count, invitation_mode properties |
src/store/modules/projects/sagas.js |
project_created |
Tracks project creation with creation_mode property |
src/store/modules/teams/sagas.js |
team_created, team_selected |
Tracks team creation and selection with relevant properties |
src/routes.js |
``, captureException |
Manual screen tracking via posthog?.screen() with previous_screen; error boundary captures exceptions |
Issues
- No critical or medium issues with event quality.
Other completed criteria
- Events represent real user actions in a SaaS product flow (sign in → select team → create project → invite members)
- Events enable funnels and retention analysis
- Events include contextual properties (login_method, creation_mode, role_count, team_id)
- No PII in event properties — email only used in identify (the intended place)
- 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:
22322bcApp:
react-native/react-native-saasApp directory:
apps/react-native/react-native-saasWorkbench branch:
wizard-ci-22322bc-react-native-react-native-saasWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-08-28T19:29:45.607Z
Duration: 414.2s
YARA Scanner