[CI] (4c70a79) next-js/15-app-router-todo - #3863
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
|
Now I have everything I need to produce the full evaluation. PR Evaluation ReportSummaryThis PR adds a client-side PostHog integration to a Next.js 15 App Router todo application. It installs
Confidence score: 5/5 🧙
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js ^1.429.0 added to package.json |
| PostHog client initialized | Yes | Initialized in instrumentation-client.ts using posthog.init() with env vars — correct Next.js pattern |
| capture() | Yes | Three custom events: todo_created, todo_completion_changed, todo_deleted |
| identify() | No | No posthog.identify() call present. App has no auth, but no placeholder pattern exists either |
| Error tracking | Yes | capture_exceptions: true enabled in init config |
| Reverse proxy | No | No Next.js rewrites or middleware proxy configured for PostHog |
Issues
- No reverse proxy: The Next.js app has no rewrites configured in
next.config.tsto proxy PostHog requests. This means ad blockers can intercept analytics calls. Add arewrites()configuration pointing/ingest/*to the PostHog host, or use PostHog's managed reverse proxy. [MEDIUM] - No user identification: No
posthog.identify()call is present. While the todo app has no auth system currently, best practice would be to add identify at the point where user context becomes available. [MEDIUM] - Outdated defaults date:
defaults: '2026-01-30'should be updated to'2026-05-30'to use the latest recommended configuration defaults. [LOW]
Other completed criteria
- API key loaded from
NEXT_PUBLIC_POSTHOG_KEYenvironment variable, not hardcoded - API host loaded from
NEXT_PUBLIC_POSTHOG_HOSTenvironment variable - Defensive guards in development mode throw errors when env vars are missing
- Debug mode enabled only in development
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
instrumentation-client.ts |
captureException (auto) |
Automatic exception tracking via capture_exceptions: true |
components/todos/todo-list.tsx |
todo_created |
Captured when a new todo is added, with has_description and initial_completion_status properties |
components/todos/todo-list.tsx |
todo_completion_changed |
Captured when a todo's completion status is toggled, with completed boolean property |
components/todos/todo-list.tsx |
todo_deleted |
Captured when a todo is deleted (no additional properties) |
Issues
todo_deletedlacks properties: Thetodo_deletedevent has no properties. Adding context like the todo's completion status at time of deletion would enable richer analysis (e.g., "do users delete incomplete or completed todos more?"). [LOW]
Other completed criteria
- Events represent real user actions in the todo CRUD flow
- Events enable product insights — can build a funnel from create → complete → delete
todo_createdandtodo_completion_changedinclude enriched properties- No PII in any event properties
- Event names use consistent snake_case convention and are 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-app-router-todoApp directory:
apps/next-js/15-app-router-todoWorkbench branch:
wizard-ci-4c70a79-next-js-15-app-router-todoWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-09T22:22:21.292Z
Duration: 284.0s
YARA Scanner