-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #5866 - Consolidated View life cycle + billing integration #92
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?
[CORRUPTED] Synthetic Benchmark PR #5866 - Consolidated View life cycle + billing integration #92
Conversation
- 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
Co-authored-by: Sanne de Vries <[email protected]> Co-authored-by: Uku Taht <[email protected]>
- 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
- 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
Will be included via main branch sync This reverts commit 05bec55.
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: Corrupted (contains bugs)
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, Bug fix
Description
Refactor consolidated view eligibility to use feature flags and billing checks instead of super admin role
Add team-specific user preferences for CTA dismissal state management
Implement CTA card with context-aware messaging for upgrade/setup requirements
Add dropdown menu for managing consolidated view creation and restoration
Enhance responsive design and fix z-index issues on sites page
Redirect ineligible users accessing consolidated views to /sites
Diagram Walkthrough
File Walkthrough
10 files
Refactor eligibility checks to use feature flags and billingNew schema for team-specific user preferencesAdd preference getter/setter functions for team membershipsRegister ConsolidatedView as a billing featureNew wrapper component for Prima dropdown functionalityImplement CTA card and dropdown menu for consolidated viewsDisplay availability status and enhance delete confirmationRename data attribute for consolidated view availabilityUpdate data attribute reference for consolidated viewImport Dropdown hook from Prima library2 files
Add redirect for ineligible consolidated view accessFix filter bar responsive design and width constraints5 files
Add consolidated_view feature to all business plansAdd consolidated_view feature to all business plansAdd consolidated_view feature to all business plansEnable consolidated_view feature flag in seedsEnable consolidated_view feature flag for tests5 files
Add tests for CTA state and eligibility checksAdd comprehensive tests for CTA card behavior and dismissalAdd ConsolidatedView to billing feature testsAdd ConsolidatedView to plan benefits assertionsAdd test for redirect when ineligible for consolidated view15 files