[CI] (cef44b4) stripe/stripe-next-js-saas-starter#1411
Closed
wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
Closed
[CI] (cef44b4) stripe/stripe-next-js-saas-starter#1411wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
wizard-ci-bot[bot] wants to merge 1 commit intomainfrom
Conversation
Author
|
Now I have a complete picture. Let me produce the evaluation. PR Evaluation Report — Revenue AnalyticsSummaryThis PR adds
Confidence score: 3/5 🤔
File changes
App sanity check ✅
Issues
Stripe ↔ PostHog wiring
|
| Criteria | Result | Description |
|---|---|---|
| distinct_id threaded into Stripe metadata | Yes | posthog_person_distinct_id: user.id.toString() added to both session-level and subscription_data metadata |
| Webhook captures revenue events | No | PR adds zero posthog.capture() calls. Pre-existing webhook captures exist but lack amount/currency and were not added by this PR |
| Server uses posthog-node | No | PR adds no server-side captures. Pre-existing code uses posthog-node but that's not attributable to this PR |
| distinct_id matches existing usage | Yes | user.id.toString() matches the app's String(user.id) pattern used in posthog.identify() calls |
| Consistent currency handling | No | No currency is captured in any event — neither added nor fixed by this PR |
Issues
- Missing webhook revenue captures: The core purpose of the revenue wizard is to emit
posthog.capture()calls with revenue data from the Stripe webhook. This PR only threads metadata but never captures revenue events likeinvoice.paid,checkout.session.completedwith amount and currency. [CRITICAL] - Pre-existing distinct_id mismatch in webhook: The existing webhook (line 35) uses
customerId(Stripe customer ID) asdistinctId, not the canonicaluser.id. The wizard addedposthog_person_distinct_idto subscription metadata but never reads it back in the webhook to fix the distinct_id. [MEDIUM]
Revenue events ❌
| Filename | Revenue events captured | Description |
|---|---|---|
app/api/stripe/webhook/route.ts |
None added by PR | Pre-existing: subscription_updated, subscription_canceled — but without amount/currency and not added by this PR |
app/api/stripe/checkout/route.ts |
None added by PR | Pre-existing: checkout_completed — but without amount/currency |
Issues
- Zero revenue events added: The PR adds no new
posthog.capture()calls. Revenue analytics requires events withamount/revenueandcurrencyproperties — none exist. [CRITICAL] - No amount or currency on any event: Neither the PR's changes nor the pre-existing events include revenue amounts or currency codes. PostHog cannot build revenue dashboards without these. [CRITICAL]
- Missing key revenue event types: No handling for
invoice.paid,invoice.payment_failed,customer.subscription.created— all important for comprehensive revenue analytics. [MEDIUM]
Reviewed by wizard workbench PR evaluator (revenue analytics)
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:
stripe/stripe-next-js-saas-starterApp directory:
apps/stripe/stripe-next-js-saas-starterWorkbench branch:
wizard-ci-cef44b4-stripe-stripe-next-js-saas-starterWizard branch:
mainContext Mill branch:
basic-skills-v2PostHog (MCP) branch:
masterTimestamp: 2026-05-01T21:17:46.353Z
Duration: 124.2s