-
Notifications
You must be signed in to change notification settings - Fork 619
Chore: Payment links tracking #7769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughNew analytics reporting functions for payment link visits and completions were added. The payment link visit is now tracked in the payment page logic, and payment link completion is tracked upon successful checkout. The "Create Payment Link" button was updated to use dynamic URLs based on team and project slugs, with corresponding prop and usage changes. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PayPage
participant Analytics
participant PayPageWidget
participant CheckoutWidget
User->>PayPage: Visit /pay/[id]
PayPage->>Analytics: reportPaymentLinkVisited({linkId, clientId})
User->>PayPageWidget: Initiate Checkout
PayPageWidget->>CheckoutWidget: Render
CheckoutWidget-->>PayPageWidget: onSuccess callback
PayPageWidget->>Analytics: reportPaymentLinkCompleted({linkId, clientId})
PayPageWidget->>User: Redirect to success URL
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7769 +/- ##
=======================================
Coverage 56.42% 56.42%
=======================================
Files 904 904
Lines 58674 58674
Branches 4139 4139
=======================================
Hits 33108 33108
Misses 25461 25461
Partials 105 105
🚀 New features to boost your workflow:
|
3ee8f12 to
b9ce392
Compare
size-limit report 📦
|
PR-Codex overview
This PR focuses on enhancing the payment link functionality within the dashboard by adding reporting features for payment link visits and completions, as well as updating component props to include
teamSlugandprojectSlug.Detailed summary
projectSlugandteamSlugprops in thepage.tsxandRecentPaymentsSection.client.tsx.Linkcomponent to navigate to the payment links page using the new props.reportPaymentLinkCompletedandreportPaymentLinkVisitedfunctions in the analytics report.PayPageWidget.client.tsxandpay/[id]/page.tsx.Summary by CodeRabbit
New Features
Improvements