Skip to content

Commit f8e4b50

Browse files
committed
docs(changeset): declare the MetadataLayered widening
The published MetadataLayered type gains an optional overlayVersion member. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
1 parent 09693db commit f8e4b50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/36902-detail-save-at-once.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
feat(studio): the generic item page's Save takes effect at once; an AI draft gets the designers' notice and discard
88

9-
Clause-②: no
9+
Clause-②: yes (widening)
1010
Metadata-protocol: none
1111

1212
Studio's generic item page saves the way the designers do. Save writes the item's draft and then publishes that one item (`POST /meta/:type/:name/publish`, at the same package and bundle member), so the change is live at once and there is no second Publish step. The draft save keeps its version pin and conflict dialog, and the publish is now pinned to the published version the page loaded: when another editor published the item in between, the same dialog asks to reload, overwrite or keep editing. A create publishes right after its first save. The auto-save switch is gone, and edits wait for Save, ⌘S or the destructive-change confirmation.
@@ -17,6 +17,6 @@ A pending draft written by the AI assistant (the copilot or an MCP client) is th
1717

1818
Leaving the page with unsaved edits still asks first through ×, ‹ ›, the side menu, in-app links, reload and close. The browser's Back is not intercepted.
1919

20-
`@object-ui/data-objectstack`: `MetadataClient.layered()` now forwards the served `overlayVersion` (new optional `MetadataLayered.overlayVersion`). The client used to rebuild its answer field by field and drop it, so a Studio Save's publish was never pinned on a server that serves it.
20+
`@object-ui/data-objectstack`: the exported `MetadataLayered` type gains an optional `overlayVersion` member (`string | null`), and `MetadataClient.layered()` now forwards the served `overlayVersion` into it. The client used to rebuild its answer field by field and drop it, so a Studio Save's publish was never pinned on a server that serves it.
2121

2222
Locale keys `engine.edit.unpublishedChanges` and `engine.edit.unpublishedPublishDirty` are new, and `engine.edit.autoSaveOn`, `engine.edit.autoSaveOff` and `engine.edit.autoSavingShortly` are removed (en, zh). The per-browser `metadata-admin:autosave` setting is no longer read. No metadata changes; nothing to migrate.

0 commit comments

Comments
 (0)