Merged
Conversation
Contributor
There was a problem hiding this comment.
Greptile Overview
Summary
Introduced new "Pro 25" pricing tier as the lowest-cost Pro plan option at $25/month with 500 credits. Updated the default Pro tier selection to start at "Pro 25" instead of "Pro 50", making the product more accessible to users with smaller usage needs.
Key changes:
- Added
"Pro 25": {"price": 25, "credits": 500}entry toPRO_TIERS_TABLEinconstants.py - Changed default credits in
ProTierStatefrom hardcoded1000toPRO_TIERS_TABLE["Pro 25"]["credits"](500) - Updated fallback tier in
selected_tiercomputed variable from "Pro 50" to "Pro 25"
The implementation is consistent with existing tier structure and automatically works with the pricing calculator component since it dynamically reads from PRO_TIERS_TABLE.
Confidence Score: 5/5
- This PR is safe to merge with minimal risk
- The changes are straightforward and low-risk: adding a new tier entry to a pricing dictionary and updating references to use the new lowest tier. The implementation follows existing patterns, maintains data structure consistency, and the change automatically propagates to dependent components like the pricing calculator through dynamic lookups.
- No files require special attention
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| pcweb/constants.py | 5/5 | Added new "Pro 25" tier with $25/month pricing and 500 credits to PRO_TIERS_TABLE |
| pcweb/pages/pricing/plan_cards.py | 5/5 | Updated ProTierState default credits to use "Pro 25" tier (500 credits) and changed fallback tier from "Pro 50" to "Pro 25" |
Sequence Diagram
sequenceDiagram
participant User
participant UI as Pricing UI
participant ProTierState
participant Constants as PRO_TIERS_TABLE
participant BillingURL as Reflex Cloud Billing
Note over Constants: Pro 25: 500 credits ($25)<br/>Pro 50: 1000 credits ($50)<br/>Pro 100: 2000 credits ($100)<br/>...
User->>UI: View Pricing Page
UI->>ProTierState: Initialize State
ProTierState->>Constants: Get default credits<br/>(Pro 25: 500)
Constants-->>ProTierState: Return 500 credits
ProTierState-->>UI: Display Pro 25 tier selected
User->>UI: Change Credits in Dropdown
UI->>ProTierState: update_credits(new_value)
ProTierState->>ProTierState: Update credits field
ProTierState->>Constants: Match credits to tier
Constants-->>ProTierState: Return tier name & price
ProTierState-->>UI: Update displayed tier
User->>UI: Click "Start with Pro plan"
UI->>ProTierState: redirect_to_billing(yearly)
ProTierState->>ProTierState: Get selected_tier (computed var)
ProTierState->>Constants: Find tier matching current credits
alt Credits match a tier
Constants-->>ProTierState: Return tier info
else No match (fallback)
Constants-->>ProTierState: Return Pro 25 (default)
end
ProTierState->>BillingURL: Redirect with tier param
BillingURL-->>User: Show billing page for selected tier
2 files reviewed, no comments
Kastier1
approved these changes
Oct 16, 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.