mirror of
https://github.com/openai/codex.git
synced 2026-10-21 05:22:21 +00:00
Label Business Pro Lite plans as Business Premium (#40301)
## What changed - Show `SelfServeBusinessProLite` as `Business Premium` in TUI account displays instead of grouping it under `Business`. - Update the display-name and app-server session tests for the new label. GitOrigin-RevId: aac5c7abe9543f5d49f4e9dc9cbe20e7e3b41e5b
This commit is contained in:
@@ -3712,7 +3712,7 @@ mod tests {
|
||||
Some(StatusAccountDisplay::ChatGpt {
|
||||
email: None,
|
||||
plan: Some(ref plan),
|
||||
}) if plan == "Business"
|
||||
}) if plan == "Business Premium"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,6 +99,8 @@ pub(crate) fn compose_account_display(
|
||||
pub(crate) fn plan_type_display_name(plan_type: PlanType) -> String {
|
||||
if plan_type == PlanType::EnterpriseCbpAutomation {
|
||||
"Enterprise (Automation)".to_string()
|
||||
} else if plan_type == PlanType::SelfServeBusinessProLite {
|
||||
"Business Premium".to_string()
|
||||
} else if plan_type.is_team_like() {
|
||||
"Business".to_string()
|
||||
} else if plan_type.is_business_like() {
|
||||
@@ -225,7 +227,6 @@ mod tests {
|
||||
(PlanType::Pro, "Pro"),
|
||||
(PlanType::ProLite, "Pro Lite"),
|
||||
(PlanType::Team, "Business"),
|
||||
(PlanType::SelfServeBusinessProLite, "Business"),
|
||||
(PlanType::SelfServeBusinessUsageBased, "Business"),
|
||||
(PlanType::Business, "Enterprise"),
|
||||
(PlanType::EnterpriseCbpAutomation, "Enterprise (Automation)"),
|
||||
@@ -238,6 +239,10 @@ mod tests {
|
||||
for (plan_type, expected) in cases {
|
||||
assert_eq!(plan_type_display_name(plan_type), expected);
|
||||
}
|
||||
insta::assert_snapshot!(
|
||||
plan_type_display_name(PlanType::SelfServeBusinessProLite),
|
||||
@"Business Premium"
|
||||
);
|
||||
insta::assert_snapshot!(
|
||||
"education_plan_display_names",
|
||||
[PlanType::Edu, PlanType::EduPlus, PlanType::EduPro]
|
||||
|
||||
Reference in New Issue
Block a user