Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Clarify upgrade path when starting trial (#33706)
Bennet Bo Fenner0629804390cc
diff --git a/crates/language_models/src/provider/cloud.rs b/crates/language_models/src/provider/cloud.rsindex 9472fed18e7..5417c329aba 100644--- a/crates/language_models/src/provider/cloud.rs+++ b/crates/language_models/src/provider/cloud.rs@@ -1106,10 +1106,17 @@ impl RenderOnce for ZedAIConfiguration {.on_click(|_, _, cx| cx.open_url(ZED_PRICING_URL)),).child(- Button::new("upgrade", "Upgrade")- .style(ButtonStyle::Subtle)- .color(Color::Accent)- .on_click(|_, _, cx| cx.open_url(&zed_urls::account_url(cx))),+ Button::new(+ "upgrade",+ if self.plan.is_none() && self.eligible_for_trial {+ "Start Trial"+ } else {+ "Upgrade"+ },+ )+ .style(ButtonStyle::Subtle)+ .color(Color::Accent)+ .on_click(|_, _, cx| cx.open_url(&zed_urls::account_url(cx))),)};