[CI] (4c70a79) next-js/15-pages-router-todo - #3867
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR adds PostHog client-side integration to a Next.js 15 pages router todo app. It initializes PostHog via
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo issues.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js ^1.429.0 added to package.json |
| PostHog client initialized | Yes | posthog.init() in instrumentation-client.ts with api_host, defaults, and capture_exceptions |
| capture() | Yes | 4 custom events: todo_created, todo_completed, todo_reopened, todo_deleted |
| identify() | No | No posthog.identify() call anywhere in the integration |
| Error tracking | Yes | capture_exceptions configured with capture_unhandled_errors: true and capture_unhandled_rejections: true |
| Reverse proxy | No | No Next.js rewrites configured for proxying PostHog requests |
Issues
- Missing user identification: No
posthog.identify()call is implemented. The wizard should scaffold an identify pattern (e.g., in a login handler or auth callback) so events can be linked to known users. Without this, all events remain anonymous. [MEDIUM] - No reverse proxy: Next.js supports rewrites in
next.config.js/next.config.tsto proxy/ingest/*to PostHog, improving event delivery past ad blockers. This is missing. [MEDIUM]
Other completed criteria
- API key loaded from
NEXT_PUBLIC_POSTHOG_PROJECT_TOKENenvironment variable - API host loaded from
NEXT_PUBLIC_POSTHOG_HOSTenvironment variable - Development-mode error throwing when env vars are missing is a nice touch
defaults: '2026-05-30'correctly set per docs
PostHog insights and events ⚠️
| Filename | PostHog events | Description |
|---|---|---|
instrumentation-client.ts |
captureException (auto) |
Unhandled errors and promise rejections automatically captured |
components/todos/todo-list.tsx |
todo_created, todo_completed, todo_reopened, todo_deleted |
CRUD lifecycle events for todos; only todo_created includes properties |
Issues
- Sparse event properties:
todo_completed,todo_reopened, andtodo_deletedare bare captures with no properties. Addingtodo_id,todo_title_length, or similar context would enable richer analysis (e.g., which todos get completed vs deleted). [MEDIUM]
Other completed criteria
- Events represent real user actions (create, complete, reopen, delete todos)
- Events enable product insights — can build a funnel from create → complete and track deletion rates
- No PII in event properties
- Event naming is consistent snake_case and descriptive
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:
4c70a79App:
next-js/15-pages-router-todoApp directory:
apps/next-js/15-pages-router-todoWorkbench branch:
wizard-ci-4c70a79-next-js-15-pages-router-todoWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-09T22:26:24.229Z
Duration: 341.8s
YARA Scanner