This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
feat(app-shell): ADR-0034 step 1 — flag-gated runtime persistence seam (+ finalized ADR) - #1513
Merged
Merged
Conversation
Introduce persistRuntimeMetadata / publishRuntimeMetadata as the single seam
the runtime view/report/dashboard editors persist through. Behind the
VITE_RUNTIME_EDIT_VIA_META flag (default off) it reproduces today's sys_*
writes exactly; flag on routes to the studio /meta per-item draft/publish
model (MetadataClient.save(..., { mode: 'draft' }) + publish). Wire ReportView
and DashboardView through it (behaviour identical while the flag is off);
ObjectView and the draft/publish UI are deferred. No sys_* removal, no data
migration. Includes the finalized ADR-0034.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
os-zhuang
marked this pull request as ready for review
June 6, 2026 09:06
This was referenced Jun 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
回答"为什么运行时编辑保存到独立
sys_*表、能否与 studio 统一",并落地第一段代码。经讨论确定的最终模型:运行时编辑复用 studio 的 per-item 草稿→发布→版本(保存=暂存草稿、用户看不到、编辑者实时预览;显式发布才生效),退役sys_*,per-user 个性化划出范围外。改动(ADR-0034 第 1 步:flag 化 seam,默认关、行为零变化)
docs/adr/0034-...md:最终决策稿(模型、before→after、风险、分阶段 rollout)。runtime-metadata-persistence.ts:统一 seam。VITE_RUNTIME_EDIT_VIA_META(默认 关)→ 完全复刻现有sys_*写入,行为逐字节不变。MetadataClient.save(type,name,body,{mode:'draft'})+publish(type,name)(studio 同款/meta草稿/发布)。ReportView/DashboardView的保存走 seam(flag 关时与改动前一致)。有意未做:ObjectView(view)接线(其
toSysViewPayload+防抖复杂,留下个 PR;seam 里已写好 view 分支)、草稿/发布 UI、删除sys_*、数据迁移。验证
pnpm turbo run build --filter=@object-ui/app-shell:27/27。app-shell/src/views全套 189 全过。flag-on 的
/meta真实"保存→草稿→发布→读回"在此环境无法 e2e 验证(沙箱无后端)。本 PR 默认关、行为零变化、可单测/构建验证、可安全合并;真实验证需在有后端的环境开 flag 跑通后,再翻默认值,并按 ADR 后续步骤补 UI、迁移sys_*。https://claude.ai/code/session_01SZW3fVCCbijEibXtEH3ZGL
Generated by Claude Code