╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │37 message: []const u8, // trimmed, may be multi-line │ │38 // whether `message` is only the first line of a message too big to read.│ │39 message_truncated: bool = false, │ │40 + author: ui.Author = .unknown, │ │41 hunks: []const Hunk, │ │42 // the hunk index this window starts at (0 = the first window). │ │43 window_start: usize, │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │85 repo: *rp.Repo(repo_kind, repo_opts), │ │86 io: std.Io, │ │87 gpa: std.mem.Allocator, │ │88 + // the admin db's moment, for resolving author emails to user names (null│ │89 + // in local mode, which has no users) │ │90 + admin_moment: ?evt.AdminDB.HashMap(.read_only), │ │91 identity: []const u8, │ │92 requested_ref_or_oid: ?ui.RoutablePage.RefOrOid, │ │93 requested_value: []const u8, │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │143 .date = try formatDate(aa, md.timestamp), │ │144 .message = text, │ │145 .message_truncated = truncated, │ │146 + .author = try ui.Author.init(admin_moment, arena, md.author orelse ""),│ │147 .hunks = &.{}, │ │148 .window_start = 0, │ │149 .has_prev = false, │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │705 try self.addNavLink(allocator, inner, "← all files", commit.oid, 0, ""); │ │706 } else { │ │707 try self.addMessageBox(allocator, inner, commit, .preview); │ │708 + if (commit.author != .unknown) { │ │709 + var tb = try ui.authorBox(allocator, self.session.page_arena, commit.author); │ │710 + errdefer tb.deinit(allocator); │ │711 + try inner.children.put(allocator, tb.getFocus().id, .{ .widget = .{ .text_box = tb }, .rect = null, .min_size = null });│ │712 + } │ │713 try self.addViewFilesLink(allocator, inner, commit.oid); │ │714 } │ │715 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯