Repository navigation
fix(plugin-detail): draw the approval band once on a record page split around a body table - #35478
Conversation
Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
…t around a body table Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Final head for review · area ux-2 · 2026-11-19T11:23Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT · head Readings: K=13 (under 15, no main merge owed); Code (5 files, +191/−11).
Pins. Declaration: agreed. Routing. Not governed, no contract face: ux-2 lands it. A new push needs a fresh L1 only if it changes more than a main merge. Follow-up (non-blocking, file before landing). The dev named two out-of-scope cases in the acceptance notes and did not file them. File each as a p3 card under #35253 so they are not lost:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Landing · area ux-2 · 2026-11-19T11:27Z
State: draft → ready + auto-merge (merge queue). #35253 closes on merge via |
Fixes #35253
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The synthesized default record page splits its details around a body table (a
relatedList: 'primary'list): onerecord:detailspart per run of sections. Each part mounts its ownDetailViewwith its header suppressed, and each drew the record's approval band, so an approval-locked record showed "Locked for approval" twice: above the table and again above the next section.Mechanism: a module-internal
ApprovalBandContext(indefaultRecordPage.ts, defaulttrue, not in the barrel, neither aDetailViewprop nor a schema key, the same pattern asEmptySectionsLineContext).RecordPageColumnsdraws the details column throughdrawDetailsNodes, which wraps everyrecord:detailsnode after the first in the provider withfalse;DetailViewgates its approval band on it. The band (status chip, recall lever, tally, recall error) therefore stays with the first details part, above the body table.Why this does not drop the chip elsewhere:
DetailViewand the record drawer are never underRecordPageColumns, so they read the defaulttrueand keep their band.resolveApprovalLockover the host-threaded state, the same for every part. AlockRecord: falsenode reads as an editable approval ("In approval · editable"), now drawn once, never as locked.No spec key, no app-shell source, no new i18n key.
Tests
New top-level describe in the existing
RecordPageColumns.test.tsxharness ("the approval band is drawn once per page"). The harness'srecord:detailsstub now optionally mounts theDetailViewthe real block mounts (showHeader: false, inline edit on), opted in by this describe only; the other describes keep the bare stub.lockRecord: falseapproval on the split page draws "In approval · editable" once and no lock chip.Red first, on the test commit before the fix (df979ee, test only)
The three CONTROL cases were green on that run.
Green on 0122020
Acceptance notes
buildDefaultPageColumnsanswers null, so the host draws it as its tab strip) renders its Details tab through the genericpage:tabsblock, outside this package; a split there would still draw one band per part. Not measured on any real object; noted, not filed.record:detailsnodes on purpose still draws a band in each. The card's Expected is about the synthesized split; noted, not filed.Verification
Derived gate families (dispatch-gates --commands, 38) on 0122020
All 38 derived commands ran locally, each EXIT=0 (captured before any pipe);
dispatch-gates --ranreconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN.check:new-line-citations(ui): 0 new citations. Every other family is CI's and is read from this PR's check-runs.Generated by Claude Code