╭ changed ─────────────╮ │src/ui/Home/Header.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │34 var tab_ids: [3]usize = undefined; │ │35 │ │36 // fixed tabs: users, repos │ │37 - const fixed_tab_names = [_][]const u8{ "users", "repos" }; │ │38 - for (fixed_tab_names, 0..) |name, i| { │ │37 + for ( │ │38 + [_][]const u8{ "users", "repos" }, │ │39 + [_][]const u8{ "a:/users", "a:/repos" }, │ │40 + 0.., │ │41 + ) |name, focus_name, i| { │ │42 var text_box = try wgt.TextBox(ui.Widget).init(allocator, name, .{ .border_style = .single, .rounded_corners = true, .wrap_kind = .none });│ │43 errdefer text_box.deinit(allocator); │ │44 text_box.getFocus().focusable = true; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────╮ │45 + text_box.getFocus().kind = .{ .custom = focus_name }; │ │46 tab_ids[i] = text_box.getFocus().id; │ │47 try box.children.put(allocator, text_box.getFocus().id, .{│ │48 .widget = .{ .text_box = text_box }, │ ╰──────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │78 // initial selected tab follows session.data.current_page — the web │ │79 // layer decides this from the request URL, the TTY uses whatever │ │80 // the session arrives with — so we don't bake a default here. │ │77 - self.getFocus().child_id = tab_ids[switch (session.data.current_page) {│ │78 - .home_users => 0, │ │79 - .home_repos => 1, │ │80 - .home_auth => 2, │ │81 - }]; │ │81 + self.getFocus().child_id = tab_ids[ │ │82 + switch (session.data.current_page) { │ │83 + .home_users => 0, │ │84 + .home_repos => 1, │ │85 + .home_auth => 2, │ │86 + } │ │87 + ]; │ │88 return self; │ │89 } │ │90 │ ╰───────────────────────────────────────────────────────────────────────────────────╯