Skip to content

Record page field area: only groups whose object declares collapse get the right-hand fold arrow; the #36147 card asked for every group to fold #36269

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Follow-up from #36147 (PR #36234). This card needs a maintainer decision before anyone builds it.

What the user sees

Card #36147 says: 「有分组的对象:分组标题在左、箭头在最右;点了折叠,再点展开」 (every grouped object: title left, arrow far right, click folds, click again opens). The ruling 7066516044 keeps "the group chevron on the right" unchanged under every option.

PR #36234 draws that arrow only on a group whose object declares collapse (ADR-0085 §5; packages/spec/src/data/field-group-layout.ts, where an undeclared group resolves to 'none', meaning no toggle), plus the new 系统信息 group, which is always folded. No CRM group declares collapse today, so on the CRM record page the maintainer will see group titles with no arrow and no folding. Only showcase's declared groups and 系统信息 fold.

The question

  • (a) Keep the metadata meaning: a group folds only when the object declares collapse. The apps (CRM, HotCRM) add collapse to the groups that should fold. The platform is unchanged.
  • (b) Make every group on the synthesized record page foldable (open by default) when nothing is declared. Here 'none' stops meaning "no toggle" on this surface, which changes what the metadata promises, and forms and the designer would read the same key differently.

The seat's reviewers lean to (a), but it is the maintainer's call: per the 11-21 rule, a product disagreement goes through the Fable review and then a decision card.

Also owed before #36151 removes the phone's Edit button

The L2 on #36234 notes that card #36147's open question 2 (tap-to-edit on a phone per field type) was answered for one type, in emulation only. Run a tap-to-edit check per type (lookup, select, date, long text) before #36151 lands.

Activity

  1. added
    domain:ui
    on Nov 22, 2026
  2. os-project-manager commented on Nov 22, 2026

    @os-project-manager
    Collaborator

    repo:objectstack#4 · os-project-manager · session_01FEkQ5p2jRRLubjA1Mn4Zmt

    Maintainer ruling · 2026-11-22T04:45Z · #36269: option (b), 「都能折叠,默认展开」 (reviewed by fable first)

    维护者速读

    • 问题:记录页的字段分组,只有对象里声明了「可折叠」的才有右侧箭头;HotCRM 135 个分组里 104 个、示例 CRM 的全部分组都不能折叠。
    • 选项:(a) 只有声明的能折,平台不改,应用逐个补声明;(b) 记录页每个有标题的分组读者都能折,默认展开。
    • 裁定 (b):字段区改成一列后页面变长,读者自己收起分组是主要的浏览手段。
    • 之后怎么做:记录页给每个有标题的分组加箭头;声明了默认收起的仍先收起;「不可折叠」这个设置只管表单,规范和文档改一句。

    Ruling

    At 2026-11-22T04:45:20Z the maintainer picked option (b) on the decision card, 「都能折叠,默认展开」:

    1. On the synthesized (default) record page, every field group that has a title gets the right-hand chevron and the whole-row toggle, whatever its collapse value. This covers the same faces as feat(record-page): the field area is one list in the side preview, on a phone and in the pinned left column (#36147) #36234: the side preview, the phone 「详情」 tab, the pinned left column and the default full page.
    2. collapse still decides the first state: 'collapsed' starts closed; 'none' and 'expanded' start open. 系统信息 stays closed by default (记录的字段区统一成一列:右侧预览、手机记录页、宽屏左栏共用一个组件,不管多宽都只排一列;分组箭头在右 #36147 ruling 7066516044, item 5).
    3. On forms and in the designer preview nothing changes: 'none' still means always open, no toggle.
    4. No app change: CRM and HotCRM add no declarations for this.

    Not ruled, so unchanged: the untitled ungrouped bucket has no toggle; a print page draws groups open; authored record pages keep their own faces; the fold state is per open and is not saved (remembering it would be a new question).

    Not taken: (a) keep "a group folds only when the object declares collapse". It keeps one meaning on every surface, but 104 of HotCRM's 135 groups and the CRM example's groups would each need a declaration, adding collapse: 'expanded' would also make those groups foldable on forms, and customer-built objects would still have no arrow by default.

    Analysis

    • Measured on main 28ba01fe and hotcrm main: HotCRM has 38 objects with fieldGroups, 135 groups, 31 of them declare collapse (all 'collapsed', on 18 objects); examples/app-crm has one grouped object (opportunity) and no declaration. The fold state is component state in ui/packages/plugin-detail/src/DetailSection.tsx (React.useState(section.defaultCollapsed ?? false)), not stored. The designer's hint for this setting already reads 「控制该分组在真实表单(预览)中的折叠方式」.
    • Governing text: ADR-0085 §4 (collapse: 'none' | 'expanded' | 'collapsed', default 'none') and §5 (one derivation, every surface); ObjectFieldGroupSchema.collapse describes 'none' as "always open, no toggle" on "every surface (form, detail, drawer)". This ruling narrows that sentence for the synthesized record page, so the build carries an ADR-0085 addendum and the wording changes below.
    • Mainstream practice (from prior knowledge, not re-checked for this card): Salesforce Lightning and HubSpot let the reader fold every section of a record page; Twenty and Attio are the references named on 记录的字段区统一成一列:右侧预览、手机记录页、宽屏左栏共用一个组件,不管多宽都只排一列;分组箭头在右 #36147.

    os-decision-facets
    ① Long-term fit: whether a reader may fold a group on a read page is a reader action, not a fact about the data (ADR-0085 §1); the metadata keeps the fact that matters, which groups are secondary and start closed. Cost: 'none' and 'expanded' read the same on the record page.
    ② Business pull: the maintainer's own acceptance line on #36147; 104 of 135 HotCRM groups and the CRM example have no arrow today.
    ③ AI error surface: an author who omits collapse still gets a foldable group, so nothing fails silently; the one trap is an author writing 'none' to remove the arrow on the record page, which the wording change has to state.
    ④ No spread: no new key and no new enum value; no app edits.
    Prior rulings read: collapse,fieldgroups,foldable → 13 hits; ADR-0085 Decision §4, ADR-0085 Decision §5 (the others do not rule on this key); thread: none
    Self-check: ① alone picks (b); ②③④ flip it: no.

    After the ruling


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (record page field groups) · needs-user-decision; rationale: area:ux · Task · PR #36234 draws the fold arrow only on groups whose object declares collapse (ADR-0085 §5). No CRM group declares it, so on the CRM record page the maintainer sees group titles with no arrow, while #36147 said every group folds. The card asks the maintainer to keep the metadata meaning or fold every group. UX has no p3 → p2 · size S. Topic #35590.

  4. added
    needs-user-decision
    priority:p2
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

    State fix 2026-11-22T08:22Z: needs-user-decision is stale. The maintainer already ruled this card, option (b) 「都能折叠,默认展开」, recorded in 7074368214 (2026-11-22T04:45Z); the triage touch 7074430104 came six minutes later and left the label. PR #36234 merged, so the card is a build card: needs-user-decision → pm:queue. Seat 7 (which took seat 1's record-page cards, mailbox #36199 7076422684) routes it to its record-page area. The build changes spec wording (the collapse describe, an ADR-0085 addendum, docs), so its PR takes the contract review and lands by the maintainer's approval, as the ruling says. The per-type phone tap-to-edit check owed before #36151 is work, not a question: ruling 7066516044 item 2 already decided a single tap edits on the phone; a type that fails the check is raised then, by name.

  6. added
    pm:queue
    and removed
    needs-user-decision
    on Nov 22, 2026
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim: PM loop round 2 · 2026-11-22T11:06Z
    Session: session_01QsR2jRaJbQ4vqdv4J5peqA
    Account: zhuangjianguo
    Branch: claude/issue-36269-every-group-folds
    Worktree: objectstack-issue-36269
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-record
    File surface: the field-group fold on the synthesized record page: ui/packages/plugin-detail/src/DetailSection.tsx and ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts (and whatever they hand the section's toggle), their tests, the collapse describe text in packages/spec/src/data/object.zod.ts plus generated docs it regenerates, the collapse row in content/docs/data-modeling/schema-design.mdx, any skills/ text that teaches 'none' as "no toggle on every surface", changeset. The ADR-0085 addendum is a separate domain:skills card (asked of the seat 08:24Z), not this PR.
    Container & model: M, mode:subagent, model: opus (TIER_DEFAULT; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no — no accept set or public type changes; the collapse enum and default are unchanged, only what the synthesized record page draws for 'none' / 'expanded' and the describe sentence that says so. Amended here if the build measures otherwise.
    Metadata-protocol: semantic — on the synthesized record page collapse: 'none' no longer means "no toggle" (ruling 7074368214 item 1); forms and the designer preview are unchanged (item 3).
    Responsibility: n/a — not a defect card
    Thread-read: 7076486030
    Premise: holds as ruled (7074368214, option (b)): every titled group on the synthesized record page (side preview, phone 「详情」, pinned left column, default full page) gets the right chevron and the row toggle; 'collapsed' starts closed, 'none' / 'expanded' start open; 系统信息 stays closed; the untitled ungrouped bucket keeps no toggle; print draws open; authored record pages keep their own faces; fold state is not saved.
    Pre-claim lane: domain:ui — ui/packages/plugin-detail/src/DetailSection.tsx; the packages/spec describe sentence stays in this lane (留道: the wording is ruled; the PR takes the contract review at CONTRACT_REVIEW_TIER through the seat and lands by the maintainer's approval, as the ruling says)
    Pre-claim deps: PR #36234 merged (the ruling's precondition)
    Prior rulings read: collapse,fieldgroups,foldable,chevron → 13 hits; ADR-0085 Decision §4, ADR-0018 Decision §3, ADR-0020 D1, ADR-0022 Decision §1, ADR-0053 Decision §2, ADR-0056 D1, ADR-0061 D2, ADR-0068 D1, ADR-0085 Decision §3, ADR-0085 Decision §5; thread: none; repo: objectstack-ai/objectstack. Ruling of record: 7074368214.
    Serial constraints cleared: plugin-detail synth is shared with in-build #36149 + #36201 (side preview, this area); overlap-check.mjs before each push; second lander merges main. 基于合并后的代码工作,issue 引用的片段可能已变,先核对当前 main。
    Resume-from: none
    Fold-or-serial: alone (#36404, the empty field in the synthesized 「更多详情」 group, touches the same synth but a different rule; it follows serially).

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Release: own claim 7078229847 · 2026-11-22T13:56Z
    Reason: maintainer ruling 13:52Z, relayed by seat 7: 「还没开工的不应该开工,分多个阶段的只做完当前阶段」. This card had no PR open, so it counts as not started. Its dev was stopped. No PR will be opened.
    Resume-from: claude/issue-36269-every-group-folds@df13e79df9f39ae1063cee208392691005126953 (left on the remote). It holds 4 commits, +178 / −49 over 11 files:

    • the plugin-detail fold for every titled group on the synthesized record page;
    • the collapse describe in object.zod.ts and the regenerated reference;
    • schema-design.mdx;
    • the record-page pins;
    • one main merge.
      Its last step was an ablation that did not finish, so the test evidence is incomplete. Whoever resumes this owes, in order: the ablation, the gates, the browser shots, the PR, then a CONTRACT_REVIEW_TIER L2 and the maintainer's approval (ruling 7074368214).
      State: pm:dispatched → pm:queue, unassigned.
  10. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 22, 2026
  11. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

    Claim: PM loop · area:ux large card
    Session: session_01WGufzi4PechTRCTBrfxV8W
    Thread session: session_01WGufzgTSB7FSJQ4j6QNnr8
    Account: os-support-ai
    Branch: claude/issue-36269-every-group-folds
    Worktree: objectstack-issue-36269
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/plugin-detail/** (the synthesized record page's field-group fold and its pins), packages/spec/src/data/object.zod.ts (collapse describe only) + its regenerated reference, content/docs/**/schema-design.mdx (stop on breach; explain in the report)
    Container & model: L, mode:thread, model: default, effort: high
    Clause-②: no
    Metadata-protocol: semantic (ruling 7074368214 item 1: collapse: 'none' no longer means "no toggle" on the synthesized record page)
    Responsibility: platform code in objectstack (plugin-detail record-page field groups) | none | every reader of a synthesized record page with titled field groups
    Thread-read: 7080178415
    Premise: holds (re-measured by the thread on the merged tree bb56860)
    Serial constraints cleared: resumes df13e79df9f39ae1063cee208392691005126953 per Release 7080178415; Tier H by ruling (CONTRACT_REVIEW_TIER L2, then the approver)

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 24, 2026
  13. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgTSB7FSJQ4j6QNnr8

    os-dev-report

    {
      "issue": 36269,
      "status": "done",
      "branch": "claude/issue-36269-every-group-folds",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36817",
      "session": "session_01WGufzgTSB7FSJQ4j6QNnr8",
      "premise_still_valid": true,
      "summary": "Resumed from df13e79d, merged origin/main 4c93f8807e by os-regen-merge.sh (no conflict, bb56860c) and regenerated object.mdx (bb358a0d). On the synthesized record page every titled field group folds from its title row whatever its collapse; collapse only picks the first state ('collapsed' closed, 'none'/'expanded' open); System information still starts closed. Forms, designer preview, print, authored pages and the untitled bucket unchanged. Spec describe, schema-design.mdx and one skills reference say so. Premise re-measured on the merged tree: holds.",
      "tests": "Five pin files: head 5/5 files, 65/65 tests green. Ablation via scripts/ablation-replace.mjs restoring the base face in DetailSection.tsx (anchor 1->0, blob 3e85f526->bd854450): 5 failed files, 8 failed / 57 passed; restore blob == HEAD, git diff HEAD empty, re-run 65/65 green. ui tests resolve plugin-detail from src, no build leg. plugin-detail full suite 416 files / 3921 tests passed; plugin-detail type-check exit 0; spec test 883 files / 28106 tests passed; spec typecheck exit 0; spec check:generated 14/14 up to date. All on head bb358a0d.",
      "gates": "dispatch-gates --commands: 126 derived, 126 run, --ran: 0 NOT-MEASURED, 0 UNRUN. 125 exit 0 first pass; ui vitest scripts/ exit 1 under shared load (date-only-zone-pins-10183, js-comment-mask-param-types-9324 timeout), both files re-ran green alone (2/2 files, 40/40). CI check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "5 — issue_read x1, pull_request_read x2, get_session x1 (claude-code-remote), no write tools",
      "api_writes": "3 — relay pr_create (#36817), relay pr_request_reviewers (#36817), this comment via post-stamped",
      "open_questions": [
        {
          "question": "Skills-docs: the diff edits skills/objectstack-data/references/examples-objects.md on an area:ux PR; the claim template reads updated here as valid in skills/** only on domain:skills PRs.",
          "options": [
            "A keep the hunk here (ruling 7074368214 puts skill wording in the same change; claim 7078229847 lists it; PR is Tier H anyway)",
            "B split the hunk to a domain:skills follow-up"
          ],
          "recommendation": "A, because the ruling names the skill text as part of this change and the PR already lands by maintainer approval"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  14. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

    Claim amendment · 2026-11-24T02:32Z · to claim 7118735409 (PR #36817)

    File surface, widened per L1-a 7120228936 (M1) and contract record 7120199982 (S1), and to what ruling 7074368214 puts "in the same change":

    • ui/packages/app-shell/src/views/RecordDetailView.accessibleNames-12625.test.tsx (an existing pin the fold moves);
    • skills/objectstack-data/references/examples-objects.md (skill text that taught 'none' as "no toggle" everywhere; kept in this PR by the seat at 2026-11-24T01:57Z);
    • packages/spec/src/data/object.form.ts (collapse help text and option labels) with its regenerated en.metadata-forms copy in packages/platform-objects, the translated catalogs' same key, and a @objectstack/platform-objects changeset line;
    • content/docs/data-modeling/schema-design.mdx (the "Groups render identically on forms, modals, and detail pages" sentence);
    • docs/adr/0085-*.md: the ADR-0085 addendum the ruling requires in the same change (governed; the PR is Tier H already).
      Everything else in the claim stands.
  15. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzi4PechTRCTBrfxV8W

    Closed by PR #36817 (Tier H, approved and queued by os-zhuang, merged 9742142, Fixes #36269). pm:dispatched removed · 2026-11-24T04:06Z. Open nit, recorded only (predates the PR, no new user effect): L2 N3, the synthesized page's sectionDrawnClosed reads collapsible && defaultCollapsed.

  16. removed
    pm:dispatched
    on Nov 24, 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:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions