ai onboarding: Adjust the Zed Pro banner (#36452)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-08-18 21:53:05 -03:00 committed by GitHub
parent b7edc89a87
commit 6ee06bf2a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -332,17 +332,25 @@ impl ZedAiOnboarding {
.mb_2(),
)
.child(plan_definitions.pro_plan(false))
.child(
Button::new("pro", "Continue with Zed Pro")
.full_width()
.style(ButtonStyle::Outlined)
.on_click({
let callback = self.continue_with_zed_ai.clone();
move |_, window, cx| {
telemetry::event!("Banner Dismissed", source = "AI Onboarding");
callback(window, cx)
}
}),
.when_some(
self.dismiss_onboarding.as_ref(),
|this, dismiss_callback| {
let callback = dismiss_callback.clone();
this.child(
h_flex().absolute().top_0().right_0().child(
IconButton::new("dismiss_onboarding", IconName::Close)
.icon_size(IconSize::Small)
.tooltip(Tooltip::text("Dismiss"))
.on_click(move |_, window, cx| {
telemetry::event!(
"Banner Dismissed",
source = "AI Onboarding",
);
callback(window, cx)
}),
),
)
},
)
.into_any_element()
}