╭ changed ──────────────╮ │src/ui/Repo/Patches.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1017 // a list tab per status, labeled with its listing's patch count │ │1018 const status_labels = [_][]const u8{ open_tab_label, closed_tab_label, merged_tab_label }; │ │1019 for ([_]Status{ .open, .closed, .merged }, status_labels, 0..) |status, status_label, index| { │ │1013 - const route = ui.RoutablePage.repoPatchesRoute(data.identity, status, data.tag, "") orelse return error.RouteTooLong; │ │1020 + const route = try thread.searchRoute(ui.RoutablePage.repoPatchesRoute(data.identity, status, data.tag, ""), data.search);│ │1021 const link = try ui.inPageTabLink(session, route, page_selected and selected_index == index); │ │1022 var label_buf: [64]u8 = undefined; │ │1016 - const label = try std.fmt.bufPrint(&label_buf, "{s} ({d})", .{ status_label, data.window(status).count }); │ │1023 + const label = try thread.countLabel(&label_buf, status_label, data.window(status).*); │ │1024 try header.addTab(allocator, label, link, index); │ │1025 } │ │1026 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1027 // tags tab, labeled with the active tag filter │ │1028 { │ │1022 - const tags_route = ui.RoutablePage.repoThreadTagsRoute(.patch, data.identity, data.tag) orelse return error.RouteTooLong; │ │1029 + const tags_route = try thread.searchRoute(ui.RoutablePage.repoThreadTagsRoute(.patch, data.identity, data.tag), data.search);│ │1030 const tags_link = try ui.inPageTabLink(session, tags_route, page_selected and selected_index == View.viewIndex(.tags)); │ │1031 const label = if (data.tag.len == 0) tags_tab_label else blk: { │ │1032 const decoded = std.Uri.percentDecodeInPlace(try aa.dupe(u8, data.tag)); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯