Skip to content

设计模式(四)页头按钮:选哪些动作固定在页头、哪些收进「更多」,可以拖动排序 #36366

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36359(专题:运行界面的设计模式,维护者直派)。⛔ 不是认领。优先级 p1(维护者 2026-11-22:「这几张卡都 p1」)。

本卡属于「运行界面的设计模式」这套方案,总说明和全部效果图在 #36359。

维护者说过的(2026-11-22)

  • 看过 Twenty 的 Layout customization(里面有「编辑动作」)后:「按这个改,重画」。图四里画了「页头按钮」,维护者对这一版只提了顶条字太多和去掉 Studio 入口两点。

效果图(设计板图 49 的图四,右上角)

设计模式里的「页头按钮」面板

现状(主干 6c7c6db250)

要做的(只在设计模式里出现)

  1. 页头按钮组的最右边出现一个「页头按钮」。
  2. 点开是一个面板,分两段:
    • 「固定在页头」:现在露在页头的动作,最多 3 个,可以拖动排顺序。
    • 「其他」:收在「更多」菜单里的动作。
  3. 每个动作右边一个圆点:点一下在两段之间挪。固定满 3 个时再点会提示先取消一个。
  4. 面板里列的是这个页面当前能用的全部动作(对象定义的、应用包带的自定义动作、平台自带的导入导出等)。不能在这里新建动作。
  5. 改动由设计模式统一「保存」「取消」。
  6. 设置按页面类型存:某个对象的列表页一份,这个对象的记录页一份。

不做的

验收

  • 设计模式里,在「商机」列表页点「页头按钮」:面板里「固定在页头」有现在露出的按钮,「其他」里有其余的。
  • 把「导出」挪到「固定在页头」并保存:页头露出「导出」;普通成员也看得到。
  • 固定 3 个之后再点第 4 个:提示最多 3 个,不生效。
  • 拖动调换两个固定按钮的顺序并保存:页头顺序跟着变。
  • 在「商机」的记录页单独设置一次:列表页的设置不受影响。
  • 待审批的记录:页头仍然是「通过」「拒绝」,本卡的设置不影响它。
  • 平时(不在设计模式里):页头没有「页头按钮」。
  • PR 正文附面板截图和改动前后的页头截图。

协调席自己加的(不是维护者原话)

没有核对的

  • 页头按钮现在是按对象配置还是按页面配置、存在哪里,没有读代码。第 6 项的存法请席位按现有结构调整,并在 PR 里说明。
  • 应用包带的自定义动作有没有「必须露在页头」的声明,有的话和本卡的设置谁优先,没有查。

Reader: domain:ui 车道。页头在 ui/packages/app-shell/src/layout/ShellPageActions.tsx 和记录页头部。参照 Twenty 的 Layout customization(本机源码跑的,AGPL,⛔ 只看界面行为,不读不抄它的代码)。

Dedupe: 页头按钮 固定(objectstack,open)→ 0。相关:#35853、#36201。

Activity

  1. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    通知记录 · 2026-11-22T08:22Z

    维护者 2026-11-22:「后续 ux 专题立卡之后都通知 7号座位。」本卡按此通知席位 repo:objectstack#7,随后在它的信箱 #36199 里发一条。同批:#36362 #36363 #36364 #36366(设计模式专题 #36359)、#36370 #36371(列表专题)、#36372 #36373 #36374(报表专题)。

  2. added
    priority:p1High: required for production / M2
    and removed on Nov 22, 2026
  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    Claim: PM loop round 4
    Session: session_01QsR2jTeURPvEm465RcoYEC
    Thread session: session_01QsR2jSr8sNCnJrK6Q9kEF5
    Account: zhuangjianguo
    Branch: claude/project-thread-iqvhau (the thread's container pushes only to its own branch name)
    Worktree: objectstack-issue-36366
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-seat (the design-mode card chain thread; enters no area)
    File surface: ui/packages/app-shell/** (ShellPageActions EditAppButton, the nav, the design-mode shell and its extension point), the app customization-layer write path Studio nav editing uses, their tests; shared shell files coordinated with area f7-shell through the seat
    Container & model: L, mode:thread, model: default tier (the thread re-derives dispatch-gates --tier at its head), effort: high (seat order)
    Clause-②: yes (widening) — new @object-ui/i18n keys for the new UI strings (the thread re-judges from the diff; a spec/schema change is told to the seat before push)
    Metadata-protocol: none (the thread re-judges from the diff)
    Responsibility: n/a — not a defect card
    Thread-read: 7076480579
    Premise: holds as filed (card 现状 read at main 6c7c6db; the thread re-measures first and stops on a premise that does not hold)
    Serial constraints cleared: after #36363; #36201 (header crowding, f7-record) is not re-solved; overlap-check before every push.
    Pre-claim lane: repo:objectstack seat 7: the maintainer's 「后续 ux 专题立卡之后都通知 7号座位」 (relayed by coordinator#1, record 7076480579) and 「ux 新进一批 p1 卡,要优先派发」 (2026-11-22T08:40Z, seat thread); coordinator#1's take request 7076640309, acknowledged 7076693653.
    Pre-claim deps: one branch, one PR per card in order #36362 → #36363 → #36366 → #36364; #36364 last, since it hands off to #36372 and #36374 (other threads); epic #36359's maintainer-owed items (undo/history, unpublished apps, Studio 「界面」) are not built.
    Prior rulings read: epic #36359 (maintainer's words, board 49; the 2026-10-09 "no orchestration handles in the runtime" ruling stands, since editing controls appear only in the edit state); the thread runs check-prior-rulings.mjs --card 36366 before code.
    Resume-from: none (fresh from origin/main)

  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · claimed meanwhile (pm:dispatched); rationale: area:ux · Feature · a child the coordinator filed under topic #36359 (设计模式, maintainer-directed) → p1 as set by the maintainer · size M.

  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    Seat ruling (2026-11-22T10:17Z) on item 6's storage, which the card delegates to the seat (「第 6 项的存法请席位按现有结构调整」).

    Measured by the card thread at 3faabd2: the record page header can carry pins only through page:header actions plus maxVisible on an AUTHORED record page, which means materializing the synthesized default page and freezing its layout. The list header bar has no carrier: it is the object's list_toolbar actions sorted by order, and order is shared by every page.

    Chosen: one new optional object key with a list arm and a record arm. Each arm holds pinned action ids in order, at most 3. The rest go to 「More」. It is saved into the object's customization layer, as #36363's menu is, so installed objects work. Not chosen: materializing the record page, which freezes the layout, and a list-view key plus record-page materialization, which splits one choice across two carriers.

    Conditions: the key is optional with no default, and an object without it draws exactly as today (pinned). Both header renderers read it in the same change, with a liveness row live citing both. An unknown or not-allowed action id is refused at save with a named reason. The name collides with no existing key (grep in the PR). Declaration: Clause-②: yes (widening), Metadata-protocol: added; the spec part comes first. The L2 runs on the schema face at the contract-review tier. The claim's Clause-② and file surface are amended when the thread posts its plan.

  6. 16 remaining items

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP
    os-dev-report

    {
      "issue": 36366,
      "status": "done",
      "branch": "claude/project-thread-m619um",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36629",
      "session": "session_01ADHkmQwVVCVuN69B7ThYrP",
      "premise_still_valid": true,
      "summary": "actionLayout { list?, record? } with arms { pinned (at most 3, required, may be []), more? } is in spec (shape and named refusals), objectql (an object_extension arm replaces the object's arm whole, yields to a tenant-authored base), lint (unknown / not-placed names, CLI only) and @object-ui/types arrangedHeaderActions. The record arm is read by the record header, the side preview and the phone bar; the list arm by the list header, with $import / $export. The design mode's Header buttons panel has Pinned and Other parts, both draggable, and saves the arrangement. Rebased onto 06c3e5ac5, later merged with origin/main at ceaa70efcc; draft PR #36629 at head 564840dc1b.",
      "tests": "At 564840dc1b, each through os-verify-lock (VERDICT command-exit 0): spec test 881 files / 28066 tests; objectql test 634 / 14356; lint test 228 / 9474; metadata-core test 27 / 1056; the metadata-protocol pin file 18/18; platform-objects test 125 / 2126; ui types 390 / 10512; ui components 507 + 1 skipped / 4940; ui i18n 106 / 1978. Typecheck / type-check green for spec, objectql, lint, metadata-core, metadata-protocol, platform-objects, @object-ui types, components, app-shell and i18n. app-shell tests narrowed (declared): 268 files / 2294 tests that name RecordDetailView, objectViewPageHeader, the header pins or PageHeaderActions; vitest related ran out of heap at 4 GB. The full app-shell suite last ran at 72ec1b2a2, before the merge: 2416 files + 1 skipped / 22791 tests, exit 0, the lock held 5634 s. Ablation (one reading): arrangedHeaderActions' moreAt was replaced with undefined (anchor 1 to 0, blob 33d1f1de663b to 2af6af57c9fb). Three more-order tests went red: record side preview, authored page:header, list toolbar; 46 passed, controls green. Restore left blob 33d1f1de663b and git diff HEAD empty. @object-ui/types is aliased to src, so no build was needed. Live run: 422 INVALID_METADATA from PUT object_extension with 4 pinned; screenshots in objectstack-seat2/36366-shots/.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 564840dc1b derived 130 families; all 130 ran; --ran read '130 derived, 130 run, 0 NOT-MEASURED, 0 UNRUN'. The file is /mnt/project-files/objectstack-seat2/36366-gates-ran.txt, one 'command :: exit N' line each. check:skill-examples and check:dual-build-cjs-loads first exited 3 (PREREQUISITE NOT MET) and exited 0 at the same head after the client and ui closure builds. Red found in this round and fixed: check:facade-delegation-only (registry.ts 6433 against a ceiling of 6426, now 6426) and check:docs-transcript-drift (76 to 77). @object-ui/app-shell type-check had nine TS2353 in the save test, fixed. Local-only families: check:skill-frame-freshness exit 0; check:dev-prereqs exit 1 ('The workspace is not built', some workspace dists absent on this box, machine state). overlap-check --branch=HEAD exit 1: #36612 in objectViewPageHeader.tsx; #36606 in de-quote-pairing-3876.test.ts; #36525 in the meta-types and lifecycle pin tests. #36613, #36603, #36587, #36386 and origin/main merge cleanly. PR check-runs: in_progress (not awaited).",
      "dogfood_battery": "n/a — no ! in the PR title, Clause-② is (widening)",
      "mcp_calls": "0",
      "api_writes": "1 so far — the relay's pr_create (POST /repos/objectstack-ai/objectstack/dispatches, run 45113353011, read back as identical, assignees os-steve). This os-dev-report comment through post-stamped.mjs will be the 2nd. git push is not counted. Reads used gh api GET only.",
      "line_budget": "75 files, +3445 / -72 = 3517 changed lines, over the 3000 threshold. Under AGENTS §7(c) the PR lands like Tier H: an authorized approval, or the maintainer. registry.ts is at its facade ceiling, 6426 of 6426; the ceiling is not raised. No skills/** edited.",
      "files_changed": "75 files against origin/main: .changeset/36366-object-action-layout.md; packages/spec (object-action-layout module and test, object.zod, form, index, compose refusal tests, generated api-surface / export-origins / authorable-surface / json-schema baselines, liveness object row and state-counts); packages/objectql (registry.ts, registry-top-level.ts, registry-object-registration.ts, and the fold test); packages/lint (rule, test, authoring-rules, index); packages/metadata-core (FLS references); packages/metadata-protocol (one pin test); packages/platform-objects (11 metadata-forms translations, 2 echo pin tests); ui/packages/types, components (containers, record-header-bar-context), app-shell (design-mode modules and tests, RecordDetailView and tests, objectViewPageHeader and test), i18n (11 locales, the de quote-pair test); content/docs (ui/actions, data-modeling/object-extensions, references, and 4 CLI transcripts).",
      "deviations": [
        "ADR notes, carrier: #36086, not written to docs/adr. (1) ADR-0085 §2 now rejects a key that merely hides or re-arranges information; actionLayout's list and record arms are scopes admitted as a cross-surface role (record header, side preview, phone bar), and this PR adds that key. (2) ADR-0146 D10 has no word on re-arranging; the paired .custom (an object_extension) may now re-arrange the base's own actions, arm by arm, beside the #35901 place note, and this PR adds that.",
        "The dispatch asked for a six-line 维护者速读; os-dev.md caps it at four. The PR uses four lines; the conflict is reported here.",
        "File surface: two edits fall inside the claim's globs but outside the files its notes name. packages/objectql/src/registry-top-level.ts gained foldExtensionActionLayout, because registry.ts is a facade at its line ceiling and the ceiling is maintainer-only. content/docs/deployment/cli.mdx, deployment/validating-metadata.mdx, getting-started/build-with-claude-code.mdx and ui/react-pages.mdx changed 76 to 77, the value check:docs-transcript-drift derives once the new rule exists.",
        "No new door-level code+status test file. metadata-protocol is limited to one pin test in the claim. The door's INVALID_METADATA / 422 was read live instead (PUT object_extension, 4 pinned), and the schema refusals are pinned in packages/spec.",
        "The app-shell tests at the final head are narrowed to 268 files (vitest related ran out of heap); the full suite ran green at 72ec1b2a2 before the merge.",
        "The live run pinned Import, not Export: the CRM opportunity list offers no export door. The record scope was not run live (crm_opportunity has no actions of its own); unit tests cover it. The network mount re-encodes PNGs (sizes changed on re-read); the images open intact.",
        "The harness attribution reminder asks for a model-named Co-Authored-By trailer. Per os-dev.md and the dispatch, commits carry the model-free 'Co-authored-by: Claude' line and Claude-Session; reported, not followed.",
        "No environment variable value was printed."
      ],
      "open_questions": [
        {
          "question": "需契约复审 · head 564840dc1b (PR #36629): the actionLayout schema face (Clause-② widening, Metadata-protocol: added)",
          "options": [
            "A route the contract-tier L2 review at head 564840dc1b",
            "B hold until the overlap PRs land and review after the recounts"
          ],
          "recommendation": "A, because the schema face is final and the open overlaps (#36612, #36606, #36525) touch only pin counts and one UI file, not the contract"
        },
        {
          "question": "Panel wording with no list arm: it says 'No button is pinned: every action is in More', while the bar end shows the page's Import / Export menu (Import ▾) and Other lists Import",
          "options": [
            "A keep it: for a built-in, Other means 'in the page's Import / Export entries'",
            "B say so in the panel: a line under Other that built-ins stay in the Import / Export menu"
          ],
          "recommendation": "A for this PR (待审 in Acceptance notes), B if the maintainer finds it misleading in review"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #36612 · objectViewPageHeader.tsx ObjectViewPageBarActions conflict, noted: #36612's objectSettingsPath (moreShown) and exportDoor lines against this PR's importPinned / exportPinned / importInMenus. The later lander keeps exportDoor = exportPinned ? undefined : barEnd?.exportDoor, and moreShown = !!objectSettingsPath || ... (importInMenus || !!exportDoor)",
        "carrier: #36606 / #36525 · pin recounts (de-quote spans; object property count 52; lifecycle 763): whoever lands second recounts by running the tests"
      ]
    }
  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP

    Waiting-on: #36635 (needs-user-decision: is actionLayout a ruled exception to ADR-0085 §2's re-arrange sentence), since 2026-11-23T05:30Z. PR #36629 stays a draft meanwhile; the L2 record 7092397237's M1, S2–S4 are being fixed in patch round 2 on the same branch. After the ruling the card thread follows #36635's "After the ruling" section, asks the L2 for a delta, and the seat hands off for approval.

  9. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP

    Claim amendment (2026-11-23T06:33Z) to 7088319611, file surface only, after the L2 record 7092397237's M1 (the paired-writer rule for actionLayout), patch round 2 at head 49a31750bcd6bca39a2a6e0c52b15c8b7365c1ef. Added paths:

    • packages/spec/src/data/field-customization.ts (CUSTOM_ARRANGEMENT_KEYS gains actionLayout) and packages/spec/src/data/object-extension-arrangement.test.ts
    • packages/metadata-protocol/src/protocol-extension-arrangement.ts and its test (the publish / restore / promotion door's one judge)
    • packages/objectql/src/registry-custom-arrangement.ts (the pair's arm-by-arm fold, applied last), packages/objectql/src/engine-registration.ts (manifest objectExtensions now carry actionLayout), packages/objectql/src/protocol-custom-arrangement.test.ts
    • packages/cli/src/utils/extension-arrangement.ts (comment only; os validate / os build read the same judge)
      Everything else in the claim stands, including Clause-②: yes (widening) and Metadata-protocol: added; the changeset gains an @objectstack/metadata-protocol patch entry. Still waiting on [Decision] Is actionLayout (header buttons pinned / More, per list and record) a ruled exception to ADR-0085 §2's re-arrange rule? #36635 (comment 7092471027).
  10. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Progress (2026-11-23T10:51Z), in answer to triage's request 7098558281. The claim is live and is not released.

  11. os-steve commented on Nov 23, 2026

    @os-steve
    Collaborator

    repo:objectstack#2 · os-steve · session_01ADHkmQwVVCVuN69B7ThYrP

    The card thread for this card is closing. Its part is done: PR #36629 has been handed to os-zhuang (seat record 7102285083, pm:awaiting-merge, head e683f40e31). The seat lands it once it is approved, and no new commits go on the branch until then.

    Items still open, with who carries each:


    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

Labels

area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p1High: required for production / M2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions