╭ changed ─────────────╮ │src/ui/Fork/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────╮ │14 const patch_tab_label = "patch"; │ │15 const diff_tab_label = "diff"; │ │16 const files_tab_label = "files"; │ │17 -const settings_tab_label = "settings"; │ │17 const new_repo_tab_label = "new repo"; │ │18 │ │19 pub const AuthTab = @import("../AuthTab.zig");│ ╰──────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │121 }); │ │122 } │ │123 │ │125 - // spacer pushes settings, new repo and auth to the right.│ │124 + // spacer pushes new repo and auth to the right. │ │125 { │ │126 var spacer = try ui.widget.Spacer.init(allocator); │ │127 errdefer spacer.deinit(allocator); │ ╰───────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │128 try tabs_box.children.put(allocator, spacer.getFocus().id, .{ .widget = .{ .spacer = spacer }, .rect = null, .min_size = null, .flex = .grow });│ │129 } │ │130 │ │132 - const settings_route = ui.RoutablePage.forkSettingsRoute(fork_identity, data.id) orelse return error.RouteTooLong; │ │133 - const settings_link = try ui.inPageTabLink(session, settings_route, current_tag == .fork_settings); │ │131 const new_repo_route = ui.RoutablePage.forkNewRepoRoute(fork_identity, data.id) orelse return error.RouteTooLong; │ │132 const new_repo_link = try ui.inPageTabLink(session, new_repo_route, current_tag == .fork_new_repo); │ │133 const auth_route = ui.RoutablePage.forkAuthRoute(fork_identity, data.id) orelse return error.RouteTooLong; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │142 try tab_ids.put(allocator, new_repo.getFocus().id, {}); │ │143 if (current_tag == .fork_new_repo) selected_tab = new_repo.getFocus().id; │ │144 try tabs_box.children.put(allocator, new_repo.getFocus().id, .{ .widget = .{ .text_box = new_repo }, .rect = null, .min_size = .{ .width = new_repo_tab_label.len + 2, .height = null } });│ │148 - } │ │149 - │ │150 - // settings are account preferences, so they require a login. │ │151 - if (session.data.user_id != null) { │ │152 - var settings = try wgt.TextBox.init(allocator, settings_tab_label, .{ .border_style = .single, .round_corners = true, .wrap_kind = .none }); │ │153 - errdefer settings.deinit(allocator); │ │154 - settings.getFocus().mode = .all; │ │155 - settings.getFocus().kind = .{ .custom = settings_link }; │ │156 - try tab_ids.put(allocator, settings.getFocus().id, {}); │ │157 - if (current_tag == .fork_settings) selected_tab = settings.getFocus().id; │ │158 - try tabs_box.children.put(allocator, settings.getFocus().id, .{ .widget = .{ .text_box = settings }, .rect = null, .min_size = .{ .width = settings_tab_label.len + 2, .height = null } });│ │145 } │ │146 │ │147 // keep authentication within the fork page. │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯