╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────╮ │24 pub const Comment = @import("./Repo/Comment.zig");│ │25 pub const Undo = @import("./Repo/Undo.zig"); │ │26 pub const Events = @import("./Repo/Events.zig"); │ │27 -pub const Auth = @import("./Auth.zig"); │ │27 pub const Quit = @import("./Quit.zig"); │ │28 │ │29 header: Header, │ ╰──────────────────────────────────────────────────────╯ ╭─────────────────────────────╮ │37 discussions: Discussions,│ │38 events: Events, │ │39 undo: ?Undo = null, │ │41 -auth: Auth, │ │40 quit: Quit, │ │41 │ │42 const Self = @This(); │ ╰─────────────────────────────╯ ╭────────────────────────────────────────╮ │360 .discussions = discussions,│ │361 .events = events, │ │362 .undo = undo_data, │ │365 - .auth = Auth.init(), │ │363 .quit = Quit.init(), │ │364 }; │ │365 } │ ╰────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │374 var box = try wgt.Box(ui.Widget).init(allocator, .{ .border_style = null, .round_corners = true, .direction = .vert });│ │375 errdefer box.deinit(allocator); │ │376 │ │380 - // build the header first so we can grab the files-tab id for the auth │ │377 + // build the header first so we can grab the files-tab id for the user │ │378 // view (it focuses there after login). │ │379 { │ │380 var header_view = try Header.View.init(allocator, data, session); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │447 } │ │448 │ │449 // the header shows new repo with a login, and new user without one │ │453 - // and auth only outside local mode, so keep the stack's children │ │450 + // and user only outside local mode, so keep the stack's children │ │451 // 1:1 with the tabs by skipping the same views. │ │452 const identity = try std.fmt.allocPrint(session.page_arena.allocator(), "{s}/{s}", .{ data.header.owner_name, data.header.name });│ │453 if (session.data.user_id != null) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │463 } │ │464 │ │465 if (session.data.host_kind == .server) { │ │469 - var auth_view = try Auth.View.init(allocator, &data.auth, session); │ │470 - errdefer auth_view.deinit(allocator); │ │471 - try stack.children.put(allocator, auth_view.getFocus().id, .{ .home_auth = auth_view });│ │466 + var user_view = try ui.UserLogout.initView(allocator, session); │ │467 + errdefer user_view.deinit(allocator); │ │468 + try stack.children.put(allocator, user_view.getFocus().id, user_view); │ │469 } │ │470 │ │471 if (session.is_terminal) { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯