[codex] Add activation funnel contract#133
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (84)
📝 WalkthroughWalkthroughThis PR introduces an activation analytics funnel spanning client/server capture utilities, a new activation API route, onboarding/profile/feed UI changes, and analytics wiring into signup/auth-callback/usage routes. It also defers authenticated app-shell providers, right sidebar, command palette, and prompt widget for performance; refactors the public landing page and messages inbox; and adds CLI ccusage offline/online pricing-mode selection with expanded push telemetry, alongside planning documentation. ChangesWeb Activation Analytics Funnel
Estimated code review effort: 5 (Critical) | ~180 minutes Authenticated App Shell Performance
Estimated code review effort: 4 (Complex) | ~90 minutes Public Landing Page Refactor
Estimated code review effort: 3 (Moderate) | ~30 minutes Messages Inbox Presentation Refactor
Estimated code review effort: 3 (Moderate) | ~25 minutes CLI Ccusage Pricing Mode and Push Telemetry
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant Client as Client (browser)
participant ActivationAPI as /api/analytics/activation
participant Supabase
participant PostHog
Client->>ActivationAPI: POST activation event (+ optional anon cookie)
ActivationAPI->>Supabase: auth.getUser()
alt authenticated + anon cookie present
ActivationAPI->>PostHog: identifyServerActivationUser
end
ActivationAPI->>PostHog: captureServerActivationEvent
ActivationAPI-->>Client: 200 ok (+ set anon cookie if new)
sequenceDiagram
participant Onboarding as Onboarding Page
participant UsersMe as PATCH /api/users/me
participant DailyUsage as daily_usage table
participant PostHog
Onboarding->>UsersMe: PATCH onboarding_completed=true
UsersMe->>DailyUsage: query latest usage row
alt no usage row
UsersMe-->>Onboarding: 409
else usage exists
UsersMe->>UsersMe: update user record
UsersMe->>PostHog: capture activation_completed
UsersMe-->>Onboarding: 200
end
Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…refactor # Conflicts: # apps/web/app/api/usage/submit/route.ts # apps/web/types/index.ts # bun.lock # packages/cli/__tests__/ccusage-install.test.ts # packages/cli/__tests__/ccusage.test.ts # packages/cli/__tests__/commands/push.test.ts # packages/cli/__tests__/flows/cli-sync-flow.test.ts # packages/cli/package.json # packages/cli/src/commands/push.ts # packages/cli/src/lib/ccusage.ts
…-integration-pass
Merges the activation workstream integration branch into the activation funnel contract stack after CI, Claude review, CodeRabbit, and Vercel checks passed. Includes the #124 thermo quality refactor branch and the test/CI fixes made during review.
Summary
Validation
Notes
.claude/settings.jsonhas an unrelated local modification and is not part of this PRSummary by CodeRabbit
New Features
Bug Fixes
Style