Track viewing the Coupons tab#2950
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughTwo targeted improvements: a defensive string-type check added to email-detection logic in the usage model to prevent type errors, and a usage tracking call inserted into the coupons upsell view to record tab-view events. ChangesSafety and Tracking Improvements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| PHP | Jun 19, 2026 2:31p.m. | Review ↗ | |
| JavaScript | Jun 19, 2026 2:31p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Crabcyborg
left a comment
There was a problem hiding this comment.
Thank you @truongwp!
🚀
This tracks the number of times the Coupons tab is viewed in Lite when the Coupons add-on isn't activated.
This also fixes a fatal error when cleaning the usage data when the
$valueis not a string.Coupons PR: https://github.com/Strategy11/formidable-coupons/pull/21
Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
Chores