╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭──────────────────────────────────────────────────────╮ │28 pub const RoutablePage = enum { │ │29 home_users, │ │30 home_repos, │ │31 - home_ansi, │ │32 - home_auth, │ │31 + settings, │ │32 + auth, │ │33 │ │34 pub const default: RoutablePage = .home_users;│ │35 │ ╰──────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────╮ │37 return switch (self) { │ │38 .home_users => "/users", │ │39 .home_repos => "/repos", │ │40 - .home_ansi => "/ansi", │ │41 - .home_auth => "/auth", │ │40 + .settings => "/settings",│ │41 + .auth => "/auth", │ │42 }; │ │43 } │ │44 │ ╰─────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────╮ │46 if (std.mem.eql(u8, path, "/")) return default; │ │47 if (std.mem.eql(u8, path, "/users")) return .home_users; │ │48 if (std.mem.eql(u8, path, "/repos")) return .home_repos; │ │49 - if (std.mem.eql(u8, path, "/ansi")) return .home_ansi; │ │50 - if (std.mem.eql(u8, path, "/auth")) return .home_auth; │ │49 + if (std.mem.eql(u8, path, "/settings")) return .settings;│ │50 + if (std.mem.eql(u8, path, "/auth")) return .auth; │ │51 return null; │ │52 } │ │53 }; │ ╰─────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────╮ │251 home_header: Home.Header.View, │ │252 home_users: Home.Users.View, │ │253 home_repos: Home.Repos.View, │ │254 - home_auth_tab: Home.Header.AuthTab.View, │ │255 - home_ansi: Home.Ansi.View, │ │256 - home_auth: Home.Auth.View, │ │254 + auth_tab: Home.Header.AuthTab.View, │ │255 + settings: Home.Settings.View, │ │256 + auth: Home.Auth.View, │ │257 │ │258 pub fn deinit(self: *Widget, allocator: std.mem.Allocator) void {│ │259 switch (self.*) { │ ╰──────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────╮ │src/ui/Home.zig│ ╰───────────────╯ ╭────────────────────────────────────────────────────╮ │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"); │ │15 +pub const Settings = @import("./Settings.zig"); │ │16 +pub const Auth = @import("./Auth.zig"); │ │17 │ │18 header: Header, │ │19 users: Users, │ ╰────────────────────────────────────────────────────╯ ╭─────────────────────────╮ │20 repos: Repos, │ │21 -ansi: Ansi, │ │21 +settings: Settings, │ │22 auth: Auth, │ │23 │ │24 const Self = @This();│ ╰─────────────────────────╯ ╭────────────────────────────────────────────────────────╮ │31 .header = try Header.init(arena), │ │32 .users = try Users.init(arena, haxy_moment),│ │33 .repos = try Repos.init(arena, haxy_moment),│ │34 - .ansi = Ansi.init(), │ │34 + .settings = Settings.init(), │ │35 .auth = Auth.init(), │ │36 }; │ │37 } │ ╰────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │75 } │ │76 │ │77 { │ │78 - var ansi_view = try Ansi.View.init(allocator, &data.ansi, session); │ │79 - errdefer ansi_view.deinit(allocator); │ │80 - try stack.children.put(allocator, ansi_view.getFocus().id, .{ .home_ansi = ansi_view }); │ │78 + var settings_view = try Settings.View.init(allocator, &data.settings, session); │ │79 + errdefer settings_view.deinit(allocator); │ │80 + try stack.children.put(allocator, settings_view.getFocus().id, .{ .settings = settings_view });│ │81 } │ │82 │ │83 { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │84 var auth_view = try Auth.View.init(allocator, &data.auth, session, users_tab_id); │ │85 errdefer auth_view.deinit(allocator); │ │86 - try stack.children.put(allocator, auth_view.getFocus().id, .{ .home_auth = auth_view }); │ │86 + try stack.children.put(allocator, auth_view.getFocus().id, .{ .auth = auth_view }); │ │87 } │ │88 │ │89 try box.children.put(allocator, stack.getFocus().id, .{ .widget = .{ .stack = stack }, .rect = null, .min_size = null });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │113 self.session.data.current_page = switch (index) {│ │114 0 => .home_users, │ │115 1 => .home_repos, │ │116 - 2 => .home_ansi, │ │117 - 3 => .home_auth, │ │116 + 2 => .settings, │ │117 + 3 => .auth, │ │118 else => .home_users, │ │119 }; │ │120 } │ ╰──────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯