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.

Rename `zed.dev/settings` to `zed.dev/account` (#15636)

Marshall Bowers4bfb8fda8d68
diff --git a/crates/collab/src/api/billing.rs b/crates/collab/src/api/billing.rs
index b0de5b1c671..916d669d9d1 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 2c5ab1ca5e9..b16dc36be8e 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<Self>) -> 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 ccc989f0c76..e1ffaf8b952 100644
--- a/crates/zed/src/zed.rs
+++ b/crates/zed/src/zed.rs
@@ -425,7 +425,7 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
.register_action(
|_: &mut Workspace, _: &OpenAccountSettings, cx: &mut ViewContext<Workspace>| {
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(