Repository navigation
Description
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
维护者速读
- 要你定什么:页头按钮的「固定/更多」排列写在对象上,分「列表」「记录」两组。这和一条老规定冲突:那条规定说对象上不放「只调整显示顺序」的设置。请你确认这算第二个明确例外(第一个是记录页子表标签的顺序)。
- 现状:功能已经做完,测试全绿,按你 11 月 22 日说的「放在对象上,分列表和记录」做的;审核要求先把例外记进规定,才能合入。
- 席位推荐 A,确认例外:不动代码,只补规定里的一条说明;改名(B)或改到单页设置里(C)都要返工,C 还违背你当时的原话。
[Decision] Is actionLayout (header buttons pinned / More, per list and record scope) a ruled exception to ADR-0085 §2's "re-arrange" sentence?
Card: #36366 (p1, in flight, PR #36629 at head 6303c52011b85208bd7e56d9f6a1a539eb0bd81e). Raised by the contract-tier L2 record 7092397237 (l2-review#4, finding S1). Drafted by the #36366 card thread for seat repo:objectstack#2.
Problem in one sentence
An administrator can now choose which header buttons are shown and in what order, for an object's list page and its record page; the platform's own design rule says an object must not carry a setting that only re-arranges what is shown, and only one exception has been ruled so far.
Background
- The maintainer's words on the format, relayed by seat 7: 2026-11-22T14:27Z 「放在对象上,分列表和记录」 and 14:33Z 「三类都由动作声明,分两步做」 (seat ruling amendment 7080672229); 14:50Z 「设计模式(四)页头按钮:选哪些动作固定在页头、哪些收进「更多」,可以拖动排序 #36366 改成"列表"和"记录"两组,每组分"固定"和"更多"两段,等 设计模式(二)菜单编辑:添加已有的菜单项,上移下移、移到分组、移除、改名和图标 #36363 合并后,卡标记为p1,剩余任务放回队列」 (release 7087101113).
- Built shape:
ObjectSchema.actionLayout: { list?: Arm, record?: Arm },Arm = { pinned: string[] (≤ 3), more?: string[] }; optional, no default; an object without it draws as today. - Readers today (L2 record 7092397237, measured on the head): the
recordarm is read by the record page header, the side preview and the phone's bottom bar (RecordDetailView.tsx,containers.tsx); thelistarm by the list page toolbar only (objectViewPageHeader.tsx). The row menu / right-click (Row menu and right-click menu follow the object action layout's record order (after #36366) #36494) and aselectionarm (Bulk actions declared on the action (selection) with a selection arm in the object action layout, moved from view bulkActions #36496) are queued, not built.
Governing text
- ADR-0085 §2, line 68 at main
3110de5a03(docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md): "Keys that merely hide/re-arrange correct information (hideRelatedTab,showReferenceRail,relatedLayout,useFieldGroups, explicitdetail.sections, or a modal-vs-page presentation surface such as arecordSurfacekey) are rejected at this layer. The supported path for per-page control is the one that already exists and is honestly scoped: an assigned page (full page schema)." - ADR-0085 §2, the 2026-11-20 note (relatedLists 管记录页页签的显示和顺序:声明了就只显示列出来的;附件、审批、动态用对象名 sys_attachment、sys_approval_request、sys_activity 列进来 #35897 / relatedLists 的一项可以带标题和列:在父对象上配子表显示哪几列,不用去改子对象 #35899): "This is the one place §2's "keys that merely hide/re-arrange correct information are rejected at this layer" yields, by that ruling … The guard keeps its force for every other key".
- Admission tests (§2): 1. business intent not inferable from the schema; 2. bound to the object across surfaces, no page name in the key's honest name.
- Re-check:
git show origin/main:docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md | sed -n '61,68p;80,104p'
Protocol: Metadata-protocol: added, Clause-②: yes (widening). Not yet published; any change of name or placement is free until the first release that carries it.
Premises (each with its re-check)
- The key is on no published release yet. Re-check:
git log origin/main --oneline -S'actionLayout' -- packages/spec/src | head(expect empty until feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) #36629 merges). - The
listarm has one reader today. Re-check:git grep -n "actionLayout" origin/claude/project-thread-m619um -- 'ui/packages/**/*.tsx' ':!*.test.*'. - Usage pull in the repo's own apps: actions placed at
list_toolbarin 3 files (5 hits), atrecord_headerin 4 files (14 hits), atrecord_morein 3 files (6 hits), underexamples/**andpackages/apps/**at main3110de5a03. Re-check:for l in list_toolbar record_header record_more; do git grep -c "'$l'" origin/main -- 'examples/**' 'packages/apps/**' ':!*.test.*'; done
Options
| What is done | What a customer sees | Effort | |
|---|---|---|---|
| A — ruled exception | Keep the key as built. The weekly ADR PR (#36086) adds a dated note to §2 quoting the maintainer's ruling, saying actionLayout is the second ruled exception to the re-arrange sentence (with the list arm's single surface stated) and amending "the one place"; the key's jsdoc cites that note. |
The admin's 「页头按钮」 panel ships as built: list and record arrangements, saved for everyone. | No code change beyond one jsdoc sentence in PR #36629; one row in the weekly ADR PR. Precedent: #35923 (the relatedLists exception note). |
| B — rename the arms | Rename list / record to names that do not read as pages (e.g. by action scope), and drop the listPage / recordPage aliases; still needs an ADR note, because the key still only re-arranges. |
Same panel; authors write different words. | One patch round on PR #36629 (spec, lint, fold, UI reader, docs, generated baselines); no precedent measured. Does not by itself clear §2's re-arrange sentence. |
| C — move to the assigned-page layer | Remove the object key; the record header pins live in an authored record page's page:header (actions + maxVisible), which means materialising the default page; the list header needs a new list-view carrier. |
The admin's arrangement freezes the record page layout it is saved on; list and record are stored in two different places. Seat ruling 7077698148 rejected this route. | Rebuild most of PR #36629 (≈3,500 lines today) plus a new list-view key; no precedent measured. Contradicts 「放在对象上」. |
Business meaning: A is "the header layout is a property of the object, like the order of its related tabs"; B is the same thing under another name; C is "each page remembers its own buttons", which is how a page builder works, not how this design-mode panel was asked for.
Four axes (business view)
- Long-term soundness (≥50%). Two years out, an object's actions will be arranged per action scope (list toolbar + row menu + selection bar for
list/selection; record header + preview + phone bar forrecord), which is where Row menu and right-click menu follow the object action layout's record order (after #36366) #36494 and Bulk actions declared on the action (selection) with a selection arm in the object action layout, moved from view bulkActions #36496 take thelistscope. A per-scope key on the object is that end state; the guard §2 protects (no per-page show/hide switches) keeps its force. C stores one decision in two places and freezes page layouts. Recall, not measured here: Salesforce keeps list-view buttons per object (search layouts) and record actions on page layouts; Twenty's layout customisation edits per object. A matches the object-level half and the maintainer's ruling. - Real business pull. The maintainer asked for this panel (epic 专题:运行界面的设计模式(管理员在界面上直接改菜单和页头按钮;看板、仪表盘、报表的设计入口都在页面上,不再去 Studio) #36359, board 49) and ruled the format; the repo's own apps place 25 actions across the three locations the key arranges. The
listarm's second surface is queued (Row menu and right-click menu follow the object action layout's record order (after #36366) #36494), not present. - Preventing AI mistakes. The key is closed (strict arms, at most 3 pinned, named refusals at every door, CLI reference check). With A, the ADR stops saying the opposite of the schema, so an agent reading ADR-0085 is not told to refuse a valid key. B and C add churn with no stronger guard.
- Startup focus. A ships what is built and adds one ADR note; B and C spend a rebuild on wording or storage that no customer sees.
os-decision-facets
① Long-term: A keeps one per-scope key on the object, the end state #36494/#36496 extend; C splits one decision across two carriers — favours A.
② Business pull: maintainer-requested panel (epic #36359), format ruled 2026-11-22; 25 placed actions in the repo's apps; list arm single-surface today — favours A.
③ AI mistakes: closed shape with loud refusals either way; A removes the ADR/schema contradiction — favours A.
④ Startup focus: A adds no code; B/C rebuild for no visible gain — favours A.
Prior rulings read: actionlayout,pinnedactions → 0 hits; ADR-0085 §2 + its 2026-11-20 note; thread: 7077698148, 7080672229, 7087101113 (maintainer 14:50Z), L2 7092397237
Recommendation
A. By axis ① alone: one per-scope key on the object is the end state the queued #36494/#36496 build on, and the maintainer already placed it 「放在对象上,分列表和记录」. Self-check: only ① chooses A; ②③④ do not flip it.
Confidence gaps: the list arm's second surface is not built yet; the platform comparisons above are from recall, not measured.
Not B: a rename does not change that the key only re-arranges, so it still needs the same exception. Not C: it rebuilds the PR, freezes record layouts and contradicts the maintainer's placement.
After the ruling
- A: the card thread rewords ADR revisions, week of 2026-11-21: rolling checklist of ADR text out of step with main (one governed PR) #36086 row 1 (comment 7091884833) to a ruled exception quoting the maintainer, and the jsdoc in
object-action-layout.tsto cite the note; L2 delta on PR feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) #36629; seat hands off for approval. - B: patch round on PR feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) #36629 with the maintainer's names; then as A for the note.
- C: PR feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) #36629 is closed unmerged, the card is re-planned around the assigned page and a list-view key.
Related: #36366, PR #36629, #36359 (epic), #36494, #36495, #36496, #36086, #35897 / #35923 (the first exception).
Activity
objectstack-fleet commentedon Nov 23, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:spec(ADR-0085 §2,actionLayouton the object) ·needs-user-decisionas filed; rationale: area:ux · Task · the maintainer's question: isactionLayout(header buttons pinned or under 「更多」, grouped by list and record, placed on the object per his 11-22 word) a second ruled exception to ADR-0085 §2's no-reorder-only-settings-on-the-object rule? The first exception is the record-page related-list tab order. The feature is built and green, and review asks for the exception in the ADR before merge. The seat recommends A: confirm the exception, add one ADR line and change no code → p2 · size XS if A is chosen.objectstack-fleet commentedon Nov 23, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
Ruled (2026-11-23T12:23Z): option A. Quote, from this project's chat at 2026-11-23T12:23Z: 「36635 选 A」, relayed to seat 2 by the coordinator. Governing text:
docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md§2 and its 2026-11-20 note.A:
actionLayout(per-scope action arrangement, pinned + "more") stays on the object and is a second, ruled exception to ADR-0085 §2's sentence against arrangement-only settings on the object. The first exception is the child-tab order.Conditions the seat attaches, unchanged from the analysis put to the maintainer:
list_toolbargroup has a single reader today..custompackage may write the key, and the admin's arrangement wins (L2 M1 on PR feat: an object's action layout per scope, pinned and more, set from the design mode (#36366) #36629, already fixed at49a31750, L2 delta PASS 7093624051).Work continues on #36366 / PR #36629: the ADR note via the weekly ADR card #36086, the JSDoc, then a same-head L1 and L2 and the hand-off for approval. Closing this decision card as completed.
os-steve commentedon Nov 23, 2026
Duplicate of the seat's ruling record 7101013317, which is the record to cite. One addition: the key keeps the name
actionLayout. At 12:14Z the maintainer asked whether it fits besidefieldGroupsandrelatedLists; names are the seat's call and the seat kept it, because its value is a per-scope arrangement, not a list. A rename would not change this exception.Generated by Claude Code