╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │125 var owner_name: []const u8 = undefined; │ │126 if (session.local) |local| { │ │127 source = local; │ │128 + // local routes elide the identity, so the display name comes from the │ │129 + // repo's directory rather than the route. │ │130 repo = .{ │ │131 .user_id = "", │ │130 - .name = try arena.allocator().dupe(u8, rf.name), │ │132 + .name = try arena.allocator().dupe(u8, std.fs.path.basename(local.path)),│ │133 .description = "", │ │134 .enable_issue = true, │ │135 }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │134 - owner_name = try arena.allocator().dupe(u8, rf.owner); │ │136 + owner_name = ""; │ │137 } else { │ │138 const haxy_moment = session.haxy_moment orelse return error.NoMoment; │ │139 const found = (try evt.Repo.readByOwnerAndName(DB, hash_kind, haxy_moment, arena, rf.owner, rf.name)) orelse return error.NotFound;│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │254 │ │255 // the header has no auth tab in local mode, so keep the stack's │ │256 // children 1:1 with the tabs by skipping the auth view too. │ │255 - if (session.local == null) { │ │257 + if (!session.data.is_local) { │ │258 var auth_view = try Auth.View.init(allocator, &data.auth, session, files_tab_id); │ │259 errdefer auth_view.deinit(allocator); │ │260 try stack.children.put(allocator, auth_view.getFocus().id, .{ .home_auth = auth_view });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯