Repository navigation
Closed
Copy link
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #35590(专题:记录详情页重做,维护者直派)。⛔ 不是认领。优先级 p2(维护者 2026-11-19:「这一批卡p2」)。
维护者 2026-11-19 原话:「相当于我们概览右侧的子表区域不用改,只是优化界面样式」「附件和动态好丑」;看过图 39 后继续讨论其余部分,没有提出修改。
目标(图 37 的字段分组,图 39 的互动和附件)
现状
图是深色稿,只表达结构和尺寸,颜色沿用现有主题变量。参照对象 Twenty 是 AGPL,只参照结构,⛔ 不抄代码。代码读数取自 origin/main 7ece0204a6。外壳(顶栏、左侧栏)不动。
- 字段分组是卡片,标签在上、值在下,两列;每个分组一张带圆角的卡。
- 互动(实测 HotCRM 商机):标题「活动 (6)」,一个「全部动态」下拉,一个始终展开的评论框(带加粗、斜体、列表、代码、@ 一排按钮,高约 130),每条动态前一个大圆图标,两到三行;一屏约 3 条。
- 附件:一张大卡,标题、「上传」按钮、空时一句「暂无附件。上传一个文件开始吧。」;空的时候也占一百多像素高。
- 相关组件:
record:attachments(ui/packages/app-shell/src/views/record-attachments-renderer.tsx、RecordAttachmentsPanel.tsx)、record:activity、ui/packages/plugin-detail/src/RecordActivityTimeline.tsx。
要做的
- 字段分组:去掉每组的卡片边框,改成一行组标题加字段行;每个字段一行高 32,标签在左(12 号、灰色、定宽)、值在右(13 号);整页概览左侧两列、没有右栏时三列、抽屉两列,随容器宽度变。组可折叠;全空的分组仍按 记录页:字段全空的分组各占一张卡,卡里只有一行「显示 N 个空字段」 #35019 合成一行。
- 互动页签:
- 评论框平时只有一行,点进去才展开并出现格式按钮;「全部动态」是右边一个文字按钮。
- 动态按天分组(今天、日期),每条一行高 30:小图标、谁、做了什么,时间靠右;评论多一行正文。
- 同一个人连续的字段改动合成一条,可展开看每一处。
- 审批相关的只留一句,带「看审批」跳到审批页签,不在这里重复审批进度。
- 附件页签:
- 有文件时:密排的文件行(33):类型标记、文件名、大小、上传人、上传时间、「⋮」(下载、重命名、删除);右上角「+ 上传」;整个区域可拖入文件。
- 没有文件时:一行虚线提示加「选择文件」,不占大卡。
- 颜色、圆角、字号与列表页一致(列表框架:页面栏 + 视图栏两条、表头 32 / 行高 33、统一 13 号字、合计与列对齐(图 36) #35548)。
不做的
- 不改动态的数据来源和合并规则以外的内容;不做附件预览([Decision] Attachment preview: view images, PDFs and text in the page instead of downloading — scope and edition #34781 待裁决)。
- 不改新建/编辑表单里的字段排法。
验收(1280×800,zh-CN)
- 概览里没有分组卡片的边框;字段行计算高度 32;标签在左、值在右。
- 互动页签:评论框初始高度不超过 36;一屏能看到至少 7 条动态;连续三次字段改动显示为一条并可展开。
- 附件页签:3 个文件占 3 行;没有文件时提示区高度不超过 60。
- 窄抽屉(380 宽)里关键字段、阶段条、页签行不回退(窄记录抽屉:关键字段里的徽标被截成一个字母,相对时间逐词换行 #34614、窄记录抽屉:阶段路径按视口而不是容器切换,桌面行在 380px 抽屉里把阶段名截成一个字母 #34696、手写记录页在 380px 宽的容器里:页签行与右侧卡片叠在一起(先确认真实窄抽屉能否复现) #34826 的场景)。
- 一次合入、一次验收。PR 正文列出迁移和作废的测试,以及同笔修改的
docs/qa/platform-checklist条款。
Reader: domain:ui 车道。ui/packages/plugin-detail/src(DetailView.tsx、RecordActivityTimeline.tsx)、ui/packages/app-shell/src/views/RecordAttachmentsPanel.tsx、record-attachments-renderer.tsx。
Dedupe: 记录页 字段 密排、动态 评论框 记录页、附件 卡片 空状态(objectstack,open)→ 0;相邻:#34781。
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p2Medium: important, M3



Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Feature (dense field rows, interactions grouped by day, attachments laid out as a list) · a child of the maintainer's record-page topic #35590 (his words for this batch: 「这一批卡p2」) → p2 as he set it.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Claim: area ux-3 of repo:objectstack#5, record-page epic #35590 sub-card (p2 inside a maintainer-named epic; seat 5 moved it from ux-4 to ux-3 so the epic moves faster; the maintainer, verbatim, 2026-11-19: 「这一批卡p2」) · 2026-11-20T00:35Z
Session:
session_01Utp6CZiaBg6rk7dpy1s9MeAccount:
os-billBranch:
claude/issue-35602-record-dense-rows-activity-attachmentsWorktree:
objectstack-issue-35602(os-dev worktree in the ux-3 container)Domain:
domain:uiSeat:
repo:objectstack#5Area: ux-3
File surface:
ui/packages/plugin-detail/src/DetailView.tsx(field-group layout only; ⛔ the header bits around lines 1774-1781 belong to ux-4's #35593), the field-row/section renderers it already uses insideui/packages/plugin-detail/src/(name each in the report),ui/packages/plugin-detail/src/RecordActivityTimeline.tsxand its comment box,ui/packages/app-shell/src/views/RecordAttachmentsPanel.tsx,ui/packages/app-shell/src/views/record-attachments-renderer.tsx, new i18n keys inui/packages/i18n/src/locales/*.ts,docs/qa/platform-checklist/areas/*.jsonrecord-page items, their tests, new e2e specs underui/e2e/named for the card, root.changeset/. ⛔ The record tab container and rail (ux-1's #35595/#35596): stop and report before editing. ⛔ Nopackages/spec/**, server code, or change to activity data sources and merge rules beyond grouping consecutive field changes for display. Stop on any other breach and report.Container & model:
L,mode:subagent,model: default,effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (maintainer-ordered redesign, epic #35590)
Thread-read: 7017334418
Premise: holds at
origin/mainby the card's readings at7ece0204a6(field groups as bordered cards, label above value; activity with an always-open ~130px comment box and 2–3 line items; attachments as a large card even when empty); the dev re-measures at origin/main in the browser before code.Serial constraints cleared: ux-4's #35593 holds DetailView.tsx's header lines; ux-1's #35595/#35596 hold the tabs and rail. Whichever lands second merges main. overlap-check runs on the branch before every push.
Pre-claim lane:
ui/packages/plugin-detail/**,ui/packages/app-shell/**→domain:ui, area ux-3 (seat 5's split of epic #35590).Pre-claim deps: none named on the card.
Prior rulings read:
check-prior-rulings.mjs --card 35602 --terms field,activity,attachment,timeline,comment,detail --pathsover the four files at origin/main: no ruling on the card's thread; no accepted ADR decision governs record-page layout; the card's own fences hold (#35019 empty-group fold kept; #34781 attachment preview not here; #34614/#34696/#34826 narrow-drawer scenes must not regress).objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
os-dev-report
{ "issue": 35602, "status": "done", "branch": "claude/issue-35602-record-dense-rows-activity-attachments", "pr": "https://github.com/objectstack-ai/objectstack/pull/35708", "head": "894bd7758a", "session": "session_01Utp6CZiaBg6rk7dpy1s9Me", "premise_still_valid": true, "summary": "Dense record page at 1280x800 zh-CN. (1) Fields: the default page's frameless sections now draw one 32px row per field, label left (12px, muted, 112px fixed width) and value right (13px). Columns are 1/2/3 by container width (@xl 2, @4xl 3), under the existing cap: 2 beside the right column, 3 in the wide tier. Groups stay collapsible and the #35019 empty-group line is untouched. (2) Activity, both the stream and the authored panel: a one-line comment box (34px) until focused; entries under day headings (今天/昨天/date); ~30px one-line rows (icon, who, what, time on the right) and comments at 50px (header plus one body line, reactions and 「回复」 on hover or focus). Consecutive field edits by one person on one day fold into one expandable row (display only). An approval is one line with 「看审批」 when the host passes onViewApprovals. The panel's 全部 filter is now a quiet text trigger on the right of its header; the stream keeps its chips. (3) Attachments: 33px file rows (type icon, name, size, uploader, date, and a ⋮ menu with Download and Delete), 「+ 上传」 at top right, drop anywhere on the panel, and an empty state of one 40px dashed line with 「选择文件」. Premise holds in part: the default page was already card-free (since #27055) but stacked the label above the value at 52px; bordered group cards appear only on authored pages, which keep them (see open_questions).", "measurements": { "fields_default_page_account_1280x800": "before: label above value, first row 52px, 2 cols | after: 9/9 rows 32px, label 12px w=112 rgb(100,116,139), value 13px, 0 card faces, 2 cols beside the right column", "fields_columns": "field-zoo record: 1280 (beside right column) sections 6f/2c and 10f/2c; 1920 (wide tier) 6f/3c and 10f/3c; 5-or-fewer-field sections stay 2 (existing framelessSectionColumns rule)", "fields_drawer": "380px forced drawer: 1 column of label-left rows, 0 rows past the drawer edge, no horizontal scroll. NOT MEASURED: column count in the default 720px drawer (no run read it)", "activity_stream_account_1280x800": "before: composer 129px, comment rows 106px, system rows 44px, 1 entry fully in viewport | after: composer 34px, day header 今天, rows [50,30,50,50,30,50,50,50,30], 7 entries fully in viewport, a run of 7 edits folded into one row; first row top 582 → 489px, the rest of the first screen being the header band (ux-4's area)", "activity_panel_authored_project_1280x800": "before: composer 129px, a fold of 4 rows at 70px, first row top 1162 | after: composer 34px, fold 30px, first row top 912", "attachments_project_1280x800": "empty, before: panel 131px | after: panel 76px (36px header plus the 40px dashed hint line). 3 files, before: panel 233px, rows 57/57/56 | after: panel 136px, rows 33/33/33 = 3 rows", "drawer_380_regressions": "e2e narrow-drawer-time-34614, record-path-narrow-drawer-34696, page-region-row-narrow-drawer-34826, record-flow-phone-targets: 25 passed (chromium, /opt/pw-browsers). In the browser 380px drawer every time reads on one line.", "screenshots": "/mnt/project-files/objectstack-seat5/area-ux/ux-3/shots-35602/ (14 files, before/after at 1280x800 and in a 380px drawer)" }, "tests": "At head 894bd7758a, under os-verify-lock: `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/ packages/i18n/ packages/app-shell/src/views/__tests__/RecordAttachmentsPanel --reporter=dot` gave 'Test Files 499 passed | 1 skipped (500) / Tests 5555 passed | 31 skipped (5586) / VERDICT command-exit 0'. The record-page batch (the 95 RecordDetailView*.test.tsx plus 27 other tests that name the changed surfaces, including plugin-form affordanceGrantMap-12082) went green after the migrations: the 6 migrated files gave 'Test Files 6 passed (6) / Tests 55 passed (55)', and the other 100 files were green in the earlier pass. The source edits after that pass (DetailSection leading, reaction chips on one-line rows) were rechecked by the 500-file run above and by type-check. e2e under the lock: 4 specs, '25 passed (3.8s)'. type-check: plugin-detail + i18n VERDICT command-exit 0, app-shell VERDICT command-exit 0, after rebuilding the merged @object-ui/react, components, i18n and plugin-list dists. New test file: plugin-detail/src/__tests__/denseActivityRows-35602.test.tsx (6 tests: fold rule, fold expand, day grouping, comment header, approval line plus 看审批, collapsed composer). No ablation: the new pins are structural and were written against the new behaviour, and the old pins were migrated, not deleted.", "migrated_tests": [ "ui/packages/plugin-detail/src/__tests__/narrowDrawerTime-34614.test.tsx — time is a nowrap tail at the right of a wrapping header; fold and system lines are one row with a shrink-0 nowrap time and truncating text", "ui/packages/plugin-detail/src/__tests__/recordPageV3Face-27055.test.tsx — container breakpoints @xl 2 cols / @4xl 3 cols", "ui/packages/plugin-detail/src/__tests__/recordTimelineStream-27055.test.tsx — panel keeps its dropdown over the same one-line rows; field changes read as one 'before → after' line; negative pins re-anchored on regexes so they stay non-vacuous", "ui/packages/plugin-detail/src/__tests__/RecordActivityTimeline.authorControls-12268.test.tsx — row helper reads the keyed comment row and day-grouped root rows", "ui/packages/plugin-detail/src/__tests__/RecordActivityTimeline.reactionsCommentRowsOnly-11035.test.tsx — row helper reads the one-line row (chips stay rendered and disabled there)", "ui/packages/plugin-detail/src/__tests__/RecordActivityTimeline.zeroReplyInput-12144.test.tsx — the offered reply input opens behind 「回复」", "ui/packages/plugin-detail/src/__tests__/RecordTimelinePanel.chatterInset-34676.test.tsx — section pt-3", "ui/packages/app-shell/src/views/__tests__/RecordAttachmentsPanel.test.tsx — Download/Delete through the row ⋮ menu; empty state is the dashed line; 'never empty' negatives re-anchored on [data-attachments-empty]", "ui/packages/app-shell/src/views/__tests__/RecordAttachmentsPanel.affordanceGrant-12047.test.tsx — grants read from each row's menu items", "ui/packages/app-shell/src/views/__tests__/RecordAttachmentsPanel.deleteConfirm-12248.test.tsx — delete item reached through the row menu (en + zh)", "ui/packages/app-shell/src/views/RecordDetailView.authoredActivityThreading-12249.test.tsx — row helpers + reply toggle", "ui/packages/app-shell/src/views/RecordDetailView.replyCountOnRead-12144.test.tsx — row helpers + reply toggle", "ui/packages/app-shell/src/views/RecordDetailView.feedCommentEditDelete-12268.test.tsx — row helper", "ui/packages/app-shell/src/views/RecordDetailView.commentWriteFailure-10899.test.tsx — reply toggle before the input", "ui/packages/app-shell/src/views/RecordDetailView.withheldMentions-28218.test.tsx — reply toggle before the input", "ui/packages/app-shell/src/views/RecordDetailView.recordPageTiers-26678.test.tsx — container breakpoints", "ui/e2e/narrow-drawer-time-34614.spec.ts — source grabs re-pointed at the comment row, icon cell, header and the right-hand time tail", "ui/e2e/record-flow-phone-targets.spec.ts — composer toolbar grab reads the cn() form" ], "checklist_items_touched": [ "docs/qa/platform-checklist/areas/attachments-storage.json attachments-storage.download-authz-both-sides: steps[6] Download now in the row ⋮ menu; revision 11 → 12 with history row. No clause changed." ], "gates": "Local, at 894bd7758a: `node scripts/pm/dispatch-gates.mjs --commands` derived 48 families. All 48 ran with exit codes captured before any pipe, and all 48 were EXIT=0, including pnpm check:nul-bytes, check:platform-checklist and `pnpm --dir ui exec vitest run scripts/` under the lock. `dispatch-gates --ran` printed '48 derived, 48 run, 0 NOT-MEASURED, 0 UNRUN' and exited 0. `node scripts/check-platform-checklist.mjs --changed-from origin/main` exited 0 ('0 anchored files in the change set'). Local-only families check:dev-prereqs and check:skill-frame-freshness were not run, because the diff touches neither packages/spec nor the frame files. CI check-runs on 894bd7758a: 61 runs, 50 success, 11 skipped, 0 failed. Among them: Lint · ESLint, Lint UI, Type Check UI, Test UI (1-16/16), Test Core (1-3/10), Build & E2E UI, Live E2E UI, Check Changeset, PR-body guards, Dogfood Regression Gate, Check PR Size, all success.", "dogfood_battery": "n/a — no `!` in the PR title and Clause-② is no (no narrowing arm)", "line_budget": "37 files, +1078 / -409 = 1487 changed lines against origin/main (three-dot), just under the ~1500 line. No split needed.", "files_changed": "Source: ui/packages/plugin-detail/src/DetailSection.tsx (the field-row and section renderer that DetailView draws; DetailView.tsx itself is untouched), ui/packages/plugin-detail/src/RecordActivityTimeline.tsx, ui/packages/plugin-detail/src/RichTextCommentInput.tsx (the comment box: compact prop), ui/packages/plugin-detail/src/CommentAuthorControls.tsx (CommentBody controlsClassName prop), ui/packages/app-shell/src/views/RecordAttachmentsPanel.tsx, ui/packages/i18n/src/locales/*.ts (11 packs; 7 keys: detail.streamToday, streamYesterday, viewApproval, replyToComment, attachmentsDropHint, attachmentsChooseFile, attachmentActions). Also the tests listed under migrated_tests, the new denseActivityRows-35602.test.tsx, the checklist item, and .changeset/35602-record-dense-rows.md (patch: plugin-detail, app-shell, i18n; Clause-②: no, Metadata-protocol: none).", "overlap_check": "Before every push. Final, at 894bd7758a: against origin/main 5d2ce34f88 'VERDICT clean exit 0'. With --base=origin/claude/issue-35595-record-tabs-rail (ux-1): the branch itself 'merges cleanly'. The same run lists #35716 (docs/qa/platform-checklist/areas/approvals.json) and #35129 (.changeset/34776-publish-checks-build-probes.md) as conflicts. Neither file is in this diff: they come from main commits that the ux-1 branch does not have yet. No shared file with ux-1. DetailView.tsx is untouched, so the approval-band lines 331 and 1747 are untouched.", "deviations": [ "The draft PR was opened on the fourth push (e7a543590b), not the first.", "The PR body was written once, at pr_create, while the work was in progress, so its Tests / Acceptance notes / Verification sections say 'In progress'. os-dev.md says the dev writes the body only at pr_create and the seat rewrites it. The dispatch asks for the migrated tests and checklist items in the body. They are in this report (migrated_tests, checklist_items_touched) for the seat to fold in.", "Two files lie outside the literal claim wording and serve the comment box and comment row: RichTextCommentInput.tsx (an optional `compact` prop) and CommentAuthorControls.tsx (an optional `controlsClassName` prop on CommentBody).", "The attachments ⋮ menu has Download and Delete but no Rename. The panel has no rename seam, and adding one is server or data work, which is fenced.", "The uploader name shows only for the viewer's own files or when uploaded_by arrives expanded. Other users' names need a server-side expand, which is fenced. The cell is left blank, never wrong.", "「看审批」 is an optional host callback (onViewApprovals) that no page passes yet. See open_questions.", "Behaviour change: the reply input now opens behind a per-comment 「回复」 toggle instead of standing open under every comment. The #12144 pins were migrated to press the toggle.", "Field-row values use a 24px line (leading-6, py-1) so that badges and icon values fit the 32px row. Wrapped multi-line text therefore reads on 24px lines.", "The authored-page panel face also takes the dense rows and the one-line composer, keeping its dropdown filter, because the card's activity premise (130px composer) is that face.", "Two test runs bypassed the lock: one direct vitest run of 2 files, and one 38-minute run of 2057 files that was over-scoped (it included all app-shell views) and that I killed. I reran it narrowed under the lock.", "Merged origin/main (7b27779d85) on the seat's instruction after the header PR landed.", "Commit trailers use 'Co-Authored-By: Claude' as the dispatch asks. A harness reminder suggested a model-named trailer, which was not followed." ], "mcp_calls": "0", "api_writes": "2 — relay dispatch POST /repos/objectstack-ai/objectstack/dispatches (pr_create → #35708, read back identical, assignee os-bill); post-stamped report comment on issue 35602. git push is not a REST write.", "open_questions": [ { "question": "Where should 「看审批」 lead, given that today nothing emits `approval` feed items (recordActivityFeed.ts documents objectui#5877) and the Approvals tab lives in the record tab container (ux-1's file)?", "options": [ "A: once ux-1 lands, wire onViewApprovals in record-activity.tsx to open the Approvals tab. Small (~10 lines), but invisible until a producer emits approval items.", "B: leave it as a host-only affordance until an approval feed producer exists, and file that producer as its own card." ], "recommendation": "B, because wiring it now has no visible effect: no approval item reaches the feed." }, { "question": "Should 'no bordered group cards' also flatten authored pages that ask for the card face (e.g. showcase project-detail, invoice)?", "options": [ "A: keep them. Authored intent wins, and only the default page goes dense (as shipped).", "B: flatten authored card faces too. This changes authored pages' look, and the DetailSection card branch would need the same dense rows." ], "recommendation": "A, because the card face is an authored choice and the default page carries the card's acceptance." } ], "security_findings": "none", "out_of_scope_findings": [ "class: none (observation, not filed) · sys_attachment.uploaded_by reaches the client as a bare id, so the panel cannot name other uploaders without a server-side expand · carrier: none", "class: none (known) · no producer emits `approval` feed items (objectui#5877 noted in recordActivityFeed.ts), so the one-line approval row is reachable only from host-supplied items · carrier: objectui#5877" ] }objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Claim amendment · area ux-3 · 2026-11-20T03:19Z
File surface (added to claim 7026516208, as delivered in PR #35708):
ui/packages/plugin-detail/src/DetailSection.tsx(the field-row and section rendererDetailView.tsxdraws;DetailView.tsxitself is untouched),ui/packages/plugin-detail/src/RichTextCommentInput.tsx(optionalcompactprop for the one-line comment box),ui/packages/plugin-detail/src/CommentAuthorControls.tsx(optionalcontrolsClassNameprop onCommentBody), anddocs/qa/platform-checklist/areas/attachments-storage.json(one step re-pointed at the row menu, revision 11 → 12). All UI-only, nopackages/spec, no server, no shared file with the record tabs/rail branch.objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Claim amendment · area ux-3 · 2026-11-20T03:25Z
File surface (added to claim 7026516208; L1-a R2 on PR #35708, comment 7029359495): two existing e2e specs edited, not only new ones:
ui/e2e/narrow-drawer-time-34614.spec.ts(source grabs re-pointed at the comment row, icon cell, header and right-hand time tail) andui/e2e/record-flow-phone-targets.spec.ts(composer toolbar grab reads thecn()form). Assertions unchanged. Follow-ups nested here: #35723 (approval feed producer), #35724 (uploader name on other people's files, and Rename).objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Close-out 2026-11-20T03:50Z: PR #35708 MERGED as
a3a74f2702;Fixesclosed this card. The record page is dense at 1280×800 zh-CN: field rows at 32px with the label on the left and the value on the right, in 2 or 3 columns by width (the default page; authored card faces keep their cards, per the seat's ruling); a one-line comment box (129 → 34px); activity grouped by day in one-line rows, with 7 entries on the first screen (was 1); attachments as 33px file rows with a ⋮ menu and a 40px dashed empty line. The 380px drawer pins for #34614, #34696 and #34826 all pass. Reviews: L1-a ACCEPT 7029359495; claim amendments 7029319553 and 7029402686.Still open under this card: #35723 (an approval feed producer, so the one-line approval row and 「看审批」 appear) and #35724 (uploader names on other people's files, and Rename).
pm:dispatchedoff.