Repository navigation
fix(ui): record:path uses the compact path in a narrow record drawer, keyed on its own width (#34696) - #34737
Conversation
…th too The desktop row and the compact path switched on the viewport alone, so a 380px record drawer at a desktop viewport drew seven ~33px stage labels cut to a letter. The path's root is now a Tailwind container and each row stacks `sm` on the container's `@sm` (24rem): below `sm` nothing changes, a full-width page keeps its desktop row, a narrow drawer gets the compact path. Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-Authored-By: Claude <noreply@anthropic.com>
…bound Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX Co-Authored-By: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB 席位核对 · L1 (seat 3, L1-a) · 2026-11-17T09:34ZL1: ACCEPT The switch moves from the viewport alone to "viewport at least Must-fixNone. Should-fixNone. Readings that hold
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX Landing · 2026-11-17T09:36Z · area o3-A
State: |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44057602325 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX Re-queue (once) · 2026-11-17T10:09Z · area o3-A · head unchanged
Verdict: not this PR's diff; a load-sensitive ordering race in an unrelated app-shell test. Re-queued once on the unchanged head; a second ejection goes to the seat with both signatures instead of another re-queue. L1-a ACCEPT 6944245768 stands (head unchanged). |
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
Fixes #34696
Clause-②: no
Metadata-protocol: none
维护者速读
record:path)的桌面行 / 紧凑路径切换,从只看视口改为「视口 ≥ sm 且路径自身宽度 ≥ 24rem」才画桌面行,否则画 手机端记录页:底部操作栏里「编辑」被自定义动作挤进更多菜单;阶段条文字全部被截断 #34595 的紧凑路径。ui/packages/plugin-detail/src/renderers/record-path.tsx(根@container与两行的sm:@sm:类);ui/e2e/record-path-narrow-drawer-34696.spec.ts。pnpm --dir ui exec vitest run packages/plugin-detail/src/renderers/__tests__/record-path.compact-34595.test.tsx,预期 10 条全绿(含「根是两行共同查询的容器」「两行都不再只按视口切换」);几何见 CI 的 Build & E2E UI 里record-path-narrow-drawer-34696.spec.ts的 6 条。What changes
record-path.tsx: the path's root is now a Tailwind@container, and each row stacks the viewport variant on a container variant. The desktop row ishidden sm:@sm:flex(washidden sm:flex); the compact path issm:@sm:hidden(wassm:hidden). So the desktop row draws only when the viewport is at leastsmAND the path itself is at least@sm(24rem, 384 px) wide; otherwise the compact path from 手机端记录页:底部操作栏里「编辑」被自定义动作挤进更多菜单;阶段条文字全部被截断 #34595 draws.smnothing changes: the compact path, whatever the path's width.HeaderHighlight.tsx(@container+@lg:grid-cols-3) andDetailSection.tsx(@container+@sm:grid-cols-2) do in the same package. Not theResizeObservermeasure ofRecordTabRow.tsx/RelatedList.tsx: those measure overflow, which CSS cannot express; this decision is a pure width threshold, so CSS gets it right on the first paint, with no state, no re-render and nothing for jsdom to fake.sm, the narrowest full-width record page should be a 768 px viewport beside the expanded16remsidebar (SIDEBAR_WIDTH), inside the layout shell'smd:p-6, so about 464 px before any inner padding, above 384. A 380 px drawer (the drawer's documented floor is 360 px) gives the path at most 380 px, under 384.@md(28rem, 448 px) was rejected because it sits only 16 px under that estimate. MEASURED (fixture, Chromium): 360 px and 380 px paths at a 1280 px viewport draw the compact path; 900 px and 1200 px paths draw the desktop row, pixel-identical to the old switch.record-path.compact-34595.test.tsx,record-path.phoneRow-26897.test.tsx) now pin the stacked names, citing 窄记录抽屉:阶段路径按视口而不是容器切换,桌面行在 380px 抽屉里把阶段名截成一个字母 #34696; a new top-leveldescribeinrecord-path.compact-34595.test.tsxpins that the root is the container both rows query and that neither row switches on the viewport alone.e2e/record-path-phone-row.spec.tsnow grabs the compact class by its new token.ui/e2e/record-path-narrow-drawer-34696.spec.ts: Chromium geometry with real Tailwind compiled for the classes read out ofrecord-path.tsx.@object-ui/plugin-detailpatch.Why
#34614's acceptance 1 asks that a 380 px drawer show no label cut to one letter. The ~33 px labels reading 'P…', 'Pro…', 'Ne…' were measured by o3-A on the real record drawer (os-dev report 6941211681 on #34614); this run did NOT re-measure the real drawer.
Premise lines, measured by this run:
77b42a1ed0, unchanged atf6f5b50a05):record-path.tsxswitched by viewport only: the desktop row's classhidden sm:flex w-full items-start gap-2, stagesflex-1 min-w-0, ordinary labelstext-center truncate; the compact block's classsm:hidden w-full. Holds. Correction: the card spells the compact classflex sm:hiddenand its line addresses predate fix(ui): on a phone the record page keeps Edit in its bottom bar, a compact stage bar and two-column key fields #34684; the substance is unchanged.node scripts/pm/check-prior-rulings.mjs --card 34696 --terms 'container query,@container,narrow drawer,record path,record-path,viewport,breakpoint'atf6f5b50a05: 1 hit, ADR-0065 Decision §2 ("Authors never write breakpoint variant classes"). It rules on author-written metadata styling; this diff changes renderer-internal classes and no metadata, so it does not apply. Card thread: 0 rulings.Tests
Unit: plugin-detail package, typecheck
Run after
pnpm exec turbo run build --filter='@object-ui/plugin-detail^...' --concurrency=2(BUILD_EXIT=0), on a tree whose package files are byte-identical to the head (later commits touch only the changeset and the e2e spec).E2E: the new spec and the phone-row spec, Chromium
The pixel-identity control renders the same fixture twice, once with the old classes (
hidden sm:flex/sm:hidden, no container) and once with the new, at 900 px and 1200 px paths, and asserts every label's width, top and left are equal. The defect leg forces the desktop row on at 380 px so the narrow-drawer legs are not vacuous.Ablation (one pin)
Mutation: drop
@containerfrom the root (cn('@container w-full', className)tocn('w-full', className)), viascripts/ablation-replace.mjs.Acceptance notes
ui/e2e/record-path-narrow-drawer-34696.spec.ts.Verification
Derived gates (
node scripts/pm/dispatch-gates.mjs --commands, from the merge base), run on head68181a75f8: 38 derived, 38 run, every oneexit 0.Gate reconciliation
Lint, the type-check lanes, Test UI, Build & E2E UI and the rest of the farm are CI's.
Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (lint is CI's)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX