╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──────╮ │src/ui/Home.zig│ ╰───────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │149 const at_top = switch (selected_widget.*) { │ │150 .home_users => |*v| v.getSelectedIndex() == 0,│ │151 .home_repos => |*v| v.getSelectedIndex() == 0,│ │152 - .home_ansi => |*v| v.getSelectedIndex() == 0, │ │153 - .home_auth => |*v| v.getSelectedIndex() == 0, │ │152 + .settings => |*v| v.getSelectedIndex() == 0, │ │153 + .auth => |*v| v.getSelectedIndex() == 0, │ │154 else => false, │ │155 }; │ │156 if (at_top) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ ╭ removed ───────────╮ │src/ui/Home/Ansi.zig│ ╰────────────────────╯ ╭ removed ───────────╮ │src/ui/Home/Auth.zig│ ╰────────────────────╯ ╭ removed ─────────────────╮ │src/ui/Home/Auth/Login.zig│ ╰──────────────────────────╯ ╭ removed ──────────────────╮ │src/ui/Home/Auth/Logout.zig│ ╰───────────────────────────╯ ╭ removed ──────────────╮ │src/ui/Home/AuthTab.zig│ ╰───────────────────────╯ ╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭────────────────────────────────────────────────────╮ │ 8 const Grid = xitui.grid.Grid; │ │ 9 const Focus = xitui.focus.Focus; │ │10 │ │11 -pub const AuthTab = @import("./AuthTab.zig"); │ │11 +pub const AuthTab = @import("./../AuthTab.zig");│ │12 │ │13 title: ui.Title, │ │14 auth_tab: AuthTab, │ ╰────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │58 // tabs │ │59 var tab_index: usize = 0; │ │60 for ( │ │61 - [_][]const u8{ "users", "repos", "", "ANSI art", "" }, │ │62 - [_][]const u8{ "a:/users", "a:/repos", "", "a:/ansi", "a:/auth" }, │ │61 + [_][]const u8{ "users", "repos", "", "settings", "" }, │ │62 + [_][]const u8{ "a:/users", "a:/repos", "", "a:/settings", "a:/auth" },│ │63 ) |name, focus_name| { │ │64 // spacer │ │65 if (focus_name.len == 0) { │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │78 tab_ids[tab_index] = auth_tab.getFocus().id; │ │79 tab_index += 1; │ │80 try box.children.put(allocator, auth_tab.getFocus().id, .{ │ │81 - .widget = .{ .home_auth_tab = auth_tab }, │ │81 + .widget = .{ .auth_tab = auth_tab }, │ │82 .rect = null, │ │83 .min_size = .{ .width = AuthTab.min_width, .height = null },│ │84 }); │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────╮ │107 switch (session.data.current_page) {│ │108 .home_users => 0, │ │109 .home_repos => 1, │ │110 - .home_ansi => 2, │ │111 - .home_auth => 3, │ │110 + .settings => 2, │ │111 + .auth => 3, │ │112 } │ │113 ]; │ │114 return self; │ ╰─────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯