fix(app-shell): Studio UX 加固 — Interfaces 对象=运行态网格 + 可发现的加字段入口 - #2070
Merged
Conversation
…overable add-field
Deep-test pass on the Studio surface surfaced two issues, both fixed:
1. Interfaces object nav leaf rendered the object field-form preview
(getMetadataPreview('object')) instead of the records grid — inconsistent
with the Data pillar and the running app, and it spread object metadata
(pluralLabel/isSystem/active/abstract) onto DOM nodes (React warnings).
Now object leaves render the object-view records grid (preview = runtime),
are excluded from `isEditable` (no stray draft/save), and show a hint that
schema editing lives in the Data pillar. Removes the console warnings.
2. The grid's trailing "+" add-field affordance is off-screen-right for wide
objects (hard to discover). Added a visible "+ 添加字段" button to the Data
pillar header (next to the field count) as a second entry point to the same
form.
Verified live: Interfaces Projects/Tasks now show the records grid (no prop
warnings after clearing the console); the Data header button opens the
add-field form. eslint 0 / tsc 0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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 free
to 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 设计面做了一轮深度测试(三支柱 × 各 surface 类型 × 交互 × 控制台错误),发现并修两处:
1. Interfaces 对象菜单 → 字段表单(应是记录网格)
点 Interfaces 导航里的对象叶子,画布渲染的是
getMetadataPreview('object')字段表单("18 个字段 · 3 个必填"那种输入卡),而同一对象在 Data 支柱是记录网格 —— 不一致,也不符合"预览即运行"(运行态里对象菜单 = 记录列表)。而且那个字段表单把对象元数据(pluralLabel/isSystem/active/abstract)直接 spread 到 DOM 节点 → 8 条 React 警告。修:对象叶子改渲染 object-view 记录网格(与 Data + 运行态一致),排除出
isEditable(不再误加草稿/存草稿),底部加提示「运行态列表预览 · 改字段/结构请到 Data 支柱」。控制台警告消失(清 buffer 后重渲 Projects/Tasks 零警告)。2. 加字段入口不好发现
网格末尾的「+」对宽对象在屏幕右侧外(要横向滚动才看到)。在 Data 头部加可见的「+ 添加字段」按钮(挨着"N 字段")作为第二入口,同一个表单。
验证(浏览器实测)
Projects/Tasks→ 记录网格(Status/Health pill、Budget 等列),非字段表单;清空 console 后重渲零警告。eslint .0 error /tsc0 error。仍是后续(不在本 PR)
.objectui-shabump + cloud pin)。🤖 Generated with Claude Code