Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix sign in disclaimer to accurately show trial benefits (#55964)
Katie Geera6f41d1b8344
diff --git a/crates/ai_onboarding/src/ai_onboarding.rs b/crates/ai_onboarding/src/ai_onboarding.rsindex bc1dabefd28..30aaa4206fe 100644--- a/crates/ai_onboarding/src/ai_onboarding.rs+++ b/crates/ai_onboarding/src/ai_onboarding.rs@@ -156,11 +156,11 @@ impl ZedAiOnboarding {.gap_1().child(Headline::new("Welcome to Zed AI")).child(- Label::new("Sign in to try Zed Pro for 14 days, no credit card required.")+ Label::new("Sign in to try Zed Pro free for 14 days.").color(Color::Muted).mb_2(),)- .child(PlanDefinitions.pro_plan())+ .child(PlanDefinitions.sign_in_upsell()).child(Button::new("sign_in", "Try Zed Pro for Free").disabled(signing_in)diff --git a/crates/ai_onboarding/src/plan_definitions.rs b/crates/ai_onboarding/src/plan_definitions.rsindex cc80b5ccf6d..2ac7aeab566 100644--- a/crates/ai_onboarding/src/plan_definitions.rs+++ b/crates/ai_onboarding/src/plan_definitions.rs@@ -14,6 +14,13 @@ impl PlanDefinitions {.child(ListBulletItem::new("Unlimited use of external agents"))}+ pub fn sign_in_upsell(&self) -> impl IntoElement {+ List::new()+ .child(ListBulletItem::new("Unlimited edit predictions"))+ .child(ListBulletItem::new("$20 of tokens in Zed agent"))+ .child(ListBulletItem::new("No credit card required"))+ }+pub fn pro_trial(&self, period: bool) -> impl IntoElement {List::new().child(ListBulletItem::new("$20 of tokens in Zed agent"))