╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │533 │ │534 var issue_events: [issue_data.len]evt.EventWithId = undefined; │ │535 for (issue_data, 0..) |issue, i| { │ │536 - // the newest issue's description runs past what the detail │ │536 + // the fifth-newest issue's description runs past what the detail│ │537 // pane shows, so it shows the truncated description and its │ │538 // link. │ │539 - const description = if (i == issue_data.len - 1) desc: { │ │539 + const description = if (i == issue_data.len - 5) desc: { │ │540 var desc_writer = std.Io.Writer.Allocating.init(allocator); │ │541 defer desc_writer.deinit(); │ │542 try desc_writer.writer.print("{s}", .{issue.description}); │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │678 │ │679 try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &.{});│ │680 │ │681 - // seed a small comment tree on the second-newest issue │ │681 + // seed a small comment tree on the newest issue │ │682 var comment_ids: [5][evt.event_id_size]u8 = undefined; │ │683 for (&comment_ids) |*id| id.* = evt.EventWithId.randomId(prng.random()); │ │684 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │697 .timestamp = @intCast(200 + i), │ │698 .author_email = user_data[(i + 1) % user_data.len].email, │ │699 .event = .{ .comment = .{ │ │700 - .thread_id = issue_events[issue_events.len - 2].id, │ │700 + .thread_id = issue_events[issue_events.len - 1].id, │ │701 .parent_id = switch (i) { │ │702 - 0, 1 => issue_events[issue_events.len - 2].id, │ │702 + 0, 1 => issue_events[issue_events.len - 1].id, │ │703 2, 4 => std.fmt.bytesToHex(comment_ids[0], .lower),│ │704 3 => std.fmt.bytesToHex(comment_ids[2], .lower), │ │705 else => unreachable, │ ╰────────────────────────────────────────────────────────────────────────────────────╯