From e4b4d12f119e9088b5749cf565f7224a2ea0bfcd Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 15:44:54 +0300 Subject: [PATCH] Remove the ability to book onboarding (cherry-pick #31404) (#31425) Cherry-picked Remove the ability to book onboarding (#31404) Closes: https://github.com/zed-industries/zed/issues/31394 Onboarding has been valuable, but we're moving into a new phase as our user base grows, and our ability to chat with everyone who books a call will not scale linearly. For now, we are removing the option to book a call from the application. Release Notes: - N/A --------- Co-authored-by: Joseph T. Lyons Co-authored-by: Kirill Bulatov --- crates/client/src/proxy.rs | 2 +- crates/title_bar/src/title_bar.rs | 19 +------------------ crates/welcome/src/welcome.rs | 11 ----------- 3 files changed, 2 insertions(+), 30 deletions(-) diff --git a/crates/client/src/proxy.rs b/crates/client/src/proxy.rs index 052cfc09f0725f2a40126b803c8daddcaf7c2a2b..ef87fa1a9b319fa1cbe51e7b6e0b2678affb8758 100644 --- a/crates/client/src/proxy.rs +++ b/crates/client/src/proxy.rs @@ -39,7 +39,7 @@ enum ProxyType<'t> { HttpProxy(HttpProxyType<'t>), } -fn parse_proxy_type<'t>(proxy: &'t Url) -> Option<((String, u16), ProxyType<'t>)> { +fn parse_proxy_type(proxy: &Url) -> Option<((String, u16), ProxyType)> { let scheme = proxy.scheme(); let host = proxy.host()?.to_string(); let port = proxy.port_or_known_default()?; diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index 87f06d7034da255572df77525314b9da8aa3fddc..07bb0fe88e380a86c31f04b8ef1ec248909c2edc 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -38,7 +38,7 @@ use ui::{ }; use util::ResultExt; use workspace::{Workspace, notifications::NotifyResultExt}; -use zed_actions::{OpenBrowser, OpenRecent, OpenRemote}; +use zed_actions::{OpenRecent, OpenRemote}; pub use onboarding_banner::restore_banner; @@ -49,8 +49,6 @@ const MAX_PROJECT_NAME_LENGTH: usize = 40; const MAX_BRANCH_NAME_LENGTH: usize = 40; const MAX_SHORT_SHA_LENGTH: usize = 8; -const BOOK_ONBOARDING: &str = "https://dub.sh/zed-c-onboarding"; - actions!(collab, [ToggleUserMenu, ToggleProjectMenu, SwitchBranch]); pub fn init(cx: &mut App) { @@ -724,13 +722,6 @@ impl TitleBar { zed_actions::Extensions::default().boxed_clone(), ) .separator() - .link( - "Book Onboarding", - OpenBrowser { - url: BOOK_ONBOARDING.to_string(), - } - .boxed_clone(), - ) .action("Sign Out", client::SignOut.boxed_clone()) }) .into() @@ -774,14 +765,6 @@ impl TitleBar { "Extensions", zed_actions::Extensions::default().boxed_clone(), ) - .separator() - .link( - "Book Onboarding", - OpenBrowser { - url: BOOK_ONBOARDING.to_string(), - } - .boxed_clone(), - ) }) .into() }) diff --git a/crates/welcome/src/welcome.rs b/crates/welcome/src/welcome.rs index a399692cf33392382d3ebed958a04bf5b03f8d97..31b5cb4325d4367fbf16a4d73c704d3873aa4e0b 100644 --- a/crates/welcome/src/welcome.rs +++ b/crates/welcome/src/welcome.rs @@ -29,7 +29,6 @@ actions!(welcome, [ResetHints]); pub const FIRST_OPEN: &str = "first_open"; pub const DOCS_URL: &str = "https://zed.dev/docs/"; -const BOOK_ONBOARDING: &str = "https://dub.sh/zed-c-onboarding"; pub fn init(cx: &mut App) { BaseKeymap::register(cx); @@ -254,16 +253,6 @@ impl Render for WelcomePage { ), cx); })), ) - .child( - Button::new("book-onboarding", "Book Onboarding") - .icon(IconName::PhoneIncoming) - .icon_size(IconSize::XSmall) - .icon_color(Color::Muted) - .icon_position(IconPosition::Start) - .on_click(cx.listener(|_, _, _, cx| { - cx.open_url(BOOK_ONBOARDING); - })), - ), ), ) .child(