╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │493 return if (supports_merge) Data.mergeRoute(identity, selected) else null; │ │494 } │ │495 │ │496 - fn forkRoute(identity: []const u8, id: []const u8) ?ui.RoutablePage { │ │497 - return if (supports_forks) Data.forkRoute(identity, id) else null; │ │498 - } │ │499 - │ │496 fn resolveRoute(identity: []const u8, selected: []const u8, picks: []const u8) ?ui.RoutablePage {│ │497 return if (supports_conflicts) Data.resolveRoute(identity, selected, picks) else null; │ │498 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │537 const pa = self.session.page_arena.allocator(); │ │538 │ │539 if (entryHasFork(entry) and self.session.data.current_page.parent() != .fork) { │ │544 - const route = forkRoute(self.data.identity, entry.id) orelse return error.RouteTooLong; │ │545 - try addToolButton(allocator, row, "view fork", "", try std.fmt.allocPrint(pa, "a:{s}", .{try route.toUrl(self.session.page_arena)})); │ │540 const diff_route = ui.RoutablePage.forkDiffRoute(self.data.identity, entry.id, 0, "") orelse return error.RouteTooLong; │ │541 try addToolButton(allocator, row, "view diff", "", try std.fmt.allocPrint(pa, "a:{s}", .{try diff_route.toUrl(self.session.page_arena)}));│ │542 + const commits_route = ui.RoutablePage.forkCommitsRoute(self.data.identity, entry.id, "", 0, "") orelse return error.RouteTooLong; │ │543 + const commit_count = if (supports_forks) entry.commit_count else null; │ │544 + const label = if (commit_count) |count| try std.fmt.allocPrint(pa, "view commits ({d})", .{count}) else "view commits"; │ │545 + try addToolButton(allocator, row, label, "", try std.fmt.allocPrint(pa, "a:{s}", .{try commits_route.toUrl(self.session.page_arena)})); │ │546 } │ │547 │ │548 { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯