Skip to content

ENG-8039: Pro 25 UI#1657

Merged
Kastier1 merged 1 commit intomainfrom
carlos/25-pro-ui
Oct 16, 2025
Merged

ENG-8039: Pro 25 UI#1657
Kastier1 merged 1 commit intomainfrom
carlos/25-pro-ui

Conversation

@carlosabadia
Copy link
Collaborator

No description provided.

@linear
Copy link

linear bot commented Oct 16, 2025

ENG-8039 Pro 25 - ui

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 to PRO_TIERS_TABLE in constants.py
  • Changed default credits in ProTierState from hardcoded 1000 to PRO_TIERS_TABLE["Pro 25"]["credits"] (500)
  • Updated fallback tier in selected_tier computed 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
Loading

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@Kastier1 Kastier1 merged commit b149ba9 into main Oct 16, 2025
10 checks passed
@Kastier1 Kastier1 deleted the carlos/25-pro-ui branch October 16, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments