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
RobertJoonas 8cc7bce689
Restrict subscribing to a plan when exceeding its limits + warning for losing feature access (#3461)
* fix the styling of the red text notice under checkout link

* avoid some code repetition

* simplify rendering the change_plan_link

* refactor disabling checkout link and showing disabled message

* disable change plan and upgrade link when exceeding pageview limit

* disable checkout when exceeding team member limit

* disable checkout when site limit exceeded

* extract checkout related code in a separate function

* stick to a single order of features

* losing features warning

* fix back link from change-plan-preview

* create Quota.exceeded_limits function

* restrict subscribing with exceeded limits on the API level too

* use with instead of case

Co-authored-by: Vini Brasil <vini@hey.com>

* use :map type instead of :any for user

Co-authored-by: Vini Brasil <vini@hey.com>

* create Quota.usage function

---------

Co-authored-by: Vini Brasil <vini@hey.com>
3 years ago
..
subscription Refactor enterprise plan upgrade and change-plan actions (#3397) 3 years ago
billing.ex Restrict subscribing to a plan when exceeding its limits + warning for losing feature access (#3461) 3 years ago
enterprise_plan.ex Check site limit for enterprise customers 5 years ago
enterprise_plan_admin.ex Check site limit for enterprise customers 5 years ago
feature.ex Refactor: Add 'goals' feature to JSON plan files (#3435) 3 years ago
paddle_api.ex Use Phoenix LiveView for the upgrade page (#3382) 3 years ago
plan.ex List plan benefits on the new upgrade page (#3444) 3 years ago
plans.ex Restrict subscribing to a plan when exceeding its limits + warning for losing feature access (#3461) 3 years ago
quota.ex Restrict subscribing to a plan when exceeding its limits + warning for losing feature access (#3461) 3 years ago
site_locker.ex Fix invalid subscription preload in SiteLocker email submission routine (#3400) 3 years ago
subscription.ex Refactor enterprise plan upgrade and change-plan actions (#3397) 3 years ago
subscriptions.ex Refactor enterprise plan upgrade and change-plan actions (#3397) 3 years ago