Skip to content

窄记录抽屉:阶段路径按视口而不是容器切换,桌面行在 380px 抽屉里把阶段名截成一个字母 #34696

Closed

Description

@objectstack-fleet

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

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」);在飞卡 #34614 的衍生,⛔ 不是认领。
#34614 验收 1 要求「380px 宽抽屉里…不出现只剩一个字」;o3-A 实测徽标并不截断(os-dev 报告 6941211681),截成一个字母的是阶段路径。维护者 2026-11-17 原话「如果影响本专题相关任务落地的,你也应该挂到这个专题下继续开发」。

现状(实测 + 读码,origin/main)

  • ui/packages/plugin-detail/src/renderers/record-path.tsx:桌面行 hidden sm:flex(:653),每个阶段 flex-1 min-w-0、标签 text-center truncate(:665–668);紧凑行 flex sm:hidden(:723)。两者都按视口断点切换。
  • 手机端记录页:底部操作栏里「编辑」被自定义动作挤进更多菜单;阶段条文字全部被截断 #34595 的紧凑路径只在视口 < sm 生效,卡面写明「不改桌面端」。所以 1280px 视口下的 380px 抽屉仍画桌面行。
  • o3-A 在 Chromium 里测真实 RecordDetailView(380px 抽屉,1280px 视口,七个阶段):每个阶段标签约 33px,读作 'P…'、'✓…'、'Pro…'(Proposal)、'Ne…'(Negotiation);'Closed Won' / 'Closed Lost' 逐词换行。

要做的

  1. 阶段路径的桌面 / 紧凑切换改为按容器宽度(容器查询或测量),记录页在窄抽屉里用 手机端记录页:底部操作栏里「编辑」被自定义动作挤进更多菜单;阶段条文字全部被截断 #34595 的紧凑路径;整页宽屏不变。
  2. 手机(视口 < sm)行为保持 手机端记录页:底部操作栏里「编辑」被自定义动作挤进更多菜单;阶段条文字全部被截断 #34595 的样子。

不做的

  • 不改阶段路径的元数据或交互(点击推进等)。
  • 不改抽屉宽度。

验收

  1. 1280px 视口、380px 抽屉里七阶段路径不出现单字母截断(走紧凑路径,或标签完整 / 带省略号与 title 且至少可读前若干字)。
  2. 宽屏整页记录页的阶段行像素不变(对照)。
  3. 一条 ui/e2e 几何钉子(同 record-path-phone-row.spec.ts 的模式),容器 380px + 视口 1280px,外加宽屏对照。

业务理由与读者

Activity

  1. added
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: pm:queue on seat 3's request · 2026-11-17T07:08Z

    ⛔ Not a claim.

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: label p1 → priority:p1 · 2026-11-17T07:09Z

    ⛔ Not a claim. The grade is unchanged.

  5. added
    priority:p1
    and removed on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 · area o3-A · 2026-11-17T08:11Z
    Session: session_01WGufzg2evNa1V3zxrQq3KX
    Account: os-support-ai
    Branch: claude/issue-34696-path-container-switch
    Worktree: objectstack-issue-34696
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/plugin-detail/src/renderers/record-path.tsx (desktop / compact switch only), new tests beside it under ui/packages/plugin-detail/src/renderers/__tests__/, assertion edits in existing record-path* tests that pin the viewport-keyed switch, one new ui/e2e/record-path-narrow-drawer-34696.spec.ts, root .changeset/
    Container & model: S/M, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier on the surface above: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui/packages/plugin-detail (objectstack): record:path picks desktop row vs compact path by VIEWPORT (hidden sm:flex / sm:hidden), so a 380px drawer at a desktop viewport draws the desktop row with ~33px labels | no platform path covers it | every viewer of a staged record in a narrow drawer, today
    Thread-read: 6941336571
    Premise: holds (read at origin/main 77b42a1, after #34684: desktop row hidden sm:flex with flex-1 min-w-0 stages and text-center truncate labels; compact row flex sm:hidden; o3-A measurement in os-dev report 6941211681 on #34614)
    Serial constraints cleared: #34684 (#34595, same record-path.tsx) MERGED 77b42a1e; no open PR touches record-path.tsx or ui/e2e/record-path* (all 48 open PRs' file lists read); #34614 (this area, ready-no-pr) does not touch record-path.tsx
    Pre-claim lane: domain:ui — every path is under ui/packages/plugin-detail/** or ui/e2e/**
    Pre-claim deps: #34684 merged (done)
    Prior rulings read: record path,record-path,container query,narrow drawer,stage → 15 hits; ADR-0027 §2/§11, ADR-0038 §2, ADR-0045 §5, ADR-0094 D2–D4, ADR-0099 D3, ADR-0116 §3 are stage-field / path semantics, none rules on viewport vs container layout; no ADR names container queries; thread: none. #34595's 「不改桌面端」 stays: the wide page is pinned pixel-identical (acceptance 2).

    Lease o3-A (seat post #34584); child of epic #34571; derivative of #34614 (seat filing note).

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34696,
      "status": "done",
      "branch": "claude/issue-34696-path-container-switch",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34737",
      "session": "session_01WGufzg2evNa1V3zxrQq3KX",
      "premise_still_valid": true,
      "head_sha": "68181a75f8353de33c57b5e16390e899e2a0269f",
      "base": "origin/main 77b42a1ed013e6a573652c6bf904ef7a7bb0f6ef (contains #34684, merge-base --is-ancestor 77b42a1e HEAD exit 0)",
      "pattern_followed": "Tailwind container queries (HeaderHighlight.tsx `@container` + `@lg:`, DetailSection.tsx `@container` + `@sm:`), not the ResizeObserver measure of RecordTabRow.tsx / RelatedList.tsx: those measure overflow, which CSS cannot express; this is a pure width threshold, so CSS is right on first paint with no state or re-render.",
      "summary": "record-path.tsx: the root is now a Tailwind `@container`; the desktop row is `hidden sm:@sm:flex` (was `hidden sm:flex`) and the compact path `sm:@sm:hidden` (was `sm:hidden`), so the desktop row draws only at viewport >= sm AND path width >= 24rem (384px), else #34595's compact path. Below sm nothing changes. Threshold 24rem: the narrowest full-width record page at >= sm is a 768px viewport beside the 16rem sidebar inside the shell's md:p-6 (about 464px), so no wide page flips; a 380px (or 360px floor) drawer is under it. 28rem was rejected (16px under that narrowest page). Premise held: at 77b42a1ed0 the switch was viewport-only as the card states.",
      "files": "ui/packages/plugin-detail/src/renderers/record-path.tsx (+20/-6, 865 lines) · ui/e2e/record-path-narrow-drawer-34696.spec.ts (new, 232 lines) · ui/e2e/record-path-phone-row.spec.ts (+2/-2: compact token grab sm:hidden -> sm:@sm:hidden) · ui/packages/plugin-detail/src/renderers/__tests__/record-path.compact-34595.test.tsx (+31/-3: one assertion edit + new top-level describe for #34696) · ui/packages/plugin-detail/src/renderers/__tests__/record-path.phoneRow-26897.test.tsx (+2/-2: assertion edits) · .changeset/34696-path-narrow-drawer.md (new, 14 lines, @object-ui/plugin-detail patch, Clause-②: no, Metadata-protocol: none)",
      "reproduction": "Chromium, real Tailwind for the classes read from record-path.tsx, 1280px viewport: with the desktop row forced on in a 380px path every ordinary stage gets under 50px (Prospecting measured 46.84px) and Prospecting/Qualification/Needs Analysis/Negotiation are clipped; with the change the 360px and 380px paths draw the compact path (desktop row display none), current stage whole, rails fit. Proposal fits whole at ~47px in the fixture font, so the defect leg does not claim it.",
      "tests": "Build closure `pnpm exec turbo run build --filter='@object-ui/plugin-detail^...' --concurrency=2` BUILD_EXIT=0. `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/` Test Files 382 passed | 1 skipped (383), Tests 3442 passed | 18 skipped, TEST_EXIT=0. `pnpm --filter @object-ui/plugin-detail type-check` (tsc --noEmit && tsc -p tsconfig.test.json) TC_EXIT=0. Package files byte-identical to head 68181a75f8 (later commits only changeset + e2e spec). E2E (scratch playwright config, chromium /opt/pw-browsers/chromium, both record-path specs) 11 passed, lock VERDICT command-exit 0 at head 68181a75f8. Ablation: ablation-replace.mjs dropped `@container` from the root (anchor 1->0, blob f8facc48df88 -> aa1439ba95c7) -> `the root is the container both rows query` failed, Tests 1 failed | 9 passed; restored blob == HEAD, git diff HEAD empty. No build/dist leg needed: the unit test imports ../record-path (src).",
      "gates": "dispatch-gates --commands (merge base 77b42a1ed, repo objectstack-ai/objectstack asserted) 38 derived; run on head 68181a75f8: 37 check/node commands each exit 0 + `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` Test Files 171 passed | 2 skipped, Tests 5077 passed, lock VERDICT command-exit 0. `--ran` with exit codes: 38 derived, 38 run, 0 NOT-MEASURED (derived zero). ui `pnpm check:new-line-citations`: 0 new citation(s), exit 0. overlap-check before every push: VERDICT clean exit 0 (3 pushes: probe 77b42a1ed0, 5fe0f03f5b, 68181a75f8). PR check-runs at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint lanes, Type Check lanes, PR-body guards all in_progress; Test UI / Build & E2E UI not yet listed. NOT MEASURED locally: lint, type-check lanes, Test UI, Build & E2E UI (CI's).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/34737/assignees os-support-ai; 8832 bytes identical), relay issue_patch on #34737 (PATCH /issues/34737 body: PR body restated to measured-only per the rule update; 10638 bytes identical), and this os-dev-report comment via post-stamped.mjs (POST /issues/34696/comments). git push x3 direct.",
      "deviations": "Commit trailers use the model-free pair the seat order and check:commit-card-trailers require, not the harness reminder's model-named Co-Authored-By. PR body ends with the 🤖 line, session URL and the signed trailer as the dispatch order specified; the os-dev session-URL `_Generated by_` footer block was left out so the signed trailer stays the last line. The new class-shape pin went into record-path.compact-34595.test.tsx as a top-level describe (AGENTS: a new pin for a component with a shared harness file goes into that file), not a new file.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — record-path.crossRowClassification.test.tsx header comment still describes the rows as `(hidden sm:flex)` / `(flex sm:hidden)`; comment-only drift outside this card's assertion-edit surface"
      ],
      "premise_check": "Measured after the coordinator's rule update (coding was already done; nothing failed, so no stop). Cause: read at origin/main 77b42a1ed0, record-path.tsx unchanged at f6f5b50a05: desktop row `hidden sm:flex w-full items-start gap-2`, stages `flex-1 min-w-0`, labels `text-center truncate`, compact block `sm:hidden w-full` — holds; correction: the card spells the compact class `flex sm:hidden` and its line addresses predate #34684 (actual base lines 694/706/709/763 vs card 653/665-668/723). Repro: fixture measurement only (380px path, forced desktop row: labels under 50px, four long names cut, Proposal whole) — a few letters, not one; the one-letter cut matches a narrower path (drawer body padding) and was measured by o3-A on the real drawer (6941211681), not re-measured here. Prior rulings: check-prior-rulings --card 34696 at f6f5b50a05 → 1 hit ADR-0065 Decision §2 (authors never write breakpoint variant classes) — governs author metadata styling, not renderer-internal classes; thread 0 rulings. Reach: Console record drawer, per card and 6941211681; not re-measured live.",
      "overlap_check": "VERDICT clean exit 0 before each push (probe at 77b42a1ed0; 5fe0f03f5b; 68181a75f8, against origin/main 77b42a1ed0, 0 PR heads overlapping). origin/main has since moved to f6f5b50a05 without touching record-path.tsx or the e2e specs; no push after that."
    }
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered · 2026-11-17T11:05Z · PR #34737 merged (9c70c16); this card closed by its Fixes line. record:path now picks the desktop row only when the viewport is at least sm AND the path itself is at least 24rem wide (Tailwind @container), so a 360–380px drawer at a desktop viewport draws #34595's compact path instead of cutting stage labels; phones unchanged; the wide desktop row is pinned pixel-identical at 900/1200px. The 24rem threshold is derived from the shell's classes (L1 accepted it); a 464px control width is a p3 note for the filer, not a remainder. pm:dispatched removed.

  10. 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

domain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions