Repository navigation
feat(plugin-detail): a double-click on the record page details divider resets the column to its default width - #36474
Conversation
…der resets it to the default width Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
…vider-double-click-reset
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Final head · 2026-11-22T13:36Z · |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 REWORK · head 维护者速读
要改的(2 项)
席位核对
|
…the pinned layout Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Delta head · 2026-11-22T14:25Z ·
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT(增量)· head 维护者速读
增量核对(
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA Landing · 2026-11-22T14:31Z · head
State: ready + auto-merge now. |
Requested by Steedos · project thread
repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
Fixes #36226
Clause-②: no — no public type or accept set; one interaction on an existing control
Metadata-protocol: none
维护者速读
What changes
The record full page's pinned left column (the details beside the tabs on a wide full page) already has a divider,
DetailsWidthHandle, that drags, moves with the arrow keys and Home / End, and keeps the width per reader and per object. A double-click on it now keepsRECORD_PAGE_DETAILS_WIDTH(400), the same constant the page falls back to when nothing is kept (the console's workspace preference passes it as the fallback; the plugin's own clamp uses it for an absent width). So the reset writes the default as the kept width, and the next record of that object opens at 400.The double-click clears any in-flight drag and its preview first, so a press still down when it lands does not go on to preview or commit a width.
Card items 1, 2, 4 and 5 were already delivered by feat(record-page): on a wide full page the details are pinned left beside the record's tabs; the right summary rail is retired (#35890) #36136 and 记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890: the divider, its limits, the remembered width, and the comment panel left unchanged. They are measured in the Console below. This PR adds item 3, the double-click reset. The card's own numbers (a right rail of 320, dragged between 280 and 560) describe the rail that feat(record-page): on a wide full page the details are pinned left beside the record's tabs; the right summary rail is retired (#35890) #36136 removed. The default reset to here is 记录页宽屏整页:第一个页签(字段)钉到左栏,右边直接是其余页签;没有其他页签时字段撑满;取消右栏摘要卡(图 41) #35890's 「左栏宽 400」, not a new number.
README (the package ships it): the record-page section's layout table and its tab-row paragraph now describe today's layout, as read from
RecordPageColumnsandrecordPagePinsDetails:The old 1120 / 760 px right-column tiers and "there is no tabbed tier" are gone. Two later paragraphs (the related panels' count-first loading, and "One header serves every tier") were not re-measured and are carried to plugin-detail README: the RelatedCardStack and record page tiers paragraphs no longer match the count-first related panels #36493.
Read first, by risk:
ui/packages/plugin-detail/src/RecordPageColumns.tsx: theonDoubleClickonDetailsWidthHandle. It commits the unclamped default, neverclamp(400), so a narrow window does not store a smaller width as "the default".ui/packages/plugin-detail/README.md: the rewritten table under "One record page, laid out by its width".ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx: the newitin the objectstack#35890 describe, with a host stand-in that re-reads its store on every mount.Console evidence
This branch's Console (vite) runs against a fresh
examples/app-crmbackend (--fresh, seeded). The browser is headless Chromium at 1440×900 @2x, zh-CN, signed in as the seeded admin. The page is 客户 (crm_account), a synthesized record page. Readings come from the separator'saria-valuenowand the column's measured width.crm_contact) recordComment panel. At 1920×1080 @2x with the comment panel open beside the page, before and after a drag of +120: the column goes 400 → 520, then a double-click returns it to 400. The comment panel measures 380 px at each of the three readings. At 1440 with the panel open, the page content is under 744 px, so the page does not pin and there is no divider to drag (05-comments-open): the details are the 「详情」 tab and the panel is still 380.
Narrowing the window. At 1280, 1100, 1000, 900, 800, 700 and 600 px wide, the document never scrolls sideways (
scrollWidthequalsclientWidthat each). The column stays 400 down to 900, where the divider's max is 412. At 800 and below the page is no longer pinned (08-narrow-900, 08-narrow-800). The only sideways scrollers inside the page are the related lists' own grids, which scroll by design.HotCRM's 客户 page: NOT MEASURED live. The box had about 1 GB of memory free during this run, shared by five devs, and an earlier dev ran out of memory building the crm closure. A static reading of HotCRM
origin/main(689166c): it authors no record page forcrm_account. Its onlycrm_accountpage,account_workbench, is a list interface page, and its authored record pages are project, quote, contract, lead and case. So HotCRM's 客户 record page is this same synthesized page and component.Tests
aria-valuenowon the separator, read from the new test:Green on 56118cb: RecordPageColumns.test.tsx (no code or test change since)
Ablation (once): the reset's commit removed, the pin reds, then restored
Acceptance notes
Each card acceptance line, read on the layout after #36136 and #35890:
ui/resets from the keyboard. The record drawer's resize handle and the Gantt splitter both reset on double-click only, so there is no convention to follow.scrollWidthexceeds itsclientWidthby 6 px at 1440 and 900. It draws no horizontal scrollbar in this Chromium, and this PR does not touch that layout.Verification
Two minutes: on a wide window (content at least 744 px), open any record as a full page. Drag the divider between the fields and the tabs, then double-click it. The fields column snaps back to 400 px. Open another record of the same object and it is still 400.
Local gates
dispatch-gates --commandsderived 38 families, and 35 exited 0.check:query-options-erasureandcheck:type-check-debttimed out on the shared box, andpnpm --dir ui exec vitest run scripts/was not run. All three are NOT MEASURED locally and left to CI.pnpm --dir ui check:new-line-citations(0 new citations),check:nul-bytes,check:published-files,check:closed-ceremony-text,check:skill-identifier-liveness,check:watch-hint-literal,check-comment-mask-corpusandcheck:doc-authoring. All exited 0.plugin-detailtype-check and its whole suite: not run locally (shared lock), left toType Check UIandTest UI.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jRaJbQ4vqdv4J5peqA