analytics/lib
Adam Rutkowski 08c7d2e948
Consolidated View life cycle + billing integration (#5866)
* Migration: add consolidated views feature to enterprise plans

* Migration: Add user preferences per team table

* Update static plan definitions

* Add feature module definition

* Display consolidated view availability in crm

* Extend ConsolidatedView interface:
 - add functions to manipulate user/team options (for CTA)
 - require at least two sites in order to create a consolidated view
 - require billing/plan compliance when computing eligibility

* Team/User preferences schema

* Implement consolidated view life cycle on /sites

Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
Co-authored-by: Uku Taht <uku.taht@gmail.com>

* Enroll `consolidated_view` feature flag

* Consolidated view access hardening (+feature flag)

- require team-wise feature flag instead of super admin role
- redirect to /sites if the team isn't eligible any more
- enforce regular site in shared links controller

* Remove no longer needed `ConsolidatedView.enabled?/1`

* Alias PrimaDropdown

* No consolidates views for shared links

* Remove user argument from `ok_to_display?`

* Adjust a temporary test

* More elaborate alert

* Fix responsive design issues on sites page

- Fix z-index issue with button dropdown
- Fix truncation issue with team name
- Improve responsiveness of site cards
- Fix focus state of site cards
- Improve responsiveness of consolidated view CTA
- Improve design of prima_dropdown component
- Replace `+` with plus icons in dropdown items

* Use the plus icon for standalone "Add website" too

cc @sanne-san

* Format

* Fix z-index issue with dropdowns on sites page

* Remove TODOs

* Make consolidated view cards disappear when searching

* Clean up test

* Use per-team membership user preferences

* Use conditional instead of `with` statement

* Inline `ensure_eligible`

* Use `Map.fetch!` getting preference from default struct

* fixup

* Revert "Migration: add consolidated views feature to enterprise plans"

Will be included via main branch sync

This reverts commit 05bec55276.

* Fix and test feature-flag effect on both view and CTA cards

---------

Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
Co-authored-by: Uku Taht <uku.taht@gmail.com>
2025-11-12 13:41:24 +00:00
..
mix/tasks Change log level from info to notice on relevant logs (#5585) 2025-07-23 08:47:01 +00:00
plausible Consolidated View life cycle + billing integration (#5866) 2025-11-12 13:41:24 +00:00
plausible_web Consolidated View life cycle + billing integration (#5866) 2025-11-12 13:41:24 +00:00
workers Consolidated view email reports (#5876) 2025-11-11 13:26:52 +00:00
oban_error_reporter.ex Log Oban errors (and still report them to Sentry) (#4657) 2024-10-08 10:26:35 +00:00
plausible.ex Remove SSO_ENABLED env flag and replace it with ee? checks where needed (#5728) 2025-09-16 14:18:59 +00:00
plausible_release.ex Change log level from info to notice on relevant logs (#5585) 2025-07-23 08:47:01 +00:00
plausible_web.ex Upgrade phoenix & liveview (#5766) 2025-10-07 12:29:48 +00:00
sentry_filter.ex Group Mint.TransportError in Sentry (#5659) 2025-08-20 08:40:17 +00:00