╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │ 9 const Focus = xitui.focus.Focus; │ │10 const evt = @import("./event.zig"); │ │11 │ │12 -pub const UsersAndRepos = @import("./ui/UsersAndRepos.zig"); │ │12 +pub const Home = @import("./ui/Home.zig"); │ │13 │ │14 pub const Page = union(enum) { │ │15 - users_and_repos: UsersAndRepos, │ │15 + home: Home, │ │16 }; │ │17 │ │18 pub fn run(io: std.Io, allocator: std.mem.Allocator, page: *const Page) !void {│ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │85 │ │86 pub fn initRoot(allocator: std.mem.Allocator, page: *const Page) !Widget { │ │87 var root: Widget = switch (page.*) { │ │88 - .users_and_repos => |*p| .{ .users_and_repos = try UsersAndRepos.View.init(allocator, p) },│ │88 + .home => |*p| .{ .home = try Home.View.init(allocator, p) }, │ │89 }; │ │90 errdefer root.deinit(); │ │91 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────╮ │105 box: wgt.Box(Widget), │ │106 text_box: wgt.TextBox(Widget), │ │107 scroll: wgt.Scroll(Widget), │ │108 + stack: wgt.Stack(Widget), │ │109 selectable_list: SelectableList, │ │109 - users_and_repos: UsersAndRepos.View,│ │110 + home: Home.View, │ │111 + home_header: Home.Header.View, │ │112 + home_users: Home.Users.View, │ │113 + home_repos: Home.Repos.View, │ │114 │ │115 pub fn deinit(self: *Widget) void { │ │116 switch (self.*) { │ ╰─────────────────────────────────────────────╯