Repository navigation
[CI] (714adde) react-native/react-native-saas - #5176
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 all the context needed. Let me produce the evaluation. PR Evaluation ReportSummaryThis PR integrates PostHog into a React Native SaaS management 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.87.0 added to dependencies along with peer deps (react-native-device-info, react-native-config, etc.) |
| PostHog client initialized | Yes | new PostHog(projectToken, { host, captureAppLifecycleEvents: true, errorTracking: {...}, logs: {...} }) — correct React Native pattern |
| capture() | Yes | Multiple meaningful capture calls across auth, member, project, and team sagas |
| identify() | No | posthog.identify(email, { email }) uses raw email as distinct_id; not called on session restore |
| Error tracking | Yes | errorTracking.autocapture configured with uncaughtExceptions: true and unhandledRejections: true |
| Reverse proxy | N/A | Mobile SDK — reverse proxy is not applicable |
Issues
- Email as distinct_id:
posthog.identify(email, { email })uses the user's email directly as the distinct ID. The PostHog docs recommend using a stable ID from your auth system (e.g., a database user ID). Ifresponse.datafrom the login API contains a user ID, that should be used instead. Email is an acceptable fallback only when no other stable identifier exists, but it risks data fragmentation if users change their email. [MEDIUM] - Missing identify on session restore: The
init()saga restores a session from AsyncStorage when a token exists, but never callsposthog.identify(). Events captured during a restored session remain anonymous until the next explicit sign-in. Add an identify call in theinit()saga when a valid session is detected. [MEDIUM]
Other completed criteria
- API key loaded from environment variable via
react-native-config - Host correctly configured from environment variable
PostHogProviderwraps the app with the initialized clientposthog.reset()correctly called on sign-out- Screen views manually tracked via
posthog.screen()inonStateChange— autocapture screens disabled to avoid duplicates captureAppLifecycleEvents: trueenables app open/background events- Null-safe guards on all PostHog calls ensure the app works without configuration
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/routes.js |
screen() |
Manual screen view tracking on navigation state changes with previous_screen property |
src/store/modules/auth/sagas.js |
user_signed_in, user_signed_out |
Tracks sign-in with authentication_method (demo/password), sign-out triggers reset |
src/store/modules/members/sagas.js |
member_role_updated, member_invited |
Tracks member management with role_count and source properties |
src/store/modules/projects/sagas.js |
project_created |
Tracks project creation with source and outcome properties |
src/store/modules/teams/sagas.js |
team_created, team_selected |
Tracks team creation and selection |
src/config/posthog.js |
captureException (autocapture) |
Error tracking configured for uncaught exceptions and unhandled rejections |
Issues
No issues.
Other completed criteria
- Events represent real user actions in a SaaS management app (sign in → select team → create project → invite member)
- Events enable product insights: sign-in funnel, feature adoption (projects, teams, members), error rates
- Events include enriched contextual properties (authentication_method, source, role_count, previous_screen)
- No PII in capture() properties — email only appears in identify() person properties where it belongs
- Event names follow consistent snake_case convention and are descriptive of the action
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: context-mill-pr
Trigger ID:
714addeApp:
react-native/react-native-saasApp directory:
apps/react-native/react-native-saasWorkbench branch:
wizard-ci-714adde-react-native-react-native-saasWizard branch:
mainContext Mill branch:
fix/skills-project-get-tokenPostHog (MCP) branch:
masterTimestamp: 2026-11-16T15:34:53.382Z
Duration: 387.1s
YARA Scanner