Skip to content

console: on an approval-locked record whose default page has a body table, the "Locked for approval" chip draws twice (above the table and above the next section) #35253

Closed
1 of 1 issue completed

Description

@objectstack-fleet

repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g

Filing gate ①: a user-visible defect, reproduced once in the console.

Business reason. A deal waiting for approval shows a "Locked for approval" chip, so a rep knows why the fields are read-only. When the record's line items are a body table (relatedList: 'primary', record page v4), the chip draws twice on one page. The page reads as if two separate locks applied. Every object with a body table and an approval process shows this. hotcrm's opportunity does since objectstack-ai/hotcrm PR #2671.

Reach (measured once). hotcrm PR #2671 head 98f790dd, @objectstack/* 18.6.0, objectstack dev. A pending-approval crm_opportunity was opened as na.rep and as sales.manager at 1440 px. "Locked for approval" draws above the line-item body table and again above the next details section. Control: the retired authored page (no body table) drew it once. The evidence is the before/after screenshots of the same deal, in the hotcrm seat report on #2382.

Expected: one lock chip per record page, however many body sections the synthesized page splits the details into.

Seam. renderer:plugin-detail buildDefaultPageSchema: the details body is split around a body table, and each part draws the approval-lock chip.

Reader. objectstack triage grades it and routes it to the record-page lane. Not a claim; it awaits triage.

Dedupe (repo:objectstack-ai/objectstack is:issue, open and closed): Locked for approval chip twice → 51 hits, all QA runs or unrelated; approval lock badge duplicated body table → 18, none on point.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch: p2 · domain:ui · pm:queue. Not a queue jump: the "Locked for approval" chip draws twice on a default page with a body table. UI polish.

  2. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 18, 2026
  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area backfill under the rules of #35223 (daily reconciliation) — area:ux · Bug. The grade set at first touch on 2026-11-18 is unchanged: the one re-grade pass is #35205's.

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Claim: PM loop round 11 · area ux-2 (seat 5 06:45Z: record-page p2s in order) · 2026-11-19T09:50Z
    Area: ux-2
    Session: session_01Utp6CZrgaiMgTJCnswR6jQ
    Account: os-bill
    Branch: claude/issue-35253-approval-lock-chip-once
    Worktree: objectstack-issue-35253
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/plugin-detail/src/** (the approval-lock chip in DetailView.tsx ~:1730-1781 and the default page's body split), their tests, root .changeset/. ⛔ No packages/spec/**, no app-shell source, no new i18n key. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui plugin-detail in objectstack draws the "Locked for approval" chip once per details part when the default page splits the details around a body table; no platform path covers it; every reader of an approval-locked record whose object has a body table
    Thread-read: 7001639904
    Premise: holds as filed (measured on @objectstack/* 18.6.0, HotCRM PR #2671); the chip is drawn in DetailView.tsx (detail.lockedByApproval, ~:1781) per details node; dev re-measures on origin/main first
    Serial constraints cleared: none — no open PR touches ui/packages/plugin-detail/src/** (live read of all open PRs' files at claim time; #35421 merged a5ddeb6ead)
    Pre-claim lane: domain:ui (ui/packages/plugin-detail/**)
    Pre-claim deps: none
    Prior rulings read: lockRecord, approval lock, body table, record page v4 → the lockRecord: false node rule in DetailView.tsx ~:1730 binds (chip only where the lock applies); none conflicts

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
    os-dev-report

    {
      "issue": 35253,
      "status": "done",
      "branch": "claude/issue-35253-approval-lock-chip-once",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35478",
      "head": "0122020a",
      "session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
      "premise_still_valid": true,
      "summary": "Reproduced on origin/main a5ddeb6e: the laid-out default page splits its details around a primary body table into two record:details parts, and each part's DetailView drew the approval band (2 'Locked for approval' chips). Fix: a module-internal ApprovalBandContext (defaultRecordPage.ts, default true); RecordPageColumns draws the details column via drawDetailsNodes, which sets it false around every record:details node after the first; DetailView gates its approval band on it. The band stays on the first part, above the table; authored pages, standalone DetailView and the drawer read the default and are unchanged; resolveApprovalLock (lockRecord:false => never locked) is untouched.",
      "A1": "CONFIRMED. Test commit df979eef (no fix): split page columns.details = [record:details, record:related_list, record:details]; wide/two-column/stack each drew 2 'Locked for approval' chips (AssertionError: expected [span, span] to have a length of 1 but got 2); Tests 4 failed | 22 passed (26), VERDICT command-exit 1.",
      "A2": "Mechanism: only the FIRST record:details node of the laid-out details column draws the band (ApprovalBandContext=false on later parts, set in RecordPageColumns). An authored page never mounts RecordPageColumns, so its one details node reads the default true; a page with one details part has that part first. lockRecord:false is a property of the approval node, not of a details part: the band's locked/editable reading is resolveApprovalLock over host-threaded state, identical for every part, so the first part draws the same band ('In approval · editable', once).",
      "A3": "CONTROLS green on both red and fix runs: one-details default page draws 1 chip; authored details body outside the laid-out page draws 1 chip; no approval draws no band (no role=status). Split page draws exactly 1 chip, before the body table in document order, at wide, two-column and stack.",
      "tests": "0122020a: pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/ => Test Files 387 passed | 1 skipped (388), Tests 3519 passed | 18 skipped (3537), VERDICT command-exit 0. pnpm --filter @object-ui/plugin-detail type-check (tsc --noEmit && tsc -p tsconfig.test.json) => VERDICT command-exit 0; RecordPageColumns.test.tsx counted 1 in the test program's --listFiles. Reverse verification = red-first on df979eef (test-only commit), green on 0122020a; no separate ablation (tests import the source by relative path, no dist hop).",
      "gates": "local: build closure pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-detail^...' build => VERDICT command-exit 0; dispatch-gates --commands (38 derived on 0122020a) each run, all 38 EXIT=0 captured before any pipe; dispatch-gates --ran => 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN; ui check-new-cross-file-line-citations => 0 new, exit 0. CI families: in_progress at report time (not waited, per os-dev.md).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "files_changed": ["ui/packages/plugin-detail/src/defaultRecordPage.ts", "ui/packages/plugin-detail/src/DetailView.tsx", "ui/packages/plugin-detail/src/RecordPageColumns.tsx", "ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx", ".changeset/35253-approval-band-once.md"],
      "deviations": "PR body maintainer brief carries four Chinese lines per the dispatch order, not os-dev.md's six. Clause-②: no and Metadata-protocol: none measured as declared (no spec, no authorable key). New pin added to the existing RecordPageColumns.test.tsx harness (opt-in stub body) rather than a new file. test:repo not run locally (diff touches no repo-project test).",
      "mcp_calls": "0",
      "api_writes": "2 via fleet-write relay — pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/35478/assignees), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35253/comments); plus git push (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — a synthesized page that cannot be laid out (buildDefaultPageColumns null; host draws its page:tabs strip) still draws one band per details part; unmeasured on any real object; in PR Acceptance notes",
        "carrier: none · noted, not filed — an authored page placing two record:details nodes draws a band in each; outside the card's Expected; in PR Acceptance notes"
      ]
    }
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Closed-out · area ux-2 · 2026-11-19T12:00Z

    reading value
    PR #35478 MERGED through the merge queue as 34308dc92a (Fixes #35253; this card closed completed)
    contract record none owed (Clause-②: no, Metadata-protocol: none, not governed); L1-a ACCEPT 7007712812

    Delivered: on the laid-out default record page, an approval-locked record shows the lock band once, on the first details part above the body table, instead of once per details part. The lock rule itself is unchanged.
    Not done here: the page-tabs fallback (#35483) and an authored page with two details nodes (#35484), both p3 and nested under this card.
    State: pm:dispatched removed; card closed.

  8. removed
    pm:dispatched
    on Nov 19, 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