╭ changed ──────────────────╮ │src/ui/Repo/Discussions.zig│ ╰───────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │224 │ │225 // recent discussions │ │226 { │ │284 - const route = ui.RoutablePage.repoDiscussionsRoute(data.identity, data.tag, "") orelse return error.RouteTooLong; │ │227 + const route = try thread.searchRoute(ui.RoutablePage.repoDiscussionsRoute(data.identity, data.tag, ""), data.search);│ │228 const link = try ui.inPageTabLink(session, route, page_selected and selected_index == 0); │ │229 var label_buf: [64]u8 = undefined; │ │287 - const label = try std.fmt.bufPrint(&label_buf, recent_tab_label ++ " ({d})", .{data.recent.count}); │ │230 + const label = try thread.countLabel(&label_buf, recent_tab_label, data.recent); │ │231 try header.addTab(allocator, label, link, 0); │ │232 } │ │233 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │234 // tags tab, labeled with the active tag filter │ │235 { │ │293 - const tags_route = ui.RoutablePage.repoThreadTagsRoute(.discuss, data.identity, data.tag) orelse return error.RouteTooLong; │ │236 + const tags_route = try thread.searchRoute(ui.RoutablePage.repoThreadTagsRoute(.discuss, data.identity, data.tag), data.search);│ │237 const tags_link = try ui.inPageTabLink(session, tags_route, page_selected and selected_index == View.viewIndex(.tags)); │ │238 const label = if (data.tag.len == 0) tags_tab_label else blk: { │ │239 const decoded = std.Uri.percentDecodeInPlace(try aa.dupe(u8, data.tag)); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯