Skip to content
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

Coupon Listing Tables #885

Merged
merged 26 commits into from
Jul 2, 2023
Merged

Coupon Listing Tables #885

merged 26 commits into from
Jul 2, 2023

Conversation

duncanmcclean
Copy link
Owner

@duncanmcclean duncanmcclean commented Jul 2, 2023

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

image

Now

image

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.

@duncanmcclean duncanmcclean marked this pull request as draft July 2, 2023 18:19
@duncanmcclean duncanmcclean marked this pull request as ready for review July 2, 2023 19:37
@duncanmcclean duncanmcclean merged commit b96f377 into 5.x Jul 2, 2023
@duncanmcclean duncanmcclean deleted the feature/coupon-listing-tables branch July 2, 2023 20:25
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Released as part of v5.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant