╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │25 pub const View = struct { │ │26 box: wgt.Box(ui.Widget), │ │27 data: *const Self, │ │28 - tab_ids: [3]usize, │ │28 + tab_ids: [4]usize, │ │29 │ │30 - const auth_tab_index: usize = 2; │ │30 + const ansi_tab_index: usize = 2; │ │31 + const auth_tab_index: usize = 3; │ │32 // the auth slot must fit either "login" or "logout" │ │33 const auth_tab_min_width: usize = @as(usize, "logout".len) + 2;│ │34 │ ╰───────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │36 var box = wgt.Box(ui.Widget).init(.{ .border_style = .hidden, .rounded_corners = true, .direction = .horiz });│ │37 errdefer box.deinit(allocator); │ │38 │ │38 - var tab_ids: [3]usize = undefined; │ │39 + var tab_ids: [4]usize = undefined; │ │40 │ │41 // title sits to the left of the tabs │ │42 { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │60 }); │ │61 } │ │62 │ │62 - // fixed tabs: users, repos │ │63 + // fixed tabs │ │64 for ( │ │64 - [_][]const u8{ "users", "repos" }, │ │65 - [_][]const u8{ "a:/users", "a:/repos" }, │ │65 + [_][]const u8{ "users", "repos", "ANSI" }, │ │66 + [_][]const u8{ "a:/users", "a:/repos", "a:/ansi" }, │ │67 0.., │ │68 ) |name, focus_name, i| { │ │69 var text_box = try wgt.TextBox(ui.Widget).init(allocator, name, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────╮ │109 switch (session.data.current_page) {│ │110 .home_users => 0, │ │111 .home_repos => 1, │ │111 - .home_auth => 2, │ │112 + .home_ansi => ansi_tab_index, │ │113 + .home_auth => auth_tab_index, │ │114 } │ │115 ]; │ │116 return self; │ ╰─────────────────────────────────────────────────────╯