[CI] (dbf5526) next-js/15-pages-router-todo - #3184
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR adds PostHog client-side analytics to a Next.js 15 Pages Router todo app via
Confidence score: 4/5 👍
File changes
App sanity check
|
| Criteria | Result | Description |
|---|---|---|
| App builds and runs | Yes | Report confirms pnpm build passed successfully |
| Preserves existing env vars & configs | Yes | No existing code or configs modified destructively |
| No syntax or type errors | Yes | All changed files have valid syntax |
| Correct imports/exports | Yes | posthog-js imported correctly in both files |
| Minimal, focused changes | No | posthog-node installed but never used; posthog-setup-report.md added unnecessarily |
| Pre-existing issues | None | No pre-existing issues detected |
Issues
- Unused
posthog-nodedependency:posthog-nodev5.46.1 is added topackage.jsonbut no server-side PostHog code exists in the PR. Remove it to avoid unnecessary dependency bloat. [MEDIUM]
Other completed criteria
- Environment variables documented in
.env.examplewith correctNEXT_PUBLIC_prefix - Build configuration remains valid with new dependencies
PostHog implementation ⚠️
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js ^1.407.5 added to package.json |
| PostHog client initialized | Yes | posthog.init() in instrumentation-client.ts using correct Next.js pattern with env vars, defaults, and capture_exceptions |
| capture() | Yes | Three posthog.capture() calls for todo CRUD operations |
| identify() | N/A | App has no authentication or user accounts — no identity to link |
| Error tracking | Yes | capture_exceptions: true enables global browser exception autocapture |
| Reverse proxy | No | No reverse proxy configured; client-side events are vulnerable to ad blockers |
Issues
- No reverse proxy configured: The integration sends events directly to
us.i.posthog.comfrom the browser. For Next.js, a reverse proxy via Next.js rewrites or Vercel rewrites should be configured to improve event delivery reliability. [MEDIUM]
Other completed criteria
- API key loaded from
NEXT_PUBLIC_POSTHOG_PROJECT_TOKENenvironment variable (not hardcoded) - API host loaded from
NEXT_PUBLIC_POSTHOG_HOSTenvironment variable - Conditional initialization guards against missing env vars with helpful dev-mode errors
defaults: '2026-01-30'correctly sets SDK defaults
PostHog insights and events ⚠️
| Filename | PostHog events | Description |
|---|---|---|
components/todos/todo-list.tsx |
todo_created |
Captures successful todo creation with has_description and initially_completed properties |
components/todos/todo-list.tsx |
todo_completion_toggled |
Captures completion state change with completed boolean property |
components/todos/todo-list.tsx |
todo_deleted |
Captures todo deletion with no properties |
instrumentation-client.ts |
captureException (autocapture) |
Global browser exception autocapture via capture_exceptions: true |
Issues
todo_deletedlacks properties: The event is captured with no contextual properties. Adding at minimum whether the deleted todo was completed (was_completed) would enable insights like "do users delete completed or incomplete todos more often?" [MEDIUM]
Other completed criteria
- Events represent real user actions (CRUD operations on todos)
- Events enable product insights — can build a create→complete→delete funnel
- No PII in event properties (no todo text, user info, etc.)
- Event names use consistent
snake_caseconvention 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: wizard-pr
Trigger ID:
dbf5526App:
next-js/15-pages-router-todoApp directory:
apps/next-js/15-pages-router-todoWorkbench branch:
wizard-ci-dbf5526-next-js-15-pages-router-todoWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-07-28T16:55:01.696Z
Duration: 231.9s
YARA Scanner