╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │125 │ │126 pub const IssuesView = enum { open, closed, tags, new, edit, description, new_comment, edit_comment, remove, conflicts, resolve };│ │127 │ │128 - pub const DiscussionsView = enum { all, tags, new, edit, description, new_comment, edit_comment, remove }; │ │128 + pub const DiscussionsView = enum { recent, tags, new, edit, description, new_comment, edit_comment, remove }; │ │129 │ │130 pub const EventsView = enum { active, removed }; │ │131 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │908 const tag_value = params.values.get(.tag) orelse ""; │ │909 const view = word orelse return if (params.only(&.{})) repoDiscussionsRoute(pair, "", "") else null; │ │910 if (!params.only(&.{.tag})) return null; │ │911 - if (std.mem.eql(u8, view, "all")) return repoDiscussionsRoute(pair, tag_value, ""); │ │911 + if (std.mem.eql(u8, view, "recent")) return repoDiscussionsRoute(pair, tag_value, ""); │ │912 if (std.mem.eql(u8, view, "tags")) return repoThreadTagsRoute(.discuss, pair, tag_value); │ │913 if (std.mem.eql(u8, view, "new")) return if (tag_value.len == 0) repoThreadNewRoute(.discuss, pair) else null;│ │914 return null; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────────────╮ │src/ui/Home/Repos.zig│ ╰─────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │32 │ │33 const empty: Self = .{ .repos = &.{}, .owner_names = &.{}, .start = start, .next_start = null }; │ │34 │ │35 - // the repos ordered by creation time (newest first); absent until the first │ │36 - // repo exists. keyed by orderKey ([timestamp][event-id]); the trailing bytes │ │35 + // the repos ordered by creation (newest first); absent until the first repo │ │36 + // exists. keyed by orderKey ([created-order][event-id]); the trailing bytes │ │37 // of each key are the repo event id. │ │38 const repo_id_set_cursor = try haxy_moment.getCursor(hash.hashInt(hash_kind, "repo-id-set")) orelse return empty;│ │39 const repo_id_set = try DB.SortedSet(.read_only).init(repo_id_set_cursor); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────────────╮ │src/ui/Home/Users.zig│ ╰─────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │28 │ │29 var users: std.ArrayList(evt.User.Public) = .empty; │ │30 │ │31 - // the users ordered by creation time (newest first); absent until the first │ │32 - // user exists. keyed by orderKey ([timestamp][event-id]); the trailing bytes │ │31 + // the users ordered by creation (newest first); absent until the first user │ │32 + // exists. keyed by orderKey ([created-order][event-id]); the trailing bytes │ │33 // of each key are the user event id. │ │34 const user_id_set_cursor = try haxy_moment.getCursor(hash.hashInt(hash_kind, "user-id-set")) orelse│ │35 return .{ .users = &.{}, .start = start, .next_start = null }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │143 }; │ │144 const discussions_view: ui.RoutablePage.DiscussionsView = switch (route) {│ │145 .repo_discussions => |t| t.view, │ │146 - else => .all, │ │146 + else => .recent, │ │147 }; │ │148 const discussions_comments_start: usize = switch (route) { │ │149 .repo_discussions => |t| t.comments_start, │ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────────────╮ │src/ui/Repo/Discussions.zig│ ╰───────────────────────────╯ ╭────────────────────────────────────────────╮ │55 comment_id: []const u8, │ │56 comments_start: usize, │ │57 comment_page: ?Comment.Permalink = null,│ │58 -all: Window, │ │58 +recent: Window, │ │59 view: ui.RoutablePage.DiscussionsView, │ │60 description_page: bool = false, │ │61 tags: []const []const u8, │ ╰────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │64 const Self = @This(); │ │65 │ │66 pub const Event = evt.Discussion; │ │67 -pub const Status = enum { all }; │ │67 +pub const Status = enum { recent }; │ │68 pub const ViewKind = ui.RoutablePage.DiscussionsView; │ │69 │ │70 pub fn selectedThread(self: *const Self) ?*const DiscussionWithId {│ ╰───────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────╮ │71 if (self.selected_id.len == 0) return null; │ │72 - for (self.all.items) |*entry| { │ │72 + for (self.recent.items) |*entry| { │ │73 if (std.mem.eql(u8, entry.id, self.selected_id)) return entry;│ │74 } │ │75 return null; │ ╰──────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────╮ │76 } │ │77 │ │78 pub fn window(self: *const Self, _: Status) *const Window {│ │79 - return &self.all; │ │79 + return &self.recent; │ │80 } │ │81 │ │82 pub fn emptyResult( │ ╰───────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────╮ │ 94 .selected_id = try aa.dupe(u8, selected_id), │ │ 95 .comment_id = try aa.dupe(u8, comment_id), │ │ 96 .comments_start = comments_start, │ │ 97 - .all = .empty, │ │ 98 - .view = if (view == .description) .all else view, │ │ 97 + .recent = .empty, │ │ 98 + .view = if (view == .description) .recent else view,│ │ 99 .description_page = view == .description, │ │100 .tags = &.{}, │ │101 }; │ ╰─────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯