mirror of
https://github.com/openai/codex.git
synced 2026-10-21 07:42:01 +00:00
Update Pro plan display names in the TUI (#49043)
## What changed Update plan labels in the analytics views and status display: - `PlanType::Pro`: `Pro (More)` → `Pro Extra` - `PlanType::ProLite`: `Pro` → `Pro Standard` - `PlanType::ProMax`: `Pro (Max)` → `Pro Max` ## Testing Update the status display-name test expectations for all three Pro tiers. GitOrigin-RevId: 9bd9f1cd8a701019fd40047cd8131e6193f66cb9
This commit is contained in:
@@ -108,9 +108,9 @@ impl AnalyticsView {
|
||||
PlanType::Free => "Free",
|
||||
PlanType::Go => "Go",
|
||||
PlanType::Plus => "Plus",
|
||||
PlanType::Pro => "Pro (More)",
|
||||
PlanType::ProLite => "Pro",
|
||||
PlanType::ProMax => "Pro (Max)",
|
||||
PlanType::Pro => "Pro Extra",
|
||||
PlanType::ProLite => "Pro Standard",
|
||||
PlanType::ProMax => "Pro Max",
|
||||
PlanType::Team
|
||||
| PlanType::Business
|
||||
| PlanType::SelfServeBusinessProLite
|
||||
|
||||
@@ -62,9 +62,9 @@ impl AnalyticsView {
|
||||
PlanType::Free => "Free",
|
||||
PlanType::Go => "Go",
|
||||
PlanType::Plus => "Plus",
|
||||
PlanType::Pro => "Pro (More)",
|
||||
PlanType::ProLite => "Pro",
|
||||
PlanType::ProMax => "Pro (Max)",
|
||||
PlanType::Pro => "Pro Extra",
|
||||
PlanType::ProLite => "Pro Standard",
|
||||
PlanType::ProMax => "Pro Max",
|
||||
PlanType::Team
|
||||
| PlanType::Business
|
||||
| PlanType::SelfServeBusinessProLite
|
||||
|
||||
@@ -107,11 +107,11 @@ pub(crate) fn plan_type_display_name(plan_type: PlanType) -> String {
|
||||
} else if plan_type.is_business_like() {
|
||||
"Enterprise".to_string()
|
||||
} else if plan_type == PlanType::Pro {
|
||||
"Pro (More)".to_string()
|
||||
"Pro Extra".to_string()
|
||||
} else if plan_type == PlanType::ProMax {
|
||||
"Pro (Max)".to_string()
|
||||
"Pro Max".to_string()
|
||||
} else if plan_type == PlanType::ProLite {
|
||||
"Pro".to_string()
|
||||
"Pro Standard".to_string()
|
||||
} else if plan_type == PlanType::EduPlus {
|
||||
"Edu Plus".to_string()
|
||||
} else if plan_type == PlanType::EduPro {
|
||||
@@ -233,9 +233,9 @@ mod tests {
|
||||
(PlanType::Free, "Free"),
|
||||
(PlanType::Go, "Go"),
|
||||
(PlanType::Plus, "Plus"),
|
||||
(PlanType::Pro, "Pro (More)"),
|
||||
(PlanType::ProLite, "Pro"),
|
||||
(PlanType::ProMax, "Pro (Max)"),
|
||||
(PlanType::Pro, "Pro Extra"),
|
||||
(PlanType::ProLite, "Pro Standard"),
|
||||
(PlanType::ProMax, "Pro Max"),
|
||||
(PlanType::Team, "Business"),
|
||||
(PlanType::SelfServeBusinessUsageBased, "Business"),
|
||||
(PlanType::Business, "Enterprise"),
|
||||
|
||||
Reference in New Issue
Block a user