Uh oh!
There was an error while loading. Please reload this page.
feat(components,app-shell): Studio 表格字段管理 — 选中字段改属性 + 完整类型(Airtable 式) - #2090
Merged
Conversation
…dit field properties + full type list
Replaces the limited add-field modal (6 hardcoded types) with full table-based
field management, reusing the existing ObjectFieldInspector. In the Data pillar:
- "+ 添加字段" creates a field and opens the field-property editor.
- Each column header gets a hover "edit field" affordance (extends the
GridFieldAuthoring context with onEditColumn, guarded to skip non-field
columns) that opens the same editor.
- The editor (ObjectFieldInspector) exposes the full 38-type list grouped by
category + per-type config (text min/max, number precision, currency, select
options, lookup target, formula, ...), required/unique, default, description,
advanced (readonly/hidden/indexed), and delete.
- Edits accumulate in the object draft; 保存草稿 + 发布 persist the env overlay,
then adapter.clearCache() + grid remount surface the new/edited column live.
Verified live (showcase_account, OS_METADATA_WRITABLE=object): add a field,
rename to "客户分级", publish -> overlay {name:field_19,type:text,label:客户分级},
effective fields 16->19, the column appears in the grid without a reload. The
type selector lists all categories (text/number/date/logic/selection/relation/
media/calculated/advanced).
Per the Airtable study, AI "field agents" are intentionally out of scope.
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
|
Uh oh!
There was an error while loading. Please reload this page.
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.
按用户方向(listview 集成暂缓,先把基于表格的字段管理做完善;并先对照了 Airtable 的加字段/字段属性 UX)。
之前的问题
加字段只有 6 个硬编码类型,且无法选中字段后设置属性。
现在(复用现成
ObjectFieldInspector,零新编辑器)Data 支柱里:
GridFieldAuthoringcontext 加onEditColumn,跳过非字段列如 Actions)→ 打开同一个编辑器。ObjectFieldInspector:完整 38 类型(按 文本/数值/日期/逻辑/选择/关系/媒体/计算/高级 9 类分组) + 每类专属配置(文本 min/max、数值精度、货币、单选选项、lookup 目标、公式…)+ 必填/唯一/默认值/描述 + 高级(只读/隐藏/索引)+ 删除。保存草稿+发布写 env overlay,再adapter.clearCache()+ 网格重挂 → 新/改的列免刷新即现。验证(浏览器实测,showcase_account,
OS_METADATA_WRITABLE=object)点列头笔形 → 编辑器开(name 字段:类型"文本·单行文本"、min/max 长度);类型下拉列出全部分组类型。加字段 → 改显示名"客户分级" → 保存草稿 → 发布:
codeoverlay/effective{name:field_19, type:text, label:客户分级}(overlayScope:env)新列免刷新即现网格。
eslint .0 error /tsc0 error。设计取舍 / 后续
OS_METADATA_WRITABLE=object(Studio/设计环境开)。🤖 Generated with Claude Code