This pull request implements a proper listing table for Coupons. This means you can now filter & search coupons, along with being able to customise the columns shown on the listing table.
Before
Now
As part of this change, I've had to change how the coupon type is stored in the Stache. Instead of being stored as the enum itself, it's stored as the enum's key, which is then "new-ed up" again when you do ->type() on the Coupon instance.
I had to make this change to allow for querying the coupon type in CouponTypeFilter.
This pull request implements a proper listing table for Coupons. This means you can now filter & search coupons, along with being able to customise the columns shown on the listing table.
Before
Now
As part of this change, I've had to change how the coupon
type
is stored in the Stache. Instead of being stored as the enum itself, it's stored as the enum's key, which is then "new-ed up" again when you do->type()
on theCoupon
instance.I had to make this change to allow for querying the coupon type in
CouponTypeFilter
.