╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │789 }; │ │790 } │ │791 try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &comment_events); │ │792 + │ │793 + // assign a few issues so the assignee filter has something to show: │ │794 + // alice and bobby share the newest issue, alice also holds the one │ │795 + // before it, and admin an older one │ │796 + const assignment_data = [_]struct { issue: usize, user: usize }{ │ │797 + .{ .issue = issue_data.len - 1, .user = 1 }, │ │798 + .{ .issue = issue_data.len - 1, .user = 2 }, │ │799 + .{ .issue = issue_data.len - 2, .user = 1 }, │ │800 + .{ .issue = issue_data.len - 5, .user = 0 }, │ │801 + }; │ │802 + var assignment_events: [assignment_data.len]evt.EventWithId = undefined; │ │803 + for (&assignment_events, assignment_data, 0..) |*event, assignment, i| { │ │804 + const thread_id = issue_events[assignment.issue].id; │ │805 + const email = user_data[assignment.user].email; │ │806 + event.* = .{ │ │807 + .id = std.fmt.bytesToHex(evt.Assignment.idOf(&try evt.parseEventId(&thread_id), email), .lower), │ │808 + .timestamp = seedTimestamp(now, i, assignment_events.len, 90 * std.time.s_per_min, 20 * std.time.s_per_min),│ │809 + .author = .{ .name = user_data[0].name, .email = user_data[0].email }, │ │810 + .event = .{ .assign = .{ .thread_id = thread_id, .email = email } }, │ │811 + }; │ │812 + } │ │813 + try evt.consume(.local, .repo, .xit, .{}, io, allocator, &template_repo, evt.events_ref, &assignment_events); │ │814 │ │815 const discussion_data = [_]struct { │ │816 title: []const u8, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯