[CI] (6fb03e7) tanstack-router/tanstack-router-file-based-saas#1491
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
[CI] (6fb03e7) tanstack-router/tanstack-router-file-based-saas#1491wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a TanStack Router file-based SaaS demo app ("CloudFlow"). It adds
Confidence score: 4/5 👍
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.373.4 and @posthog/react@^1.9.0 added to dependencies |
| PostHog client initialized | Yes | PostHogProvider in __root.tsx with apiKey from env, api_host: '/ingest', defaults: '2026-01-30', capture_exceptions: true |
| capture() | Yes | 5 events: user_logged_in, user_logged_out, invoice_created, invoice_updated, upgrade_clicked |
| identify() | Yes | posthog.identify(username, { username }) on login; posthog.reset() on logout |
| Error tracking | Yes | capture_exceptions: true in PostHogProvider options enables exception autocapture |
| Reverse proxy | Yes | Vite dev proxy configured for /ingest, /ingest/static, /ingest/array with correct targets (us.i.posthog.com and us-assets.i.posthog.com) |
Issues
usernameas distinct_id: The app uses a raw username string as thedistinct_idinposthog.identify(username). In this demo app with username-only auth this is the most reasonable choice, but in production a database user ID would be preferred to avoid fragmented data if usernames change. [LOW]
Other completed criteria
- API key loaded from
import.meta.env.VITE_PUBLIC_POSTHOG_PROJECT_TOKENenvironment variable ui_hostcorrectly points to PostHog UI (us.posthog.com), separate from API hostposthog.reset()called on logout beforeauth.logout()— correct ordering- Reverse proxy routes both
/ingest/staticand/ingest/arraytous-assets.i.posthog.comas required defaults: '2026-01-30'configuration snapshot included
PostHog insights and events ⚠️
| Filename | PostHog events | Description |
|---|---|---|
src/routes/login.tsx |
user_logged_in, user_logged_out |
Tracks login with identify and logout with reset; captures auth lifecycle events |
src/routes/dashboard.invoices.index.tsx |
invoice_created |
Fires on new invoice form submission with title property |
src/routes/dashboard.invoices..tsx |
invoice_updated |
Fires on invoice save with invoice_id and title properties |
src/routes/_auth.profile.tsx |
upgrade_clicked |
Tracks upgrade intent with current_plan property |
src/routes/__root.tsx |
captureException (auto) |
Exception autocapture enabled via capture_exceptions: true |
Issues
- PII in
user_logged_inevent properties:{ username }is sent as an event property inposthog.capture('user_logged_in', { username }). The username is already set as a person property viaidentify()— remove it from the capture call to avoid PII in event properties. [MEDIUM] - User-generated content in invoice events:
titleis included ininvoice_createdandinvoice_updatedevent properties. Invoice titles are user-generated content that could contain PII. Consider removingtitleor replacing it with a non-PII property liketitle_length. [MEDIUM]
Other completed criteria
- Events represent real user actions (login, logout, invoice CRUD, upgrade intent)
- Events enable product insights — can build login→invoice_created funnel, upgrade conversion tracking
- Event names are descriptive, consistent snake_case convention
upgrade_clickedincludescurrent_plan: 'free'— good contextual enrichmentinvoice_updatedincludesinvoice_idfor entity-level analysis
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: scheduled
Trigger ID:
6fb03e7App:
tanstack-router/tanstack-router-file-based-saasApp directory:
apps/tanstack-router/tanstack-router-file-based-saasWorkbench branch:
wizard-ci-6fb03e7-tanstack-router-tanstack-router-file-based-saasWizard branch:
mainContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-05-13T17:51:13.434Z
Duration: 357.0s