Uh oh!
There was an error while loading. Please reload this page.
feat(app-shell): Studio Interfaces 导航拖拽编辑(复用 AppNavCanvas) - #2064
Merged
Conversation
The Studio Interfaces pillar nav was browse-only. Add a browse↔edit toggle: edit mode swaps the read-only NavTree for AppNavCanvas (root-level drag-reorder, inline rename, add, remove) wired to the App's draft navigation, with app-scoped 保存草稿 / 发布 in a sticky header. navTree is now derived from a single appDraft source so browse reflects published edits. Verified live (showcase_app): rename a group + drag-reorder → 保存草稿 → 发布 writes the env overlay (navigation reordered + renamed), effective resolves to it, draft cleared. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub. |
Uh oh!
There was an error while loading. Please reload this page.
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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 freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
什么
Studio Interfaces 支柱的左侧导航之前只读。本 PR 给它加拖拽编辑(ADR-0080 slice-1 的后续 #11),复用现成的
AppNavCanvas(metadata-admin 里的 DnD 导航编辑器),零新编辑器。交互
导航头部加一个 浏览 ↔ 编辑 开关(
✎ 编辑/✓ 完成):NavTree,点菜单项 = 进画布预览(行为不变,零回归)。AppNavCanvas—— 根级拖拽排序 + 双击重命名 + 增 / 删;App 维度的保存草稿 / 发布钉在置顶 sticky 头(不再被长列表挤到底部看不见)。navTree改为从单一appDraft派生,浏览态自动反映已发布的编辑。App 草稿/overlay 走和页面一致的client.save/publish(env-scoped overlay)。验证(浏览器实测,真实后端 showcase_app)
重命名
Workspace → 工作台 ✦+ 把Data Model拖到首位 →保存草稿→发布,直接查元数据:code(包源)[Workspace, Data Model, Analytics, Pages]未动overlay(发布)[Data Model, 工作台 ✦, Analytics, Pages]effective(运行态)overlayScope:env持久化,draftStillPending:false(发布已 promote + 清 draft),浏览态切回也反映新顺序。eslint .0 error(5 warning 不拦)tsc --noEmit(app-shell)0 error限制(本 PR 不做)
AppNavCanvas的 DnD 刻意只在根级(组之间)——组内叶子重排 / 跨组移动 / 叶子绑定改写要后续扩展。叶子(dashboard 用dashboardName)在编辑卡上显示为item类型徽标(纯展示;叶子在此只读)。路由 / nav
仍只在
/studio/:packageId/interfaces,不进产品 nav。仅进 objectui main,未 live(需 framework.objectui-shabump + cloud pin 才部署)。🤖 Generated with Claude Code