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_web/controllers
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
3 years ago
..
api Remove Props FF (#3242) 3 years ago
site Implement limits for team members (#3305) 3 years ago
auth_controller.ex Implement limits for team members (#3305) 3 years ago
billing_controller.ex Usage & Limits section (#3291) 3 years ago
error_report_controller.ex Simplify Phoenix error template (#2913) 4 years ago
helpers.ex Simplify Phoenix error template (#2913) 4 years ago
invitation_controller.ex Fix APP-46E: accept invitation 2nd click (#3120) 3 years ago
page_controller.ex add landing page (#2989) 4 years ago
site_controller.ex Improve goal settings UX (#3293) 3 years ago
stats_controller.ex Remove Props FF (#3242) 3 years ago
unsubscribe_controller.ex Add presence check when unsubscribing from email reports 6 years ago