╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────╮ │301 .refs = refs, │ │302 .issues = issues, │ │303 + .patches = patches, │ │304 .discussions = discussions, │ │305 .events = events, │ │306 .settings = Settings.init(),│ ╰─────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │364 try stack.children.put(allocator, issues_view.getFocus().id, .{ .repo_issues = issues_view }); │ │365 } │ │366 │ │367 + // patches and their comment permalinks. │ │368 + { │ │369 + var patches_view = try Patches.View.init(allocator, &data.patches, session); │ │370 + errdefer patches_view.deinit(allocator); │ │371 + try stack.children.put(allocator, patches_view.getFocus().id, .{ .repo_patches = patches_view });│ │372 + } │ │373 + │ │374 // discussions and their comment permalinks. │ │375 { │ │376 var discussions_view = try Discussions.View.init(allocator, &data.discussions, session); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │437 // the issues tab mirrors this page's tag filter (issue urls │ │438 // themselves never carry the tag). │ │439 .repo_issues => self.session.data.current_page = ui.RoutablePage.repoIssuesRoute(self.data.identity.slice(), .open, self.data.issues.tag, "") orelse self.session.data.current_page, │ │440 + .repo_patches => self.session.data.current_page = ui.RoutablePage.repoPatchesRoute(self.data.identity.slice(), .open, self.data.patches.tag, "") orelse self.session.data.current_page, │ │441 .repo_discussions => self.session.data.current_page = ui.RoutablePage.repoDiscussionsRoute(self.data.identity.slice(), self.data.discussions.tag, "") orelse self.session.data.current_page,│ │442 .repo_events => self.session.data.current_page = ui.RoutablePage.repoEventsRoute(self.data.identity.slice(), self.data.events.view, null, "") orelse self.session.data.current_page, │ │443 .home_settings => { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │480 .repo_commits => |*v| v.getSelectedIndex() == 0, │ │481 .repo_refs => |*v| v.getSelectedIndex() == 0, │ │482 .repo_issues => |*v| v.getSelectedIndex() == 0, │ │483 + .repo_patches => |*v| v.getSelectedIndex() == 0, │ │484 .repo_discussions => |*v| v.getSelectedIndex() == 0,│ │485 .repo_events => |*v| v.getSelectedIndex() == 0, │ │486 .home_settings => |*v| v.getSelectedIndex() == 0, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯