analytics/lib/plausible_web/components
Vini Brasil d22c011aa3
Implement limits for team members (#3305)
* Refactor MembershipController.invite_member/2

This commit refactors the controller action used for creating new
invitations. It moves the code to Plausible.Sites.invite/4 and replaces
`ifs` and `cases` with `with`.

* Add team_member_limit to plan definition

* Create usage and limits functions for team members

* Apply team member limit when inviting new users

* Add team members to Usage & Limits section

* Change invite function to receive email address instead of %User{}

* Wrap invite function in a DB transaction

* Remove unnecessary joins from team member usage query

* Replace UNION ALL with UNION to remove duplicates
2023-09-04 09:55:07 -03:00
..
site Funnel site settings (#3039) 2023-06-22 09:00:07 +02:00
billing.ex Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
generic.ex Create props settings page (#3191) 2023-07-27 15:46:32 +01:00