analytics/lib/plausible_web/templates/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>
2023-10-26 18:20:38 +03:00
..
_paddle_script.html.eex New plans 2021-12-28 12:26:53 +02:00
_plan_option.html.eex Refactor Plausible.Billing.Plans module (#3249) 2023-08-09 14:33:59 -03:00
change_enterprise_plan_contact_us.html.eex Add enterprise plans 2021-10-20 16:49:11 +02:00
change_plan_preview.html.eex Restrict subscribing to a plan when exceeding its limits + warning for losing feature access (#3461) 2023-10-26 18:20:38 +03:00
change_plan.html.eex Use Phoenix LiveView for the upgrade page (#3382) 2023-10-03 13:36:22 +03:00
choose_plan.html.heex Use Phoenix LiveView for the upgrade page (#3382) 2023-10-03 13:36:22 +03:00
upgrade_success.html.eex Redirect user after upgrading only when subscription is created (#2285) 2022-10-04 15:54:54 +03:00
upgrade_to_enterprise_plan.html.heex Refactor enterprise plan upgrade and change-plan actions (#3397) 2023-10-10 20:35:17 +03:00
upgrade.html.eex Refactor enterprise plan upgrade and change-plan actions (#3397) 2023-10-10 20:35:17 +03:00