Repository navigation
[CI] (b6c5097) next-js/15-app-router-todo - #4071
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
PR Evaluation ReportSummaryThis PR integrates PostHog into a Next.js 15 app router todo application. It adds client-side initialization via
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo issues found.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js: ^1.434.5 added to package.json |
| PostHog client initialized | Yes | Initialized in instrumentation-client.ts — the correct Next.js app router pattern — with API key and host from env vars |
| capture() | Yes | Three custom events: todo_created, todo_completion_toggled, todo_deleted |
| identify() | No | No posthog.identify() call anywhere in the codebase |
| Error tracking | Yes | capture_exceptions: true in init config + global-error.tsx boundary with posthog.captureException() |
| Reverse proxy | No | No Next.js rewrites or middleware proxy configured |
Issues
- Missing user identification: No
posthog.identify()call exists. The docs state: "Identifying users is required. Callposthog.identify('your-user-id')after login to link events to a known user." All captured events will remain anonymous and cannot be connected to specific users. Add an identify call in an auth callback or layout component when the user is known. [CRITICAL] - No reverse proxy: The PostHog Next.js docs recommend setting up a reverse proxy via Next.js rewrites or middleware so events are less likely to be intercepted by ad blockers. Add a
rewrites()configuration innext.config.jsor use the managed reverse proxy service. [MEDIUM] - Older defaults date:
defaults: "2026-01-30"is used instead of the current"2026-05-30". While functional, this means the app misses newer default configuration improvements. [LOW]
Other completed criteria
- API key loaded from
NEXT_PUBLIC_POSTHOG_PROJECT_TOKENenvironment variable (not hardcoded) - API host correctly configured from
NEXT_PUBLIC_POSTHOG_HOSTenvironment variable - Helpful development-only error messages when env vars are missing
- Debug mode enabled only in development
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
components/todos/todo-list.tsx |
todo_created, todo_completion_toggled, todo_deleted |
Captures core CRUD actions on todos with contextual properties (has_description, completed state) |
app/global-error.tsx |
captureException |
Captures unhandled errors at the app boundary for error tracking |
instrumentation-client.ts |
capture_exceptions: true |
Enables automatic exception autocapture globally |
Issues
No event quality issues found.
Other completed criteria
- Events represent real user actions (create, toggle, delete todos)
- Events enable product insights — can build create→complete funnel, track deletion rates
- Events include relevant properties (
has_description,completedstate) - No PII in event properties
- Event names are descriptive and use consistent snake_case 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:
b6c5097App:
next-js/15-app-router-todoApp directory:
apps/next-js/15-app-router-todoWorkbench branch:
wizard-ci-b6c5097-next-js-15-app-router-todoWizard branch:
posthog/functional-a1-minContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-22T01:20:18.212Z
Duration: 269.5s
YARA Scanner