Skip to content

审批请求页:「提交时的内容」里分组标题和字段标签几乎一样,整页读起来像没有分组 #34707

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「还有审批单显示记录所有字段的时候是不是没有带分组」

承接已合并的 #34588(PR #34631)。那张卡让请求页显示完整记录,这一点已生效;本卡只管分组的呈现。

现状(读码与实测,objectstack origin/main a34eb07,本地 HotCRM 实例,大额商机审批)

  • 分组是有的:ui/packages/app-shell/src/views/approval-decision/SubmittedRecord.tsx 按对象默认记录页的分组(deriveRecordDetailSections)输出,实测商机有「基本信息、财务信息、销售流程、资格评估、商机叙述、分类…」。
  • 但分组标题画成 mb-2 text-xs font-medium text-muted-foreground(:420):12px、灰色、字重 500;字段标签是 text-[11px] text-muted-foreground(:432):11px、同一个灰色。两者只差 1px,标题上下没有分隔线、没有额外间距、没有图标。
  • 实测:一屏里「基本信息」「财务信息」「销售流程」和「商机名称」「金额」「阶段」看起来是同一级的灰色小字,40 多个字段连成一片。
  • 对比:同一个对象的记录页,分组是带图标、14px 以上、前景色的标题,每组一张卡片。

要做的

  1. 分组标题用和记录页同一套样式(图标、字号、前景色),组与组之间有分隔线或卡片边界,以及明显大于字段行距的间距。优先直接复用记录页的分组标题组件,而不是再写一套。
  2. 保持现有决定:所有分组展开,不因声明了折叠就收起(审批人要看全)。
  3. 长记录加一条分组导航(点分组名滚到该组),可与专题里的 分组表单:加分组导航,点一下滚到对应分组,并标出还有必填未填的分组 #34605 共用组件;如果 分组表单:加分组导航,点一下滚到对应分组,并标出还有必填未填的分组 #34605 还没落地,本卡先只做第 1 项。

不做的

  • 不改显示哪些字段、字段顺序和「已改动 / 当前值」的标注。

验收

  1. 商机的审批请求页上,一眼能分出 6 个以上的分组,标题样式与商机记录页一致。
  2. 亮色、暗色两套主题下标题与字段标签都有清楚的层级差。
  3. 手机宽度下分组标题不被截断。

Reader: domain:ui 车道,改 SubmittedRecord.tsx。

Dedupe: repo:objectstack-ai/objectstack approval request page section heading group title snapshot 分组 标题 → 0 张相关(含已关;命中的都是席位帖和 QA 报告)。

Activity

  1. added
    enhancement
    priority:p1
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: pm:queue · 2026-11-17T07:47Z

    ⛔ Not a claim.

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 3 · 2026-11-17T08:13Z
    Session: session_01WGufzgwLiKcfujYUug7sPs
    Account: os-support-ai
    Branch: claude/issue-34707-approval-section-headings
    Worktree: objectstack-issue-34707
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/views/approval-decision/** (SubmittedRecord.tsx + tests), reuse of existing exports from @object-ui/plugin-detail / @object-ui/components (no edit there), root .changeset/
    Container & model: S/M, mode:subagent (area o3-B), model: TIER_DEFAULT (dispatch-gates --tier on SubmittedRecord.tsx: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6942027660
    Premise: holds (area read at origin/main 77b42a1: SubmittedRecord.tsx section label mb-2 text-xs font-medium text-muted-foreground ~:420 vs field label text-[11px] text-muted-foreground ~:432; sections from deriveRecordDetailSections; #34605 section nav merged as PR #34642 b1da9f5, so card item 3 is in scope; FormSectionNavContext exported from @object-ui/components)
    Serial constraints cleared: overlap-check probe on SubmittedRecord.tsx vs origin/main 77b42a1e: clean, 0 open PR heads; predecessor #34588 (PR #34631) merged; no in-flight card holds approval-decision/**
    Pre-claim lane: domain:ui — ui/packages/app-shell/src/views/approval-decision/**; routed to area o3-B by the seat (07:45Z)
    Pre-claim deps: #34605 merged (item 3 condition 「如果 #34605 还没落地,本卡先只做第 1 项」 is met); no Blocked-by:
    Prior rulings read: card keeps the standing decision 「所有分组展开,不因声明了折叠就收起(审批人要看全)」 and 「不改显示哪些字段、字段顺序和「已改动 / 当前值」的标注」; maintainer quote 「还有审批单显示记录所有字段的时候是不是没有带分组」; 0 ADR hits on section heading / approval snapshot terms.

    Lease o3-B (seat post #34584); child of epic #34571. Clause-② note: no holds while no new exported symbol or i18n key is added; reuse existing components; otherwise the dev stops and reports.

  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#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
    os-dev-report

    {
      "issue": 34707,
      "status": "done",
      "branch": "claude/issue-34707-approval-section-headings",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34743",
      "session": "session_01WGufzgwLiKcfujYUug7sPs",
      "premise_still_valid": true,
      "summary": "Draft PR #34743, head 39afff86a. On the approval request page, each titled section of the As submitted card (SubmittedRecordCard) is now a level-4 heading under the card's level-3 heading. It copies the classes of the default record page's section header: DetailSection's frameless title row, 13px semibold, foreground colour, group icon through LazyIcon, hairline below. It wraps instead of truncating, and sections are spaced at space-y-6. DetailSection renders its own fields and does not export its header, so it could not be reused here. Every section stays open; a group declared collapse: collapsed is drawn open, now pinned by a test. With two or more titled sections, a module-internal SectionNav strip at the top of the card scrolls to each heading. Its entries are typed with FormSectionNavItem's key/label/anchorId, and it is named by the card heading through aria-labelledby, so no i18n key is added. Mechanism finding: #34605's drawn strip FormSectionNav lives in plugin-form and is not exported from it (neither the package root nor ./core). @object-ui/components exports only the reporting contract (FormSectionNavContext/Item/Sink), which a form renderer feeds, and this card has no form renderer. Exporting FormSectionNav would flip Clause-2, so I did not; the cost is a second, smaller nav strip, without scroll-spy (see open_questions). A sticky nav was tried in the browser and dropped: the record page's scroller pads its content by 12px, and the scrolled fields showed through above the stuck strip. Files changed: SubmittedRecord.tsx, submittedRecordPlan.ts (carries the group icon), ApprovalDecisionPanel.fullRecord-34588.test.tsx (new top-level describe in the shared harness), .changeset/34707-approval-section-headings.md (patch, @object-ui/app-shell). No exported symbol and no i18n key were added. Which fields show, their order and the Changed / Current value marks are unchanged.",
      "tests": "At head 39afff86a: pnpm --dir ui exec vitest run --maxWorkers=2 --reporter=verbose packages/app-shell/src/views/approval-decision/ plus the 4 importer/ratchet files (ApprovalsInboxPage.queueStepper-34586, openPathObjectReaders-12811, DeclaredActionsBar.approverFold-34361, product-neutral-renderer.ratchet) -> Test Files 12 passed (12), Tests 136 passed (136), lock VERDICT command-exit 0. The 5 new #34707 cases are listed as passing. pnpm --filter @object-ui/app-shell run type-check (tsc --noEmit, then tsc -p tsconfig.test.json) -> VERDICT command-exit 0 at 39afff86a. Ablation with scripts/ablation-replace.mjs (the test imports source, so no build leg): (1) nav threshold 2 -> 1 gave 1 failed | 11 passed (the CONTROL case); (2) SectionHeading -> the old muted div gave 4 failed | 8 passed. Both restores: blob == HEAD and git diff HEAD empty. Narrowing declared: the full packages/app-shell suite (~2,300 files) was started, then stopped by me after 21 min at maxWorkers=2; it is left to CI Test UI. Browser verification DONE on my own stack (showcase backend --fresh :4377, Console vite :5377, Chromium /opt/pw-browsers): seeded Expense Report Sign-off request (Report and Totals groups), desktop 1400px and phone 390px, light and dark. Headings 13px/600 in rgb(2,8,23) light and rgb(248,250,252) dark; field labels 11px/400 in rgb(100,116,139) light and rgb(148,163,184) dark. Not truncated (scrollWidth == clientWidth), document width 390 (no sideways scroll), a nav click puts the heading 12px below the scroller top. A one-group Announcement request at 390px shows its heading and no nav. Both servers were stopped by recorded PID.",
      "gates": "Derived with node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (38 families). All 38 exited 0, each exit code captured before any pipe, on 4571eff5f. The final commit 39afff86a changed only class strings, a comment and one changeset sentence. The content-reading families were run again on 39afff86a, all exit 0: check:nul-bytes, check-adr-0087-registration, check-changeset-no-major, check-empty-changeset, check-closing-keyword-parity, check:published-files, check:undeclared-dep-imports, check:cross-package-test-inputs, check-comment-mask-corpus. --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. Also: ui check:new-line-citations reported 0 new citations; eslint on the 3 touched files reported 0 errors and 1 warning, react-refresh/only-export-components on useSubmittedRecord, which was there before this change. K = 4 first-parent commits on main since the merge base, so no merge was needed. PR check-runs: in_progress / not read at report time; CI convergence is the seat's.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (5 pushes of the branch, model-free trailers; the first push was refused by check:commit-card-trailers before reaching the remote and was amended), relay pr_create -> POST pulls + POST issues/34743/assignees (os-support-ai) via fleet-write run 44054888282, post-stamped os-dev-report comment on #34707",
      "open_questions": [
        {
          "question": "Section nav reuse: #34605's FormSectionNav is not exported, so this PR draws a module-internal SectionNav (same strip classes, no scroll-spy, typed with FormSectionNavItem). Keep it, or share one component?",
          "options": [
            "A: keep the internal SectionNav as landed. Clause-2 stays no. Cost: a second small strip; about 40 lines with no scroll logic.",
            "B: a follow-up card exports FormSectionNav (or a neutral strip) from plugin-form or components and both surfaces use it. That card is Clause-2 yes (widening) and needs its own claim; about half a day.",
            "C: drop the nav from this PR and ship item 1 only."
          ],
          "recommendation": "A, because the card said 「可与 #34605 共用组件」 (may share), not must; it keeps Clause-2 no; and the strip here needs none of the form's scroll-spy or error-count logic."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: Console UI at 390px width, own showcase stack, sys_approval_request record page (seeded Expense Report Sign-off): the record page's absolutely positioned ManagedByBadge 'System-managed' (RecordDetailView sharedChrome wrapper, absolute right-2 z-50 top-12) is drawn over the As submitted card's 'Open record' link. It was there before this PR, since the card header is unchanged. · evidence: Playwright screenshot phone-light-card at head 39afff86a · dedupe words: approval request page System-managed badge overlaps Open record mobile",
        "carrier: none · noted in the PR Acceptance notes, not filed: the card's '14px or larger' heading size; the default record page's frameless face is 13px, and this PR copies it so the two pages match"
      ],
      "deviations": "Followed AGENTS.md over the dispatch on three points: the commit trailer is 'Co-authored-by: Claude' with no model name (the coordinator's correction says the same; the first push was refused locally and amended before anything reached the remote); the PR footer is the session-URL '_Generated by_' form under a rule line instead of the robot-emoji form; the 维护者速读 brief is in Chinese, as os-dev.md asks, while the rest of the body is English. A new test file was not created: the pins went into the shared harness ApprovalDecisionPanel.fullRecord-34588.test.tsx as a top-level describe (ruling record 6583487846). #34630, which the coordinator asked me to re-read, is an ancestor of my base 77b42a1e (merge-base --is-ancestor exit 0), so the os-dev.md I worked under already carries it."
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered · 2026-11-17T11:05Z

  8. 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

domain:uienhancementpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions