Merged
Conversation
Contributor
Greptile OverviewGreptile SummaryThis PR introduces feature flags to control the visibility of different pricing tiers (Free and Pro) on the pricing page. When tiers are disabled, users see an alternative enterprise demo form instead of the full pricing cards. Key changes:
The implementation uses Reflex's conditional rendering ( Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant ENV as Environment Variables
participant Constants as constants.py
participant State as EnableTiersState
participant PricingPage as Pricing Page
participant User as User Browser
ENV->>Constants: ENABLE_FREE_TIER=true/false
ENV->>Constants: ENABLE_PRO_TIER=true/false
Constants->>State: Initialize enable_free_tier field
Constants->>State: Initialize enable_pro_tier field
User->>PricingPage: Load pricing page
PricingPage->>State: Check enable_free_tier
PricingPage->>State: Check enable_pro_tier
alt enable_free_tier = true
State->>PricingPage: Show header & pricing cards
alt enable_pro_tier = true
PricingPage->>User: Display Hobby + Pro + Enterprise (3 columns)
else enable_pro_tier = false
PricingPage->>User: Display Hobby + Enterprise (2 columns)
end
else enable_free_tier = false
State->>PricingPage: Hide header, show demo form
PricingPage->>User: Display enterprise demo form only
end
Note over PricingPage,User: Tables also conditionally render columns based on flags
|
Alek99
approved these changes
Dec 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.