-
Notifications
You must be signed in to change notification settings - Fork 621
[TOOL-3814] Dashboard: Show all active coupons in team billing page #6568
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 ↗︎
|
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. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6568 +/- ##
=======================================
Coverage 54.99% 54.99%
=======================================
Files 885 885
Lines 55503 55503
Branches 3797 3797
=======================================
Hits 30522 30522
Misses 24886 24886
Partials 95 95
🚀 New features to boost your workflow:
|
apps/dashboard/src/components/settings/Account/Billing/SubscriptionCoupons/Coupons.tsx
Show resolved
Hide resolved
Merge activity
|
…6568) <!-- start pr-codex --> ## PR-Codex overview This PR focuses on refactoring the coupon management system within the billing section of the dashboard. It introduces a new structure for handling coupons, including a client component for API interactions and UI components for displaying and applying coupons. ### Detailed summary - Deleted obsolete files: `CouponCard.tsx`, `CouponDetails.stories.tsx`, `ApplyCouponCard.stories.tsx`. - Updated global styles import in `preview.tsx`. - Replaced `CouponSection` with `Coupons` in `index.tsx`. - Introduced `CouponsClient` for managing coupon API interactions. - Created `AsyncCoupons` to fetch coupon data asynchronously. - Developed `Coupons` component to handle loading states and display. - Added `CouponsUI` for rendering coupon information and actions. - Implemented coupon application and deletion logic with error handling. - Created a story for `CouponsUI` to demonstrate different states and interactions. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
bbc939d to
adee190
Compare

PR-Codex overview
This PR focuses on the refactoring and enhancement of the coupon management system in the billing section of the dashboard. It introduces a new
Couponscomponent, updates the billing interface, and improves coupon application and deletion functionalities.Detailed summary
CouponCard.tsx,CouponDetails.stories.tsx, andApplyCouponCard.stories.tsx..storybook/preview.tsx.CouponSectionwithCouponsinindex.tsx.CouponsClientfor managing coupon operations.Couponscomponent to fetch and display coupons.CouponsUIwith new UI elements for displaying coupons and applying them.Couponscomponent to showcase various states.