Settings cleanup: remove Cloud Platform, Teams, Shared Blocks, Referrals from nav; disable autoupdate; stub Oz settings; rename Warpify to Galaxify

This commit is contained in:
Ryan Ward
2026-05-12 08:42:54 -05:00
parent 140da74f99
commit 2c651f2085
12 changed files with 62 additions and 182 deletions
+6 -29
View File
@@ -42,8 +42,7 @@ use crate::settings::QuakeModeSettings;
use crate::settings::ThemeSettings;
use crate::settings_view::flags;
use crate::settings_view::mcp_servers_page::MCPServersSettingsPage;
use crate::settings_view::OpenTeamsSettingsModalArgs;
use crate::settings_view::SettingsSection;
use crate::settings_view::{OpenTeamsSettingsModalArgs, SettingsSection};
use crate::terminal::available_shells::AvailableShell;
use crate::terminal::general_settings::GeneralSettings;
use crate::terminal::keys_settings::KeysSettings;
@@ -1042,23 +1041,9 @@ fn create_environment_and_run(arg: &CreateEnvironmentArg, ctx: &mut AppContext)
ctx.windows().show_window_and_focus_app(window_id);
}
fn open_team_settings_with_email_invite_in_new_window(
arg: &OpenTeamsSettingsModalArgs,
ctx: &mut AppContext,
_arg: &OpenTeamsSettingsModalArgs,
_ctx: &mut AppContext,
) {
let root_handle = open_new_window_get_handles(None, ctx).1;
root_handle.update(ctx, |root_view, ctx| {
if let AuthOnboardingState::Terminal(workspace_view_handle) =
&root_view.auth_onboarding_state
{
let initial_load_complete = UpdateManager::as_ref(ctx).initial_load_complete();
let email_invite = arg.invite_email.clone();
workspace_view_handle.update(ctx, |_, ctx| {
let _ = ctx.spawn(initial_load_complete, move |workspace, _, ctx| {
workspace.show_team_settings_page_with_email_invite(email_invite.as_ref(), ctx)
});
});
}
});
}
fn open_settings_page_in_new_window(section: &SettingsSection, ctx: &mut AppContext) {
@@ -2584,17 +2569,9 @@ impl RootView {
pub fn open_team_settings_with_email_invite_in_existing_window(
&mut self,
arg: &OpenTeamsSettingsModalArgs,
ctx: &mut ViewContext<Self>,
_arg: &OpenTeamsSettingsModalArgs,
_ctx: &mut ViewContext<Self>,
) -> bool {
if let AuthOnboardingState::Terminal(handle) = &self.auth_onboarding_state {
handle.update(ctx, |workspace, ctx| {
workspace.show_team_settings_page_with_email_invite(arg.invite_email.as_ref(), ctx)
});
return true;
} else {
log::warn!("Auth not complete before trying to open settings pane");
}
false
}
@@ -2883,7 +2860,7 @@ impl RootView {
ctx.dispatch_typed_action_for_view(
window_id,
handle.id(),
&WorkspaceAction::ShowSettingsPage(SettingsSection::Teams),
&WorkspaceAction::ShowSettingsPage(SettingsSection::Appearance),
);
ctx.windows().show_window_and_focus_app(window_id);
} else {