agent: Clarify upgrade path when starting trial (#33706)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-07-01 13:32:14 +02:00 committed by GitHub
parent 3151b5efc1
commit 0629804390
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))),
)
};