Skip to content

feat(web): hosted Publish and site tokens - #7840

Closed
tlgimenes wants to merge 10 commits into
split/40-releases-tabfrom
split/41-hosted-publish
Closed

tlgimenes wants to merge 10 commits into
split/40-releases-tabfrom
split/41-hosted-publish

Conversation

@tlgimenes

@tlgimenes tlgimenes commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Part of the v8 Studio stack, split from #7728, #7770 and #7766 (closed). Base: #7796. The top of the stack, #7843, has the same code as those three PRs combined.

Adds hosted Publish (merge, release, make current) and the site tokens section in project settings.

What to look at: Publish outcomes (merged current / not current / no release / main moved); no request-approval on hosted

Cross-track: needs API-track plan PR 10 deployed before Publish works end to end; it compiles without it and stays behind the flag.

Stack (web track, plan PR 41 of 20–41): previous #7839 · next #7841 (e2e track, which also merges the API and daemon stacks)

Business-language copy: one toast per Publish: "Published · Your changes are live.", "Nothing to publish", or "Saved, but not published yet" + Try again (POST releases/current {head:true}, from #7824), replaced in place by the outcome. The two "Item updated successfully" toasts after every Publish are gone (useReleases writes silently; a failed clean-up after a successful Publish is logged). Dialog errors in plain words ("Someone else published while you were publishing…", "Couldn't publish. Your changes are saved…") with the API text behind Details. Hosted default note "Changes by {name}". Fast Preview Publish also shows "Published". The git-backed (Fast Preview) Publish uses the same words: "Couldn't publish. Your changes are saved…" or "Your changes were updated while you were reviewing them…", with the step's error and any left-open pull request behind Details, and no extra toast on top of the dialog. "Last published {when}" speaks the viewer's language. pt-br aligned ("salvas", "Tentar de novo").

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

Adds hosted Publish (merge, release, make current) and the site tokens
section in project settings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
tlgimenes and others added 9 commits October 9, 2026 11:57
A hosted Publish ends in exactly one toast (sonner id site-editor-publish):
"Published · Your changes are live.", "Nothing to publish", or, when the
changes are saved but not live yet, "Saved, but not published yet" with
Try again, which puts main's head live (POST releases/current {head:true})
and replaces the toast with the outcome. "Merged · Current on the CDN" and
the other merge/CDN/Make current strings are gone.

The two "Item updated successfully" toasts that followed every Publish
came from the draft list's background writes (auto-naming the new draft,
dropping the published one): useReleases now writes silently
(useCollectionActions/useVirtualMCPActions take { silent }), and a failed
clean-up after a successful Publish is logged, not toasted. This also
quiets the Fast Preview Publish and the branch picker, which report their
own failures.

When nothing was published, the dialog says so in plain words ("Someone
else published while you were publishing…", "Couldn't publish. Your
changes are saved. Try again in a moment.") with the API's text behind
Details. A hosted note defaults to "Changes by {name}" (never a branch
name on the Versions screen); discard failures read "Couldn't discard. Try
again." with Details; Publish waits until the content backend is known so
a hosted site never takes the git path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…ssage

A failed Publish on a Fast Preview site no longer headlines "Failed to
rebase/push/merge" or "This branch changed": the dialog says it couldn't
publish (changes are saved) or that the changes were updated meanwhile,
with the step's error and a left-open pull request behind Details. No
toast stacks on top of the dialog's error. "Last published" speaks the
viewer's language; pt-br wording aligned ("salvas", "Tentar de novo").
A failed follow-up after a finished Publish no longer runs its failure
branch. thread.publishPopover.* joins the jargon test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
@tlgimenes

Copy link
Copy Markdown
Contributor Author

Folded into #7887 (API) / #7888 (web, stacked on #7887). The tree of #7888 equals this stack's top (split/51-v8-per-site). The branch is kept.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

@tlgimenes tlgimenes closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude PR authored by a coding agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant