From 4bfb8fda8d684bac1992502c26698ac734eb5827 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 1 Aug 2024 13:59:21 -0400 Subject: [PATCH] Rename `zed.dev/settings` to `zed.dev/account` (#15636) This PR renames the links to the `zed.dev/settings` page to the `zed.dev/account`. Some of these spots will likely link out to a marketing page later. Release Notes: - N/A --- crates/collab/src/api/billing.rs | 6 +++--- crates/language_model/src/provider/cloud.rs | 2 +- crates/zed/src/zed.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/collab/src/api/billing.rs b/crates/collab/src/api/billing.rs index b0de5b1c67192b511974a2e0afd5ab4469b5aaf4..916d669d9d1ffebb28b4d8f5b070e3c37aa22a75 100644 --- a/crates/collab/src/api/billing.rs +++ b/crates/collab/src/api/billing.rs @@ -153,7 +153,7 @@ async fn create_billing_subscription( quantity: Some(1), ..Default::default() }]); - let success_url = format!("{}/settings", app.config.zed_dot_dev_url()); + let success_url = format!("{}/account", app.config.zed_dot_dev_url()); params.success_url = Some(&success_url); CheckoutSession::create(&stripe_client, params).await? @@ -261,7 +261,7 @@ async fn manage_billing_subscription( after_completion: Some(CreateBillingPortalSessionFlowDataAfterCompletion { type_: stripe::CreateBillingPortalSessionFlowDataAfterCompletionType::Redirect, redirect: Some(CreateBillingPortalSessionFlowDataAfterCompletionRedirect { - return_url: format!("{}/settings", app.config.zed_dot_dev_url()), + return_url: format!("{}/account", app.config.zed_dot_dev_url()), }), ..Default::default() }), @@ -278,7 +278,7 @@ async fn manage_billing_subscription( let mut params = CreateBillingPortalSession::new(customer_id); params.flow_data = Some(flow); - let return_url = format!("{}/settings", app.config.zed_dot_dev_url()); + let return_url = format!("{}/account", app.config.zed_dot_dev_url()); params.return_url = Some(&return_url); let session = BillingPortalSession::create(&stripe_client, params).await?; diff --git a/crates/language_model/src/provider/cloud.rs b/crates/language_model/src/provider/cloud.rs index 2c5ab1ca5e90ea3556b5c30baf54ffd9217761ae..b16dc36be8e2c34fc9b841fcc969ad56496a7cd5 100644 --- a/crates/language_model/src/provider/cloud.rs +++ b/crates/language_model/src/provider/cloud.rs @@ -402,7 +402,7 @@ impl ConfigurationView { impl Render for ConfigurationView { fn render(&mut self, cx: &mut ViewContext) -> impl IntoElement { const ZED_AI_URL: &str = "https://zed.dev/ai"; - const ACCOUNT_SETTINGS_URL: &str = "https://zed.dev/settings"; + const ACCOUNT_SETTINGS_URL: &str = "https://zed.dev/account"; let is_connected = self.state.read(cx).is_connected(); let plan = self.state.read(cx).user_store.read(cx).current_plan(); diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index ccc989f0c764a91c6b90eee1ad2f1b9c688ce327..e1ffaf8b95288058e26da397e3599fd0eb22dd2a 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -425,7 +425,7 @@ pub fn initialize_workspace(app_state: Arc, cx: &mut AppContext) { .register_action( |_: &mut Workspace, _: &OpenAccountSettings, cx: &mut ViewContext| { let server_url = &client::ClientSettings::get_global(cx).server_url; - cx.open_url(&format!("{server_url}/settings")); + cx.open_url(&format!("{server_url}/account")); }, ) .register_action(