-
Notifications
You must be signed in to change notification settings - Fork 327
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
Show active coupon on billing page #4917
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @MananTank and the rest of your teammates on Graphite |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4917 +/- ##
=======================================
Coverage 47.61% 47.61%
=======================================
Files 1057 1057
Lines 57221 57221
Branches 3924 3924
=======================================
Hits 27246 27246
Misses 29286 29286
Partials 689 689
*This pull request uses carry forward flags. Click here to find out more. |
c261b61
to
d3d956f
Compare
size-limit report 📦
|
Merge activity
|
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring and enhancing coupon-related components in the `Billing` section of the dashboard. It involves renaming components, improving props handling, and adding new functionalities for coupon application and management. ### Detailed summary - Renamed `CouponCard` to `CouponSection` in `Billing/index.tsx`. - Updated `SettingsCard` to use dynamic class names for buttons. - Added new stories for `CouponDetailsCardUI` and `ApplyCouponCardUI`. - Implemented optimistic updates for coupon application and deletion. - Enhanced `CouponCard` to `ApplyCouponCard` with new props for coupon application. - Introduced `CouponDetailsCardUI` for displaying active coupon details. - Improved error handling and loading states in coupon-related components. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
d3d956f
to
a94f981
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR primarily focuses on refactoring the
CouponCard
component intoApplyCouponCard
andCouponDetailsCard
for better clarity and separation of concerns. It also updates theBilling
component to useCouponSection
instead ofCouponCard
.Detailed summary
CouponCard
toApplyCouponCard
and createdCouponDetailsCard
.Billing
component to use<CouponSection />
instead of<CouponCard />
.SettingsCard
button handling with dynamic class names and variant options.CouponDetailsCard
andApplyCouponCard
.DangerSettingCard
by adding customizable class names.