╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │658 .author = author, │ │659 .timestamp = 3, │ │660 }); │ │661 - try pch.post(repo_opts, io, allocator, &admin, &target, draft_path, .{ │ │661 + try pch.publish(repo_opts, io, allocator, &admin, &target, draft_path, .{│ │662 .id = patch_id_hex, │ │663 .user_id = user_id, │ │664 .repo_id = repo_id, │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │676 │ │677 _ = arena.reset(.retain_capacity); │ │678 const admin_moment = try evt.currentMoment(evt.admin_repo_opts, &admin); │ │679 - const posted_fork = (try evt.Fork.readById(evt.AdminDB, evt.admin_repo_opts.hash, admin_moment, &arena, &patch_id)) orelse return error.NotFound; │ │680 - try std.testing.expect(!posted_fork.removed); │ │681 - try std.testing.expectEqual(.posted, posted_fork.event.stage); │ │679 + const published_fork = (try evt.Fork.readById(evt.AdminDB, evt.admin_repo_opts.hash, admin_moment, &arena, &patch_id)) orelse return error.NotFound;│ │680 + try std.testing.expect(!published_fork.removed); │ │681 + try std.testing.expectEqual(.publish, published_fork.event.stage); │ │682 const draft_key = evt.Fork.draftKey(&repo_id, &user_id); │ │683 try std.testing.expectEqual(0, try indexedForkCount(admin_moment, evt.Fork.repo_user_to_draft_id_set_key, &draft_key)); │ │684 try std.testing.expectEqual(1, try indexedForkCount(admin_moment, evt.Fork.user_id_to_fork_id_set_key, &user_id)); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────────────────────────────────────────╮ │639 } │ │640 │ │641 // │ │642 - // post, then push another revision │ │642 + // publish, then push another revision│ │643 // │ │644 │ │645 { │ ╰───────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │648 var target = try rp.Repo(.xit, .{}).open(io, allocator, .{ .path = target_path });│ │649 defer target.deinit(io, allocator); │ │650 try target.addBranch(io, .{ .name = "feature" }); │ │651 - try pch.post(.{}, io, allocator, &admin, &target, draft_path, .{ │ │651 + try pch.publish(.{}, io, allocator, &admin, &target, draft_path, .{ │ │652 .id = fork_id_hex, │ │653 .user_id = user_id, │ │654 .repo_id = repo_id, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1133 const revision = try seedPatchRevision(io, allocator, repos_path, &patch_ids[i], patch.title, @intCast(502 + i * 10), random);│ │1134 const fork_path = try fork.forkPath(allocator, repos_path, &patch_hex); │ │1135 defer allocator.free(fork_path); │ │1136 - try pch.post(.{}, io, allocator, admin_repo, target_repo, fork_path, .{ │ │1136 + try pch.publish(.{}, io, allocator, admin_repo, target_repo, fork_path, .{ │ │1137 .id = patch_hex, │ │1138 .user_id = user_id.*, │ │1139 .repo_id = repo_id.*, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────────╮ │src/ui/Repo/Patches.zig│ ╰───────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │182 return id; │ │183 } │ │184 │ │185 -pub fn postDraft(data: *const Self, session: *ui.Session, allocator: std.mem.Allocator, id: []const u8) !void { │ │185 +pub fn publishDraft(data: *const Self, session: *ui.Session, allocator: std.mem.Allocator, id: []const u8) !void {│ │186 const io = session.io orelse return error.NotFound; │ │187 const repos_dir = session.repos_dir orelse return error.NotFound; │ │188 const admin_repo = session.admin_repo orelse return error.NotFound; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │201 │ │202 var target_repo = try rp.Repo(.xit, .{}).open(io, allocator, repo_source.localInitOpts());│ │203 defer target_repo.deinit(io, allocator); │ │204 - try pch.post(.{}, io, allocator, admin_repo, &target_repo, fork_path, .{ │ │204 + try pch.publish(.{}, io, allocator, admin_repo, &target_repo, fork_path, .{ │ │205 .id = id_hex, │ │206 .user_id = user_id, │ │207 .repo_id = repo_id, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────╮ │332 empty.drafts = drafts_window; │ │333 if (draft_selected and view != .remove) empty.view = .drafts; │ │334 │ │335 - // an explicitly named posted patch that doesn't exist is a bad url │ │335 + // an explicitly named published patch that doesn't exist is a bad url │ │336 // (NotFound -> 404); drafts, tags, and bare routes can use the empty fallback.│ │337 const strict = rooted and !draft_selected; │ │338 │ ╰────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1267 if (supports_drafts and entryDraft(entry)) { │ │1268 if (entry.revision_ready) { │ │1269 const route = listRoute(self.data.identity, @enumFromInt(0), "", entry.id) orelse return error.RouteTooLong; │ │1270 - row.getFocus().kind = .{ .custom = try std.fmt.allocPrint(pa, "form:{s}/post", .{try route.toUrl(self.session.page_arena)}) }; │ │1271 - try addToolButton(allocator, row, "post", "submit"); │ │1270 + row.getFocus().kind = .{ .custom = try std.fmt.allocPrint(pa, "form:{s}/publish", .{try route.toUrl(self.session.page_arena)}) };│ │1271 + try addToolButton(allocator, row, "publish", "submit"); │ │1272 } │ │1273 if (self.session.data.user_id != null) { │ │1274 const route = ui.RoutablePage.repoThreadRemoveRoute(kind, self.data.identity, entry.id, "") orelse return error.RouteTooLong; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │1668 const selected = self.detailed_index[index] orelse return;│ │1669 const entry = self.window(index).items[selected]; │ │1670 if (supports_drafts and entryDraft(entry)) │ │1671 - try self.postDraft(allocator, index) │ │1671 + try self.publishDraft(allocator, index) │ │1672 else │ │1673 try self.toggleStatus(allocator, index); │ │1674 } │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯