╭ changed ──────╮ │src/ui/Home.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────╮ │12 pub const Users = @import("./Home/Users.zig"); │ │13 pub const Repos = @import("./Home/Repos.zig"); │ │14 pub const Header = @import("./Home/Header.zig");│ │15 +pub const Ansi = @import("./Home/Ansi.zig"); │ │16 pub const Auth = @import("./Home/Auth.zig"); │ │17 │ │18 header: Header, │ ╰────────────────────────────────────────────────────╯ ╭─────────────────────────╮ │19 users: Users, │ │20 repos: Repos, │ │21 +ansi: Ansi, │ │22 auth: Auth, │ │23 │ │24 const Self = @This();│ ╰─────────────────────────╯ ╭───────────────────────────────────────────────────────────────────╮ │32 .header = try Header.init(arena), │ │33 .users = try Users.init(repo_opts, arena, haxy_moment),│ │34 .repos = try Repos.init(repo_opts, arena, haxy_moment),│ │35 + .ansi = Ansi.init(), │ │36 .auth = Auth.init(), │ │37 }; │ │38 } │ ╰───────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │76 } │ │77 │ │78 { │ │79 + var ansi_view = try Ansi.View.init(allocator, &data.ansi, session); │ │80 + errdefer ansi_view.deinit(allocator); │ │81 + try stack.children.put(allocator, ansi_view.getFocus().id, .{ .home_ansi = ansi_view });│ │82 + } │ │83 + │ │84 + { │ │85 var auth_view = try Auth.View.init(allocator, &data.auth, session, users_tab_id); │ │86 errdefer auth_view.deinit(allocator); │ │87 try stack.children.put(allocator, auth_view.getFocus().id, .{ .home_auth = auth_view });│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │114 self.session.data.current_page = switch (index) {│ │115 0 => .home_users, │ │116 1 => .home_repos, │ │108 - 2 => .home_auth, │ │117 + 2 => .home_ansi, │ │118 + 3 => .home_auth, │ │119 else => .home_users, │ │120 }; │ │121 } │ ╰──────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │150 const at_top = switch (selected_widget.*) { │ │151 .home_users => |*v| v.getSelectedIndex() == 0,│ │152 .home_repos => |*v| v.getSelectedIndex() == 0,│ │153 + .home_ansi => |*v| v.getSelectedIndex() == 0, │ │154 .home_auth => |*v| v.getSelectedIndex() == 0, │ │155 else => false, │ │156 }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯