╭ changed ────────╮ │src/ui/widget.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────╮ │69 home_users: ui.Home.Users.View, │ │70 auth_tab: ui.Home.Header.AuthTab.View,│ │71 home_settings: ui.Home.Settings.View, │ │72 + new_repo: ui.NewRepo.View, │ │73 home_auth: ui.Home.Auth.View, │ │74 auth_login: ui.Home.Auth.Login.View, │ │75 auth_logout: ui.Home.Auth.Logout.View,│ ╰──────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │114 // whether moving up should return to the page header │ │115 pub fn atTop(self: *Widget, root_focus: *Focus) bool { │ │116 return switch (self.*) { │ │116 - inline .home_about, .home_users, .user_repos, .flow_box_scroll, .home_settings, .auth_login, .auth_logout, .quit, .repo_files, .repo_commits, .diff_view, .repo_refs, .repo_issues, .repo_patches, .repo_discussions, .repo_events, .repo_undo => |*view| view.atTop(), │ │117 + inline .home_about, .home_users, .user_repos, .flow_box_scroll, .home_settings, .new_repo, .auth_login, .auth_logout, .quit, .repo_files, .repo_commits, .diff_view, .repo_refs, .repo_issues, .repo_patches, .repo_discussions, .repo_events, .repo_undo => |*view| view.atTop(),│ │118 inline .home_auth, .repo_patch_detail => |*view| view.atTop(root_focus), │ │119 else => false, │ │120 }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │948 // focused option, so a click selects on the web too. │ │949 pub const Radio = struct { │ │950 box: wgt.Box(Widget), │ │951 + name: []const u8, │ │952 values: []const []const u8, │ │953 │ │954 pub fn init(allocator: std.mem.Allocator, session: *ui.Session, name: []const u8, values: []const []const u8, initial: []const u8) !Radio {│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │962 if (std.mem.eql(u8, value, initial)) box.getFocus().child_id = option.getFocus().id; │ │963 try box.children.put(allocator, option.getFocus().id, .{ .widget = .{ .text_box = option }, .rect = null, .min_size = .{ .width = try xitui.width.displayWidth(value) + 2, .height = 3 } });│ │964 } │ │963 - return .{ .box = box, .values = values }; │ │965 + return .{ .box = box, .name = name, .values = values }; │ │966 } │ │967 │ │968 pub fn deinit(self: *Radio, allocator: std.mem.Allocator) void { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯