Skip to content

[Decision] Studio left menu: features are there but the focus is unclear — order and visual weight inside the groups #37192

Done

Description

@objectstack-fleet

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)

  1. 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.
  2. 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. buildStudioMenu takes types "in served order"; decision 11 ruled the six groups and placed three special entries, but no order within a group.
  3. 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.
  4. 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

  1. added
    needs-user-decision
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    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/main and PR #37168:

    D, the seat's revised recommendation, which replaces A as the pick:

    1. 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.

    2. The menu shows the core build types by default: 对象, 选项列表 · 应用, 页面, 仪表盘, 报表 · 流程, 组织级流程 · 权限集. That is about 9 entries, down from 22.

    3. A collapsed 「高级」 section at the bottom holds two kinds of entry:

      • the object-bound types (钩子, 操作, 视图, 字段映射, and any others the schema check confirms);
      • the rare ones (诊断, 文档手册, 邮件模板, 岗位, 分配规则, 数据集, 环境, 组织级默认共享).

      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.

    4. 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.

    5. 「高级」 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.

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Fable-tier analysis and one proposal, as the maintainer asked (「先用fable 综合分析一下,出一个方案」). Read-only; code read at origin/main and 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/main 893eac8b0c0 and 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

    1. Keep decision 11's six groups. Add one second axis, a tier: each type is 常用 or 高级. A tier is not a group.
    2. On a package the menu shows 8 entries in 4 groups (对象, 选项列表 · 应用, 页面, 仪表盘, 报表 · 流程 · 权限集). Everything else sits in one collapsed 「高级」 section at the bottom, still under its own group label.
    3. Group headers become small grey labels with no count. Entry counts stay, muted. Order is the building order, not the alphabet.
    4. Order and tier live in one table (SD/studioMenuPlacement.ts, new), which the menu and ⌘K both read through buildStudioMenu, and which ADR-0084's type → group table mirrors. A test fails when a registered type has no row.
    5. No address changes. No type is hidden or retired. This is option D of the card, with the rule, the table and the edge cases worked out.

    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)

    Observation Cause, with evidence
    Order inside a group is alphabetical by API name The server sorts the type listing by domain, then by type (packages/metadata-protocol/src/protocol-discovery-and-bases.ts:766-769). buildStudioMenu pushes entries "in served order" (SD/studioMenuModel.ts:110-125). Nothing else orders them.
    Group headers look like entries A header is a SidebarGroupLabel with an icon, the name and a count; an entry is a size="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).
    One number, two meanings The header count is the number of type entries in the group (SD/StudioMenu.tsx:204, :215); the entry count is the item count from the diagnostics sweep (SD/studioMenuData.ts:69-73, :88).
    All types weigh the same The menu has no notion of weight. A type is listed when the package contributes to it, or when it is one of three designer types (MA/directoryScope.ts:35-41; SD/studioMenuModel.ts:66; SD/studioAddress.ts:100-104).
    A new package cannot see 页面 / 仪表盘 / 报表 / 应用 Same rule: only object, flow, permission are listed before the package holds one (SD/studioAddress.ts:100-104; PR #37168 keeps object in 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.
    Decision 11 fixed groups only Epic #36890 decision 11 names six groups and places three special entries. ADR-0084's amendment adds "a type's group is its registered 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.

    Type (label) Group today (registry domain, REG line) Object binding, evidence Home in the object designer today Builder frequency Proposed placement
    object 对象 · 11 数据 (REG:806) It is the object It is the designer High: every build starts here 常用, first
    picklist 选项列表 · 5 数据 (REG:932) None: no object key in PicklistSchema (SP/data/picklist.zod.ts:64); fields reference it by name (REG:95) No, and it should not have one (shared across objects) Mid: made while modelling fields 常用: global, no parent to live under
    hook 钩子 · 27 数据 (REG:908) Required, one object, a list, or *: object: z.union([string, string[]]), empty refused (SP/data/hook.zod.ts:566-580) Yes: 钩子 tab (SD/objectDesignerTabs.ts:41 on PR #37168; panel lists "the hooks that fire on this object", SD/ObjectHooksPanel.tsx:12-19) Low: developer work; the tab is already folded first as "technical" (objectDesignerTabs.ts:48-49) 高级. The cross-object list stays because a * or multi-object hook belongs to no single object
    mapping 字段映射 · 3 数据 (REG:933) Required: targetObject: z.string() (SP/data/mapping.zod.ts:416) No tab. It is consumed by the object's import, POST /data/:object/import (REG:94) Low: set once per import source 高级, plus follow-up F2
    object_extension — 数据 (REG:832) Required by nature (fields a package adds to another package's object, REG:80) Edited through the object designer's customize path (SD/StudioCustomizeControls.objectExtension-28575.test.ts); unverified whether its own list is ever shown Low 高级 when the package holds one
    seed — 数据 (REG:916) Required: object: z.string() (SP/data/seed.zod.ts:193) No Low 高级 when held
    field 数据 (REG:900) Edited inside its object Yes (the grid) n/a Not listed today (MA/directoryScope.ts:15); unchanged
    app 应用 · 1 界面 (REG:965) None at the top level; a nav item names an object (SP/ui/app.zod.ts:493) No High: the app's menu and identity 常用
    page 页面 · 5 界面 (REG:963) Optional: object: z.string().optional() "for Record pages" (SP/ui/page.zod.ts:2007) No High 常用
    dashboard 仪表盘 · 4 界面 (REG:964) None on the dashboard; each widget binds a dataset (SP/ui/dashboard.zod.ts:1298) No High 常用
    report 报表 · 7 界面 (REG:970) None; binds a dataset, optionally (SP/ui/report.zod.ts:579); object is a retired alias of dataset (:506-507) No High 常用
    view 视图 · 62 界面 (REG:962) Required: a view item's object is 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) Partly: the 记录 tab draws the runtime list surface with its view switcher (SD/DataPillar.tsx:202-205). There is no list of an object's views to manage Mid for the work, low for this list: a builder shapes views on the object's records, not from a flat list of 62 高级, plus follow-up F1
    action 操作 · 16 界面 (REG:969) Optional: objectName … .optional(); when set the action is merged into the object's actions[] (SP/ui/action.zod.ts:1362) Yes: 操作 tab (objectDesignerTabs.ts:39), for object actions only: "Global actions (no objectName) … live elsewhere" (SD/ObjectActionsPanel.tsx:12-22) Mid on the object, low as a flat list 高级. The list stays as the only home of global actions
    dataset 数据集 · 7 界面 (REG:973) Required: object: z.string() "Base object name" (SP/ui/dataset.zod.ts:892) No tab. It is created in place, beside the report and widget pickers (SD/datasetCreate.tsx:4-17), and an object's datasets are already read per object (SD/objectDatasets.ts:4-13) Low as a list: a builder meets it while making a report 高级
    flow 流程 · 24 自动化 (REG:1005) None at the top level: "object is not a Flow field"; a record-change flow binds its object on the start node (SP/automation/flow.zod.ts:1115-1121) No High 常用
    组织级流程 (not a type) 自动化 (decision 11) n/a. It opens the ~org scope (SD/studioMenuModel.ts:126) No Low from inside a package: it leaves the package 高级 on a package (rule 3 below)
    job — 自动化 (REG:1040) None (SP/system/job.zod.ts:284, no object key) No Low: scheduled background work 高级 when held
    doc 文档 · 13 平台 (REG:1191) None (SP/system/doc.zod.ts:32) No Low: help content, written late 高级
    book 文档手册 · 2 平台 (REG:1208) None (SP/system/book.zod.ts:140) No Low 高级
    email_template 邮件模板 · 68 平台 (REG:1183) None: no object key in EmailTemplateDefinitionSchema (SP/system/email-template.zod.ts:145-178) No Low to mid: used when a flow sends mail. The 68 is unlikely to be the 销售 package's own work (unverified; the count comes from the diagnostics sweep, SD/studioMenuData.ts:69-73) 高级. Maintainer may promote it (section 7)
    translation, api, datasource, external_catalog — 平台 (REG:1182, 1181, 1067-1076, 1087) Global. datasource already opens Setup (SD/studioMenuModel.ts:102-103) No Low 高级 when held
    诊断 (not a type) 平台 (decision 11) n/a No Low: opened when something is wrong 高级
    permission 权限集 · 13 访问 (REG:1233) None at the top level; it holds a record of many objects (SP/security/permission.zod.ts:1375) No High: the last step of every build 常用
    position 岗位 · 18 访问 (REG:1234) None (SP/identity/position.zod.ts:49) No Low for a builder: the org chart is an administrator's, and is one of the environment catalog's types (MA/catalog-scope.ts:86) 高级
    assignment_rule 分配规则 · 1 访问 (REG:1318) Required: object: SnakeCaseIdentifierSchema (SP/automation/assignment-rule.zod.ts:165) No Low 高级
    sharing_rule — 访问 (REG:1301) Required: object: z.string() (SP/security/sharing.zod.ts:201) No Low to mid 高级
    queue, capability — 访问 (REG:1311, 1280) None (SP/security/queue.zod.ts:76) No Low 高级 when held
    默认共享 (not a type) 访问 (decision 11) Per object: the value is the object's sharingModel, set on the object's 设置 tab (SD/ObjectSettingsPanel.tsx:21, :260) Yes: 设置 tab (objectDesignerTabs.ts:40) Low to mid: a cross-object overview 高级. Maintainer may promote it
    岗位与权限 (the ~all catalog; not a type) 访问 (ADR-0084 amendment item 1) n/a. It leaves the package (SD/studioMenuModel.ts:139-143) No Low 高级 on a package
    agent, tool, skill AI (REG:1369, 1379, 1380) agent, skill: none. tool: optional objectName (SP/ai/tool.zod.ts:228) No Low today. Whether the 销售 package holds any is unverified (the AI group is below the fold of the screenshot) 高级. Maintainer may promote agent (section 7)
    form (not registered yet; ADR-0159, card #36868) will be 界面 Object-bound (forms are carved out of view; unverified until #36868 lands) Yes: 字段布局 tab (objectDesignerTabs.ts:37) — 高级, by rule 1. One table row in #36868's PR

    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 高级.

    1. It has no parent object. Its schema does not require one object. A type bound to one object is authored from that object.
    2. A builder makes it directly, as a step of building an app. Not reference content, not developer or operator work.
    3. It stays inside the open package. An entry that leaves the package's scope (组织级流程, 岗位与权限) is 高级 on a package.

    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

    [ 搜索菜单                ]
    
    数据                          ← small grey label, no icon weight, no count, not a link
      对象                  11
      选项列表               5
    界面
      应用                   1
      页面                   5
      仪表盘                 4
      报表                   7
    自动化
      流程                  24
    访问
      权限集                13
    ─────────────────────────
    ▸ 高级                        ← one button, collapsed by default, no count
    

    Opened:

    ▾ 高级
      数据
        钩子                27
        字段映射             3
      界面
        视图                62
        操作                16
        数据集               7
      自动化
        组织级流程
      平台
        文档                13
        文档手册             2
        邮件模板            68
        诊断
      访问
        岗位                18
        分配规则             1
        默认共享
        岗位与权限
      AI
        (the package's agents, tools and skills, when it holds any)
    

    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

    • Group label: 11 px, muted colour, no count, no hover, not focusable. The icon goes, or stays at reduced opacity (the dev's choice; the palette keeps its group icons, SD/studioMenuData.ts:28-35). The header count and its test id studio-menu-group-count-<group> are removed (SD/StudioMenu.tsx:210-216).
    • Entry: unchanged size. This makes entries the only things that look clickable.
    • Entry count: kept, right-aligned, muted, with the existing "N 项" tooltip (SD/StudioMenu.tsx:241-247). After the header counts go, a number has one meaning: items.
    • Empty 常用 type: the label is dimmed and no number is drawn (not "0"). It stays a link, because it is where the first item is made.
    • 「高级」: a divider, then one row with a chevron. Inside it, the same group labels and entries, indented one step.
    • A group label is drawn only where the group has an entry in that tier. Today all six are drawn on a package, empty ones included (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:

    export const STUDIO_MENU_PLACEMENT = [
      // data
      { type: 'object', tier: 'common' }, { type: 'picklist', tier: 'common' },
      { type: 'hook', tier: 'advanced' }, { type: 'mapping', tier: 'advanced' },
      { type: 'object_extension', tier: 'advanced' }, { type: 'seed', tier: 'advanced' },
      // ui
      { type: 'app', tier: 'common' }, { type: 'page', tier: 'common' },
      { type: 'dashboard', tier: 'common' }, { type: 'report', tier: 'common' },
      { type: 'view', tier: 'advanced' }, { type: 'action', tier: 'advanced' }, { type: 'dataset', tier: 'advanced' },
      // automation · system · security · ai …
    ] as const;
    • The list says order and tier only. The group stays the served domain, so the table cannot disagree with the registry about a group (docs/adr/0084-…:144, :161).
    • buildStudioMenu sorts each group by the list's index and stamps tier on 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).
    • ⌘K follows with no edit to its model. The palette's groups are built from 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.
    • The docs follow by a pin. ADR-0084's type → group table gains two columns (order, tier). A test holds the ADR table equal to the list, the way studioAddressTable.test.ts holds its table equal to the builders (SD/studioAddressTable.ts:26-27).
    • A second pin holds the list against the registry: every type in DEFAULT_METADATA_TYPE_REGISTRY (REG) that the directory can list has exactly one row, and every row names a registered type. app-shell already 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

    • Closed by default. One click opens it; it stays open or closed per browser under its own cookie, studio_menu_advanced, the mechanism the menu's own collapse uses (SD/studioMenuModel.ts:58-59; SD/StudioMenu.tsx:83).
    • Opens itself when the open page is one of its entries (studioMenuCurrentKey, SD/studioMenuModel.ts:164-184, unchanged). A bookmark to the hook list shows 高级 open with 钩子 marked current. This does not write the cookie.
    • Search ignores the fold. A query lists every matching entry of both tiers under its group label (studioMenuEntryMatches, SD/studioMenuModel.ts:187-191, unchanged).
    • It is a button with aria-expanded and aria-controls. Focus order: toggle, search, 常用 entries, the 高级 button, then its entries when open (extends SD/StudioMenu.test.tsx:190).
    • It is the object designer's own pattern: its tab row folds the technical tabs into "Advanced ▾" (SD/dataTabsFold.ts:4-12; objectDesignerTabs.ts:45-49). A builder meets one idea in two places.

    3.6 Empty types

    • 常用 types are always listed on a package, holding an item or not. The always list handed to scopeDirectoryEntries (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.
    • 高级 types keep today's rule: listed when the package holds one (MA/directoryScope.ts:39-40). The four non-type entries are always there.
    • So every package reads the same in 常用, and 高级 is as long as the package is rich.

    3.7 How a builder reaches an object-bound type

    From 钩子, 操作 视图 字段映射, 数据集, 分配规则, 共享规则
    The object 钩子 and 操作 tabs (objectDesignerTabs.ts:39, :41) 记录 tab's view switcher (SD/DataPillar.tsx:202-205) Not yet (F1, F2). 数据集 is made beside the report and widget pickers (SD/datasetCreate.tsx:4-17)
    高级 The type's cross-object list Same Same
    ⌘K The type's list and every item by name (SD/studioPaletteModel.ts:9-18) Same Same

    3.8 The ~org and ~all scopes

    No 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:

    • An entry's to is still typeEntryPath (SD/studioMenuModel.ts:98-107): /studio/<package>/metadata/<type>?package=<package>.
    • An entry's key and test id are still type:<type> (SD/studioMenuModel.ts:124; SD/StudioMenu.tsx:228).
    • No route, no redirect, no ?surface= spelling and no row of SD/studioAddressTable.ts is touched.
    • A link to a 高级 type's list or item opens it, with 高级 open.
    • Removed: only the header count's test id. Added: one cookie, three or four i18n keys.

    3.10 Follow-up cards (decision cards; none is part of this change)

    • F1 · 视图 on the object. The 记录 tab switches views but cannot list, rename, reorder, set default or delete them. Decide: a "管理视图" entry on the 记录 tab's switcher, or an eighth tab. Until then 高级 › 视图 is the list. Read with decision 3 of the epic (view stays in the generic editor) and ADR-0159 (forms leave view).
    • F2 · 字段映射 on the object. A mapping is used by the object's import (REG:94). Decide whether it is managed from the import wizard on the 记录 tab.
    • F3 · The first item of a 高级 type. A package that holds no email template has no menu entry for one, and the directory uses the same rule (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.
    • Not proposed: object tabs for 分配规则 and 共享规则. No measured pull; 高级 and ⌘K reach them.

    4. How others separate the two (from memory, not re-checked; treat as unverified)

    • Salesforce Setup. Object Manager holds what belongs to one object: fields, page layouts, buttons/links/actions, validation rules, triggers. The Setup tree holds the global things: flows, permission sets, apps, email templates, global value sets. Apex triggers also have a flat cross-object list, deeper in the tree under custom code. That is this proposal's shape: the object is the first home, and a flat list survives in a less prominent place.
    • Airtable. Top level is Data, Automations, Interfaces. Views and fields exist only inside a table. ADR-0084 was written against it (docs/adr/0084-…:84).
    • Twenty. Settings › Data model lists objects; fields are inside an object; views are made on the object's records at run time. (Epic 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890 decision 13 already cites a Twenty precedent.)
    • Retool. Organised around apps, resources and workflows, not an object model; not a useful comparison here.

    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 form is 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 carries domain. 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 a packages/spec change with generated artifacts and a governed review. If a second consumer appears (the os CLI'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

    • A (hierarchy and order only). Necessary, and all of it is kept. Not sufficient: after A the builder still faces 22 equal entries, and 钩子 and 操作 are still shown twice. A answers the first half of the maintainer's complaint and none of the second (「很多应该属于对象下的,是不是默认不需要看到」).
    • B (a pinned 常用 section duplicating entries). A type would appear twice in one menu, against ADR-0084's "one type, one group" (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.
    • C (hide empty types behind "show all"). It sorts by whether a package happens to hold an item, so the menu changes shape from package to package and the first item of a type becomes hard to make. The measured problem is the opposite: full, rarely used lists. Emptiness is the wrong key.
    • Hiding object-bound types entirely. Wrong on the schemas. A hook may target several objects or * (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, 「不做隐藏技术功能的开关」.
    • A fold inside each group. Six disclosure controls and six remembered states, for the same content. The maintainer asked for one 「高级」.
    • A seventh group named 高级. It would break decision 11 and "a type's group is its domain". The tier axis gets the same picture and keeps both.

    6. Work breakdown

    Sizes use the epic's scale (S ≈ 1 day, M ≈ 2.5 days); they are estimates.

    # Card Size Touches When
    M0 Ruling on this proposal (card #37192): the tier, the rule, the eight 常用 types — — Now. Blocks M1 and M3 only
    M1 ADR-0084 amended in place: the tier axis, the rule of 3.1, order and tier columns in the type → group table, the "no audience tier" sentence re-read. ADR-0146 D1 needs no edit (it defers the menu to ADR-0084, docs/adr/0146-…:29) S docs/adr/0084-… only After M0. Parallel with all four open PRs: none of them touches docs/adr/ (checked against each PR's file list). Lands the way an ADR does (maintainer's merge or authorised approval)
    M2 The placement table and its registry pin: SD/studioMenuPlacement.ts and its test. New files, wired to nothing S Two new files After M0. Parallel with all four open PRs (no shared file)
    M3 The menu reads the table: buildStudioMenu orders and stamps the tier; the 常用 always list; StudioMenu.tsx draws labels, muted counts, dimmed empties and the fold with its cookie; i18n keys; menu, palette-order and ADR-table tests M SD/studioMenuModel.ts + test, SD/studioMenuData.ts, SD/StudioMenu.tsx + test, ui/packages/i18n/src/namespaces/studio/{en,zh}.ts, SD/studioPaletteModel-36900.test.ts After M2, and after #37168, #37169 and #37089 merge: all three edit studioMenuModel.ts and its test (#37168 rewrites STUDIO_MENU_DESIGNER_TYPES, the line M3 replaces). #37166 overlaps only on the two i18n files (added keys; low risk). StudioMenu.tsx itself is in none of the four
    — Docs, checklist and end-to-end walk — — Folded into the epic's existing #36910; no new card
    F1–F3 Follow-up decision cards (3.10) — — Filed after M0, not scheduled

    Order: 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:

    • "Empty" must mean "the sweep answered and gave none", not "the sweep has not answered" (count is absent in both cases today, SD/studioMenuModel.ts:80-81; settled exists, SD/studioMenuData.ts:53-54).
    • SD/studioMenuModel.test.ts:64 pins "a package draws all six groups, an empty one included"; that pin is rewritten on purpose (3.3), and the ADR text at SD/studioMenuModel.ts:37-38 with it.
    • form (表单从 view 拆成独立的 form 元数据类型,对外表单并入(第一步:ADR 与分卡) #36868) needs one row when it registers; the registry pin will say so.

    7. 给维护者的简报

    Studio 左侧菜单:默认只显示 8 项,其余收进「高级」

    • 你会看到什么: 打开一个软件包,左侧只有 8 项,按搭应用的先后排:数据(对象、选项列表)· 界面(应用、页面、仪表盘、报表)· 自动化(流程)· 访问(权限集)。分组名变成小号灰字,不再带数字;条目旁的数字只表示「有多少条」。
    • 其余的去哪了: 底部一个「高级」,默认收起,点开后仍按原来的六个分组排。里面是两类:属于某个对象的(钩子、操作、视图、字段映射、数据集、分配规则、默认共享),和不常用的(文档、文档手册、邮件模板、诊断、岗位、组织级流程、AI 的三种)。
    • 属于对象的怎么找: 钩子、操作在对象页的页签里已经有了;视图在对象的「记录」页签里切换。「高级」里保留跨对象的总表,⌘K 照样能搜到每一种、每一条。
    • 为什么: 现在 22 项一样重,「对象」排在「钩子」后面,最显眼的数字是邮件模板 68、视图 62。查了每种类型的定义:其中 7 项(6 种类型加默认共享)本来就绑定在某个对象上,钩子和操作在菜单和对象页里各出现一次。
    • 不会坏的: 地址一个不改,收藏的链接照常打开(打开的是「高级」里的项时,「高级」自动展开)。不删、不隐藏任何类型。
    • 顺带修好的: 新建的空软件包现在看不到「页面、仪表盘、报表、应用」的入口,改后常用 8 项始终都在。
    • 代价: 约 3.5 个工作日(估计):改一处设计记录(ADR-0084)、一张顺序表、一张界面卡。不改协议。界面卡要等 feat(studio): the object designer opens full-screen on its metadata address, tabs in #36513's order #37168、feat(studio): the flow designer opens full-screen on its metadata address; no flow rail (#36903) #37169、feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route #37089 合并后再动,其余现在就能并行做。
    • 以后新增类型: 顺序和「常用 / 高级」写在一张表里,菜单、⌘K、文档读同一张;新类型没填这张表,测试会报错,界面上先落在「高级」。

    要你定的两点:

    1. 同意加「常用 / 高级」这一层吗? 昨天定稿的 ADR-0084 写了「菜单不分受众层级」,这次要把这句改掉,依据是你说的「有些不常用的,折叠到高级下」。
    2. 这 8 项对不对? 可以按名字调。我拿不准、请你看一眼的四个:邮件模板(做通知流程时会用)、默认共享(权限设计的总览)、AI 智能体(如果 AI 是主打)、选项列表(现在放在常用里)。

    另有三件事只立卡、不在这次做:视图要不要在对象页里集中管理;字段映射要不要放进对象的导入;「高级」里某个类型一条都没有时从哪里新建第一条。

  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    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:

    1. 「选项列表 5也放到高级」 — 选项列表 moves to 「高级」 (数据 group).
    2. 「AI 应该提到第一层分类,放在最下面」 — the AI group (智能体, 工具, 技能) is a first-tier (常用) group, drawn last of the visible groups, above the 「高级」 fold.

    Resulting default layer on a package (in order):

    • 数据 — 对象
    • 界面 — 应用 · 页面 · 仪表盘 · 报表
    • 自动化 — 流程
    • 访问 — 权限集
    • AI — 智能体 · 工具 · 技能 (always listed, like every 常用 type, so a package with none still shows where to create one)
    • ▸ 高级 — everything else, under its group labels.

    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).

  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    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:

    • 「选项列表 5也放到高级」
    • 「AI 应该提到第一层分类,放在最下面」

    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:

    • 常用 (always listed on a package, in this order):
      • 数据: 对象
      • 界面: 应用 · 页面 · 仪表盘 · 报表
      • 自动化: 流程
      • 访问: 权限集
      • AI: 智能体 · 工具 · 技能, as the last visible group
    • 高级: one collapsed fold under the 常用 groups that holds every other type and entry, under its group labels. That includes 选项列表, 邮件模板 and 默认共享.
    • The rest is as proposed: visual hierarchy (§3.3), one placement table with its pins (§3.4), the fold's behaviour (§3.5), empty types (§3.6), ~org / ~all drawn flat (§3.8), and no address change (§3.9).

    Carrier. The implementation card filed below, part of #36890. This decision card closes with it.

  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    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.

  7. removed
    needs-user-decision
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions