Skip to content

record page: a synthesized page that falls back to page tabs may still draw the approval-lock band once per details part #35483

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Filing gate: ③ an out-of-scope finding of the #35253 dev (os-dev-report 7007256219, PR #35478 Acceptance notes), read in code and not driven live. L1-a named it as owed (ACCEPT 7007712812). It is a follow-up of #35253 and is nested under it.
Reader: domain:ui (plugin-detail synthesized record page). Suggested grade: p3 (no real object measured; the laid-out page, which is the common case, is fixed by #35478).
Dedupe: approval band page tabs, locked for approval twice, lock chip once tabs. Only #35253 matches, and it covers the laid-out page.

维护者速读

  • 用户能看到什么变化:极少数无法按栏布局、退回页签形式的系统默认记录页,审批锁定标识可能仍显示多次。
  • 为什么做:前一张卡只修好了按栏布局的默认页,这是同一问题的剩余情形。
  • 出错会怎样:只影响标识显示次数,锁定规则不变;撤回即可。
  • 要你做什么:无。

Facts (read in code at PR #35478 head 0122020a, not measured on a real object)

  • fix(plugin-detail): draw the approval band once on a record page split around a body table #35478 makes only the first record:details part draw the approval band, through a module-internal context that RecordPageColumns sets to false on every later part.
  • When the synthesized page cannot be laid out (buildDefaultPageColumns returns null), the host draws its page:tabs strip instead, which is not drawn through RecordPageColumns, so each details part reads the default true and draws its own band.

A related case, worth measuring first (L1-a): if the first details part draws no DetailView body (for example every section is empty and folded), the band is suppressed on every later part, so a page could show no band at all. Measure whether that is reachable before deciding it is real.

Ask

Measure whether any object reaches the page:tabs fallback with more than one details part while approval-locked. If it does, apply #35478's rule there (one band per page), with pins for the tabs fallback and CONTROLs for a single part. Also measure the empty-first-part case above and pin whichever answer holds. Clause-②: no and Metadata-protocol: none expected.

⛔ Not a claim.

Activity

  1. added
    pm:queue
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · Cosmetic (a synthesized page falling back to page tabs may draw the approval-lock band once per details part) · read in code → p2: the UX rule has no p3.

  3. added
    priority:p2
    and removed on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    范围衔接:本卡描述的场景(合成的记录页回退到页签时审批信息重复)并入 #35595 的验收。那张卡重排了页签和审批的呈现(审批内容进「审批」页签,页面底部不再兜底)。本卡保持开着,等 #35595 合入后复核再关。

  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:17Z · This card now carries a fold group. Shared mechanism: the record page draws the approval-lock band more than once (synthesized tabs, two details nodes). The cards below, unclaimed and unstarted, are closed into this one so a single claimant fixes them in one PR. Each row's source card keeps its full body; this card closes when every row below and its own ask are done. Grade stays the highest of the group.

  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1
    Session: session_01FEkQ5oLLK7uoxp33riiBJL
    Account: os-project-manager
    Branch: claude/issue-35483-approval-band-once
    Worktree: objectstack-issue-35483
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-G
    File surface: ui/packages/plugin-detail/src/RecordPageColumns.tsx, ui/packages/plugin-detail/src/defaultRecordPage* and the details renderer that reads ApprovalBandContext, + new card-named tests + one changeset. ⛔ Not ui/packages/app-shell/src/views/RecordDetailView.tsx (seat 1, #36147): if the fix needs that file, stop and report (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (dispatch-gates --tier at a5a5312f: no path-derived mandate; default judgement tier), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ApprovalBandContext in @object-ui/plugin-detail (objectstack) defaults to drawing the band on every details part outside RecordPageColumns | #35478 covers the laid-out page; #35595 / PR #35763 moved approvals into their own tab | readers of an approval-locked record whose page falls back to page tabs, or whose authored page has two details nodes (folded #35484)
    Thread-read: 7031172862
    Premise: holds
    Serial constraints cleared: none — no open PR touches this file surface (open-PR file scan at origin/main a5a5312, 02:58Z). Seat 1 still edits RecordDetailView.tsx (#36147, not pushed yet; and #36076 through PR #36208) and RelatedList.tsx (#35901, #36005); this card stays out of both, and the dev runs overlap-check.mjs before each push.

    Pre-claim lane: ui/packages/plugin-detail/** (domain:ui), not governed.
    Pre-claim deps: the card names no Blocked-by:; coordinator comment 7016280301 parked it behind #35595, which closed completed 2026-11-20T07:54:59Z (PR #35763). Fold group: #35484 (closed into this card, comment 7031172862).
    Prior rulings read: check-prior-rulings.mjs --card 35483 at a5a5312: 200 keyword hits, 1 fold ruling on the card (7031172862, maintainer 「只考虑合并没人认领的,没开始开发的,你负责处理」); ADR hits (ADR-0079/0148/0020/0032/0035/0044) none on the band count. Governing text: #35253 / PR #35478 (one band per page). No conflict. This is a measure-first card: after #35595 the case may be gone; the dev measures both rows first and, if neither reproduces, pins the current answer and reports premise_still_valid: false.
    Fold-or-serial: no fold. The other first-wave cards of area a4-G (#35997 #35995 #36078 #35483 #36036) fix different defects in disjoint files; #35995 and #36036 both use the shared requiredWhen prompt but one wires it into the drawer's per-field save and the other recomputes the stage menu's list after a 409, so gate ① (same defect shape, same fix) fails. They run in parallel on separate branches.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL
    os-dev-report

    {
      "issue": 35483,
      "status": "done",
      "branch": "claude/issue-35483-approval-band-once",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36287",
      "session": "session_01FEkQ5oLLK7uoxp33riiBJL",
      "premise_still_valid": false,
      "summary": "Measured first on origin/main a5a5312f with rendered tests through the real record:details and page:tabs renderers on a locked record. The card's stated mechanism is gone: (a) the synthesized page's page:tabs fallback (reachable only through a slotted page placing a page:tabs node in a strip slot) draws 1 band under the host's ApprovalBandOnceScope (2 marks; 2 bands without the scope), and (b) the authored two-details page draws 1 band, already pinned at host level in RecordDetailView.recordOpenRequests-12701.test.tsx; both landed with the approvals-tab rework. What survived is the no-body row both cards name, on the LAID-OUT page: a slotted page's details slot whose first record:details is withheld by requiredPermissions or has showHeader true drew 0 bands (c2, c3), because RecordPageColumns set ApprovalBandContext false on every later part; an all-empty first part still drew 1 (c1). Fix, all in ui/packages/plugin-detail: RecordPageColumns wraps its details column in ApprovalBandOnceScope (first body that reaches the band's place draws it), and the now provider-less, module-internal ApprovalBandContext is removed from defaultRecordPage.ts and DetailView.tsx; resolveApprovalLock untouched. Pins: tabs fallback (one band under scope, CONTROL two without, CONTROL one part) and the laid-out no-body first part (withheld, showHeader, lockRecord false editable once, CONTROLs two drawing parts, one part, one withheld part).",
      "tests": "At head 02f7053d, under os-verify-lock. Pinned files: `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx packages/plugin-detail/src/__tests__/DetailView.approvalBandOnce-35484.test.tsx` -> Test Files 2 passed (2), Tests 42 passed (42), VERDICT command-exit 0. Reverse verification (fix committed first; the three src files restored to a5a5312f with git restore, tests kept): Tests 3 failed | 39 passed (42), VERDICT command-exit 1, failures = the two first-part cases and the lockRecord:false case (Unable to find 'Locked for approval' / 'In approval · editable'); restored with git checkout HEAD, git diff HEAD and git status --porcelain both empty. Whole package `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/` -> Test Files 403 passed | 1 skipped (404), Tests 3737 passed | 18 skipped (3755), VERDICT command-exit 0. `pnpm --filter @object-ui/plugin-detail type-check` (tsc --noEmit && tsc -p tsconfig.test.json) -> VERDICT command-exit 0. Measurement readings came from a scratch test file (deleted, not committed): (a) scoped marks 2 bands 1, unscoped bands 2; (c1) bands 1; (c2) refusal 1 bands 0; (c3) bands 0; (c4) bands 1. No ablation beyond the reverse verification (no dist-resolved subject: plugin-detail tests import ../ source).",
      "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands` derived 38 families at 02f7053d; all 38 run, each exit 0 captured before any pipe (37 check/self-test commands in a loop with exit per line; `pnpm --dir ui exec vitest run scripts/` under the lock: Test Files 172 passed | 2 skipped, Tests 5122 passed | 2 skipped, VERDICT command-exit 0). `dispatch-gates --ran` -> 'Run reconciliation — 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN', exit 0. Not run locally (no renamed/removed exported symbol: ApprovalBandContext was not in the barrel): check-platform-checklist. CI on PR #36287 head 02f7053d at report time: success = Test Core, Dogfood Regression Gate, Build UI Deps, Plan Test UI shards, Live E2E UI, Lint · ESLint, Type Check · source gates, Check Changeset, Governed Surface Queue Guard, PR-body guards, Check PR Size, Auto Label; in_progress = Test UI 1-16/16, Type Check UI, Lint UI, Build & E2E UI, Type Check · workspace / debt ledger / consumer gates, Lint · repo & tooling / docs & code guards / CI, release & engine / PM dispatch-gates / scoped (3). Lint & Repo Gates and TypeScript Type Check aggregates not yet concluded.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — none",
      "api_writes": "2 — fleet-write relay: POST /repos/objectstack-ai/objectstack/dispatches carrying pr_create (POST /repos/objectstack-ai/objectstack/pulls, PR #36287, read-back identical 7013 bytes, no labels/assignees); post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/35483/comments (this os-dev-report). Plus 3 git pushes (empty branch probe, fix commit, changeset commit).",
      "files_changed": [
        "ui/packages/plugin-detail/src/RecordPageColumns.tsx",
        "ui/packages/plugin-detail/src/DetailView.tsx",
        "ui/packages/plugin-detail/src/defaultRecordPage.ts",
        "ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx",
        "ui/packages/plugin-detail/src/__tests__/DetailView.approvalBandOnce-35484.test.tsx",
        ".changeset/35483-approval-band-once.md"
      ],
      "line_budget": "no ledger applies (no skills/** or byte-ratcheted file touched)",
      "net_added_lines": "+228 / -67 = 161 net over 6 files (dispatch-gates changed-lines reading)",
      "deviations": [
        "overlap-check at the fix commit f7a6feed exited 1 naming PR #36234 (seat 1, #36147; shares DetailView.tsx, RecordPageColumns.tsx, RecordPageColumns.test.tsx, defaultRecordPage.ts; textual conflict in RecordPageColumns.test.tsx). The push of that commit went out in the same command line (separator was ';' not '&&'), so it was pushed after the exit 1; nothing was merged around it, the PR is reported here and in Acceptance notes. Whichever lands second merges the test file mechanically.",
        "Pins went into the existing shared harness files (RecordPageColumns.test.tsx, DetailView.approvalBandOnce-35484.test.tsx) as new top-level describes instead of a new card-named file (zone 3), per AGENTS.md ruling record 6583487846.",
        "ApprovalBandContext was removed rather than reused (zone 3 suggested reusing it): the scope replaces its only provider, so keeping it would leave a context nothing sets. Module-internal, not in the barrel.",
        "Commit trailers use the model-free pair (Co-Authored-By: Claude, Claude-Session) per AGENTS.md and the order, over the harness reminder naming a model; the PR footer uses the AGENTS.md session-URL footer form instead of the harness's footer line.",
        "Status is done with premise_still_valid false: rows (a)/(b) were already one band on main (zone 2 item 2), but the no-body row reproduced (0 bands) on the laid-out page, so the PR carries a code fix for that surviving part, not pins only. Fixes #35483 closes the card with both fold rows covered."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the only route to the synthesized page's page:tabs fallback is a slotted page placing a page:tabs node in a strip slot (highlights/header/actions/alerts), which the spec accepts; whether that shape should be authorable is not this card's question (in PR Acceptance notes)."
      ]
    }
  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5oLLK7uoxp33riiBJL
    os-dev-report

    {
      "issue": 35483,
      "status": "done",
      "round": "rework 1 (delta)",
      "branch": "claude/issue-35483-approval-band-once",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36287",
      "session": "session_01FEkQ5oLLK7uoxp33riiBJL",
      "head": "a67d1297 (merge of origin/main a6756a28 into 02f7053d; no rebase, no force-push)",
      "premise_still_valid": false,
      "summary": "I merged origin/main a6756a28, which includes PR #36234 (#36147). There was one textual conflict, in ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx, where both branches appended a top-level describe at the end of the file. I resolved it by keeping both: the #35483/#35484 no-body-first-part describe, then the #36147 field-list describe. RecordPageColumns.tsx, DetailView.tsx and defaultRecordPage.ts merged automatically. What #36234 changed in those three files: RecordFieldListContext and EmptyFieldsRow in the details column, a DetailsColumnCapContext of 1 except on a full page whose details are its only face, and the field-list fold in DetailView. None of it touches the band: the merged tree has no ApprovalBandContext reader or provider, and drawDetailsNodes still wraps the details column in ApprovalBandOnceScope. So the fix still applies as written. After the merge, the no-body first-part cases still draw exactly one band.",
      "tests": "At a67d1297, under os-verify-lock, after pnpm install --frozen-lockfile and a rebuild of the plugin-detail dependency closure (VERDICT command-exit 0). Two pinned files: Test Files 2 passed (2), Tests 46 passed (46). That is 42 before the merge plus the 4 tests #36234 added to RecordPageColumns.test.tsx. Followed by `pnpm --filter @object-ui/plugin-detail type-check` (tsc --noEmit && tsc -p tsconfig.test.json); the chained command reports VERDICT command-exit 0. Reverse check on the merged head (the three src files restored to origin/main a6756a28, tests kept): Tests 3 failed | 43 passed (46), VERDICT command-exit 1. The 3 failures are the withheld first part, the showHeader first part and the lockRecord:false case. Restored with git checkout HEAD; git diff HEAD and git status --porcelain both empty. Whole package `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/`: Test Files 407 passed | 1 skipped (408), Tests 3784 passed | 18 skipped (3802), VERDICT command-exit 0.",
      "gates": "overlap-check.mjs --branch=claude/issue-35483-approval-band-once at a67d1297 against origin/main 4ab12189 printed 'VERDICT clean exit 0': origin/main merges cleanly, and #36279 (shares DetailView.tsx) merges cleanly. The push was chained after it with '&&'. dispatch-gates was not re-derived for the merge: the PR's own diff is unchanged (the same 6 files), and CI re-runs every family on the new head. After the push the PR reads mergeable_state blocked (draft, CI pending), no longer dirty.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — none",
      "api_writes": "1 — post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/35483/comments (this delta os-dev-report). Plus 1 git push (merge commit a67d1297).",
      "files_changed": [
        "ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx (merge conflict resolution only)"
      ],
      "line_budget": "no ledger applies",
      "net_added_lines": "PR diff unchanged: +228 / -67 over the same 6 files; the merge adds only the conflict resolution",
      "deviations": [
        "I removed the worktree after round 0, so for this round I recreated it from origin/claude/issue-35483-approval-band-once at 02f7053d (the same branch, the last pushed sha) before merging."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  10. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered: PR #36287 merged as 46ad134e9c (Fixes #35483, folded #35484). The approval band is drawn once per record page, and on a laid-out page whose first details part is withheld or draws its own header the next details part now carries it (before, no band at all). Rows (a) and (b) were already fixed on main and are now pinned. L1-d ACCEPT 7074881568 (supersedes 7074874886 for its signature only); no follow-up owed. Closing stroke: pm:dispatched removed.

  11. removed
    pm:dispatched
    on Nov 22, 2026
  12. added a commit that references this issue on Nov 22, 2026
    46ad134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:uxdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions