analytics/lib/plausible_web
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 Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
controllers Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
live Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
mjml Update weekly_report.mjml.eex (#3313) 2023-09-01 09:12:42 -03:00
plugins Plugins API exentsions (custom props, bulk goal delete, goal creation => ListResponse always) (#3593) 2023-12-06 12:33:33 +01:00
plugs rm Hammer (#3571) 2023-12-06 15:07:37 +01:00
templates Refactor: Split up the choose_plan LV code (#3637) 2023-12-15 13:59:16 -03:00
two_factor Implement UI for 2FA setup and verification (#3541) 2023-12-06 12:01:19 +01:00
views Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 2022-10-17 08:16:59 -03:00
email.ex Changes to the emails as discussed (#3540) 2023-12-06 12:02:22 +00:00
endpoint.ex Add small build option (#3536) 2023-11-20 12:52:20 +01:00
refinspector.ex [Continued] Google Analytics import (#1753) 2022-03-10 15:04:59 -06:00
remote_ip.ex Parse bunny header 2022-01-15 08:57:25 -06:00
router.ex Remove business tier feature flag (#3632) 2023-12-14 11:25:46 -03:00