From aa1b4c7868e0fb0cca55468abbc8d28f149254a0 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Wed, 1 May 2024 16:07:24 -0400 Subject: [PATCH] Add an `explore extensions` button to welcome screen (#11265) We are still getting comments from users saying they didn't know we had extensions until just now. This doesn't fix anything for existing users, but it helps make new users more aware, earlier on. There's probably more we need to do for discoverability, but this feels like it should help. Release Notes: - N/A --- Cargo.lock | 1 + crates/welcome/Cargo.toml | 1 + crates/welcome/src/welcome.rs | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index a5fbb22226a1a82731101fd5067d208e348f473b..12ebae98f632e80382c68f2fd8590506e1820091 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11797,6 +11797,7 @@ dependencies = [ "copilot_ui", "db", "editor", + "extensions_ui", "fuzzy", "gpui", "install_cli", diff --git a/crates/welcome/Cargo.toml b/crates/welcome/Cargo.toml index 6fd65c795e21ffa5623b95ebfa6ffaca3fa780fe..c18a09673ff8c97e8a8b1c557536b2dc3e972d2e 100644 --- a/crates/welcome/Cargo.toml +++ b/crates/welcome/Cargo.toml @@ -19,6 +19,7 @@ anyhow.workspace = true client.workspace = true copilot_ui.workspace = true db.workspace = true +extensions_ui.workspace = true fuzzy.workspace = true gpui.workspace = true install_cli.workspace = true diff --git a/crates/welcome/src/welcome.rs b/crates/welcome/src/welcome.rs index 5b9befdad218f592f3a6b7ec21577fc3576d3fc2..e6a2a53f2e6cb5483063710e9f65b4dd59250ea7 100644 --- a/crates/welcome/src/welcome.rs +++ b/crates/welcome/src/welcome.rs @@ -145,6 +145,16 @@ impl Render for WelcomePage { ); copilot_ui::initiate_sign_in(cx); })), + ) + .child( + Button::new("explore extensions", "Explore extensions") + .full_width() + .on_click(cx.listener(|this, _, cx| { + this.telemetry.report_app_event( + "welcome page: open extensions".to_string(), + ); + cx.dispatch_action(Box::new(extensions_ui::Extensions)); + })), ), ) .child(