Skip to content

skills/objectstack-ui:表单类型表把 tabbed 推荐给「字段组多的复杂对象」,照做得到必填项跨页签、手机上页签被截断的表单;改为默认分组堆叠,并补上折叠分组、列数、弹窗尺寸的选用指引 #34567

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:③ 维护者直派。维护者 2026-11-16 原话:「平台的技能是否需要改进也要写任务。用pm-dispatch技能写任务」;针对的现象是他同一天说的:「弹出录入的表单目前是用的tab,不方便滚动,是否建议换成分组模式。而且目前默认只有两列字段,对于复杂的业务表单,宽屏时候非常浪费。」

技能现在怎么写

skills/objectstack-ui/SKILL.md「Form Views」:

Type When to Use
simple Single-page form — suitable for objects with ≤ 15 fields
tabbed Tabbed sections — for complex objects with many field groups
wizard Step-by-step flow — guided data entry (onboarding, applications)

同一份 SKILL.md 里没有:表单分组的 collapsed / collapsible;modalSize(只在 references/react-blocks.md 的属性表里出现);分组或表单的 columns 该怎么取值。

照做的结果(实测)

HotCRM 七个对象的表单都是 tabbed(objectstack-ai/hotcrm 已另立卡改它们)。staging 环境 os-4e4qa4 上:

  • 新建商机 6 个页签,必填项不在当前页签时只有页签名旁一个红点;
  • 375 宽视口下第 4 个页签被截断,第 5、6 个在屏幕外;
  • 分组一律两列,宽屏下两侧留白。

同一批字段改成 type: 'simple'、少填的分组 collapsed: true、columns: 3、modalSize: 'xl' 之后(hotcrm 本机分支验证,objectstack dev 编译无新增警告),一页滚动即可填完,必填错误都在同一页。

要改的文本

  • 表单类型表:simple 作为默认,去掉「≤ 15 fields」这个上限;tabbed 的适用条件收窄,并写明代价(必填项跨页签、窄屏页签条溢出)。
  • 补一小节:字段多时先用 collapsed: true 收起少填的分组,再考虑 tabbed;columns 与 modalSize 的选用。
  • 相应的 eval 用例(skills/objectstack-ui/evals/):一个字段多的对象,期望输出是 simple 加折叠分组而不是 tabbed。

验收

  1. SKILL.md 的表单类型表不再把字段多的对象导向 tabbed。
  2. collapsed、columns、modalSize 三项在 SKILL.md 里各有一句选用指引。
  3. 新增的 eval 用例通过。

Reader: domain:skills 席位,改 skills/objectstack-ui/SKILL.md 的 Form Views 一节与 skills/objectstack-ui/evals/views-apps-actions-pages.json。

Dedupe: repo:objectstack-ai/objectstack "Form Views" tabbed "many field groups" → 0;repo:objectstack-ai/objectstack objectstack-ui tabbed simple form skill → 24(含 closed),最近的是 #27155 / #27229 / #27305(已关,把 FormView.type 收窄为布局),都不涉及何时选 tabbed 的指引。

Activity

  1. added
    domain:skills
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:skills · p1 · maintainer-directed · epic #34571 · 2026-11-17T01:45Z

    ⛔ Not a claim.

    Maintainer-directed (「平台的技能是否需要改进也要写任务」). The UI skill recommends tabbed for complex objects, which gives required fields hidden across tabs and tabs cut off on phones (measured on HotCRM staging). Change the default to stacked groups, and add guidance on collapsed groups, columns and modal size. This is item 2 (forms) of the console core-UX epic #34571, which the maintainer graded all p1 (「刚才的问题立专题卡,都是p1」): p1.

  3. added
    documentation
    pm:queue
    priority:p1
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3

    Claim: PM loop round 1 · 2026-11-17T01:51Z
    Session: session_01ADHkmSXPDB46NVRepWVrL3 (area o2-S session); a card thread of this account's project is the dev and reports its own session id
    Account: os-steve
    Branch: pending — the card thread's designated branch; a follow-up Claim: from this session names it before the first push
    Worktree: objectstack-issue-34567
    Domain: domain:skills
    Seat: repo:objectstack#2
    File surface: skills/objectstack-ui/SKILL.md (Form Views: the form-type table and one short guidance block on collapsed, columns, modalSize), skills/objectstack-ui/evals/views-apps-actions-pages.json (one case), the skills/objectstack-ui/SKILL.md row of scripts/check-skills-token-ratchet.mjs (fold-first, then raise by measurement under standing ruling 6513306068), one root .changeset/ file (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: TIER_DEFAULT — --tier reads MANDATORY CONTRACT_REVIEW_TIER for skills/**; exit taken: the proactive low-headroom downgrade, reason: maintainer 2026-11-15 21:53Z 「fable 不多了,后续契约复审找review 席位」; compensating control: the at-tier L2 review through the review seat before the approver, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6935294459
    Premise: holds at origin/main 1e4656d — the Form Views table in skills/objectstack-ui/SKILL.md recommends tabbed for "complex objects with many field groups" and caps simple at 15 fields; collapsed, columns and modalSize have no selection guidance in that file.
    Serial constraints cleared: no open PR lists skills/objectstack-ui/**; four open PRs (#34558, #34528, #34499, #34484) touch scripts/check-skills-token-ratchet.mjs on other rows — the overlap check runs before every push and the later PR merges main (open-PR file scan at 2026-11-17T01:51Z).
    Fold: chain head of a two-card fold with #34566 — both edit skills/objectstack-ui/SKILL.md and the same token-ratchet row, which two PRs would conflict on (①); one worktree, one changeset, one queue slot (②); both graded p1 by triage (③); each checked by its own named reading — the form-type table and its eval case here, the Master-Detail bulk precondition and its authoring rule on #34566 (④). Excluded (⑤): #34527 (pm-dispatch text, PR #34568 in review), #34210 (waits on #34230 and #34453), #34537 (waits on #33113). One PR, one Fixes line per card, one commit per card.
    Pre-claim lane: domain:skills (skills/objectstack-ui/**, the published catalog).
    Pre-claim deps: no Blocked-by:; overlap per area-lease.md: no open PR on skills/objectstack-ui/**; ratchet-script PRs on other rows, checked before each push.
    Prior rulings read: check-prior-rulings.mjs --card 34567 → 15 hits; ADR-0032 Decision §4, ADR-0033 Decision §10, ADR-0050 Decision §1/§2/§4, ADR-0063 Decision §2/§5, ADR-0064 Decision §2; thread: none. The card is the maintainer's direct order (quoted in its body); the dev reads ADR-0050 for any form-layout default before writing the recommendation.
    Lease: lease:o2-S. Order: /mnt/project-files/objectstack-seat2/34567-34566-delta.md with the seat's standard order beside it (project share).

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmSXPDB46NVRepWVrL3

    Claim: PM loop round 1 · branch named · 2026-11-17T01:54Z
    Follow-up to claim 6935411723 (same seat, same claim).
    Thread session: session_01ADHkmSMwg7iTEBBE4qY9Y3
    Account: os-steve
    Branch: claude/project-thread-6lyn9b
    Seat: repo:objectstack#2

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34567,
      "issues_folded": [
        34567,
        34566
      ],
      "status": "done",
      "branch": "claude/project-thread-6lyn9b",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34600",
      "head": "4e35eed78dc6f3bf345007fd4e0018807d36dadf",
      "session": "session_01ADHkmSMwg7iTEBBE4qY9Y3",
      "premise_still_valid": true,
      "summary": "objectstack-ui Form Views makes `simple` the default at any field count, narrows `tabbed` with its cost, and adds one paragraph on collapsed groups, `columns` and `modalSize`, with eval case 19. Both skills state that a parent or child declaring `enable.apiMethods` must list `'bulk'` for the inlineEdit batch save, and `os lint` gains the warning `relationship/inline-edit-needs-bulk` beside `relationship/line-items-inline-edit`. Restatement was cut first; the objectstack-ui token row rises by the measured remainder (3833 -> 3888 -> 3921), the two objectstack-data rows follow their measurements down.",
      "tests": "head 4e35eed78d: cli data-model-rules.test.ts 63/63 (+7 new). d67719d4: @objectstack/lint test 214 files / 9091 tests pass; lint and cli typecheck exit 0. Ablation: rule verdict line mutated (marker ABLATED_34566 in dist), 6 hit cases red / 1 silence case green; restored blob == HEAD, rebuilt, --absent preflight, 63/63 green.",
      "gates": "98 derived (dispatch-gates --commands at 4e35eed78d), 98 run, all exit 0; --ran: 0 NOT-MEASURED, 0 UNRUN. check-skills-token-ratchet exit 0, --self-test 104 pass. overlap-check clean (exit 0) before first push and before PR. PR check-runs: in_progress at hand-back.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "skills/objectstack-ui/SKILL.md 302 -> 304 lines (+2; order budget at most +10), tokens 3833 -> 3921; relationships.md 414 -> 414 lines, tokens 4232 -> 4229; lint-rules.md 52 -> 49 lines, tokens 958 -> 934; all SKILL.md 4599 -> 4601; skills/ tree 20882 -> 20891",
      "files_changed": [
        ".changeset/34567-form-layout-inline-edit-bulk.md",
        "packages/cli/test/data-model-rules.test.ts",
        "packages/lint/src/data-model-rules.ts",
        "scripts/check-skills-token-ratchet.mjs",
        "skills/objectstack-data/references/lint-rules.md",
        "skills/objectstack-data/rules/relationships.md",
        "skills/objectstack-ui/SKILL.md",
        "skills/objectstack-ui/evals/views-apps-actions-pages.json"
      ],
      "deviations": [
        "Test placed as a top-level describe in packages/cli/test/data-model-rules.test.ts, not a new card-named file: AGENTS.md ruling record 6583487846 (shared harness file) outranks the dispatch order.",
        "Precondition and rule cover the CHILD object too, and lookup children with inlineEdit: the batch route judges bulk on every op's own object (packages/rest/src/batch-routes.ts).",
        "Ratchet rows for relationships.md (4232 -> 4229) and lint-rules.md (970 -> 934) lowered to their measurements."
      ],
      "mcp_calls": "5 — issue_read x4, pull_request_read x1 (reads only)",
      "api_writes": "3 — fleet relay pr_create (#34600); os-dev-report comment on #34567 and on #34566",
      "open_questions": [
        {
          "question": "Needs contract review (Tier H, skills/**) at head 4e35eed78d; routed by the seat.",
          "options": [
            "A route to the L2 review seat",
            "B hold"
          ],
          "recommendation": "A"
        },
        {
          "question": "Reach is `os lint` only: lintDataModel is lint-only by DIRECT_CALL_RATCHET, so `objectstack dev` / `os build` stay silent (the card's acceptance names compile time).",
          "options": [
            "A accept os lint reach",
            "B file a card to register the rule on all three commands"
          ],
          "recommendation": "A, the delta places the rule in data-model-rules.ts; B is a product decision"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — relationship/line-items-inline-edit tests `inlineEdit !== true`, so a *_line child already declaring inlineEdit 'grid' or 'form' still gets the 'consider inlineEdit: true' suggestion (suggestion-level misfire)"
      ]
    }

    Stamped 2026-11-17T02:59Z.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34567,
      "issues_folded": [
        34567,
        34566
      ],
      "status": "done",
      "branch": "claude/project-thread-6lyn9b",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34600",
      "head": "2da6508c15d60e314f3a3611c04ed970665f4f0e",
      "session": "session_01ADHkmSMwg7iTEBBE4qY9Y3",
      "premise_still_valid": true,
      "summary": "objectstack-ui Form Views makes `simple` the default at any field count, narrows `tabbed` with its cost, and adds one paragraph on collapsed groups, `columns` and `modalSize`, with eval case 19. Both skills state that a parent or child declaring `enable.apiMethods` must list `'bulk'` for the inlineEdit batch save. The warning `relationship/inline-edit-needs-bulk` is a standalone rule `lintInlineEditBulk` registered in AUTHORING_RULES (advisory, commands ALL), so `os lint`, `os validate` / `objectstack dev` and `os build` all report it and none fails on it; it is no longer inside lintDataModel. Restatement was cut first; the objectstack-ui token row rises by the measured remainder (3833 -> 3888 -> 3921), the two objectstack-data rows follow their measurements down.",
      "tests": "cli data-model-rules.test.ts 64/64 (+8 new, one through runAuthoringRules on lint/validate/build) at 2da6508c15. At 09c5d36610: @objectstack/lint test 214 files / 9091 tests pass (authoring-rule-wiring included); 11 registry-reading cli test files 262 tests pass; lint and cli typecheck exit 0. Ablation rerun on the registry rule: verdict line mutated (marker ABLATED_34566 in dist), 7 hit cases red (registry case included) / 1 silence case green; restored blob == HEAD 0d6fd144419e, rebuilt, --absent preflight, 64/64 green.",
      "gates": "123 derived (dispatch-gates --commands at 2da6508c15, docs transcripts included), 123 run, all exit 0 in the final record; first pass had spec check:docs exit 1 (stale json-schema prerequisite) and spec check:skill-examples exit 3, both rerun exit 0. --ran: 0 NOT-MEASURED. First pass also caught check:docs-transcript-drift exit 1 (author-time rules 68 -> 69), fixed in 2da6508c15. overlap-check clean (exit 0) at 2da6508c15.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "skills/objectstack-ui/SKILL.md 302 -> 304 lines (+2; order budget at most +10), tokens 3833 -> 3921; relationships.md 414 -> 414 lines, tokens 4232 -> 4229; lint-rules.md 52 -> 49 lines, tokens 958 -> 934; all SKILL.md 4605 -> 4607 and skills/ tree 20936 -> 20945 (merge base 8dd8192cbf)",
      "files_changed": [
        ".changeset/34567-form-layout-inline-edit-bulk.md",
        "content/docs/deployment/cli.mdx",
        "content/docs/deployment/validating-metadata.mdx",
        "content/docs/getting-started/build-with-claude-code.mdx",
        "content/docs/ui/react-pages.mdx",
        "packages/cli/test/data-model-rules.test.ts",
        "packages/lint/src/authoring-rules.ts",
        "packages/lint/src/data-model-rules.ts",
        "packages/lint/src/index.ts",
        "scripts/check-skills-token-ratchet.mjs",
        "skills/objectstack-data/references/lint-rules.md",
        "skills/objectstack-data/rules/relationships.md",
        "skills/objectstack-ui/SKILL.md",
        "skills/objectstack-ui/evals/views-apps-actions-pages.json"
      ],
      "deviations": [
        "Test placed as a top-level describe in packages/cli/test/data-model-rules.test.ts, not a new card-named file: AGENTS.md ruling record 6583487846 (shared harness file) outranks the dispatch order; accepted by o2-S.",
        "Precondition and rule cover the CHILD object too, and lookup children with inlineEdit: the batch route judges bulk on every op's own object (packages/rest/src/batch-routes.ts); accepted by o2-S.",
        "Ratchet rows for relationships.md (4232 -> 4229) and lint-rules.md (970 -> 934) lowered to their measurements; objectstack-ui row 3888 -> 3921; accepted by o2-S.",
        "Rule moved from lintDataModel to its own AUTHORING_RULES entry (o2-S round 2) so all three commands report it; references/lint-rules.md keeps its os lint framing, still true, rather than spend tokens the file no longer has."
      ],
      "mcp_calls": "5 — issue_read x4, pull_request_read x1 (reads only); none this round",
      "api_writes": "round 2: os-dev-report comment on #34567 and on #34566 (this); PR body update left to the seat (draft at project share objectstack-seat2/34600-body-r2.md)",
      "open_questions": [
        {
          "question": "Needs contract review (Tier H, skills/**) at head 2da6508c15; routed by the seat.",
          "options": [
            "A route to the L2 review seat",
            "B hold"
          ],
          "recommendation": "A"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — relationship/line-items-inline-edit tests `inlineEdit !== true`, so a *_line child already declaring inlineEdit 'grid' or 'form' still gets the 'consider inlineEdit: true' suggestion (suggestion-level misfire)"
      ]
    }

    Stamped 2026-11-17T04:01Z.


    Generated by Claude Code

  9. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationdomain:skillspriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions