Skip to content

[Decision] Is actionLayout (header buttons pinned / More, per list and record) a ruled exception to ADR-0085 §2's re-arrange rule? #36635

Closed

Description

@objectstack-fleet

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

Governing text

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)

  1. 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).
  2. The list arm has one reader today. Re-check: git grep -n "actionLayout" origin/claude/project-thread-m619um -- 'ui/packages/**/*.tsx' ':!*.test.*'.
  3. Usage pull in the repo's own apps: actions placed at list_toolbar in 3 files (5 hits), at record_header in 4 files (14 hits), at record_more in 3 files (6 hits), under examples/** and packages/apps/** at main 3110de5a03. 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)

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

Related: #36366, PR #36629, #36359 (epic), #36494, #36495, #36496, #36086, #35897 / #35923 (the first exception).

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec (ADR-0085 §2, actionLayout on the object) · needs-user-decision as filed; rationale: area:ux · Task · the maintainer's question: is actionLayout (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.

  3. added
    domain:spec
    priority:p2
    on Nov 23, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    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:

    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.

  5. removed
    needs-user-decision
    on Nov 23, 2026
  6. os-steve commented on Nov 23, 2026

    @os-steve
    Collaborator

    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 beside fieldGroups and relatedLists; 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

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

    area:uxdomain:specenhancementpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions