You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Part of ADR-0034 (docs/adr/0034-unified-runtime-metadata-persistence.md). Follows the merged seam work (#1513) and ObjectView wiring (#1514).
Goal
When VITE_RUNTIME_EDIT_VIA_META is on, the runtime editors save a per-item draft (via persistRuntimeMetadata(..., mode:'draft')). They currently have no way to publish that draft or to surface that unpublished changes exist. Add the draft/publish chrome to the three runtime config panels, mirroring studio's ResourceEditPage.
Scope
Add, gated by isViaMeta() from packages/app-shell/src/views/runtime-metadata-persistence.ts (so flag OFF = no UI change at all):
Publish button → calls publishRuntimeMetadata(type, name, { metadataClient }) (already exists in the seam).
Reuse studio chrome/affordances from views/metadata-admin/ResourceEditPage.tsx and the engine.edit.* i18n keys (engine.edit.publish, engine.edit.draftPending, engine.edit.discardDraft, …).
Acceptance criteria
Flag OFF (default): zero UI change — none of the new affordances render; existing Save behaviour is byte-identical.
Flag ON: Save writes a draft (existing seam); Publish promotes it (visible to other users + a new version); the indicator reflects a pending draft; discard removes it; reopening resumes the draft.
pnpm turbo run build --filter=@object-ui/app-shell + pnpm -w vitest run packages/app-shell/src/views green; lint clean.
Notes / risks
The flag-ON path cannot be e2e-verified without a backend — verify in a real environment (see the verification issue). Keep everything behind isViaMeta().
Default to per-item Publish; the batch "publish app" already exists in studio (/packages/:id/publish-drafts).
Done — runtime draft/publish chrome shipped in #1533 (merged). Verified against the showcase backend (save→draft→publish→version, resume-on-open, discard). Flag later removed entirely in #1534.
Activity
feat(adr-0034): runtime draft/publish UI chrome + view-create seam (#…
xuyushun441-sys commentedon Jun 6, 2026
Done — runtime draft/publish chrome shipped in #1533 (merged). Verified against the showcase backend (save→draft→publish→version, resume-on-open, discard). Flag later removed entirely in #1534.