╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────╮ │ 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; │ ╰─────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │123 for (self.box.children.keys(), self.box.children.values()) |id, *child| {│ │124 const tb: ?*wgt.TextBox(ui.Widget) = switch (child.widget) { │ │125 .text_box => |*x| x, │ │126 - .home_auth_tab => |*at| &at.text_box, │ │126 + .auth_tab => |*at| &at.text_box, │ │127 else => null, │ │128 }; │ │129 if (tb) |t| { │ ╰──────────────────────────────────────────────────────────────────────────────────────╯