Skip to content

记录整页:字段区和右边栏之间可以拖动调宽,双击复位(Attio 的记录页两栏可调) #36226

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35590(记录页专题,维护者直派)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的(2026-11-22)

  • 「然后记录详情页的左右栏时可以调节宽度的,你再想想还有哪些细节需要测试与确认」(说的是 Attio)
  • 协调席实测后建议「记录整页的属性栏可以拖动调宽,默认按比例,带最小宽度,双击复位」,维护者:「四条都立卡」。本卡是第 4 条。

现状(主干 6c7c6db250,本机环境浏览器实测,自建应用「客户」记录整页)

我们的记录整页:字段区、右边栏、评论栏,都不能拖

  • 1440 宽、评论栏开着:字段区加右边栏共 1060,其中右边栏(最近动态、相关记录)固定 320;评论栏固定 380。
  • 1920 宽:右边栏仍是 320,评论栏仍是 380,多出来的宽度全给字段区。
  • 页面上没有任何可以拖动的分隔线。

Attio(同日浏览器实测):

Attio 记录整页:属性栏、内容区、评论栏

  • 属性栏默认占页面宽度的 30%(1440 宽时 370,1920 宽时 514),最小 320,最大 60%。内容区最小 350。
  • 两栏之间的分隔线可以拖动,双击回到 30%。宽度按对象分别记住。
  • 属性栏拖宽后,动作按钮从图标变成带文字的按钮;内容区变窄后页签收进「更多」。
  • 评论栏固定 320,不能拖。

要做的

  1. 字段区和右边栏之间加一条可以拖动的分隔线。
  2. 右边栏默认宽度不变(320),拖动范围 280 到 560;字段区最少保留 480。
  3. 双击分隔线回到默认。
  4. 宽度按对象记在浏览器里,下次打开同一个对象的记录沿用。
  5. 评论栏不动(固定宽度,不能拖)。

不做的

验收

  • 自建应用「客户」记录整页:拖字段区和右边栏之间的分隔线,两栏宽度跟着变;拖到头右边栏是 280 和 560。
  • 双击分隔线:右边栏回到 320。
  • 拖宽后打开另一条客户记录:宽度沿用;打开一条联系人记录:仍是默认。
  • 窗口缩到字段区不足 480 时,右边栏自动让出宽度,不出现横向滚动条。
  • 评论栏开着时拖动:评论栏宽度不变。
  • HotCRM 自己写的记录页(客户)同样试一次,有右边栏的就能拖。
  • PR 正文附拖宽前后的截图。

协调席自己加的(不是维护者原话)

  • 「要做的」里的所有数字(280、560、480)和「按对象记」。维护者说的只是 Attio 的记录页左右栏可以调宽。
  • 默认宽度不变、评论栏不动。
  • 「不做的」四条。

没有核对的

  • 我们的记录页在窗口变窄时右边栏什么时候掉到字段区下面,没有逐个宽度测;只看到 1100 宽时评论栏改成盖在内容上面。
  • HotCRM 自己写的记录页的右边栏是不是同一个组件,没有读代码确认。
  • Attio 的属性栏在左边、内容在右边,和我们左右相反;本卡不改左右顺序。

Reader: domain:ui 车道。ui/packages/plugin-detail(RecordSummaryRail.tsx)和 ui/packages/app-shell/src/views/RecordDetailView.tsx。

Dedupe: 属性栏 拖动 宽度、记录页 分隔线 拖动(objectstack,open)→ 都是 0。相关:#36149。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    派发记录 · 2026-11-22T02:42Z

    维护者 2026-11-22 对这张卡说「通知派发」。交给 os-sales 的席位 repo:objectstack#1,随后在它的信箱 #35349 里发接手请求。

    同批派发:#36225、#36227。卡上的数字都是协调席提的,已单列。

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · a child the coordinator filed under topic #35590 (maintainer: 「四条都立卡」), measured against Attio in the browser on 2026-11-22 → p2 as set by the coordinator · size S.

  4. added
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat note · 2026-11-22T02:47Z · this card's premise is stale. It was measured on 6c7c6db250, before #36136 merged (48c732c, 2026-11-22T02:14Z). #36136 retired the record page's right rail and deleted RecordSummaryRail.tsx. On a wide full page, fields now sit pinned on the left and the tabs on the right. The divider, its limits and its default need re-measuring against that layout before dispatch. It also waits on #36147 (one-column fields), which edits the same layout. Handed to seat repo:objectstack#4 with the maintainer's agreement (mailbox #36124).

  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim: PM loop round 2 · 2026-11-22T11:20Z
    Session: session_01QsR2jRaJbQ4vqdv4J5peqA
    Account: zhuangjianguo
    Branch: claude/issue-36226-divider-double-click-reset
    Worktree: objectstack-issue-36226
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-record
    File surface: the pinned left column's drag handle DetailsWidthHandle in ui/packages/plugin-detail/src/RecordPageColumns.tsx and the width it commits (the per-reader width kept since #35890), its tests, changeset.
    Container & model: XS, mode:subagent, model: opus (TIER_DEFAULT; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no — no public type or accept set; one interaction on an existing control
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7073131941
    Premise: re-scoped. #36136 (48c732c) retired the right rail; on a wide full page the fields sit pinned on the left and the tabs on the right, and #35890 already ships the draggable divider between them, its limits, keyboard moves and a remembered width. Of this card's five items only item 3 is still missing on origin/main: a double-click on the divider resets the width to the default. The build is that alone; items 1, 2, 4 and 5 are recorded as delivered by #36136 / #35890 when the card closes (seat 1's handover, seat 7 mailbox #36199 7076155195).
    Pre-claim lane: domain:ui — ui/packages/plugin-detail/src/RecordPageColumns.tsx
    Pre-claim deps: none open (#36136, #36147 merged)
    Prior rulings read: resize,divider,separator,width,doubleclick → 1 hits; ADR-0128 D2; thread: none; repo: objectstack-ai/objectstack
    Serial constraints cleared: plugin-detail is shared with in-build #36269 (field-group fold, DetailSection.tsx / synth) and #36149 + #36201 (side preview); this handle is a different component; overlap-check.mjs before each push.
    Resume-from: none
    Fold-or-serial: alone.

  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#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
      "issue": 36226,
      "status": "done",
      "branch": "claude/issue-36226-divider-double-click-reset",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36474",
      "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
      "premise_still_valid": true,
      "summary": "The re-scoped premise holds on origin/main: DetailsWidthHandle already dragged, moved by keys and kept its width, and nothing handled a double-click. I added onDoubleClick. It clears any in-flight drag and preview, then commits RECORD_PAGE_DETAILS_WIDTH (400). That is the same constant the console's useWorkspacePreference passes as its fallback and that clampDetailsWidth uses for an absent width, so the reset replaces the kept width with the unclamped default. I also added a README paragraph on the divider and a patch changeset. The PR body records card items 1, 2, 4 and 5 as delivered by #36136 and #35890, with this PR adding item 3.",
      "tests": "cd ui && pnpm exec vitest run --maxWorkers=1 packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx on head 56118cbc2f, under os-verify-lock (VERDICT command-exit 0): Test Files 1 passed (1), Tests 36 passed (36). The new pin: drag to 520 gives aria-valuenow 520; a double-click with the second press still down gives 400 and a grid of 400px; a move and release after it stay at 400, and the store holds 400; a remount from the store gives 400. Ablation, run once on committed HEAD: scripts/ablation-replace.mjs --delete --hold on anchor 'onCommit(RECORD_PAGE_DETAILS_WIDTH);' (anchor count 1 -> 0, blob a35b4250 -> 36167adc). Result: 1 failed | 35 passed, AssertionError expected '520' to be '400'. Restored with blob == HEAD a35b42507591 and git diff HEAD empty. Two earlier ablation attempts got a lock queue-timeout (99) and restored cleanly without ever running the test. Browser check: in headless Chromium (/opt/pw-browsers/chromium), a raw element with pointerdown preventDefault and pointer capture, double-clicked, logs [down, up, down, up, dblclick:drag=null]. So dblclick fires, after the second pointerup.",
      "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 38 families. 37 ran, each exit captured before any pipe: 35 exit 0; pnpm check:query-options-erasure and pnpm check:type-check-debt exit 124 (timeouts of 240 s, then 280 s, on the shared box). Those two are NOT MEASURED, reason: timeout, and CI owns them. pnpm --dir ui exec vitest run scripts/ was not run: NOT MEASURED, reason: lock budget, and no ui/scripts file was touched. --ran reconciliation: 38 derived, 37 run, 1 UNRUN (that vitest family). That run was on a3cbe23489, before the origin/main merge and the README commit; the gates were not re-run on 56118cbc2f. node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 before the 2nd, 3rd and 4th pushes. pnpm --dir ui check:new-line-citations: 0 new citations, exit 0. pnpm run type-check in ui/packages/plugin-detail: NOT MEASURED, reason: only the @objectstack/* closure was built here, so tsc stopped on TS2307 for unbuilt @object-ui/* dependencies; CI's Type Check UI decides. CI at report time, head 56118cbc2f: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped query-options erasure, slot lookup & corpus, tooling self-tests), PR-body guards and Type Check (consumer, debt ledger, source, workspace) were all in_progress. Opt-in and queue jobs were skipped.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay writes. (1) fleet-write dispatch fw-20261122T131448Z-fb16ed, POST /repos/objectstack-ai/objectstack/dispatches, running pr_create: POST pulls (draft #36474), then POST issues/36474/assignees [zhuangjianguo]. No labels were sent. Read-back: 6267 bytes stored, identical. (2) The os-dev-report comment through post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/36226/comments. Also 4 plain git pushes, which are not REST.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in PR Acceptance notes, not filed: the plugin-detail README's record-page section still describes the two-column tiers from before #35890 ('there is no tabbed tier'). Documentation drift only."
      ],
      "line_budget": "Changed lines vs merge base: 72 (+71 / -1). Code is 9/1, test 45, changeset 10, README 7. That is over 50, so this does not qualify for area self-review: L1-d reviews.",
      "files_changed": [
        "ui/packages/plugin-detail/src/RecordPageColumns.tsx",
        "ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx",
        "ui/packages/plugin-detail/README.md",
        ".changeset/36226-details-divider-double-click-reset.md"
      ],
      "deviations": [
        "Keyboard reset not added: no separator in ui/ resets from the keyboard. navigation-overlay's resize handle and the Gantt splitter reset on double-click only.",
        "overlap-check ran first before the second push (8b2b5ba402), not before the first content push. The empty-branch push and that push both went out before it. Every push after that was preceded by overlap-check, each answering VERDICT clean.",
        "Declared narrowing: the full plugin-detail suite and its type-check were not run locally because the shared lock queued about 9 minutes per acquisition. Test UI and Type Check UI in CI decide.",
        "Merged origin/main (21 commits) into the branch before opening the PR. None of them touched the changed files or packages/spec/src.",
        "This report adds line_budget, files_changed and deviations beyond the os-dev.md template, because the dispatch asked for them.",
        "PR body ending follows the dispatch's exact two-line form (robot line, blank, session URL) rather than os-dev.md's rule-plus-session-URL footer."
      ]
    }
  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
      "issue": 36226,
      "status": "done",
      "branch": "claude/issue-36226-divider-double-click-reset",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36474",
      "head": "4344541a11",
      "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
      "premise_still_valid": true,
      "summary": "L1 rework, both items, with no code or test change. (1) README: the record-page section's layout table and tab-row paragraph now match RecordPageColumns and recordPagePinsDetails as read on this head. The page pins on a full page with at least 744 px of content, another tab and no related table among the fields; the details are the first tab everywhere else. There is no right column. Fields run one per row except on a details-only full page. The tab order is lists, Attachments, Approvals, then 动态 last. The divider paragraph is kept, and the 动态 stream's chips sentence is retained. (2) Live Console evidence: this branch's vite Console against a fresh app-crm backend, zh-CN, 1440x900 @2x. Ten screenshots are on claude/issue-36226-evidence @ 74ac3018d3 and linked in the patched PR body, with each card acceptance line mapped to the new layout.",
      "tests": "No code or test change since 56118cbc2f; RecordPageColumns.test.tsx 36/36 there, and the ablation reds (expected '520' to be '400') as reported before. Console, crm_account, aria-valuenow: before drag 400 (max 664); after a +160 drag 560; another crm_account record 560; a crm_contact record 400, so the width is kept per reader and per object; double-click back to 400; after reload 400, and the first account again 400. At 1920x1080 with the comment panel open: 400 -> 520 by drag -> 400 by double-click, with the panel 380 px at all three readings. At 1440 with the panel open the content is under 744 px, so the page does not pin and there is no divider. Narrowing to 1280, 1100, 1000, 900, 800, 700 and 600: the document scrollWidth equals clientWidth at every width. The column stays 400 down to 900 (max 412) and the page unpins at 800. No page errors. HotCRM: NOT MEASURED live, reason: about 1 GB of memory free on the shared box and an earlier OOM on the crm closure. Static reading of hotcrm origin/main 689166c: no authored record page for crm_account; account_workbench is a list interface page. So its account record page is the same synthesized component.",
      "gates": "On 4344541a11, the README families re-run, each exit captured before any pipe: pnpm --dir ui check:new-line-citations 0 (0 new citations), pnpm check:nul-bytes 0, pnpm check:published-files 0, pnpm check:closed-ceremony-text 0, pnpm check:skill-identifier-liveness 0, pnpm check:watch-hint-literal 0, node scripts/check-comment-mask-corpus.mjs 0, pnpm check:doc-authoring 0. dispatch-gates --commands derived the same 38 families as on a3cbe23489. The earlier NOT MEASURED families stand, left to CI: check:query-options-erasure, check:type-check-debt, ui vitest scripts/. overlap-check: VERDICT clean exit 0 before the push of 4344541a11. CI at report time on 4344541a11: 42 success, 15 skipped, 0 failure, 2 in_progress (Check Changeset, PR-body guards). Type Check UI, TypeScript Type Check, Lint UI, Test UI 16/16, Build & E2E UI and Live E2E UI are success.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "This round, 2 relay writes. (1) issue_patch on #36474, the PR body, via fleet-write dispatch; read-back 11379 bytes sent and stored, identical; it ends with the signed trailer. (2) This os-dev-report comment, POST /repos/objectstack-ai/objectstack/issues/36226/comments via post-stamped.mjs. Plus 2 git pushes, which are not REST: the README commit to the PR branch, and 74ac3018d3 to claude/issue-36226-evidence. Round 1 had 2 relay writes: pr_create and the first report comment.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: none, for the seat to file, as L1 asked · plugin-detail README, section 'One record page, laid out by its width': two paragraphs were not re-measured and are likely stale. The first says 'The related panels load counts first and rows on demand (RelatedCardStack)'; RelatedCardStack is no longer referenced by RecordPageColumns. The second says 'One header ... serves every tier ... A slotted page keeps the synthesized strip, so it takes the tiers'; tiers no longer decide the layout. Published README, docs drift · dedupe words: plugin-detail README RelatedCardStack, record page tiers README, count-first related panels",
        "carrier: none · noted in PR Acceptance notes, not filed: the pinned details column's scrollWidth exceeds clientWidth by 6 px at 1440 and 900. It draws no scrollbar in headless Chromium, and this PR does not touch that layout."
      ],
      "line_budget": "Changed lines vs merge base on 4344541a11: 133 (+102 / -31). That is code 9/1, test 45/0, changeset 10/0 and README 38/30. Over 50, so L1-d reviews.",
      "files_changed": [
        "ui/packages/plugin-detail/src/RecordPageColumns.tsx",
        "ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx",
        "ui/packages/plugin-detail/README.md",
        ".changeset/36226-details-divider-double-click-reset.md"
      ],
      "deviations": [
        "The backend closure was built without @objectstack/console, whose build compiles the whole ui. The Console came from this branch's vite dev server instead, against its own port, as the console-development guide describes.",
        "The record page section was not rewritten end to end. Two paragraphs are left for the seat's card, listed in out_of_scope_findings.",
        "HotCRM was not run live, for the memory reason given in tests.",
        "Keyboard reset still not added: there is no repo convention.",
        "The report carries head, line_budget, files_changed and deviations beyond the os-dev.md template, because the dispatch asked for them."
      ]
    }
  10. removed
    pm:dispatched
    on Nov 22, 2026
  11. added a commit that references this issue on Nov 23, 2026
    e3054b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions