Skip to content

[Decision] Record tabs: should an admin be able to hide the built-in Attachments, Approvals and Activity tabs? #36627

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

维护者速读

Why this is a decision

Card #36499 item 3 asks for show/hide of every record tab, and its scope line names the built-in Attachments, Approvals and Activity tabs among them. Measured by the #36499 dev (PR #36624) and on PR #36583 (ACCEPT 7089824294, note 3): neither path can hide a built-in tab. An object's own relatedLists hides a list by leaving it out, and the protocol does not let it leave the built-ins out. A .custom extension's relatedLists hidden does not reach them either. The seat's earlier routing call (#36499 comment 7089839334) assumed the .custom path covered installed objects; that premise is false. The card text and the declared contract disagree, and no existing rule settles which wins for the product.

Governing text: the record-tab arrangement contract in packages/spec (relatedLists entries and the built-in tab rule); ADR-0146 D10 (.custom arrangement).

Options

What happens Effort
A (recommended) Keep built-in tabs always shown Admins can move and rename them, not hide them; the editor shows them locked with a reason. #36499 closes with that line accepted. none
B Allow hiding built-in tabs A spec widening (hidden reaching the built-in tabs on both the own and the .custom path), the runtime honouring it, and the editor's 「已隐藏」 section listing them. New card; seat 2 is winding down, so another seat takes it. M

Four axes

  • Real business need: no app measured today hides these tabs; the only pull is the card's general "show or hide" wording. Approvals and Activity are where a record's history and pending decisions live, so hiding them also hides governance from users.
  • Long-term soundness (leads): A keeps one rule (built-ins are always reachable) that the runtime already enforces; B is a clean widening if a real need appears, and nothing in A blocks it later.
  • Preventing AI authoring mistakes: A gives an AI one fewer key to set wrongly on a governed surface; B adds a declared key that must then be enforced on two paths.
  • Startup focus: A adds no surface without pull; B is speculative today.

Re-check

git grep -n "isRecordPageBuiltinTab" packages ui locates the built-in tab rule; it still forbids omission until B is done.

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 (record tab arrangement protocol) · needs-user-decision as filed; rationale: area:ux · Task · the maintainer's question: may an admin hide the built-in Attachments, Approvals and Activity tabs? Today they can be reordered but not hidden, on built objects and installed objects alike. The seat recommends A: keep them locked and close #36499 as is. Same decision as #36542 (hide them through the .custom arrangement for installed objects only), framed for every object; one answer settles both, and the losing card closes as a duplicate → p2 · size S if B 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

    Addition to the question (measured by the #36499 dev on PR #36624, ACCEPT 7092834322 item 2): the built-in tabs cannot be renamed either, on either path. A built-in entry is a bare name with no label, so the card's 「改标题」 does not reach them today. The same two options apply: A keeps built-in tabs fixed (no hide, no rename; moving them works); B widens the contract so a built-in entry can carry hidden and label, on the own and the .custom path. The seat's recommendation stays A.

  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Ruled (2026-11-23T12:00Z): option A′. Quote, from this project's chat at 2026-11-23T11:57Z: 「36627 选 A′」, relayed to seat 2 by the coordinator. Governing text: packages/spec/src/data/object.zod.ts, the relatedLists docblock on built-in tabs.

    A′, as the seat put it to the maintainer:

    • No "hide" switch for the built-in record tabs, and they are not renamed.
    • Approvals stays as it is: it is drawn only when the record has approval requests.
    • The Activity stream tab follows the object's capability switches, as Attachments follows enable.files. When discussion (enable.feeds), activity (enable.activities) and field change history are all off, the tab is not drawn.

    Correction to this card's premise: on objects authored here, Attachments can already be left out (unlisted, it is not drawn). Only Approvals and Activity always show.

    The work is carried by #36693 (routed to repo:objectstack#1). #36542 closes with this ruling. Closing this decision card as completed.

  6. removed
    needs-user-decision
    on Nov 23, 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

    area:uxdomain:specenhancementpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions