acp: Add onboarding modal & title bar banner (#36784)

Release Notes:

- N/A

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
Danilo Leal 2025-08-26 16:59:12 -03:00 committed by GitHub
parent c5d3c7d790
commit bd4e943597
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 1556 additions and 28 deletions

View file

@ -119,7 +119,7 @@ impl Render for OnboardingBanner {
h_flex()
.h_full()
.gap_1()
.child(Icon::new(self.details.icon_name).size(IconSize::Small))
.child(Icon::new(self.details.icon_name).size(IconSize::XSmall))
.child(
h_flex()
.gap_0p5()

View file

@ -275,11 +275,11 @@ impl TitleBar {
let banner = cx.new(|cx| {
OnboardingBanner::new(
"Debugger Onboarding",
IconName::Debug,
"The Debugger",
None,
zed_actions::debugger::OpenOnboardingModal.boxed_clone(),
"ACP Onboarding",
IconName::Sparkle,
"Bring Your Own Agent",
Some("Introducing:".into()),
zed_actions::agent::OpenAcpOnboardingModal.boxed_clone(),
cx,
)
});