-
Notifications
You must be signed in to change notification settings - Fork 0
[CLEAN] Synthetic Benchmark PR #5866 - Consolidated View life cycle + billing integration #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: base_pr_5866_20251204_7711
Are you sure you want to change the base?
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
User description
Benchmark PR plausible#5866
Type: Clean (correct implementation)
Original PR Title: Consolidated View life cycle + billing integration
Original PR Description: ### Changes
This PR integrates consolidated view life cycle with billing properties.
It relies on two migrations (
included here still), extracted to separate PRs:Main changes:
:consolidated_view- we no longer display anything based onsuper_adminrole; flag is not setup on production yet, meaning existing consolidated views will disappear (and no CTAs will be shown).ConsolidatedView/sitesis visited an attempt is made to create consolidated view. If the team is eligible, and the feature flag is raised, the consolidated view card is shown. Otherwise a CTA card is displayed (courtesy of @sanne-san)/siteswill include the consolidated view card."+ New consolidated view"dropdown item)/sitesConsolidatedView.enabled?/1has been removed, since enabling doesn't mean availabilityTODO:
there are visual issues with card plots and overlapping dropdownsrecord-2025-11-10-10-29-34-year.node.norm.mp4
the dropdown doesn't respect dark modeTests
Changelog
Documentation
Dark mode
Original PR URL: plausible#5866
PR Type
Enhancement
Description
Refactored consolidated view lifecycle to use feature flags instead of super_admin role
Added user preference storage for CTA dismissal state per team membership
Integrated billing feature availability checks for consolidated view access
Enhanced UI with dropdown menu for site management and dismissible CTA cards
Updated all business plan definitions to include consolidated view feature
Diagram Walkthrough
File Walkthrough
12 files
Refactored view lifecycle with feature flags and billing checksAdded availability status display and enhanced delete confirmationAdded ConsolidatedView as new billing feature moduleAdded preference storage and retrieval for team membershipsNew schema for storing team-specific user preferencesNew dropdown component wrapper with Prima integrationUpdated consolidated view availability checks and shared link handlingRefactored consolidated view initialization with CTA management anddropdown UIAdded ConsolidatedView to API capabilities schemaAdded Dropdown hook from Prima libraryUpdated data attribute name for consolidated view availabilityUpdated template data attribute for consolidated view availability1 files
Updated filter bar styling with improved responsive layout1 files
Updated Prima dependency to version 0.1.85 files
Enabled consolidated_view feature flag in seedsUpdated test setup to enable consolidated_view flagAdded consolidated_view feature to all business plansAdded consolidated_view feature to all business plansAdded consolidated_view feature to all business plans18 files
Added ConsolidatedView to business feature testsAdded Consolidated View to business plan benefitsUpdated tests to require minimum 2 sites for consolidationComprehensive tests for CTA state and availability checksUpdated tests for consolidated view disabling logicUpdated consolidated view stats date reset testsRemoved obsolete test file for old ok_to_display signatureUpdated tests to require minimum 2 sites for consolidationUpdated query parser tests for consolidated site IDsUpdated query tests for consolidated site IDs handlingUpdated site transfer tests for consolidated view logicAdded ConsolidatedView feature to enterprise plan test setupUpdated consolidated view settings tests with site requirementsUpdated stats controller tests for availability checksUpdated customer support team tests for consolidated viewsUpdated goal form tests for consolidated view requirementsComprehensive tests for CTA display, dismissal, and restorationAdded ConsolidatedView to capabilities API tests