Skip to content

feat(admin): Add billing offers and subscriber measurements - #16

Merged
nfebe merged 2 commits into
mainfrom
feat/admin-discounts
Oct 24, 2026
Merged

nfebe merged 2 commits into
mainfrom
feat/admin-discounts

Conversation

@nfebe

@nfebe nfebe commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Add billing offers and subscriber measurements to the admin dashboard. Monthly plan values use list prices and remain separate by currency.

@sourceant

sourceant Bot commented Oct 24, 2026

Copy link
Copy Markdown

Code Review Summary

The package now ships a billing metric provider that counts paying, trialing, comped and soon-ending-trial subscribers, ranks current plans, and sums monthly plan values per currency using plan metadata list prices. The service provider registers this provider and the Stripe promotion-code and free-pass offer providers into the admin configuration on boot, and dependency versions for entitlements-cashier, eloquent-admin and eloquent-entitlements are raised. Subscriptions whose plan has no price metadata are omitted from the value totals.

🚀 Key Improvements

  • Admin dashboard gains billing subscriber counts, trial timing, plan ranking and per-currency monthly value metrics.
  • Offer providers from eloquent-admin are wired in without manual configuration.
  • Dependency lockstep with eloquent-entitlements 2.1 and entitlements-cashier 0.4.

💡 Minor Suggestions

  • Review coverage is incomplete. Inspect the execution details before approving.

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

@nfebe
nfebe merged commit de34e12 into main Oct 24, 2026
1 check passed
@nfebe
nfebe deleted the feat/admin-discounts branch October 24, 2026 06:45
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