╭ changed ──────────────╮ │src/ui/Repo/Comment.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │337 } │ │338 │ │339 fn commentsRoute(kind: evt.EventKind, identity: []const u8, thread_id: []const u8, selected_id: ?[]const u8, start: usize) ?ui.RoutablePage { │ │340 - return switch (kind) { │ │341 - .issue => if (selected_id) |id| ui.RoutablePage.repoCommentsRoute(identity, thread_id, id, start) else ui.RoutablePage.repoIssueCommentsRoute(identity, thread_id, start), │ │342 - .discussion => if (selected_id) |id| ui.RoutablePage.repoDiscussionCommentRoute(identity, thread_id, id, start) else ui.RoutablePage.repoDiscussionCommentsRoute(identity, thread_id, start),│ │343 - else => null, │ │344 - }; │ │340 + return if (selected_id) |id| │ │341 + ui.RoutablePage.repoThreadCommentRoute(kind, identity, thread_id, id, start) │ │342 + else │ │343 + ui.RoutablePage.repoThreadCommentsRoute(kind, identity, thread_id, start); │ │344 } │ │345 │ │346 fn commentNewRoute(kind: evt.EventKind, identity: []const u8, thread_id: []const u8, parent_id: []const u8) ?ui.RoutablePage { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │348 - return switch (kind) { │ │349 - .issue => ui.RoutablePage.repoCommentNewRoute(identity, thread_id, parent_id), │ │350 - .discussion => ui.RoutablePage.repoDiscussionCommentNewRoute(identity, thread_id, parent_id), │ │351 - else => null, │ │352 - }; │ │347 + return ui.RoutablePage.repoThreadCommentNewRoute(kind, identity, thread_id, parent_id); │ │348 } │ │349 │ │350 fn commentEditRoute(kind: evt.EventKind, identity: []const u8, thread_id: []const u8, comment_id: []const u8) ?ui.RoutablePage {│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │356 - return switch (kind) { │ │357 - .issue => ui.RoutablePage.repoCommentEditRoute(identity, thread_id, comment_id), │ │358 - .discussion => ui.RoutablePage.repoDiscussionCommentEditRoute(identity, thread_id, comment_id), │ │359 - else => null, │ │360 - }; │ │351 + return ui.RoutablePage.repoThreadCommentEditRoute(kind, identity, thread_id, comment_id); │ │352 } │ │353 │ │354 pub fn linkBox(allocator: std.mem.Allocator, session: *ui.Session, text: []const u8, route: ui.RoutablePage) !wgt.TextBox(ui.Widget) {│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯