analytics/test/plausible_web/live
Adrian Gruntkowski 9d97dc1912
Move limit enforcement to accepting site ownership transfer (#3612)
* Move limit enforcement to accepting site ownerhsip transfer

* enforce pageview limit on ownership transfer accept

* Refactor plan limit check logic

* Extract `ensure_can_take_ownership` to `Invitations` context and refactor

* Improve styling of exceeded limits notice in invitation dialog and disable button

* styling improvements to notice

* make transfer_ownership return transfer to self error

* do not allow transferring to user without active subscription WIP

* Add missing typespec and improve existing ones

* Fix formatting

* Explicitly label direct match on function argument for clarity

* Slightly refactor `CreateInvitation.bulk_transfer_ownership_direct`

* Exclude quota enforcement tests from small build test suite

* Remove unused return type from `invite_error()` union type

* Do not block plan upgrade when there's pending ownership transfer

* Don't block and only warn about missing features on transfer

* Remove `x-init` attribute used for debugging

* Add tests for `Quota.monthly_pageview_usage/2`

* Test and improve site admin ownership transfer actions

* Extend tests for `AcceptInvitation.transfer_ownership`

* Test transfer ownership controller level accept action error cases

* Test choosing plan by user without sites but with a pending ownership transfer

* Test invitation x-data in sites LV

* Remove sitelocker trigger in invitation acceptance code and simplify logic

* Add Quota test for `user.allow_next_upgrade_override` being set

* ignore pageview limit only when subscribing to plan

* Use sandbox Paddle instance for staging

* Use sandbox paddle key for staging and dev

---------

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
2023-12-20 14:56:49 +00:00
..
components Upgrade Erlang/Elixir stack (#3454) 2023-10-24 10:33:48 +02:00
funnel_settings Add small build option (#3536) 2023-11-20 12:52:20 +01:00
goal_settings Small build updates (#3546) 2023-11-22 15:34:47 +01:00
props_settings Props Settings UI to match Goals Settings (#3322) 2023-09-13 14:55:29 +02:00
choose_plan_test.exs Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
funnel_settings_test.exs Add small build option (#3536) 2023-11-20 12:52:20 +01:00
goal_settings_test.exs Fix domains that start with UTF character (#3560) 2023-12-04 14:22:17 +02:00
plugins_api_tokens_test.exs Track tokens usage (#3438) 2023-10-18 14:14:30 +02:00
props_settings_test.exs Props Settings UI to match Goals Settings (#3322) 2023-09-13 14:55:29 +02:00
register_form_test.exs Implement better user password validation (#3344) 2023-09-25 10:27:29 +02:00
reset_password_form_test.exs Implement UI for 2FA setup and verification (#3541) 2023-12-06 12:01:19 +01:00
sites_test.exs Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00