Repository navigation
Done
Labels
Description
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Part of #36890 (Studio rework). Raised by the maintainer on 2026-11-25, from a screenshot of the new left menu on the showcase 销售 package: 「studio 调整后的左侧菜单,功能有了,重点不清晰了。」
维护者速读
- 现在什么样:左侧 22 个类型平铺,分组标题和条目长得几乎一样;组内按英文 API 名排序,所以「对象」排在「钩子」「字段映射」后面;数字有两种意思(组标题旁是类型个数,条目旁是条数),68 个邮件模板这类大数字最抢眼。
- 为什么会这样:决定 11 只定了「分成哪六组」,没定组内顺序和视觉层级;组内顺序是服务端返回的顺序(
studioMenuModel.ts的buildStudioMenu「in served order」)。 - 推荐:A(分组标题做成小号灰字标签、去掉组计数;组内按搭应用的先后排;条数弱化;空类型变淡但不隐藏),顺序写进类型到分组的那张表,一处定义。
- 要你做什么:选 A / B / C。
Observations (from the screenshot, read against origin/main)
- Group headers read as items. 数据 / 界面 / 自动化 / 平台 / 访问 have the same size and weight as the entries under them, with only an icon to tell them apart, so the eye finds no structure.
- Order inside a group is the server's order, which is the English API name. 数据 shows hook, field mapping, object, option list. 界面 shows action, app, dashboard, dataset, page, report, view. So the core type 对象 sits third, under 钩子, and 应用 sits under 操作. The building order is lost.
buildStudioMenutakestypes"in served order"; decision 11 ruled the six groups and placed three special entries, but no order within a group. - One number, two meanings. The count beside a group header is the number of types in it (4, 7, 1, 3, 5). The count beside an entry is items (27, 62, 68). The biggest numbers sit on types that matter least to a builder (邮件模板 68, 视图 62), so they pull the eye.
- All types weigh the same. Rare or diagnostic entries (诊断, 文档手册, 岗位, 分配规则) are as prominent as 对象, 页面 and 流程. Empty types (组织级流程, 诊断 with no count) look the same as full ones.
Options
| What | Cost | |
|---|---|---|
| A (recommended) | Make the hierarchy visual: group headers become small grey, non-clickable labels with no count. Order inside a group follows the building flow (below). Entry counts are smaller and grey. An empty type is dimmed but stays listed, because it is where the first item gets created. The order lives in the same type→group table that #36891 put in ADR-0084 / ADR-0146 D1, so the menu, the ⌘K palette (#36900) and the docs read one order. | S–M, one ui card plus one table edit |
| B | A, plus a pinned 「常用」 section on top (对象, 页面, 视图, 流程, 权限集) duplicating those entries | M; a second way to reach the same type |
| C | A, plus hiding empty types behind 「显示全部类型」 | S; the first item of a type becomes hard to find |
Proposed building-flow order for A. The table edit is part of A, and you may reorder it:
- 数据: 对象 → 选项列表 → 字段映射 → 钩子
- 界面: 应用 → 页面 → 视图 → 仪表盘 → 报表 → 数据集 → 操作
- 自动化: 流程 → 组织级流程
- 平台: 文档 → 文档手册 → 邮件模板 → 诊断
- 访问: 权限集 → 岗位 → 分配规则 → 组织级默认共享 → 环境
- AI: as served until it has entries
Four axes
- Real business need: the reader is an app builder working through one package. What they reach for follows the building flow (object, then UI, then automation, then access), and the screenshot shows the current order works against that. Measured: the 销售 package's served order puts 钩子 first and 对象 third.
- Long-term fit: one ordered table, shared by the menu, the palette and the docs, fixes the cause. B adds a second navigation idea that has to be kept in sync. C hides entry points.
- AI-error resistance: an explicit order in the one type table means a new type added by an AI lands in a declared slot, or fails the table's test, instead of falling wherever the server's sort puts it.
- Startup focus: A is the smallest change that fixes all four observations. B and C add surface with no measured pull.
Governing text: epic #36890 decision 11 (groups); ADR-0084 / ADR-0146 D1 type→group table (#36891).
Not blocking: PR #37168, #37169, #37166 and #37089 land as they are. The menu card follows them.
Activity
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Option D, from the maintainer · 2026-11-25T03:09Z · the maintainer added, in seat repo:objectstack#4's session: 「包括很多应该属于对象下的,是不是默认不需要看到,或者有些不常用的,折叠到高级下」
Read against
origin/mainand PR #37168:objectDesignerTabs.ts) are 记录, 字段布局, 验证, 操作, 设置, 钩子, API. So 操作 and 钩子 each appear twice: once as an object tab and once as a top-level menu type.D, the seat's revised recommendation, which replaces A as the pick:
A's hierarchy stays: group headers become small grey labels with no count; entry counts are weak; the building-flow order lives in the one type table.
The menu shows the core build types by default: 对象, 选项列表 · 应用, 页面, 仪表盘, 报表 · 流程, 组织级流程 · 权限集. That is about 9 entries, down from 22.
A collapsed 「高级」 section at the bottom holds two kinds of entry:
A cross-object list stays useful (all 27 hooks of a package, when debugging), so these types move into 「高级」 rather than disappear. ⌘K (Studio 重构(⌘K):Studio 设计界面里挂命令面板,范围是当前包的全部元数据类型,结果打开新地址 #36900) keeps finding every type.
Every type moved into 「高级」 that has no home in the object designer yet (视图, 字段映射) gets one follow-up card: should it become an object tab? That card is not in this change.
「高级」 remembers its open or closed state per user. An entry that is the current page opens it.
Why D over A: it answers the screenshot's real problem (22 equal entries) at its root. It deletes nothing (no retirement, no lost address). And the 「高级」 fold is the same idea the object designer already uses for its narrow-window tabs, so builders meet one pattern.
Options now: A, A + B, A + C, or D (recommended). With D the maintainer may also move single types between 「常用」 and 「高级」 by name.
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Fable-tier analysis and one proposal, as the maintainer asked (「先用fable 综合分析一下,出一个方案」). Read-only; code read at
origin/mainand PR #37168 head. This supersedes the seat's options A–D above as the recommendation; the decision stays with the maintainer.Studio left menu: one proposal (card #37192, epic #36890)
Analyst report for PM seat repo:objectstack#4. Read-only. Code read at
origin/main893eac8b0c0and PR #37168's head (refs/pull/37168/head), 2026-11-25.Path shorthand: SD =
ui/packages/app-shell/src/views/studio-design, MA =ui/packages/app-shell/src/views/metadata-admin, SP =packages/spec/src, REG =packages/spec/src/kernel/metadata-plugin.zod.ts.0. The recommendation in five lines
SD/studioMenuPlacement.ts, new), which the menu and ⌘K both read throughbuildStudioMenu, and which ADR-0084's type → group table mirrors. A test fails when a registered type has no row.It needs one ruling: ADR-0084's 2026-11-24 amendment says "the menu draws no audience tier" (
docs/adr/0084-application-builder-information-architecture.md:190). 「高级」 is a tier, so that sentence is amended in place, on the maintainer's words 「有些不常用的,折叠到高级下」 (Prime Directive 13,AGENTS.md).1. What the code does today (the causes)
domain, then bytype(packages/metadata-protocol/src/protocol-discovery-and-bases.ts:766-769).buildStudioMenupushes entries "in served order" (SD/studioMenuModel.ts:110-125). Nothing else orders them.SidebarGroupLabelwith an icon, the name and a count; an entry is asize="sm"button with a name and a count (SD/StudioMenu.tsx:207-217,:224-248). Both counts use the same class,tabular-nums text-[11px] text-muted-foreground(:211,:243).SD/StudioMenu.tsx:204,:215); the entry count is the item count from the diagnostics sweep (SD/studioMenuData.ts:69-73,:88).MA/directoryScope.ts:35-41;SD/studioMenuModel.ts:66;SD/studioAddress.ts:100-104).object,flow,permissionare listed before the package holds one (SD/studioAddress.ts:100-104; PR #37168 keepsobjectin the list by hand). So the first page of a package has no menu entry. This is a second defect the screenshot does not show.domain" (docs/adr/0084-…:144) and is silent on order inside a group.2. Per-type table
Legend for object binding: required = the schema refuses an item without one object; optional = an object key exists and may be absent; none = no top-level object key. Counts are the screenshot's (销售 package); "—" = not on the screenshot. Frequency is the analyst's judgement of how often an app builder opens the type's cross-object list; the reason is given.
domain, REG line)object对象 · 11picklist选项列表 · 5PicklistSchema(SP/data/picklist.zod.ts:64); fields reference it by name (REG:95)hook钩子 · 27*:object: z.union([string, string[]]), empty refused (SP/data/hook.zod.ts:566-580)SD/objectDesignerTabs.ts:41on PR #37168; panel lists "the hooks that fire on this object",SD/ObjectHooksPanel.tsx:12-19)objectDesignerTabs.ts:48-49)*or multi-object hook belongs to no single objectmapping字段映射 · 3targetObject: z.string()(SP/data/mapping.zod.ts:416)POST /data/:object/import(REG:94)object_extension—SD/StudioCustomizeControls.objectExtension-28575.test.ts); unverified whether its own list is ever shownseed—object: z.string()(SP/data/seed.zod.ts:193)fieldMA/directoryScope.ts:15); unchangedapp应用 · 1SP/ui/app.zod.ts:493)page页面 · 5object: z.string().optional()"for Record pages" (SP/ui/page.zod.ts:2007)dashboard仪表盘 · 4SP/ui/dashboard.zod.ts:1298)report报表 · 7SP/ui/report.zod.ts:579);objectis a retired alias ofdataset(:506-507)view视图 · 62objectis a plain required string (SP/ui/view.zod.ts:6232-6234); the inline form says "REQUIRED … an unbound row can never be served" (:6878-6884)SD/DataPillar.tsx:202-205). There is no list of an object's views to manageaction操作 · 16objectName … .optional(); when set the action is merged into the object'sactions[](SP/ui/action.zod.ts:1362)objectDesignerTabs.ts:39), for object actions only: "Global actions (no objectName) … live elsewhere" (SD/ObjectActionsPanel.tsx:12-22)dataset数据集 · 7object: z.string()"Base object name" (SP/ui/dataset.zod.ts:892)SD/datasetCreate.tsx:4-17), and an object's datasets are already read per object (SD/objectDatasets.ts:4-13)flow流程 · 24objectis not a Flow field"; a record-change flow binds its object on the start node (SP/automation/flow.zod.ts:1115-1121)~orgscope (SD/studioMenuModel.ts:126)job—SP/system/job.zod.ts:284, no object key)doc文档 · 13SP/system/doc.zod.ts:32)book文档手册 · 2SP/system/book.zod.ts:140)email_template邮件模板 · 68EmailTemplateDefinitionSchema(SP/system/email-template.zod.ts:145-178)SD/studioMenuData.ts:69-73)translation,api,datasource,external_catalog—datasourcealready opens Setup (SD/studioMenuModel.ts:102-103)permission权限集 · 13SP/security/permission.zod.ts:1375)position岗位 · 18SP/identity/position.zod.ts:49)MA/catalog-scope.ts:86)assignment_rule分配规则 · 1object: SnakeCaseIdentifierSchema(SP/automation/assignment-rule.zod.ts:165)sharing_rule—object: z.string()(SP/security/sharing.zod.ts:201)queue,capability—SP/security/queue.zod.ts:76)sharingModel, set on the object's 设置 tab (SD/ObjectSettingsPanel.tsx:21,:260)objectDesignerTabs.ts:40)~allcatalog; not a type)SD/studioMenuModel.ts:139-143)agent,tool,skillagent,skill: none.tool: optionalobjectName(SP/ai/tool.zod.ts:228)agent(section 7)form(not registered yet; ADR-0159, card #36868)view; unverified until #36868 lands)objectDesignerTabs.ts:37)What the table shows. Of the 18 types the screenshot names, six are bound to an object by a required key or have their real home on the object (钩子, 字段映射, 视图, 操作, 数据集, 分配规则); 默认共享, a non-type entry, is a seventh. The six carry 116 of the 287 listed items (27 + 3 + 62 + 16 + 7 + 1). The eight 常用 types carry 70 (11 + 5 + 1 + 5 + 4 + 7 + 24 + 13). 邮件模板 alone is 68.
3. The recommended design
3.1 The rule that sorts a type (so the next type sorts itself)
A type is 常用 when all three hold. Otherwise it is 高级.
A type with no row in the table is drawn in 高级, at the end of its group. It is never invisible.
3.2 What the builder sees on a package
Opened:
The four 常用 groups are 数据, 界面, 自动化, 访问. Those are the four pillars ADR-0084 named on 2026-07-01 as "what a builder navigates" (
docs/adr/0084-…:24), with the technical tier in "Advanced" (:27-28). The six groups of decision 11 all stand; 平台 and AI simply hold no 常用 type today.3.3 Visual hierarchy
SD/studioMenuData.ts:28-35). The header count and its test idstudio-menu-group-count-<group>are removed (SD/StudioMenu.tsx:210-216).SD/StudioMenu.tsx:241-247). After the header counts go, a number has one meaning: items.SD/studioMenuModel.ts:144-146); with the tier that would draw an empty 平台 and an empty AI label in 常用, which is noise.3.4 Order, and where it is defined
One new file,
SD/studioMenuPlacement.ts, holds one ordered list:domain, so the table cannot disagree with the registry about a group (docs/adr/0084-…:144,:161).buildStudioMenusorts each group by the list's index and stampstieron each entry. The four non-type entries get their tier and position in the same function, where they are added today (SD/studioMenuModel.ts:126-143).buildStudioMenu's output (SD/StudioPaletteGroups.tsx:170;SD/studioPaletteModel.ts:132-146), so it lists the same entries in the new order. The palette ignores the fold: it lists every entry and every item of every listed type, as today.studioAddressTable.test.tsholds its table equal to the builders (SD/studioAddressTable.ts:26-27).DEFAULT_METADATA_TYPE_REGISTRY(REG) that the directory can list has exactly one row, and every row names a registered type.app-shellalready imports@objectstack/spec/kernel(SD/studioPaletteModel.ts:31), so this is an import, not a cross-package file read.Why a console table and not a registry key: section 5, "long-term fit".
3.5 「高级」 behaviour
studio_menu_advanced, the mechanism the menu's own collapse uses (SD/studioMenuModel.ts:58-59;SD/StudioMenu.tsx:83).studioMenuCurrentKey,SD/studioMenuModel.ts:164-184, unchanged). A bookmark to the hook list shows 高级 open with 钩子 marked current. This does not write the cookie.studioMenuEntryMatches,SD/studioMenuModel.ts:187-191, unchanged).buttonwitharia-expandedandaria-controls. Focus order: toggle, search, 常用 entries, the 高级 button, then its entries when open (extendsSD/StudioMenu.test.tsx:190).SD/dataTabsFold.ts:4-12;objectDesignerTabs.ts:45-49). A builder meets one idea in two places.3.6 Empty types
alwayslist handed toscopeDirectoryEntries(SD/studioMenuData.ts:82-87) becomes "the 常用 types", in place of "the pillar types" (SD/studioMenuModel.ts:66). This closes the gap in section 1: a new package shows 应用, 页面, 仪表盘 and 报表 before it holds one.MA/directoryScope.ts:39-40). The four non-type entries are always there.3.7 How a builder reaches an object-bound type
objectDesignerTabs.ts:39,:41)SD/DataPillar.tsx:202-205)SD/datasetCreate.tsx:4-17)SD/studioPaletteModel.ts:9-18)3.8 The
~organd~allscopesNo fold there. These menus are short: the organization's flows, the environment catalog's types (
permission,position,sharing_rule,capability;MA/metadataAreaHost.ts:74,MA/catalog-scope.ts:86) and the catalog entry, and only groups holding an entry are drawn (SD/studioMenuModel.ts:144-146). They take the same labels, the same muted counts and the same table order, drawn flat. Rule 3 does not apply: on these scopes those entries are the scope's own.3.9 Addresses and bookmarks
Nothing breaks, because nothing an address is built from changes:
tois stilltypeEntryPath(SD/studioMenuModel.ts:98-107):/studio/<package>/metadata/<type>?package=<package>.type:<type>(SD/studioMenuModel.ts:124;SD/StudioMenu.tsx:228).?surface=spelling and no row ofSD/studioAddressTable.tsis touched.3.10 Follow-up cards (decision cards; none is part of this change)
view).MA/DirectoryPage.tsx:178-182). This exists today for every type except three. Decide the door (for example "全部类型" as 高级's last row, listing every creatable type). Whether another door exists today is unverified.4. How others separate the two (from memory, not re-checked; treat as unverified)
docs/adr/0084-…:84).5. The four axes
Real business need. The person in this menu is building one app in one package, in a fixed order: model the data, build the screens, automate, grant access. Measured on the screenshot: the menu offers at least 22 entries of equal weight; the type every build starts from is third in its group, under 钩子; and the two loudest numbers, 邮件模板 68 and 视图 62, sit on lists a builder almost never works from. Measured in the schemas: six of the listed types, and the 默认共享 entry, are bound to one object, and two of them (钩子, 操作) are already tabs of the object designer, so the builder is shown the same thing twice. After the change the builder sees eight entries in building order, and the new package gains the four entry points it lacks today (应用, 页面, 仪表盘, 报表). What was not measured: how often real builders open each list. There is no usage telemetry in what I read, so every "frequency" above is a judgement, and the design keeps each judgement to one cheap, reversible table row.
Long-term fit (weighted at least half). Three properties make this hold up as the platform grows.
First, it is a rule, not a list of favourites: a type with a parent object is authored from the object; a type a builder makes directly is 常用; the rest is 高级. The registry has 32 types today and
formis on its way; each new type gets its answer from the rule, and the object designer becomes the place object-bound types gather, which is where Salesforce, Airtable and Twenty all ended up.Second, it does not fight the decisions already made. Decision 11's six groups, "a type's group is its registered domain" and "one type, one group" all stand, because the tier is a second axis and not a seventh group. The 常用 half is the four pillars ADR-0084 first chose, so the product returns to a shape it already reasoned its way to, inside the menu the epic built. The one sentence it reverses ("the menu draws no audience tier") is reversed openly, in the ADR, on the maintainer's words.
Third, it has one source. The menu, ⌘K and the ADR table read one ordered list, and two tests hold them together.
On where that list lives: the registry (
MetadataTypeRegistryEntrySchema) is the more permanent home, and it already carriesdomain. I recommend the console table now, because order and prominence are one product's presentation and the registry is a published contract; the epic's own line is "no protocol change" except #36894; and a registry key is apackages/specchange with generated artifacts and a governed review. If a second consumer appears (theosCLI's grouping, generated docs), promoting the list to the registry is a mechanical move, because the pin test already ties the two together.Resistance to AI writing metadata wrongly. Two kinds of error matter. An AI seat that adds a metadata type today gets a menu position by accident of the alphabet, and nobody is asked. With the table, a registered type without a row fails a test that names the file, and at run time an unknown type falls into 高级 rather than the top of the menu or nowhere. The second kind is authoring: object-bound types are the ones whose binding an author gets wrong, and the schemas already refuse an unbound view, hook, mapping or dataset. Steering people and the copilot to create them from the object, where the object is filled in for them (the hook panel does this,
SD/ObjectHooksPanel.tsx:20-21), removes the chance to write the wrong one. Keeping the flat lists in 高级 keeps the one place where a wrong binding can be seen across objects. Hiding those lists would remove it.Startup focus. One console card of real work, one small ADR edit, no protocol change, no new route, no migration, nothing retired. It does not build object tabs for views or mappings; those are named as follow-ups and left unscheduled until someone asks. It does not add personalisation, pinning or per-user menus. It also fixes the "first page of a new package" gap for free, because the same list drives it.
Alternatives rejected
docs/adr/0084-…:144,:191), and two places to keep in step. This proposal gets B's benefit by moving entries instead of copying them.*(SP/data/hook.zod.ts:566-573); an action may have no object (SP/ui/action.zod.ts:1362;SD/ObjectActionsPanel.tsx:22); 视图, 字段映射, 数据集 and 分配规则 have no object home yet. It would strand real items, break "nothing may break" for anyone who works from those lists, and contradict Studio 对象页页签顺序(业务在前、技术在后)和顶部导航的排法(去掉「界面」后的四个分区):顶部导航先出图再做 #36513's own line, 「不做隐藏技术功能的开关」.6. Work breakdown
Sizes use the epic's scale (S ≈ 1 day, M ≈ 2.5 days); they are estimates.
docs/adr/0146-…:29)docs/adr/0084-…onlydocs/adr/(checked against each PR's file list). Lands the way an ADR does (maintainer's merge or authorised approval)SD/studioMenuPlacement.tsand its test. New files, wired to nothingbuildStudioMenuorders and stamps the tier; the 常用alwayslist;StudioMenu.tsxdraws labels, muted counts, dimmed empties and the fold with its cookie; i18n keys; menu, palette-order and ADR-table testsSD/studioMenuModel.ts+ test,SD/studioMenuData.ts,SD/StudioMenu.tsx+ test,ui/packages/i18n/src/namespaces/studio/{en,zh}.ts,SD/studioPaletteModel-36900.test.tsstudioMenuModel.tsand its test (#37168 rewritesSTUDIO_MENU_DESIGNER_TYPES, the line M3 replaces). #37166 overlaps only on the two i18n files (added keys; low risk).StudioMenu.tsxitself is in none of the fourOrder: M0 → (M1 ∥ M2) → M3. Elapsed: about one day of parallel work now, then about 2.5 days once the three designer PRs are in. If the designer PRs slip, M3 can be cut early and rebased; the conflict is confined to about ten lines of
studioMenuModel.ts.Risks to watch in M3:
countis absent in both cases today,SD/studioMenuModel.ts:80-81;settledexists,SD/studioMenuData.ts:53-54).SD/studioMenuModel.test.ts:64pins "a package draws all six groups, an empty one included"; that pin is rewritten on purpose (3.3), and the ADR text atSD/studioMenuModel.ts:37-38with it.form(表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868) needs one row when it registers; the registry pin will say so.7. 给维护者的简报
Studio 左侧菜单:默认只显示 8 项,其余收进「高级」
要你定的两点:
另有三件事只立卡、不在这次做:视图要不要在对象页里集中管理;字段映射要不要放进对象的导入;「高级」里某个类型一条都没有时从哪里新建第一条。
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Maintainer adjustments to the proposal (7151777190) · 2026-11-25T03:19Z · in seat repo:objectstack#4's session, verbatim:
Resulting default layer on a package (in order):
Open for the maintainer: the overall go (accept the 常用 / 高级 tier and amend ADR-0084's "the menu draws no audience tier" on these words), and the other three uncertain items in the brief (邮件模板, 默认共享 stay in 高级 unless moved).
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Ruled · 2026-11-25T03:20Z
The maintainer's word, in seat repo:objectstack#4's session, verbatim: 「同意」. It answers the seat's question: "同意整体加「常用 / 高级」这一层吗?同意的话,ADR-0084 里「菜单不分受众层级」那句,就以你的话为依据改掉。"
It carries the maintainer's two adjustments in 7151811337:
and the origin, 「包括很多应该属于对象下的,是不是默认不需要看到,或者有些不常用的,折叠到高级下」.
Governing text: epic #36890 decision 11 (the six groups stand), and ADR-0084's 2026-11-24 amendment, whose line "the menu draws no audience tier" this ruling replaces.
What is ruled. The proposal in 7151777190, with these changes:
~org/~alldrawn flat (§3.8), and no address change (§3.9).Carrier. The implementation card filed below, part of #36890. This decision card closes with it.
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ
Decision carried · 2026-11-25T03:25Z · ruled in 7151834490, with the maintainer's adjustments in 7151811337. The work is filed as sub-issues of #36890:
The maintainer asked for these to be dispatched first: 「相关任务立卡优先派发处理」. Zone a4-S holds them. This decision card closes as completed.