You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/billing
Marko Saric 0b00762591
Changes to the emails as discussed (#3540)
* Update over_limit.html.eex

* Update dashboard_locked.html.eex

* Update dashboard_locked.html.eex

* Update over_limit.html.eex

* Update dashboard_locked.html.eex

* fix tests

* stop querying owned_site_ids three times

... when querying for billing cycles. Adds an optional `owned_site_ids`
argument to the `usage_cycle` function.

* add penultimate billing cycle info to emails

This commit also refactors some code and adds unit tests to email templates

* use delimit_integer instead of large_number_format

... to display usage with exact numbers such as 1,099,999 instead of 1M

* add penultimate cycle date ranges and linebreaks

---------

Co-authored-by: RobertJoonas <56999674+RobertJoonas@users.noreply.github.com>
Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
3 years ago
..
ecto Dump plan information to PostgreSQL (#3543) 3 years ago
subscription Refactor enterprise plan upgrade and change-plan actions (#3397) 3 years ago
billing.ex Add last_bill_date to new subscriptions (#3588) 3 years ago
enterprise_plan.ex Configurable limits for enterprise plans (#3527) 3 years ago
enterprise_plan_admin.ex Configurable limits for enterprise plans (#3527) 3 years ago
feature.ex List only premium features on the CRM (#3530) 3 years ago
paddle_api.ex Use Phoenix LiveView for the upgrade page (#3382) 3 years ago
plan.ex Dump plan information to PostgreSQL (#3543) 3 years ago
plans.ex Update credo config + extras (#3547) 3 years ago
quota.ex Changes to the emails as discussed (#3540) 3 years ago
site_locker.ex Changes to the emails as discussed (#3540) 3 years ago
subscription.ex Refactor enterprise plan upgrade and change-plan actions (#3397) 3 years ago
subscriptions.ex Business tier bug smash (#3493) 3 years ago