Repository navigation
Description
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4
Filing gate: ③ · Source: the maintainer in the area thread, 2026-11-26 12:52Z: 「StudioDesignSurface 这个文件是不是应该分拆」. The area answered yes, after #37456. Sub-issue of #37424 (phase 1 tail, before phase 2).
Grade: area:ux · Task · p2 (takes the parent's grade) · evidence: origin/main 818615b9. The file is 1,745 lines. StudioDesignSurfaceBody alone runs from line 249 to the end (~1,500 lines) and holds the top bar, publish and drafts, save, the menu mount and the right slot. 71 test files are named after the surface. Phase 1 cards #37454, #37455 and #37456 all had to serialise on this one file.
Reader: area ux-37424 (seat repo:objectstack#5), an os-dev subagent after #37456 merges.
Blocked-by: #37456 (it deletes the top bar from this file; splitting first would collide with #37454 and #37456, both in flight).
维护者速读
- 改什么:把 Studio 主框架这个 1700 多行的大文件按职责拆开,用户看不到任何变化。
- 为什么:第一阶段几张卡都卡在这个文件上,第二阶段(列表页、完整概览)还要再改它,先拆开以后改界面就不用排队。
- 什么时候:删除顶栏(App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456)合并以后马上做,第二阶段开工前。
- 需要你做的:无。
What
- Pure refactor of
ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsxafter App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456. Split by responsibility into modules, each with one owner:- the frame (the two columns, the menu mount and the slot host);
- publish and drafts state (the Pending tab and badge wiring);
- save-entry plumbing;
- the right slot / assistant;
- the scope resolution (package,
~org/~all, missing package).
Hooks and components move. No behaviour, prop, address or copy changes.StudioDesignSurfacekeeps its export and props for its callers.
- The tests move with the code they pin, or keep importing the surface. ⛔ No test is deleted, skipped or loosened. Re-pointing an import is fine.
- Decide the cut points from the file as App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456 leaves it, not from this list. List them in the PR body with line counts before and after.
Acceptance
- No behaviour change: the full app-shell suite and the console E2E are green with no assertion edited except imports.
- No module over ~400 lines, unless the PR body says why.
git log --followfriendly: move code in its own commits, separate from any renames.
Activity
objectstack-fleet commentedon Nov 26, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:ui · Task · priority:p2 ·
pm:blocked· size L; rationale: a behaviour-neutral split of the 1,745-line StudioDesignSurface.tsx, so that phase-1 Studio cards stop serialising on one file. Grade follows topic #37424; blocked by #37456.