Skip to content

[Decision] Studio「高级」里一条都没有的类型(如邮件模板、文档、字段映射),从哪里新建第一条 #37360

Todo

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

④ sub-issue of #36890 · Source: #37192 proposal §3.10 (F3), filed after #37201 landed (PR #37341). Part of #36890.

维护者速读

  • 问题:Studio 的「高级」只列这个软件包已经有的类型;一个新建的应用还没有邮件模板、文档、字段映射这些,菜单里就没有它们的入口,搜索面板里也没有,想建第一条无处下手。从零新建应用、又要用到这几种的人会碰到。
  • 选项:A「高级」最下面加一行「全部类型」,打开一页列出所有类型,点进去是那种类型的空列表和「新建」,约 1 个 PR,另在今天定的菜单规则里补一句;B「高级」里把能新建的类型一直列着(空的变淡),空应用的「高级」从 4 行变成约 20 行,约 1 个 PR,并且要改掉你今天定的「高级只列已有的」;C 在用到它的地方各加一个「新建」(比如流程里选邮件模板的地方),一种类型做一处,每处约 1 个 PR;D 只在搜索面板里加「新建某类型」,约 1 个 PR;E 不做,靠 AI 助手或写代码。
  • 推荐 A:一个入口管住所有类型,以后新增的类型自动出现在那一页。
  • 不定会怎样:新建的应用里,邮件模板、文档、文档手册、字段映射、初始数据、AI 上下文包这几种在界面上建不出第一条,只能手动输入网址、让 AI 建或写代码。

Analysis

Decision thread for seat repo:objectstack#4, zone a4-S. Read-only. Code read at origin/main 134b71db (2026-11-25T21:25Z). Paths: SD = ui/packages/app-shell/src/views/studio-design, MA = ui/packages/app-shell/src/views/metadata-admin.

The question in one sentence

In a package that holds no item of a 高级 type, a builder finds nothing on screen that leads to making the first one: what is the door?

Background

Proposal §3.10 on #37192 wrote F3 as: "A package that holds no email template has no menu entry for one, and the directory uses the same rule. 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."

Since then PR #37341 landed. The ten 常用 types are now always listed, so "every type except three" is now "every 高级 type". The rule for a 高级 type was kept on purpose, and it is ruled text (below).

The premise holds on main (premise 1), and PR #37341's own walk-through measured it in a browser: a new empty package's fold held only the four entries that are not a type (组织级流程, 诊断, 默认共享, 岗位与权限).

The unverified half is now read. Is there another door today? One by one:

Candidate door Reading
The package's type directory page No. It uses the same rule (premise 1), and on a package no menu entry opens it (premise 2).
⌘K No. It lists the menu's entries and the package's items. It has no "new" command (premise 3).
Typing the address Works, by the code: the type's list page and its New open for any type that can be created at run time, whether the package holds one or not (premise 4). Not walked in a browser. A builder cannot be expected to know an address.
A door that belongs to one type, in this package Yes, for five: a 钩子 and an object's 操作 from the object's tabs; a 视图 from the app's list page; a 数据集 beside the report and chart pickers (PR #27575); an object extension by customizing an installed object. The last three were read from their source headers, not walked.
A door that belongs to one type, elsewhere A 岗位 and a capability from 岗位与权限, which is the organization's catalog and not this package. A datasource and its external catalog from Setup. A 翻译 item comes into being by itself when an administrator renames an app menu entry in a language other than the app's own (the app's design mode writes it, ui/packages/app-shell/src/layout/designModeMenuSave.ts); that covers menu names only.
The AI assistant, or code Yes, for a person who knows to ask or to write it. Not a door on screen.

Left with no door on screen at all, among the types that can be created at run time: six. 字段映射 mapping, 初始数据 seed, 文档 doc, 文档手册 book, 邮件模板 email_template, AI 上下文包 ai_context. Three more have only a partial or out-of-package one: 翻译 translation (menu names only), 岗位 position and capability (the organization's catalog only). For ai_context the reading is a grep (it was registered today; PR #37315 added its form).

Six 高级 types cannot be created at run time at all and are not part of this question: picklist, job, api, sharing_rule, queue, assignment_rule (premise 5).

Governing text. All four are in ADR-0084, docs/adr/0084-application-builder-information-architecture.md, and each is found with git grep -n "<the quoted words>" origin/main -- docs/adr/0084-application-builder-information-architecture.md:

  • Amendment of 2026-11-25, "The two tiers": "A 高级 type is drawn by the area's existing rule, when the package holds one." (line 269). Option B replaces this sentence, on the day it was ruled.
  • The same bullet: the fold holds "every other type and every entry that is not a type, each under its group's label" (line 269). And "Entries that are not a type": "The menu also holds four entries that open no type's list. Each sits in the group of what it holds." (line 211). Option A adds a fifth entry, and it is the first that sits under no group, because it holds all six. The same record weighed an entry outside the groups once and did not take it: "Weighed and not taken: an entry of its own outside the six groups, which gives a catalog of four Access types a second place beside the group that already lists them" (line 239). That reason is about four types that a group already lists; 全部类型 exists for the types no group lists yet.
  • Amendment of 2026-11-25: "A type with no row in the table is drawn in 高级, at the end of its group. It is never invisible." (line 285). It speaks of a type the table misses, not of a type the package does not hold. Its intent, that no type is out of reach, is what this card is about.
  • The reason a 常用 type is always listed: "so a package without one still shows where the first is made" (line 263). The ruling gave that to ten types by name.

So A and B both amend text ruled today, A by adding an entry and saying where it sits, B by replacing which rows the fold draws. Each needs a dated line in ADR-0084, amended in place on the maintainer's words (docs/adr/** lands by the maintainer's merge or an authorized approval). C, D and E need none. They are offered because the source ruling's own proposal named this question as open and left it for a follow-up card.

Protocol: Metadata-protocol: none, Clause-②: no, for every option. Which types can be created is read from the registry as it is.

Premises (each with its re-check, run at the repository root)

  1. A 高级 type is listed only when the package holds one; the directory page uses the same rule.
    • git grep -n "packagesByType\[e.type\]" origin/main -- ui/packages/app-shell/src/views/metadata-admin/directoryScope.ts (line 40).
    • The menu adds the always-listed 常用 types: git grep -n "always: STUDIO_MENU_ALWAYS_TYPES" origin/main -- ui/packages/app-shell/src/views/studio-design/studioMenuData.ts (line 93).
    • The directory page passes no such list: git grep -n -A5 "scopeDirectoryEntries(entries, {" origin/main -- ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx (lines 178–182, the lines §3.10 cites).
    • The file says the two are one rule on purpose: git grep -n "never disagree on what a package holds" origin/main -- ui/packages/app-shell/src/views/metadata-admin/directoryScope.ts (line 6).
    • Measured in a browser by PR feat(studio): the left menu reads the placement table — 常用 types first, the rest in one 「高级」 fold #37341, walk-through step 4 (a new empty package).
  2. On a package, no menu entry opens the type directory page. The page is the area's index route: git grep -n "Route index element" origin/main -- ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx (line 487). The menu links the area's root for the cross-package leg only: git grep -n "to: studioMetadataAreaRoot" origin/main -- ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts (one hit, line 207).
  3. ⌘K has no create command. git grep -n -i -E "create\b|/new" origin/main -- ui/packages/app-shell/src/views/studio-design/studioPaletteModel.ts ui/packages/app-shell/src/views/studio-design/StudioPaletteGroups.tsx → prints nothing.
  4. The list page and its New do not ask whether the package holds the type. Routes: git grep -n -E 'path=":type"|path=":type/new"' origin/main -- ui/packages/app-shell/src/views/studio-design/StudioMetadataArea.tsx (lines 490–491). The New button's rule: git grep -n -A1 -E "const typeWritable|const canCreate" origin/main -- ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx (lines 823–827).
  5. Of the 22 高级 types, 16 can be created at run time and 6 cannot. The registry's two flags, for the 21 types written on one line:
    for t in picklist hook mapping object_extension seed view action dataset job doc book email_template translation api external_catalog position assignment_rule sharing_rule queue capability ai_context; do git grep -h -o -E "type: '$t',.*allowRuntimeCreate: (true|false)" origin/main -- packages/spec/src/kernel/metadata-plugin.zod.ts | sed -E "s/type: '([a-z_]+)'.*allowEnvironmentOverlay: (true|false), allowRuntimeCreate: (true|false)/\1 overlay=\2 create=\3/"; done
    → 15 read create=true, 6 read create=false. datasource is written over several lines: git grep -n -A6 "type: 'datasource'" origin/main -- packages/spec/src/kernel/metadata-plugin.zod.ts (line 1076, allowRuntimeCreate: true).
  6. Nothing is offered where an email template is picked. A flow's send-mail step picks from the templates that exist: git grep -n "'email-template'" origin/main -- ui/packages/app-shell/src/views/metadata-admin/inspectors/FlowReferenceField.tsx (line 109). A grep for a create entry under MA/inspectors returns nothing: git grep -n -i -E "new template|/email_template/new" origin/main -- ui/packages/app-shell/src/views/metadata-admin/inspectors.

Options

What is done What the customer sees Effort
A — one row, 「全部类型」, at the bottom of 高级 The fold gets a last row, 全部类型, below the groups. It opens the type directory page that already exists, changed to list every type of the six groups: the ones the package holds as today, and the ones it does not hold yet, marked so, each with what can be done there (the page already has those words: can be created, can be customized, read-only). A type's tile opens its list, which has New. The menu's rule does not change, so the fold stays as short as today. ADR-0084 gains the entry and the sentence that it sits under no group. 高级 ends with 全部类型. One click shows every type under its group. They pick 邮件模板, land on its empty list, and press New. Once the package holds one, 邮件模板 appears in the fold by itself. ui · 1 PR, plus one dated ADR-0084 line (precedent PR #37219, +126/−16, 1 file) · 无先例 for a menu row that opens the directory. Nearest size: PR #37341 (+769/−133, 12 files), which reworked the whole menu.
B — the fold always lists the types that can be created The 高级 rule changes: a type that can be created at run time is always drawn, dimmed when the package holds none, as the 常用 types are. ADR-0084's sentence "when the package holds one" is replaced. A narrow form lists only the types with no other door (six to nine of them); that needs a list kept by hand of which types have another door. On a new app the fold holds about 20 rows instead of 4, most of them dimmed (about 10 to 13 in the narrow form). On every package the fold is the same length. ui · 1 PR, plus one dated ADR-0084 line (PR #37219, +126/−16) · 无先例 for this change alone. Nearest size: PR #37341 (+769/−133, 12 files); the change is one list in the menu's data and its tests.
C — a New where each type is used Each type gets a New at the place it is picked: 新建模板 in a flow's send-mail step, and so on, as a dataset has beside the report and chart pickers. The builder adding a send-mail step can make the template right there. 文档, 文档手册, 初始数据 and AI 上下文包 are not picked anywhere, so they still have no door. ui · 1 PR per type · precedent PR #27575 (+964/−32, 23 files), the dataset one.
D — ⌘K only The command panel gains "新建 <类型>" for every type that can be created. Nothing new on screen. A builder who presses ⌘K and types 邮件模板 gets "新建邮件模板". ui · 1 PR · 无先例 (the panel has no commands today). Nearest size: PR #37108 (+1679/−92, 15 files), which built the panel.
E — nothing The types above keep no door on screen. In a new app, the first email template, document or mapping is made by asking the AI assistant, by writing code, or by typing an address. none

Business meaning:

  • A is "a catalogue at the back of the menu": the shelf shows what you stock, and the catalogue lists everything you could order.
  • B is "every empty shelf label stays up". It takes back most of what folding 高级 was for: a new app's menu fills with things it does not have.
  • C is "a reorder slip taped to each shelf that has a customer". Shelves nobody walks past get none.
  • D is "ask at the counter, if you know the counter is there".
  • E is "only people who know the back door get in".

Four axes (business view)

Long-term soundness (weighted at least half). Two years out, every type a builder can create has one door on screen that nobody had to remember to build, because it is read from the registry. Today the doors are accidents of each type: a hook has a tab, a dataset has a button beside a picker, an email template has nothing. Each new type repeats the question, and ai_context did so today. A answers it once: the catalogue page lists what the registry lists, so the next type appears there with no edit, and the fold keeps the short shape the maintainer ruled. B answers it too, by undoing that shape; with the registry at 33 types and growing, the fold grows with it on every package, and its narrow form trades that for a hand-kept list of exceptions, which is the kind of special case this axis counts against. C is good where it applies and is how a dataset already works, but it is one door built per type, it cannot reach the types that are picked nowhere, and it does not answer the next type. D serves people who already know. The mainstream admin consoles keep a full catalogue reachable beside a short everyday menu: Salesforce Setup lists every kind of item in its tree and has Quick Find, whether the organization has any item of that kind or not; ServiceNow's "All" menu does the same (from recall, not re-checked).

A has one cost on this axis, and it is named here. Today the menu and the directory page read one rule, "so the menu and the directory never disagree on what a package holds" (premise 1). Under A the page lists more than the menu. What a package holds stays one rule, read by both; the page adds the types it does not hold yet, marked as such. The test that pins the shared rule has to be rewritten to say that.

Real business pull. Structural, not reported. Every app created in Studio starts as an empty package (#36748, 「新建自己的应用」), and PR #37341's walk-through measured the empty fold. A builder meets it when they first need one of these types: for example, adding a send-mail step to a flow offers existing templates only (premise 6), so the first template of a new app has no door at that moment. Not found: a customer report; the menu that causes this landed today. The sibling card F2 reads "no report" as "not scheduled" because there a way exists on screen; here none does.

Preventing AI and authoring mistakes. Without a door, a person asks the AI assistant or writes the item by hand. The assistant has to pick the package and the name itself, and a wrong package is visible only later, in another package's list. A door that opens the type's own New, inside the open package, fills the package in. With A and B the door is on screen for every type. With C it is there for some types. With D it is there only for someone who thinks to search. With E it is not there.

Startup focus. A is one row and one wider listing on a page that exists. B is one changed list, and costs every package a longer menu from then on. C is a piece of work per type, without end. D is a set of commands. E is nothing. None declares a new key or a new type.

os-decision-facets
① Long-term: A gives every creatable type one registry-read door and keeps the short fold as ruled, at the cost of the directory page listing more than the menu; B does it by undoing the short fold or by a hand-kept exception list; C is one door per type and misses types picked nowhere; D serves only those who know — favours A.
② Business pull: every app created in Studio starts empty (#36748); the empty fold was measured on PR #37341; no customer report, the menu landed today; no way exists on screen — real and structural, favours acting (A or B).
③ AI mistakes: with no door a person or the AI assistant picks the package and name by hand, and a wrong package shows only later; a door inside the package fills it in — favours A and B over C, D and E.
④ Startup focus: A is one row and a wider listing on an existing page; B lengthens every package's menu for good; C is work per type without end; D adds commands; E adds nothing — favours A.
Prior rulings read: studio,menu,advanced,type,create,first → 215 hits (1 at three terms: ADR-0035 §3, unrelated); ADR-0084 amendment 2026-11-25 (the two tiers; entries that are not a type; item 1 of the 2026-11-24 "written where the rulings were silent"); thread: none (new card; the source ruling is #37192 record 7151834490)

Recommendation

A. By axis ① alone: two years out every type that can be created has one door, read from the registry, as Salesforce Setup's tree and ServiceNow's "All" menu keep a full catalogue beside the everyday menu; the question is then not asked again for the next type, and the short fold stays short.

Self-check: 只看①选 A;②③④ 是否翻转:否。

  • Not B: both A and B amend today's text. A adds an entry and says where it sits. B changes which rows the fold draws, which is the thing the fold was ruled for.
  • Not C: right for a type that is picked somewhere, and nothing in A stops a later card from adding one. It is not an answer to "every type has a door".
  • Not D: a door that is not on screen does not answer "nowhere to start".
  • Not E: types that can be created have no way in on screen, in every new app.

A and B are about the same size, so the "three times the work" rule does not apply.

Confidence gaps.

  • Premise 4 (the typed address works) and several per-type doors are read in the code, not walked. The count of types with no door could be off by one either way. ai_context is the least certain.
  • The platform comparisons are from recall.
  • Whether the directory page still draws correctly on a package was not walked. Nothing links to it there today (premise 2), so it has had no recent use.
  • Whether 全部类型 should list the six types that cannot be created in Studio (marked read-only, as the page words it today) or leave them out is left to the execution. Listing them tells a builder they exist and come from code.
  • F2, if ruled A and scheduled, would give 字段映射 its own door from the import wizard. That does not change this card: the other types remain.

Seen on the way, not part of this question. Two entries a builder may expect to create from offer no New, because their registry line reads allowRuntimeCreate: false: 智能体 agent, which is a 常用 row that is always listed "so a package without one still shows where the first is made", and 选项列表 picklist. Read from the registry and the list page's rule (premises 4 and 5), not walked. The seat decides whether that needs a card of its own.

After the ruling

  • A: the seat files two cards under 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890 (zone a4-S, p2). (1) docs: one dated addition to ADR-0084, amended in place on the maintainer's words: 全部类型 joins the entries that are not a type, and it is the one entry that sits under no group. It goes in the weekly ADR PR or its own, and lands as an ADR does. (2) ui: the row as the fold's last entry; the directory page listing every type with its state word and marking the ones the package does not hold yet; the shared-rule test rewritten on purpose; tests that go red on revert; a browser walk on a new empty package that ends with a first email template created from the screen. Card (2) can start when the ADR line is written; it does not wait for the merge. The dispatch order names one premise for the dev to verify first: the directory page draws on a package and its tiles open the type's list. If it does not, the dev reports the fork. ⛔ The dev does not switch to always listing the types in the fold.
  • B: the same two cards, with the ADR line replacing "when the package holds one" for the types that can be created (and, for the narrow form, the list of types and who keeps it).
  • C: one ui card per type the maintainer names; the others stay as they are.
  • D: one ui card.
  • E: no card. The seat records the ruling and closes this card.

Related

Dedupe (gh api -X GET search/issues, is:issue, open and closed): studio 高级 新建 第一条 (11), studio menu first item type no entry create (180), 全部类型 (1084), studio empty package type create entry advanced (112). No card holds this question. Nearest: #37192 and #37201 (the source, both closed).

Filed by seat repo:objectstack#4 on the maintainer's authorization in the seat session (「F2、F3 决策卡立卡放行」). The analysis session (session_01QSeKYmRB3CUmS2Fp5cK3aN, zone a4-S) prepared this body and dry-ran it; its own create was refused by its permission check and not retried.

Activity

  1. added
    priority:p2
    needs-user-decision
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Ruled · 2026-11-25T23:14Z · A

    The maintainer's words, verbatim, in seat repo:objectstack#4's session: 「37360 同意」. This answered the seat's presentation of this card, which recommended A. Freshness check: the card carries no comments, and the body has not been edited since it was filed.

    • A: 高级 gets a last row, 「全部类型」, below the groups. It opens the existing type directory page, changed to list every type of the six groups:
      • the types the package already holds, as today;
      • the types it does not hold yet, each marked as such and showing what can be done there.
    • A type's tile opens its list, which carries New. The fold's rule does not change, so 高级 stays as short as today.
    • ADR-0084 gets one dated line naming the entry and saying that it sits under no group.
    • Left to execution, as the card says: whether 「全部类型」 also lists the six types that cannot be created in Studio, marked read-only.

    State: needs-user-decision → pm:queue, priority p2. Under the maintainer's wind-down order it is not dispatched today. Zone a4-S (epic #36890) claims it next round and cites this comment as Ruling-ref:.

  3. added
    pm:queue
    and removed
    needs-user-decision
    on Nov 25, 2026
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    Claim: PM loop round (seat repo:objectstack#4, wind-down exception on the maintainer's word 「37360 你也接」)
    Session: session_01QSeKYpEsWWE9Y5YtSsDgqZ
    Account: os-justin
    Branch: claude/issue-37360-advanced-all-types
    Worktree: objectstack-issue-37360
    Domain: domain:ui
    File surface: ui/packages/app-shell/src/views/studio-design/{studioMenuModel,studioMenuData,studioMenuPlacement,StudioMenu}*, ui/packages/app-shell/src/views/metadata-admin/DirectoryPage*, the studio i18n catalogues (en, zh), one changeset, and one dated line in docs/adr/0084-application-builder-information-architecture.md (governed, so the PR is Tier H)
    Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7177310364
    Premise: holds
    Serial constraints cleared: in flight in the same area are #37139 (header 「⋯」 menu) and #36909 (removing the old area routes and the pillar residue in studio-design). The dev runs overlap-check before every push and, on a conflict, lands second by merging main, never by rebase.

    Ruling-ref: 7177310364 (A: 「全部类型」 as the last row of 高级, opening the type directory that lists every type of the six groups).

  5. added
    pm:dispatched
    and removed
    pm:queue
    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

Labels

area:uxdomain:uipm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions