Skip to content

feat(web): content-protocol client API; editor hooks use it - #7822

Open
tlgimenes wants to merge 3 commits into
split/25-use-content-backendfrom
split/26-content-protocol-api
Open

tlgimenes wants to merge 3 commits into
split/25-use-content-backendfrom
split/26-content-protocol-api

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 the content-protocol client API and moves the editor hooks (decofile, save, delete, move, live meta) onto it for protocol projects. v7 paths are unchanged.

What to look at: Poll and merge with in-flight saves, ifMatch guards, the protocol cache key; v7 paths unchanged

Stack (web track, plan PR 26 of 20–41): previous #7816 · next #7826

Business-language copy: a failed save on the hosted backend, a sandbox or the legacy paths says what happened and what to do ("Couldn't save your change. Try again.", "Not saved: someone else changed this at the same time…"), with the error's own text behind a Details disclosure; a local deco serve keeps its developer copy. All save failures share one toast id (no stacked toasts). New siteEditor.* copy is kept free of CDN/git/branch/commit/merge words by i18n/site-editor-copy.test.ts. A refused save says "Not saved: some fields aren't filled in correctly. Fix them and try again." (the fields to fix behind Details); pt-br uses "Não foi salvo:".

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

Adds the content-protocol client API and moves the editor hooks
(decofile, save, delete, move, live meta) onto it for protocol
projects. v7 paths are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
tlgimenes and others added 2 commits October 9, 2026 11:52
A save that fails on the hosted backend, a sandbox or the legacy paths now
says what happened and what to do ("Couldn't save your change. Try again.",
"someone else changed this at the same time") instead of the deco serve copy
(your computer, git) or the raw error. The error's own text moves behind a
Details disclosure. A local deco serve keeps its developer copy.

Every save failure shares one sonner id, so a burst of failing autosaves
shows one toast, not a stack. A test keeps CDN/git/branch/commit/merge
jargon out of the new siteEditor.* copy (en and pt-br).

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

The headline no longer carries the server's validation text; Details
names the fields to fix.

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

This branch has not been deployed

No deployments
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