Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ai_onboarding: Add student plan examples to component preview (#51338)

Marshall Bowers6034961499c1
diff --git a/crates/ai_onboarding/src/ai_onboarding.rs b/crates/ai_onboarding/src/ai_onboarding.rs
index 8b578d2e7f0..e05853fa167 100644
--- a/crates/ai_onboarding/src/ai_onboarding.rs
+++ b/crates/ai_onboarding/src/ai_onboarding.rs
@@ -372,6 +372,10 @@ impl Component for ZedAiOnboarding {
"Business Plan",
onboarding(SignInStatus::SignedIn, Some(Plan::ZedBusiness), false),
),
+ single_example(
+ "Student Plan",
+ onboarding(SignInStatus::SignedIn, Some(Plan::ZedStudent), false),
+ ),
])
.into_any_element(),
)
diff --git a/crates/ai_onboarding/src/ai_upsell_card.rs b/crates/ai_onboarding/src/ai_upsell_card.rs
index 40a35f590d8..cbaa9785db9 100644
--- a/crates/ai_onboarding/src/ai_upsell_card.rs
+++ b/crates/ai_onboarding/src/ai_upsell_card.rs
@@ -388,6 +388,17 @@ impl Component for AiUpsellCard {
}
.into_any_element(),
),
+ single_example(
+ "Student Plan",
+ AiUpsellCard {
+ sign_in_status: SignInStatus::SignedIn,
+ sign_in: Arc::new(|_, _| {}),
+ account_too_young: false,
+ user_plan: Some(Plan::ZedStudent),
+ tab_index: Some(1),
+ }
+ .into_any_element(),
+ ),
],
))
.into_any_element(),