[CI] (cef44b4) nuxt/movies-nuxt-3-6#1402
Closed
wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a Nuxt 3.6 movies application, adding a client-side plugin (
Confidence score: 2/5 ❌
File changes
App sanity check
|
| Criteria | Result | Description |
|---|---|---|
| App builds and runs | No | posthog-js and posthog-node are not in package.json — imports will fail |
| Preserves existing env vars & configs | Yes | Existing config and code preserved; PostHog additions are additive |
| No syntax or type errors | Yes | All code is syntactically valid |
| Correct imports/exports | No | Imports reference packages not listed in dependencies |
| Minimal, focused changes | Yes | All changes relate to PostHog integration |
| Pre-existing issues | None | Base app appears functional |
Issues
- Missing SDK packages in package.json:
posthog-jsandposthog-nodeare imported but never added topackage.jsondependencies. Runningnpm installand building will fail. Add both packages:posthog-jsto dependencies andposthog-nodeto dependencies. [CRITICAL] - No .env.example:
NUXT_PUBLIC_POSTHOG_PROJECT_TOKENandNUXT_PUBLIC_POSTHOG_HOSTare required but no.env.exampledocuments them for other developers. [MEDIUM]
Other completed criteria
- Changes are minimal and focused on PostHog integration
- Existing app functionality (auth, navigation, search) preserved
- TypeScript declarations properly added
- Nuxt runtime config pattern correctly used
PostHog implementation ⚠️
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | No | Neither posthog-js nor posthog-node added to package.json |
| PostHog client initialized | Yes | Correctly initialized in plugins/posthog.client.ts using posthog.init() with runtime config values, debug mode in development |
| capture() | Yes | 6 meaningful capture calls across client and server |
| identify() | Yes | posthog.identify(username.value) on login; posthog.reset() on logout |
| Error tracking | Yes | captureException in both onErrorCaptured (app.vue) and vue:error hook (plugin) |
| Reverse proxy | No | No reverse proxy configured; api_host points directly to us.i.posthog.com |
Issues
- SDK packages not in package.json: Both
posthog-jsandposthog-nodemust be added topackage.jsonfor the app to build. [CRITICAL] - No reverse proxy: Client-side posthog-js sends requests directly to
us.i.posthog.com, which will be blocked by ad blockers. A Nuxt server route ornitro.routeRulesproxy should be configured. [MEDIUM] - Server reads unsent headers:
login.post.tsreadsx-posthog-session-idandx-posthog-distinct-idheaders that the client never sends, making thewithContextsession correlation dead code. ThedistinctIdalways falls back tosanitizedUsername. [MEDIUM] - Server uses public key for posthog-node: The server instantiates
posthog-nodewith the public project token (runtimeConfig.public.posthog.publicKey). While this works,posthog-nodeshould ideally use a separate server-side API key stored in private runtime config. [LOW]
Other completed criteria
- API key loaded from environment variables via Nuxt runtime config
- API host correctly configured to
us.i.posthog.com posthog.reset()correctly called on logoutposthog.identify()called immediately after login- Dual error tracking: Vue
onErrorCaptured+ pluginvue:errorhook defaultsparameter set to'2026-01-30'
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
pages/login.vue |
user_logged_in, user_login_failed |
Login success/failure tracking with error message on failure; identify on success |
components/NavBar.vue |
user_logged_out |
Logout tracking with posthog.reset() to unlink session |
pages/search.vue |
search_performed |
Search tracking with query text and result count (first page only) |
pages/[type]/[id].vue |
media_detail_viewed |
Content detail page view with media_id, type, and title |
components/video/Card.vue |
video_played |
Video play tracking with name, type, and key |
server/api/auth/login.post.ts |
server_login |
Server-side login event (session correlation non-functional) |
app.vue |
captureException |
Component-level error boundary |
plugins/posthog.client.ts |
captureException |
Global Vue error hook |
Issues
- No critical or medium issues with event quality
Other completed criteria
- Events represent real user actions (login, logout, search, view, play)
- Events enable product insights: login funnel, search→discovery funnel, video engagement trends, retention
- Events enriched with contextual properties (media_id, query, result_count, video_name, error_message)
- No PII in capture event properties (username only used in identify, not in capture properties)
- Event names are descriptive and consistently use snake_case
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: context-mill-pr
Trigger ID:
cef44b4App:
nuxt/movies-nuxt-3-6App directory:
apps/nuxt/movies-nuxt-3-6Workbench branch:
wizard-ci-cef44b4-nuxt-movies-nuxt-3-6Wizard branch:
mainContext Mill branch:
basic-skills-v2PostHog (MCP) branch:
masterTimestamp: 2026-05-01T21:04:12.175Z
Duration: 442.2s