Skip to content

审批请求页:直接显示完整的业务记录,不止「提交时的内容」里的 6 个字段 #34588

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「审批页应该直接显示完整的记录;「动态」在最后」

现状(读码,objectstack origin/main ed45eb9;界面实测在 staging os-4e4qa4)

要做的

  1. 请求页在审批条下方直接显示该业务记录的完整内容:全部可读字段按对象的分组排列、子表(相关列表,只读)、附件。版式与该对象的默认记录页一致。
  2. 显示的是提交时的快照;提交后被改过的字段在旁边标出「已改动」并能看到当前值。
  3. 右栏顺序:审批进度、附件、动态(动态排最后)。
  4. 字段级权限照旧:审批人读不到的字段不显示。

不做的

  • 不让审批人在请求页上编辑业务记录。
  • 不改快照的存储结构;如果快照里没有子表数据,子表按当前值显示并注明「当前值」。

验收

  1. 一条带 10 个以上字段和一张子表的申请,审批人不离开请求页就能看到全部字段和子表行。
  2. 提交后改过的字段有「已改动」标记。
  3. 审批人无权读取的字段不出现。

设计图(静态示意稿,标「新」的是改动;字段和文案以实际元数据为准)

图 4 审批

图 4 审批

Reader: domain:ui 车道,改 RecordSnapshotSummary.tsx / snapshotSummaryPlan.ts 与请求页 packages/plugins/plugin-approvals/src/sys-approval-request.page.ts。

Dedupe: repo:objectstack-ai/objectstack RecordSnapshotSummary SNAPSHOT_SUMMARY_ROWS full record → 2(#32854、#32963,均已关,补文件字段,没有取消行数上限)。

Activity

  1. added
    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: first touch → pm:queue · 2026-11-17T03:21Z

    ⛔ 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_01WGufzgh1zkZzDXL36ckWAG

    Claim: PM loop round 1 · 2026-11-17T03:34Z
    Session: session_01WGufzgh1zkZzDXL36ckWAG
    Thread session: session_01WGufzhGHzMtixGDQoMmtqq
    Account: os-support-ai
    Branch: claude/project-thread-lqqtq3 (card-thread pinned branch: the harness lets the thread push only this name)
    Worktree: objectstack-issue-34588
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: packages/plugins/plugin-approvals/src/** (request page node arrangement), ui/packages/app-shell/src/views/** (snapshot summary, record-detail sections), ui/packages/i18n/src/locales/* (new keys only), test-only ui/apps/console/src/services/approvalRequestsDataSource.servedPage*.test.tsx (pins of the retired 6-field cut), root .changeset/
    Container & model: L, mode:thread (large card; hands its head back to area o3-A), model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes (widening — new @object-ui/i18n locale keys only; no metadata or schema accept set)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6937104748
    Premise: holds; route measured by the thread: keep the request page and render the full business record as submitted (grouped like the default record page, live-value diff), right rail progress → attachments → activity; embedding the business record page rejected (current values, edit actions)
    Serial constraints cleared: shares the request page and app-shell views with #34586 (seat 3 card thread) and #34361 (o3-A, ruled A): overlap-check before each push, merge main after whichever lands first

    Lease o3-A (seat post #34584); child of epic #34571.

  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_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment · 2026-11-17T04:01Z

    File surface widens by one docs-only path: ui/packages/app-shell/README.md, section "Approval request decision panel (record:approval_decision)". It still describes the retired six-row summary, the amount lead and the Details tab that this card removes; the thread rewrites that section to the shipped layout (whole record, Changed marks, child tables, rail order). Nothing else changes in the claim.

    Size: the thread measured 3463 changed lines (+1951/−1512, most deletions are the retired summary and its tests), over the 3000-line human-merge line, so this PR lands as Tier H: it waits for os-zhuang or hotlong before going ready.

    Clause-②: unchanged
    Metadata-protocol: none

  7. added a commit that references this issue on Nov 17, 2026
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-11-17T04:12Z

    File surface widens by one more path: packages/spec/liveness/field.json, row field/settledWhen, a one-clause evidence repoint only. Its evidence cites RecordSnapshotSummary.tsx#FieldFace, which this card deletes; the same behaviour now lives in SubmittedRecord.tsx#FieldFace (calls isDeadlineSettled on the source row). Status, verifiedAt and the rest of the row are unchanged. Required by the check:liveness gate; no schema or src change in packages/spec.

    Clause-②: unchanged
    Metadata-protocol: none

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-11-17T04:38Z

    File surface widens by one test-only path: ui/packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts, one census row classifying the new views/approval-decision/SubmittedRecord.tsx reader of useMetadata().objects as off (the request page's child tables derive the record's owned children from every object; not mounted on an app's object-list open; same class as ReportView and RecordFormPage). No other change to the census.

    Clause-②: unchanged
    Metadata-protocol: none

  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzhGHzMtixGDQoMmtqq
    os-dev-report

    {
      "issue": 34588,
      "status": "pr-open",
      "branch": "claude/project-thread-lqqtq3",
      "pr": 34631,
      "head": "5539896777e2a43bb628746738ebd2b96707c9d3",
      "session": "session_01WGufzhGHzMtixGDQoMmtqq",
      "premise_still_valid": true,
      "summary": "The approval request page (sys_approval_request_detail) now draws the request whole, with no tabs: header, highlights, then record:approval_decision. The panel shows the deciding comment and the declared decision band on top; on the left every readable snapshot field in the target object's default record-page sections and order (FLS unchanged: server redaction plus client field verdicts), each changed field marked 'Changed' with its current value from one findOne, then the record's child tables read-only with a 'current rows' note; on the right, in order, approval progress, attachments, activity (newest first, read only when the sys_approval_action read verdict allows). Nothing editable; snapshot storage unchanged. origin/main merged after #34641 (#34361) landed: the panel's DeclaredActionsBar call site keeps that PR's foldDecisions prop.",
      "tests": {
        "new": ["ui/packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.fullRecord-34588.test.tsx", "ui/packages/app-shell/src/views/approval-decision/submittedRecordPlan.test.ts"],
        "rewritten_pins": ["ui/apps/console/src/services/approvalRequestsDataSource.servedPageSummary-12483.test.tsx (16/16)", "ui/apps/console/src/services/approvalRequestsDataSource.servedPageSummaryAmount-12534.test.tsx (8/8)", "packages/plugins/plugin-approvals/src/sys-approval-request-page.test.ts", "approval-decision panel suites (decidedSnapshot-27502, stepLine-12491, ApprovalDecisionPanel.test)"],
        "post_merge_run": "vitest: packages/i18n/, approval-decision/, DeclaredActionsBar approverFold-34361 + foldOverrides-25877, approvalDecisionFold, RecordDetailView.approval*, openPathObjectReaders-12811, console approvalRequestsDataSource*: 134 files, 2171 passed, 13 skipped, exit 0"
      },
      "gates": {
        "local": "dispatch-gates --commands: 78 derived; --ran reconcile exit 0: 76 run exit 0, 2 NOT-MEASURED (check:dual-build-cjs-loads, check:published-readme-exports: exit 3, need a full build; CI Build Core covers them), 0 unrun. Post-merge: eslint ApprovalDecisionPanel.tsx exit 0; overlap-check exit 0 (clean vs origin/main and #34628 #34642 #34649 #34656 #34665).",
        "ci": "Head 55785f05 (pre-merge): every check-run success or skipped (66 runs, incl. Lint & Repo Gates, TypeScript Type Check, Type Check UI, Test UI 16/16 shards, Test Core 8/8, Build Core, Build & E2E UI, Live E2E UI, Check Changeset, Spec property liveness, Dogfood Regression Gate, Check PR Size). Head 55398967 (merge): running."
      },
      "dogfood_battery": "n/a",
      "mcp_calls": ["github issue_read", "github pull_request_read", "github get_job_logs", "subscribe_pr_activity"],
      "api_writes": ["git push claude/project-thread-lqqtq3 (x7)", "relay pr_create #34631 (draft)", "this comment via post-stamped"],
      "deviations": [
        "Claim amendments approved by the seat: ui/packages/app-shell/README.md (approval request decision panel section), packages/spec/liveness/field.json (field/settledWhen evidence repoint only), ui/packages/app-shell/src/console/__tests__/openPathObjectReaders-12811.test.ts (one 'off' row for SubmittedRecord.tsx), console servedPage*.test.tsx (test-only).",
        "Changeset is patch (Metadata-protocol: none governs the level), not minor.",
        "zh-Hant.ts regenerated by gen:zh-hant, not hand-written.",
        "Merge of origin/main resolved one textual conflict in ApprovalDecisionPanel.tsx: kept this PR's layout and #34641's foldDecisions prop plus its comment on the bar call site."
      ],
      "files_changed": 32,
      "lines": "+1957 / -1516",
      "tier": "H (over 3000 lines); stays draft until os-zhuang or hotlong approves",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["Docs-drift bot lists content/docs/automation/approvals.mdx and others: read, none describe the retired tabs or six-field summary, so no doc edit."]
    }

    Reported 2026-11-17T05:32Z.

  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered · 2026-11-17T06:50Z · PR #34631 (Tier H) merged (e95210d) after os-zhuang's approval; this card closed by its Fixes line. The earlier red queue build (44028768870) was inherited from #34653 (anchor #34688) plus two load-sensitive Test Core 3/8 timing tests outside this surface; the rebuilt queue run went green with the head unchanged. The approver band fold from #34641 is kept on the request page. pm:dispatched removed.

  12. 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:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions