Repository navigation
feat(record-page): a desktop comment panel beside the record, opened from a header icon; 动态 keeps system entries (#36075) - #36114
Conversation
Claude-Session: https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb Co-authored-by: Claude <noreply@anthropic.com>
…panel (#36075) - Unit tests for the comment threads, the panel, the header switch, the placement rule and the top bar's comments slot; a RecordDetailView integration test (icon and count, open/close kept in the browser, beside and over at 1280, the drawer cover, feeds off and a hand-written page). - The 动态 count probe drops comments while the panel holds them, as the drawn stream does: the two disagreed and the tab row re-measured forever. - Nested replies join their thread; a reply ahead of its root waits there. - The hook's type is RecordCommentsData: RecordComments is an existing export. - Old RecordDetailView tests that read comments off the 动态 stream now read them in the comment panel. - README, docs page and changeset. Claude-Session: https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb Co-authored-by: Claude <noreply@anthropic.com>
…rops The one-authority gate refused the name: @object-ui/collaboration already exports a CommentThreadProps of its own. Claude-Session: https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读电脑端评论栏这一版的主体做得对:图标和数字、380 宽、1280 以上并排、以下盖住、抽屉里盖住,「动态」页签只剩系统条目、数字不再算评论,旧测试是搬到评论栏里读,没有放松。但有两处要改,都和按 Esc 有关: 席位核对 — REWORK (L1-c) · repo:objectstack#1 · head
|
…wer too; Esc in the @ list closes the list only L1-c rework at 09b716c (#36114): - RichTextCommentInput's @ list takes its Esc (preventDefault + stopPropagation), so the panel round it no longer closes and drops the draft. - The drawer leaves an Esc pressed inside a [data-owns-escape] region to that region at every level, the root too; the comment panel owns its Esc, closes, and puts the focus back on the comments icon. - The panel closes on an Esc whose target is inside its own DOM; portaled menus close themselves; defaultPrevented no longer decides, since the drawer marks the key to hold itself open. Pinned in CommentsPanel.test.tsx (@ list, More menu) and through the real NavigationOverlay around the real panel, at the root and below it, with a control; each pin fails with its fix removed. Claude-Session: https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb Co-authored-by: Claude <noreply@anthropic.com>
…-ks7hy1 # Conflicts: # ui/packages/app-shell/src/views/RecordDetailView.replyCountOnRead-12144.test.tsx
…tar; its delete says it went through CommentAvatar was the panel's stand-in until #36070 landed; it is removed and every face in the panel (a comment's, and the latest repliers' beside 「N 条回复」) is the shared CommentAuthorAvatar. The panel's Delete runs the page's handleDeleteComment, so #36070's 「评论已删除」 toast comes with it; pinned through the real RecordDetailView. Claude-Session: https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读上一轮的两处 Esc 问题都修好了。在 @ 人员选单里按 Esc 只关选单,写了一半的评论还在。抽屉里按 Esc 现在只关评论栏、回到记录,抽屉本身不关也不后退,光标回到评论图标上。评论栏外按 Esc,抽屉照旧。另外合进了最新主干,头像换成上一张卡做好的共享头像,删除评论会提示「评论已删除」。PR 现在写的是「部分完成 #36075」,因为「已解决」那部分要等 #36071。L1 结论:这一轮接受,等 CI 全绿。 席位核对 — ACCEPT (L1-c, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T16:36Z. The brief handed to the isolated declaration-face reviewer for PR #36114 (owed by Contract review brief — PR #36114 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Read: card #36075 (body, triage, claim 7063212437, seat note 7064072626), epic #36062, #36105 and #36104 (bodies), and the PR body and file list. Also the net diff ① Derived judgmentsPublic surface the diff publishes, each judged:
② Semver level
③ Boundary flagsThe PR body has no
Should-fix, non-blocking: S1 (bring the changeset's Clause-② enumeration level with what ships), S2 (card item 6's 有权限的人 limb: name it as deferred, or get a ruling). Escalated: E1 (the 变更 chip, to the maintainer), E2 (put the option C ruling on #36075). Must-fix: none. Implemented-by: VERDICT: PASS |
… names everything that ships Seat L2 at 7c4b10d: - Card item 5 removes 全部 / 活动 / 讨论 only. 变更 (objectstack#30074) stays, offered on the same rule: only where the record shows its field history. With no 全部 beside it, the lone chip is a toggle; pressed again it goes back to every entry. The tab's count is unchanged (system entries only). - The changeset's Clause-② line now names the prop types, the five i18n keys, RichTextCommentInput's @-list Esc (preventDefault + stopPropagation), and RecordActivityTimeline drawing no chip group when handed no chips. Claude-Session: https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a DELTA record over the PASS record on Gates as read at 2026-11-21T17:06Z: the check-runs on
This verdict is on the diff. Landing waits for every check-run on this head to be green, and a red check comes back for a read. ① Derived judgments
② Semver level
③ Boundary flags
Must-fix: none. Should-fix: S2, carried. Escalated: E2, carried. Implemented-by: VERDICT: PASS Seat note: S2 (card item 6, edit and delete for people with permission) is owed by the second PR for #36075; the PR 2 handover records it. E2 is done: the seat noted on #36075 that option C was the seat's reading after a Fable review, with no maintainer ruling needed. This head lands only when every check-run on it is green. |
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读「动态」页签在电脑上保留「变更」这一个筛选按钮:点一下只看字段变更,再点一下回到全部;记录不显示字段历史时不出现。卡上要去掉的「全部、活动、讨论」三个照样去掉了,页签数字不变。这和平台已有的「变更」规则一致。L1 结论:接受,CI 全绿。 席位核对 — ACCEPT (L1-c, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Regen-provenance: declaration-face record 7066232878 (delta PASS) ·
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读评论栏这个 PR 合进了最新主干(15 个提交,其中包括已经落地的统一页面头部 #36131 和评论「已解决」后端 #36104),没有冲突,PR 自己的改动和已审过的版本完全一致。和统一页面头部一起出现时,记录页顶部的评论图标和按钮组各在各的位置,互不干扰。CI 全绿。L1 结论:接受合并这一步。 席位核对 — ACCEPT (L1-c, merge only) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat landing · 2026-11-21T17:54Z · #36075, the desktop comments panel (epic #36062 phase 1), first PR. On desktop default record pages and slot-only overrides, comments move out of the 动态 tab into a 380px side panel opened from the record header's comments icon, at 1280px and up it gives way, below that it overlays; the drawer gets the same panel. Hand-written pages keep their footer discussion (option C, the seat's reading after a Fable review). The panel owns Esc inside itself; the @-menu's Esc no longer closes the panel. The 动态 tab drops the three comment chips the card names and keeps #30074's 变更 chip as a toggle. Avatar and delete toast come from #36070. Reviews:
Gates on this head:
The seat readies this PR and arms auto-merge in the same step. The PR carries |
…anel) Claude-Session: https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri Co-authored-by: Claude <noreply@anthropic.com>
…ored page applies; merge main (#36150) L1-c and L2 rework on #36174: - appObjectScope: declaredRecordPage reads authoredRecordPageApplies, so a phone record route takes the synthesized page's arm and the standard page's child tabs are all there; AppContent and the prefetch hand it usePhoneViewport(), so the scope follows the width across 768. - #36114's "no icon on a hand-written page" pin mounts the full page; a new case pins the drawer of an authored-page object offering the panel. - feedRecordScope mounts the drawer for its synthesized-page cases again (#36114 opens the drawer's panel there). - New AppContent.authoredPagePhoneScope-36150 pin (6) and a print-style media-query pin on the view. - Nits: ruling cited in the kept-objects jsdoc, object-name key noted, pages.mdx names the 768 px window and the interface preview, a test title. - Skills-docs: follow-up #36179 (spec describes: #36180). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk
…op-right button group, off while the top bar stands (objectstack-ai#36111) (objectstack-ai#36131) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3Foa18FuRJceP6yJW5pgFF)_ repo:objectstack#1 · os-sales · session_01L6bhgVcCRGjxwhDjrRVYsY Fixes objectstack-ai#36111 Clause-②: yes (widening): `@object-ui/components` adds one export, `PageTitleHostContext` (re-measured on the built `dist/index.d.ts`). Nothing is removed or re-typed. Metadata-protocol: none Maintainer ruling on the custom-page header: [objectstack-ai#36111 ruling record](objectstack-ai#36111 (comment)) (option A: the shared header on every custom page, the renderer's own page title folded into it, authored content drawn as written). ## 维护者速读 - 报表页、报表目录页、自定义页面(分区页面、界面模式页面、html、react)现在和列表、仪表盘一样,顶部是统一的页面头部:左边页名和描述,右边是这一页自己的按钮。 - 没写标题的页面,原来平台画在正文里的大标题移进头部,只出现一次。作者自己写了标题的 `page:header` 照旧显示(文档结构上降成二级标题,外观不变);标题和页名相同的页面会看到页名两次,这是裁定接受的代价。showcase 的 my-work、project-workspace 在本 PR 里删掉了自己那一行标题。hotcrm 销售首页另开卡。 - 右上角按钮组(评论位、「编辑应用」、AI、帮助)做成一个组件,由外壳统一放:仪表盘、报表、自定义页面放在头部按钮的后面(中间一条细竖线),列表页放在视图栏最右边 ⋮ 的后面,记录页放在导航行 ✕ 的前面。**顶栏还在的时候它默认关着**,用户看不到任何重复按钮;在浏览器里设 `localStorage['os:shell:page-actions'] = 'on'` 可以打开它检查。去掉顶栏的 objectstack-ai#36112 会把默认改成开并删掉这个开关。手机上不画。 - 「编辑应用」:文字加一个不是铅笔的图标,窄屏(<1024)只留图标、悬停提示保留文字;打开的地方和顶栏铅笔完全相同(同一个函数算出来);只读包显示眼睛和「在 Studio 中打开」;没有 `manage_metadata` 的人看不到。 - 自定义页面右下角的浮动「在 Studio 中编辑」铅笔:电脑宽度去掉(头部的按钮组取代它),手机宽度保留。 - 帮助菜单从顶栏抽成一个组件,顶栏和按钮组共用,内容不变。 ## What changes **The shell's top-right button group** (`@object-ui/app-shell`, new `layout/ShellPageActions.tsx`) - `ShellPageActions`: from left to right the comments slot, 「Edit app」, the AI assistant (where the server serves it) and help. One component; the shell decides whether it is drawn, not the page. - `ShellPageActionsScope`, mounted by `ConsoleLayout`: OFF by default (`SHELL_PAGE_ACTIONS_DEFAULT = false`) while the top bar still draws the same buttons. The browser switch `localStorage['os:shell:page-actions'] = 'on'` turns it on (every access guarded; a blocked storage reads off). Outside a scope (Home, organization pages, Studio, docs) and on a phone it is never drawn. - 「Edit app」 reads `useAppStudioEntry`, extracted from `AppHeader`, so the group and the top bar pencil compute one gate and one target (`useStudioEntryGate` + `appStudioRoutePath`). Words beside the `Blocks` icon (the record's 「Edit」 keeps the pencil), words hidden below `lg` with the tooltip keeping them; a read-only package gets the eye and 「Open {app} in Studio」; a caller without `manage_metadata` gets nothing. - `HelpMenu` (new `layout/HelpMenu.tsx`): the 「?」 menu lifted out of `AppHeader` unchanged, used by both hosts. **Where each page draws it** - `PageHeader`: after the page's own actions, behind a hairline divider; a header with no actions draws the group alone. Turned off, the header renders exactly what it did before. - The list page (`ObjectViewBarTrailing`): since objectstack-ai#35878 its top row is the view bar, not `PageHeader`, so the bar's right end draws the group after ⋮, behind the same hairline. - `RecordDetailView`: in the navigation row through `RecordTopBar`'s `frame` slot, before ✕ (not in an embedded record). - The comments slot is a prop (`comments`) for the list and record pages; nothing fills it yet. objectstack-ai#36114's comment icon moves into it when objectstack-ai#36112 turns the group on. **Reports and custom pages use `PageHeader`** - `ReportView` and `AppReportIndexView`: their bespoke title blocks become `PageHeader` (title, description, the report edit button as the page's action). - `PageView`: from the phone breakpoint up, every custom page under `/apps/APP/page/NAME` opens with `PageHeader` (page label and description) above the page's scroller. The floating 「Edit in studio」 pencil is drawn only on a phone; a phone keeps its old face (no console header, the renderer's own title, the pencil). - `InterfaceListPage`: new `consoleHeader` prop; the console route draws `PageHeader` with the page's configured buttons as its actions. Studio's page preview keeps the old row. **The page renderer hands its title to the host** (`@object-ui/components`) - New `PageTitleHostContext` (exported): while a host sets it, the page renderer skips its implicit page-name `h1` and description, as the dashboard renderer does under `hideHeaderText`. - Internal `PageTitleDemotedContext`: under such a host, an authored titled `page:header` draws its title as `h2` with the same classes, so the document keeps one `h1` (objectui#3434). Record pages are untouched. **Showcase**: `my-work.page.ts` and `project-workspace.page.ts` drop their `page:header` title, which repeated the page name (subtitle kept), per the ruling. ## Why Card objectstack-ai#36111, phase 1 of epic objectstack-ai#36107 (remove the top bar): every in-app page needs the same header and the same top-right button group before the top bar can go. Reports and custom pages had their own headers or none; the floating pencil was a custom-page-only entry. Building the group off while the top bar stands lets this land with no visible duplication; objectstack-ai#36112 flips it on. ## Side effects reviewers should know - Custom pages gain a header bar (roughly 45 to 55 px of height); full-screen style pages feel it most. - A page whose authored `page:header` title equals its name shows the name twice (header small, body large). Accepted in the ruling; hotcrm's sales home gets its own card. - The authored `page:header` title is now an `h2` under the console header (looks the same). - The report page and report index on a phone now draw `PageHeader` too (they had their own header block there as well). - The three `PageView.editInStudio*` pins and the `AppHeader` objectui#12198 pin now run at a phone width, where the floating pencil still lives; what they assert is unchanged. ## Verification - New pins: `layout/__tests__/ShellPageActions-36111.test.tsx` (switch, scope, phone, order, `PageHeader` placement / divider / off, 「Edit app」 target equals the pencil's derivation, label + icon + `lg` breakpoint, read-only eye, member gets nothing); `views/__tests__/PageView.consoleHeader-36111.test.tsx` (title once in the header, authored `page:header` stays as `h2`, group placement on/off, phone face); `RecordDetailView.topBar-27524` gains the group-before-✕ case and the off case; `ObjectView.shellPageActions-36111` pins the list view bar's end (on and off). - Scoped runs: app-shell layout, PageView, ReportView, report index, InterfaceListPage, Dashboard, RecordDetailView top bar, components page/layout renderers: 255 files / 1,978 tests pass; re-run on the merged head after `origin/main` came in: 117 files / 1,043 tests pass. - `pnpm run type-check` clean for `@object-ui/app-shell` and `@object-ui/components`; eslint 0 errors on changed files; `@objectstack/example-showcase` builds. - Clause-② re-measured on built declarations: `PageTitleHostContext` is the one new root export. - Screenshots (before/after for report and custom pages, the group on at list/record/dashboard/report/custom page, narrow window, light/dark) are described in the evidence comment. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (untouched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; eslint passes on every changed file (0 errors). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 summary is for the maintainer). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVcCRGjxwhDjrRVYsY <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgVcCRGjxwhDjrRVYsY --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…objectstack-ai#36129) repo:objectstack#1 · os-sales · session_01L6bhgTKEPqtmiK9SGpHsmW Fixes objectstack-ai#35892 ## What changes On a record page, a related list opened as its own tab (and the same list in the record drawer) now works like the child object's list page: - **Head row.** The child list's tile and title on the left, **+ Add** on the right. The **Open in list** (↗) button is gone. - **Condition row.** The list page's own Sort (several levels) and Filter: `@object-ui/plugin-list` exports it as `ListConditionsBlock`, and because `plugin-detail` sits below `plugin-list`, the record page hands it to the tab through a new slot, `RelatedListConditionsSlotContext` (`@object-ui/plugin-detail`), the way `RecordBodyTableEditorSlotContext` hands in the edit-state editor. It is a host element, not a registered node type, so the registered-types ratchet (every registered type is authorable) is untouched. No view switch, view settings or search. Its labels fold to icons by the row's own width (narrow tab, drawer, phone); no horizontal page scroll. - **Grid.** The list page's grid host keys: column menu, select-first cells with the list page's cell editing wherever the reader may edit the child object (`listInlineEdit` affordance), row selection with the floating bulk bar, and the footer row. Bulk delete is offered where the host hands a row delete and the child object's `relatedRowDelete` row of the affordance map allows it (the write census names the new site). It asks once, counting the rows, then sends the selection (up to every matching row) to the data source's `bulkDelete` in one call; only a data source without one falls back to the row delete the list was handed, all rows settled together, as the list page settles them. The tab then shows how many rows were deleted and how many failed, in the list page's own words (`objectActions.bulkDeleteSuccess` / `bulkDeletePartial`). Footer calculations run over every matching row (`findParams`), not the loaded ones. A status-grouped tab draws no footer row. - **Loading.** Rows load as the reader scrolls (a growing window of 50, sentinel 320px ahead) instead of a pager. - **Counts.** The tab title keeps counting every child; a filter never changes it. The footer counts the rows the filter keeps. A filter that matches nothing says so and keeps the condition row. - **What lasts.** Sort, filter and footer picks last while the reader stays on the record: across its tabs and between its page and drawer. They are keyed by the reader as well as the record (as the list page's draft is keyed by its reader), so another account signed in on the same tab starts from the default. A reload or another record clears them; a drawer opened over another record counts as another record, so the tab behind it starts from the default again, which is the ruling's "another record". **Discard** appears once something changed and puts the tab back; there is no Save. The list page's Discard and this one are one component, `ConditionDiscardButton` (`app-shell`'s `ListDraftActions` now draws it; same look and behaviour as objectstack-ai#36026). - A header sort pick joins an existing multi-level sort by the list page's rule, now shared as `withHeaderSortPick` (`@object-ui/core`). - The record page (`app-shell` `RecordDetailView`, which the drawer draws too) fills the slot with the block, lazy-loaded with the first tab that draws it. Supersedes the remembered related-tab sort of objectstack-ai#35601 (取代 objectstack-ai#35601 的记住排序), on ruling objectstack-ai#35892 (comment) (session-only). Column widths and order for the related tab move to the reader's browser, as the list page keeps them, on ruling objectstack-ai#35892 (comment): `RelatedList` no longer reads or writes them in `sys_user_preference`; the `RelatedListPreference` type stays (no narrowing). Keeping widths after sign-out is objectstack-ai#36110, not this PR. **Upgrade note** (also in the changeset): the header sort and the column widths and order an earlier version remembered for a related tab no longer apply (子表页签里以前记住的排序不再生效). The tab opens in its declared order and its widths start from the default once. Nothing stored is deleted. The default sort and columns of every related list are unchanged. ## Why objectstack-ai#35892 (epic objectstack-ai#35590): the related tab was a reduced list with a pager and an exit to the list page; the reader had to leave the record to sort, filter or total the children. ## Verification Evidence: `/mnt/project-files/build-seat1/35892/` (index `README.md`, shots in `shots/`), from `examples/app-crm` with this branch's console build, Acme Corp → Opportunities (70 children). Light and dark at 1440, 720, 375, plus the record pane opened from the list (app-crm has no drawer navigation). Measured in the real console: - Sort + filter chips, Discard after a change and gone after Discard; kept after another tab and back; cleared by reload. - Tab title 70 while the footer says 14 records under a filter. - Scroll loads 50 → 70. - Footer Sum 3,349,000.00 equals the API total over all 70 rows. - 375: labels fold to icons, no horizontal page scroll. **objectstack-ai#36023 leftover 2 (三项实测, in the tab at 1440):** 1. Enter while editing Deal Value (9000 → 9100): `PATCH crm_opportunity {"amount":9100}`, toast "1 row saved", the selection stays on the same cell. 2. Tab while editing (9100 → 9000): `PATCH {"amount":9000}`, the selection moves one cell right. 3. Enter on Expected Close: the calendar opens directly under the cell (cell bottom 345px, popover top 347px, same left edge) with Today / Tomorrow / Next week / Clear; picking the 15th sends `PATCH {"close_date":"2026-12-15"}`, the cell reads "Dec 15" and the calendar closes. The edited record was restored afterwards. Tests: - New: `RelatedList.tab-35892.test.tsx` (13, including a host that supplies no condition row, the batch delete in one call, a partial failure on both paths, and a second reader starting from the default), `relatedTabConditions-35892.test.ts` (5), `ListConditionsBlock-35892.test.tsx` (5). - Rewritten: `RelatedList.enlargedListGrid-28865.test.tsx` (growing window, scroll load, footer, column widths no longer stored server-side), `RelatedList.enlargedToolbar-27524.test.tsx` (no ↗, header sort not written, remembered sort not read). - `vitest run packages/plugin-detail`: 398 files / 3664 tests passed. plugin-list, i18n, app-shell views, core: see the checks. - Builds of `@object-ui/plugin-list`, `plugin-detail`, `app-shell`, console: pass. ESLint on the changed files: 0 errors. Eager ui-components budget unchanged in kind (339.5 / 346.7 KB). Overlap (`scripts/pm/overlap-check.mjs` at 5b76d7a): merges cleanly with `origin/main` (main merged in at 5bad102, which also took objectstack-ai#36096: the `@object-ui/core` import line of `ui/packages/plugin-list/src/ListView.tsx` keeps both `isObjectExportOffered` and `withHeaderSortPick`) and with objectstack-ai#36131, objectstack-ai#36128, objectstack-ai#36123, objectstack-ai#36114. With objectstack-ai#36136 one line conflicts: the `@object-ui/plugin-detail` import line of `ui/packages/app-shell/src/views/RecordDetailView.tsx`, where this PR adds `RelatedListConditionsSlotContext` (plus the `./relatedListConditions.js` import) and objectstack-ai#36136 adds `stepDisplayText` to the `./RecordApprovalsPanel.js` import. Whichever lands second keeps both. Clause-②: yes Metadata-protocol: none Clause-② is a widening: new exports `ListConditionsBlock` and `ListConditionsHostProps` (`@object-ui/plugin-list`), the slot `RelatedListConditionsSlotContext` and `RelatedListConditionsProps` (`@object-ui/plugin-detail`), new exports `ConditionDiscardButton` and its type `ConditionDiscardButtonProps` (`@object-ui/plugin-list`) and `withHeaderSortPick` (`@object-ui/core`), new i18n keys in every locale pack (`listConditions.chips.discard`, `listConditions.chips.discardHint`, `detail.relatedNoMatches`, `detail.deleteRowsTitle`, and the count family `detail.deleteRowsConfirmation` with the plural slots each pack needs); nothing removed or renamed. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgTKEPqtmiK9SGpHsmW <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgTKEPqtmiK9SGpHsmW --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… page only; a phone and the side drawer draw the standard page (objectstack-ai#36150) (objectstack-ai#36174) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuKobRqmoXkrWkHE4z9tvY3k)_ repo:objectstack#1 · os-sales · session_01L6bhgVHYk1S4MD4WibYGKk Fixes objectstack-ai#36150 Clause-②: no Metadata-protocol: semantic Skills-docs: follow-up objectstack-ai#36179 — skills/objectstack-ui/rules/record-page.md rules 4 and 5 (the `record_more` advice); skills edits ride a domain:skills PR ## 维护者速读 - 手写的记录页(`kind: 'full'`)现在只在电脑整页上生效。手机整页、电脑右侧抽屉(以及分栏预览、界面页预览)一律画平台标准页:字段一列、每张子表一个页签、动态在最后。抽屉里「整页打开」打开的仍是手写页。 - 按您的两条裁决:审批请求页和用户页三处都保留自己的页;页面区块里的动作(`record_section`)标准页不画,演示应用任务的「重算工时」加了 `record_more`,手机和抽屉里在「⋯」里能找到;队列成员、审计日志「同一记录的变更」、发票的打印按钮只在电脑整页有(后续卡由席位立)。 - 不变:插槽页(HotCRM 线索、工单的告警,项目的甘特图)三处照旧;网址点名的页面(打印页等)照旧;电脑整页一点不变。 - HotCRM 主干已经没有手写整页(hotcrm#2671),所以 HotCRM 三处都没有变化,作对照;手写页的三处效果用演示应用的项目页拍。 ## What changes - **One reader of where an authored page applies**, `authoredRecordPageApplies` in the new `ui/packages/app-shell/src/views/recordPageSurface.ts`: true on the desktop full page, false on a phone (`usePhoneViewport`) and in every embedded view. Two exceptions are the host's, named there and nowhere else: a page named in the URL (`…/record/:id/page/:pageName`, which only the full-page route reads, objectui#12715), and `OBJECTS_KEEPING_AUTHORED_PAGE` = `sys_approval_request`, `sys_user` (maintainer rulings 7066490078). There is no author switch. - **`RecordDetailView`**: `usePhoneViewport()` moves up to where the page is assigned, and `assignedPage` is `null` where the authored page does not apply, so the view takes the synthesized standard page there. Inside the view everything downstream (columns, phone header, comments, related lists) keys off `assignedPage`. Slotted pages never populate `assignedPage` and keep their slots everywhere. - **The record route's object scope** (`console/appObjectScope.ts`, L2 M1): `declaredRecordPage` reads the same `authoredRecordPageApplies`, so on a phone the record route takes the synthesized page's arm (the objects pointing at the record's, from the bundle or the registry) instead of only the objects the authored page binds; the standard page's child tabs are then all there. `AppContent` and `useAppObjectScopePrefetch` hand it `usePhoneViewport()`, so the scope follows the width across 768 as the view does. A page named in the URL and the two kept platform pages still read their page's objects. - **Showcase**: `showcase_recalc_estimate` declares `['record_section', 'record_more']` (ruling 7066506909). The authored Task Detail header lists its action ids and leaves it out, so the full page still draws it once, in the section bar; the standard page reaches it under ⋯. `record-action-location-hosts.test.ts` now holds: the authored header lists the record_header / record_more set less the section bar's actions; no action is both a section action and an inline header one; every section action is reachable under ⋯ on the standard page. - **Docs**: `content/docs/ui/pages.mdx` gains "Where an authored page applies" (a window narrower than 768 px counts as the phone; an interface page's preview is embedded). - **Not in this PR** (L2 S1, seat): the spec describes of `kind`, `isDefault`, `apps` and the `slots.tabs` remedy → objectstack-ai#36180 (schema face); `skills/objectstack-ui/rules/record-page.md` rules 4 and 5 and the `record_more` advice → objectstack-ai#36179 (domain:skills). - **Changeset**: `@object-ui/app-shell` minor, both declaration lines. ## Why Card objectstack-ai#36150 (child of epic objectstack-ai#35590; maintainer 2026-11-22 「自定义记录页在手机和右侧预览里不生效、统一用标准页」). The card's item 5 list (page-only things, and what each becomes off the full page) was posted on the card before the build; the two questions it raised were ruled (7066490078, 7066506909). ### Item 5, and how each was handled | Page | Page-only | Off the desktop full page now | |---|---|---| | showcase project | Tasks inline-edit grid tab, three sections, own highlights, footer discussion | standard page: Tasks as the master-detail child tab, ungrouped fields, the object's own highlights, discussion in 动态 (the comment panel once objectstack-ai#36114 lands) | | showcase task | review banner, Recalculate Estimate (section bar), three sections, path | banner gone; Recalculate under ⋯ (`record_more` added); stage menu in the header | | showcase settings | two sections | ungrouped | | showcase invoice (default print page) | letterhead, print line items, Print button | standard page, no Print button (full page only, ruled) | | `sys_approval_request` | `record:approval_decision` | **kept on every surface** (ruled) | | `sys_user` | Security tab, effective access, AI assistants, verify banner, picker | **kept on every surface** until objectstack-ai#35897 (ruled) | | `sys_organization` | three related tabs with set columns | the three stay; the other lookups to the organization also become tabs until objectstack-ai#35897 | | `sys_queue` | Members list paired by text value | full page only (ruled; follow-up card by the seat) | | `sys_audit_log` | "Changes to the same record" list, five sections | list full page only (ruled; same follow-up); ungrouped | | HotCRM main | no authored full page since hotcrm#2671 | no change on any surface | ## Side effects reviewers should know - **Seventeen `RecordDetailView.*` test files mounted the drawer (`embedded`) only as a harness for an authored page** (`feedGrant-12082`, `feedCommentEditDelete-12268`, `reactionRecords-12078`, `authoredActivityThreading-12249`, `reactionWriteFailure-10899`, `withheldMentions-28218`, `discussionFallbackPipeline-8983`, `discussionExplicitComposition-7298`, `commentWriteFailure-10899`, `reactionsCommentRowsOnly-11035`, `reactionKeepIds-11019`, `feedRecordScope`, `topInset-35745`, `oneProvenanceFooter-12307`, `appendInset-27520`, `replyCountOnRead-12144`, `feedLoading`). They now mount the full page, with a one-line note where `embedded` was; no assertion changed. One case changed meaning: `harness` › recordPagePlacesNoComponent-32478 "the record drawer explains it the same way" now pins that the drawer draws the standard page and no explanation, since the authored page does not apply there. - **objectstack-ai#36114** (desktop comment panel) is merged; `main` is merged into this branch. Its pin "no icon on a hand-written page" (`commentsPanel-36075.test.tsx`) now mounts the full page, where an authored page keeps its discussion and shows no icon; a new case beside it pins the opposite on the drawer: an authored-page object's drawer draws the standard page and offers the panel (L1-c item 1). - The phone reading is the window width (`usePhoneViewport`, below 768): a desktop window narrowed below 768 also takes the standard page. ## Verification - New `AppContent.authoredPagePhoneScope-36150.test.tsx` (6), through the real `AppContent` and `MetadataProvider`, the view a double printing the objects it is handed: desktop reads the authored page's objects, a child it does not bind left out (CONTROL); a phone reads every object pointing at the record's, that child included; the width crossing 768 on an open record moves the scope; a media-query change that leaves the window wide (what printing fires) keeps the authored page's scope (L2 N4); on a phone a page named in the URL and the `sys_user` page still read their own objects. **Red before**: with the scope handed `phone = false`, 2 of 6 fail (phone, width crossing). - New `RecordDetailView.authoredPageDesktopOnly-36150.test.tsx` (19, one added for N4: the authored page survives a print-style media-query change), through the real `RecordDetailView`: an authored page draws on the desktop full page; the standard page with its tab strip on the phone (375) and the drawer, the authored block gone; on the drawer the object's `record_more` action is in ⋯. CONTROL: no authored page, the standard page on all three. Exceptions on the phone and the drawer: a slotted page keeps its slot; `sys_approval_request` and `sys_user` keep their page; a page named in the URL draws on the phone. **Red before**: with the reader returning `true`, 4 of 18 fail (the unit pin, phone, drawer, ⋯). - Local: every `app-shell` `RecordDetailView.*`, `recordDrawer*`, `ObjectView*` and `console/__tests__/AppContent*` file, plus every other `ui/` test file naming `RecordDetailView`, `recordDrawer` or `RecordPageDrawerHost`: 319 files, 3,003 tests, all pass. `examples/app-showcase` `record-action-location-hosts.test.ts` 14/14; `objectstack validate` passes. ESLint on every changed file: 0 errors. `overlap-check.mjs`: clean against main and the 4 open PRs that share a file (objectstack-ai#36136, objectstack-ai#36129, objectstack-ai#36114, objectstack-ai#35923). `type-check` for app-shell did not run locally (the ui packages' declarations are not built in this container); CI is the reading. - Browser, showcase on this branch (server 18.6.0, console from this branch's `ui/` on Vite), zh-CN, light and dark, shots in the project evidence folder `build-seat1/36150/`: | Surface | Showcase project | Showcase task | |---|---|---| | Desktop full page, 1280 | authored: tabs 详情 / 任务 / 相关 2 / 附件, footer 讨论 | authored: path, review banner slot, 重算工时 in the section bar, once | | Drawer from the list, 1280 | standard: 概览 / 字段动物园 1 / 成员 1 / 任务 2 / 客户简报 / 附件 / 动态 | standard: 概览 / 动态; ⋯ holds 打开文档, **重算工时**, 重算所选 … 整页打开 | | Phone, 390 | standard: 概览 / 字段动物园 1 / 成员 1 / 任务 2 / 更多 3, fields one column, bottom bar | standard; ⋯ holds 记录工时, 归档, **重算工时** … | - HotCRM main (`1468877`, on 18.6.0) as the no-change control, lead: the standard page with its tabs on all three surfaces (it is a slotted page), its record actions in the header / ⋯ (转化线索, 安排跟进, 记录通话 …). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (ESLint on the changed files, 0 errors). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. Branch name is the harness-assigned `claude/project-thread-0slbpo`. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgVHYk1S4MD4WibYGKk --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…reads and counts the unresolved ones; ✓ and Edit on others' comments appear only where the server admits them (objectstack-ai#36075) (objectstack-ai#36178) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuKfHUa83V2ZjrX6UrED642U)_ repo:objectstack#1 · os-sales · session_01L6bhgT8AtWDue4oTFNAE6H Fixes objectstack-ai#36075 Clause-②: yes (widening): `@object-ui/react`'s `DiscussionContextValue` adds three optional members, `onResolveComment(itemId, resolved)`, `moderatesComments` and `updatesOthersComments`. `@object-ui/types`' `FeedItem` adds five optional members: `resolved`, `resolvedById`, `resolvedByName`, `resolvedAt`, `mentionsViewer`. `@object-ui/plugin-detail` adds exports `useRecordVerdict` (three-state; a definite allow is `allowed` with `record.visible`; `useRecordEditable` reads as before except that `allowed: false` beside a visible record now reads not editable), `threadResolvable`, `threadResolved`, `threadInvolvesViewer`, `filterCommentThreads`, `unresolvedThreadCount`, `DEFAULT_COMMENT_THREAD_FILTER` and the type `CommentThreadFilter`; `RecordCommentsData` adds `resolvable`, `onResolveComment`, `moderates` and `updatesOthers`, and its `count` is now the unresolved threads; `CommentItemActions` adds `onResolve` and `resolved`; `CommentHoverActionsProps` adds `resolved`; `RecordCommentThreadProps['comments']` may carry `onResolveComment`, `moderates` and `updatesOthers`. `@object-ui/i18n` adds ten `detail.*` keys to every pack. Nothing existing is removed or re-typed. Metadata-protocol: none ## 维护者速读 - 评论栏里,每串评论的第一条在鼠标移上去时多了一个对勾。点一下这一串就标成「已解决」,从列表里消失,头部评论图标上的数字减一。再点一次可以恢复成未解决。 - 谁能点对勾:自己发起的串,谁都能点。别人发起的串,只在服务器会接受时才显示对勾。现在只有管理员能点别人发起的串。原因是平台有一条底线规则:普通成员只能改自己创建的行,评论也算,而且这条规则在评论自己的规则之前执行。实测在开发环境里,普通成员标别人的串返回 403,标自己的返回 200。你 13:25Z 的裁定 A(能看记录的人都能标)要等后端单独一个 PR 才能真正生效,这个 PR 不改服务端。 - 评论栏右上角多了一个筛选按钮,里面两个勾选:「显示已解决」打开后,已解决的串也显示出来,上面一行灰字「已由 某某 解决」,再点它的对勾就恢复。「只看我参与的」只留我发起的、我回复过的、提到我的串。筛选不记在浏览器里。全部都已解决时,评论栏说「没有未解决的评论」,并给一个「显示全部评论」的按钮。 - 往已解决的串里再回复,这一串自动变回未解决。图标上的数字现在是未解决的串数。 - 「更多」里的编辑和删除: - 自己的评论照旧(普通成员默认只有编辑:平台默认不给成员删评论的权限,这是另一张决定卡)。 - 别人的评论:删除给能编辑这条记录、并且有评论删除权限的人。编辑还要服务器同意改别人写的行,现在也只有管理员。 - 判断都问服务器,只有明确说「可以」才显示,没回来或出错就不显示。所以普通成员不会看到点了会被拒的按钮。 - 服务端权限一行没改。老部署(评论表里没有「已解决」这一列)不显示对勾和筛选,数字数全部串,和以前一样。手写的记录页和手机端不变。 ## What changes **Resolved threads** (`@object-ui/plugin-detail` `src/comments/`, the backend is objectstack-ai#36071 / objectstack-ai#36104) - `commentThreads.ts`: `threadResolvable` (a real top-level comment, and the host set `resolved`: a reply whose parent is gone cannot be resolved, the server refuses it), `threadResolved`, `threadInvolvesViewer` (the viewer started the thread, replied in it, or is mentioned in it: objectstack-ai#36071's `threadsInvolvingUser` rule, read off the host's viewer-relative marks), `filterCommentThreads` with `DEFAULT_COMMENT_THREAD_FILTER` (`showResolved: false`, `onlyMine: false`), `unresolvedThreadCount`. - `useRecordComments`: `count` is the unresolved threads; `resolvable` says some thread here can be resolved; hands `onResolveComment` and `moderates` on from the context. - `CommentThread`: ✓ on the thread's first comment only (`onResolve`, reading 「恢复」 and pressed when resolved), on a thread the viewer started, and on anyone's only with `updatesOthers` (see the row floor below). A resolved thread carries `data-comment-thread-resolved` and a 「已由 X 解决」 line (`data-comment-resolved-mark`) above its first comment, the comment muted while collapsed. The resolver's name is the host's (`resolvedByName`), else the entry in a mention list the composer already loaded (never read for this), else plain 「已解决」. A refused resolve is swallowed here (the host has said so). - `CommentsPanel`: the filter menu (`ListFilter`, left of ✕) with two checkbox items, offered only while `resolvable`; held in state while the panel is open, never stored. With every thread filtered out it says 「没有未解决的评论」 (or 「没有你参与的评论」) and offers 「显示全部评论」. - `CommentHoverActions`: `resolved` turns the ✓ into the reopen control (`aria-pressed`). Its test hook changes value with it: `data-comment-action="resolve"` on an open thread, `"reopen"` on a resolved one. The panel's other new hooks are `data-comments-filter`, `data-comments-filter-option="show-resolved" | "only-mine"`, `data-comments-empty="filtered"` and `data-comment-thread-resolved`; they are test hooks and carry no contract. **Edit and Delete on other people's comments** (card item 6) - The comment hook (`plugin-audit` `comment-access-hooks.ts`, "Parent EDIT") lets a comment's author, or a caller whose by-id update of the parent record the explain engine admits, edit or delete a comment. The page asks the same question: `useRecordVerdict(object, id, 'update')`, a three-state reading of the verdict `useRecordEditable` fails open on (same cache, same in-flight sharing, same staling; `useRecordEditable` is now `useRecordVerdict(...) ?? true`). A definite allow is `allowed === true` together with `record.visible === true`, as the server admits a by-id write (L2 S3); an answer with `allowed: false` beside a visible record (an on-behalf-of session whose delegator is gone) now reads not editable for `useRecordEditable` too, which is the server's answer. `moderatesComments` is `true` only on a definite allow, and is asked once the panel is open, so a record whose object sets `userActions.edit: false` still sends no explain on open (objectstack-ai#13045). The page's own edit gates (approval lock, `userActions.edit`, predicates) are not the server's comment rule and do not join. - `CommentThread` offers Delete on a comment that is the viewer's own or, with `moderates`, anyone's; Edit on the viewer's own or, with `moderates` AND `updatesOthers`, anyone's; still only where the host hands `onEditComment` / `onDeleteComment` (the `sys_comment` grants). **The row floor (measured; the interim this PR ships)** - The platform's wildcard floor `owner_only_writes` (`default-permission-sets.ts`, `update`, `positions: ['org_member']`, `created_by == current_user.id`) runs before the comment hook. `sys_comment` widens it for `delete` only (`sys_comment_moderation`); `update` is left under the floor on purpose. So the hook's resolve rule (objectstack-ai#36104, ruling 7063285032) and its parent-editor rule are never reached for a rank-and-file member on someone else's row. - Readings on the CRM example with the security service on (one org, two `org_member` members; scripts and JSON in the evidence folder `floor/`): - a member who reads the record PATCHes `{ is_resolved: true }` on the admin's thread: **403** `PERMISSION_DENIED`; on another member's thread: **403**; on their own: **200**; - a member who may edit the record PATCHes `{ body }` on another member's comment: **403**; - explain `sys_comment` `update` by id answers `record.visible: false` for a member on another person's comment, `true` on their own and for the admin. - The interim: `RecordDetailView` asks ONE explain, `update` of the first top-level comment the viewer did not write (`updatesOthersComments`), when the reader first reaches into the open panel (pointer or focus), so opening the record and opening the panel still read nothing more (objectstack-ai#28470). The floor answers the same for every such row. ✓ and Edit on others' rows need its definite allow; pending, a refusal, an error, no explain service and a stale answer offer them on the viewer's own rows alone. Delete keeps its own gates (`feedCommentDelete` and `moderatesComments`), which the floor's delete widening already matches. - Not here: making ruling 7063285032 true for members is a server change (a resolve-only path past the floor), a separate backend PR after Sales answers the decision on editing others' comments. Delete was verified with a principal holding the `sys_comment` delete bit (the admin); `member_default` grants members none, so a member's More holds Edit only (a second decision card). **The record page** (`@object-ui/app-shell` `RecordDetailView`) - The comment read already returns every column (no select, on both the record-page payload and the fallback `find`), so the rows' `is_resolved`, `resolved_by`, `resolved_at` map onto the feed item (`commentResolutionOf`), only where the row carries `is_resolved`. The resolver is named from the viewer or an author of the same discussion; any other resolver is named by ONE `sys_user` read of exactly those ids (`$filter: { id: { $in } }`, `$select: ['id', 'name']`), sent after the discussion is drawn and never twice for an id (L2 S2: the record-page payload has no expand for it, and the 50-user mention roster missed resolvers past it). A refused read leaves 「已解决」. `mentionsViewer` comes from the row's stored `mentions` (`rowMentionsUser`: a JSON id list, ids or `{ id }` objects). - `handleResolveComment`: `dataSource.update('sys_comment', id, { is_resolved })` and nothing else (the one update ruling 7063285032 admits for any reader), offered under the `sys_comment` update grant; the row changes from the stored record the server answers with, a refusal toasts `detail.commentResolveFailed` and changes nothing. - A reply into a resolved thread shows its first comment reopened (`threadRootIdOf`), as the platform stores it; a new comment is unresolved where the deployment stores resolution. - The icon's count is `unresolvedThreadCount` over the rows the page already holds from its one open request (objectstack-ai#28470), not objectstack-ai#36104's `COUNT` read: that would be a second request for an answer already on the page. **Strings**: `detail.reopenThread`, `threadResolved`, `threadResolvedBy`, `filterComments`, `showResolvedComments`, `commentsInvolvingMe`, `noUnresolvedComments`, `noCommentsInvolvingMe`, `showAllComments`, `commentResolveFailed` in all eleven packs (zh-Hant regenerated) and the provider-less defaults. **Docs**: the plugin-detail README and `content/docs/frontend/plugins/plugin-detail.mdx` describe resolved threads, the filter, the count, and Edit / Delete for record editors. ## Why Card objectstack-ai#36075 items 3, 6, 7 and 8, owed by this second PR after objectstack-ai#36114 (the panel, `Part of objectstack-ai#36075`) and objectstack-ai#36104 (the resolved backend, objectstack-ai#36071) merged: resolve and reopen a thread, the 「显示已解决」 / 「只看我参与的」 filter, the icon counting unresolved threads, and Edit / Delete 「只对自己的评论,或有权限的人」. ## Side effects reviewers should know - No server change and no permission change. Resolving rides the backend objectstack-ai#36104 shipped, and moderating uses the server's existing parent-editor rule, each offered only where the server's row floor admits it today (above). - A deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included. - The moderation verdict fails CLOSED where `useRecordEditable` fails open: a deployment whose explain engine does not answer (501, network) shows Edit / Delete on the viewer's own comments only, though its degraded server mode might admit more. A permitted moderator there loses an affordance, never sees a refused one. - The old `RecordActivityTimeline` (hand-written pages, the phone) is unchanged: own Edit / Delete only, no resolve. - Overlap: `overlap-check.mjs` against main and 5 open PRs that share a file: clean, except objectstack-ai#36136, which already conflicts with main on `RecordDetailView.tsx`'s `@object-ui/plugin-detail` import line; this PR adds its two names on a separate import so it adds nothing to that conflict. - Not in this PR: 「复制链接」 in the More menu (in the mock, not in the card's items), and reactor names on hover. ## Verification **New tests (all pass)** - `plugin-detail/src/comments/CommentsPanel.resolved-36075.test.tsx` (16): resolved threads hidden by default; ✓ on a top-level comment only; 「显示已解决」 with 「Resolved by Ada」 and the reopen control; 「只看我参与的」 keeps started / replied / mentioned; without `updatesOthersComments`, ✓ only on the viewer's own threads; the resolver named from a mention list already loaded, never read for it; all resolved → the note and 「Show all comments」; no ✓ and no filter where rows carry no `resolved`; no ✓ without the write; a moderator's Edit / Delete on another's comment; a moderator whose update of others' rows is refused gets Delete, not Edit; `updatesOthersComments` alone is not moderating; the CONTROL without moderation; none without the host's writes; the count is unresolved threads, and every thread with no resolution stored. - `plugin-detail/src/useRecordVerdict-36075.test.tsx` (6): true / false; `allowed: false` beside a visible record reads false, a visible record with no `allowed` reads `undefined`; `undefined`, never true, while pending, on non-OK, offline, and no record verdict; nothing asked when disabled; CONTROL `useRecordEditable` still fails open; one shared question. - `app-shell/src/views/RecordDetailView.commentsResolved-36075.test.tsx` (15), the real `RecordDetailView`: the icon counts 1 of 2 threads and the resolved one appears under 「显示已解决」 named; a resolver the page cannot name read by id, once, and named; no user read when every resolver is named; ✓ writes exactly `{ is_resolved: true }` on the top-level row, the thread leaves, the count goes; a refused ✓ toasts and changes nothing; reopen writes `{ is_resolved: false }` and the count returns; a reply into a resolved thread reopens it; another member's comment offers Edit / Delete on an explain allow, not on a refusal, not on an answer with no record verdict; ✓ on another member's thread beside a moderation refusal (N3); the row floor: ONE `sys_comment` explain, only once the reader reaches into the open panel; refused → no ✓ and no Edit on others' rows, Delete still, own rows unchanged; admitted → ✓ and Edit; no answer → own threads alone. - Reverse checks: with the moderation gate made fail-open (`!== false`), 「not offered on a guess」 fails; with the row-floor gate made fail-open, 「not on a guess: no answer offers ✓ on the viewer's own threads alone」 fails; with the old `record.visible`-only reading, the `allowed: false` case fails. - `RecordDetailView.recordOpenOneRequest-28470` pins that opening the panel reads nothing more; the probe waits for the reader to reach into the panel for that reason. **Local runs** (at `c268e113`, base main `6aacad95`): every `app-shell/src/views/RecordDetailView.*`, `recordDrawer*`, `recordCommentsPanel*` file and the whole `plugin-detail/src` (504 files, 4,517 tests): all pass but one at the first reading, `hiddenAffordanceVerdicts-13045` (the moderation verdict was asked on open where `userActions.edit: false` asks none); fixed by asking it once the panel opens, then that file and the comment files re-run green (7 files, 65 tests). `type-check` (src and tests) clean for types, react, plugin-detail and app-shell; ESLint on every changed file: 0 errors; `check:i18n-keys`, `check:i18n-drift`, `check:i18n-stale-fill`, `check:new-line-citations` pass; `check:i18n` / `check:i18n-coverage` answer exit 3 locally (they need a full `pnpm build`), CI reads them. **Local runs at the new head**: `plugin-detail/src` and every `app-shell/src/views/RecordDetailView.*`, `recordDrawer*`, `recordCommentsPanel*` file: 504 files, 4,509 passed; the one failure (`recordOpenOneRequest-28470`, the probe on panel open) is fixed by asking on engagement, and those files plus `plugin-detail/src/comments` re-ran green (104 files, 837 tests). `type-check` clean for react, plugin-detail and app-shell; ESLint 0 errors on the changed files. **Browser evidence** (seat-side folder `/mnt/project-files/build-seat1/36075/pr2/`): - the first set (`README.md`, light and dark: the panel, the filter, the count, 「已由 林晓 解决」, admin's Edit / Delete on a member's comment); - `floor/`: the row-floor readings above; - `interim/` (`README.md`, light and dark), on the CRM example with the security service on: - a reading member on another member's thread: Reply and emoji only; on their own: ✓, and More → 编辑; - a record-editing member on another member's thread: Reply and emoji only; - the admin: ✓, and More → 编辑 / 删除; - E1: a member resolves their own thread, count 2 → 1, after reload 1, 「已由 林晓 解决」, reopen → 2; - S2: 「已由 Dev Admin 解决」 from one `sys_user?filter=["id","in",[…]]&select=id,name&top=1` read. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. Branch name is the harness-assigned `claude/project-thread-5vdwwn`. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgT8AtWDue4oTFNAE6H)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgT8AtWDue4oTFNAE6H <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgT8AtWDue4oTFNAE6H --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… drawer; lookup cells draw an edit button (objectstack-ai#36015) (objectstack-ai#36128) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuLB1HMq57UcoRZFjpa8YhHZ)_ repo:objectstack#1 · os-sales · session_01L6bhgWkLah49N6UoD4CS3S Fixes objectstack-ai#36015 The card's 11:13Z revision (maintainer: 「同意,改卡」): a single click on a lookup chip opens that record in the side drawer, and a lookup cell has a pencil button. objectstack-ai#36033 landed the rest of the card with `Refs objectstack-ai#36015`; this PR is the lookup-cell part and closes the card. Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 列表里单击关联记录的小标签(比如联系人列表里的「客户」),右侧抽屉打开那条记录,列表不动。关掉抽屉后,滚动位置和选中的格子都还在。 - 点格子里小标签旁边的空白,只是选中这一格。一格里有几个标签,点哪个开哪个;选中后按 Ctrl+Enter / Cmd+Enter 在抽屉里开第一个;按住 Ctrl / Cmd 点,仍是新标签页整页打开。 - 关联格在鼠标移上去或已选中时,右边出现铅笔按钮,点了进入编辑(出现关联记录选择器),和双击、回车一样。没有编辑权限、字段只读、记录被锁时不出现。这个位置原来放「打开」图标,关联格不再画它。 - 人员的小标签(负责人、创建人,指向 `sys_user` 的关联)不变:单击只选中,选中后有「打开」图标,没有铅笔。邮箱、电话、网址、名称列都不变。手机上照旧整页打开。 - 抽屉的网址带上了记录和它的对象(`?recordId=…&recordObject=…`):刷新后抽屉还在,按后退关掉抽屉,和名称列「在侧边打开」一样。 - 风险:改到五个包(字段格子、表格、网格、列表、控制台抽屉);给宿主加了两个可选接口,不传时行为和以前完全一样;没有新文案键(铅笔用已有的「编辑」`table.edit`)。 ## What changes On a grid with the select-first cell model whose host opts in (today the console's list page), a **reference cell** is a column of `lookup`, `master_detail` or `tree` type whose `reference` is not `sys_user`. **`@object-ui/fields`: `index.tsx`** - `ReferencedRecordLink`'s anchor carries `data-record-object` and `data-record-id`, the record the chip names. Nothing else changes in its markup or its click. **`@object-ui/components`: `context/gridCellSelection.tsx`, `index.ts`** - `GridCellSelection` gains an optional `referenceCells?: GridReferenceCells | null`. `GridReferenceCells` (exported as a type) is `isReferenceColumn(columnKey)` (asked per column on every render, so it answers from the column alone) and `openRecord(objectName, recordId)`. **`@object-ui/components`: `renderers/complex/data-table.tsx`, `dataTableCellSelection.ts`** - New `recordChipAt` / `firstRecordChip`: the record a chip (`a[data-record-link][data-record-object][data-record-id]`) at or around the target names. - In a reference cell, the select-first `onClickCapture` that objectstack-ai#36033 added still cancels a plain click on the chip and selects the cell, and then calls `referenceCells.openRecord` for the chip clicked. A click beside the chips only selects. Ctrl, Cmd, Shift and Alt clicks, a non-primary button and a touch tap pass through to the link as before. - A double-click on a reference chip does not also edit the cell (its first click opened the record). - Ctrl/Cmd+Enter on a selected reference cell opens its first chip through `referenceCells.openRecord`; every other cell keeps objectstack-ai#36033's behaviour. - New `CellEditButton` in every reference cell while no editor is open: a pencil at the cell's right edge, labelled with the existing `table.edit` key, shown on cell hover (`group-hover/cell`) and while the cell is selected. Its click calls `attemptEdit`, the same gate double-click and Enter pass through. It is drawn only when `readOnlyReasonOf(row, col)` is `null`; that is asked when the pointer enters the cell and when the cell becomes selected, never per render (the `describeCell` contract). It takes no focus. A reference cell does not draw objectstack-ai#36033's `CellOpenButton`. **`@object-ui/plugin-grid`: `ObjectGrid.tsx`** - New runtime prop `openReferencedRecord?: (objectName, recordId) => void`. With `cellSelection` and this prop, the grid's `GridCellSelection` carries `referenceCells`: `isReferenceColumn` reads the column's field (`opensReferenceInPlace`: lookup / master_detail / tree, reference not `sys_user`), `openRecord` is the prop. **`@object-ui/plugin-list`: `ListView.tsx`** - New host prop `openReferencedRecord`, handed to the grid only (`object-grid` views), as `recordLinkAdornment` is. **`@object-ui/app-shell`: `urlParams.ts`, `views/objectViewRecordNavigation.ts`, `ObjectView.tsx`, `objectViewListRenderer.tsx`, `objectViewRecordOverlay.tsx`, `recordDrawerStack.tsx`** - New reserved URL param `RECORD_DRAWER_OBJECT_PARAM` (`recordObject`), listed in `RESERVED_URL_PARAMS`: the object of the drawer root's record when it is not the listed object. - `handleOpenReferencedRecord(objectName, recordId)`: the listed object's record opens as the name cell's 「在侧边打开」 icon opens it (`?recordId=` only); another object's sets `?recordId=` and `?recordObject=` (a push, so Back closes it). A chip clicked while the drawer is open swaps its root. - `drawerRoot` is that record when `?recordObject=` names another object the console knows and the server reads one record of (`servesRecordRead`); it has no sibling set, so the drawer draws no ↑ ↓ counter. Unknown or unread object: no drawer. - Closing the drawer, the name cell's icon and the page origin a phone redirect builds drop `?recordObject=` with `?recordId=`. - The drawer's ⤢ at a root of another object opens that object's page (`expandedRecordPath`); the listed object's root keeps its list-relative route and origin. - On a phone a `?recordObject=` link answers with that record's own page, as `?recordId=` does for the listed object. - `RecordStackDrawer` takes `listObjectName`; the list marks the root's row as active only when the root is a record of the listed object. - `ObjectView` passes `handleOpenReferencedRecord` only when its list has the drawer (`navOverlay.mode === 'drawer'`, not a phone), the same condition as `openInPanel`. A list whose rows open nothing (`none`, a list-only object) keeps objectstack-ai#36033's behaviour: the chip only selects. **Field types this reaches:** `lookup`, `master_detail`, `tree` drawn through `LookupCellRenderer` / `ReferencedRecordLink`, when the referenced object is routable from the list (the chip is an anchor only then). A `user` field (`UserCellRenderer`, avatars) draws no link and is untouched. **Readings (claim A–G):** - **A.** Only grids whose host passes `openReferencedRecord` (the console's object list). Every other host keeps objectstack-ai#36033's behaviour. - **B.** Ctrl/Cmd+Enter on a lookup cell opens its first chip in the drawer. - **C.** Person cells (lookups to `sys_user`) draw no pencil and keep objectstack-ai#36033's open button. - **D.** A chip clicked with the drawer open swaps the drawer's root, as the name cell's icon does. - **E.** A lookup to the listed object itself opens the listed object's drawer, with `?recordId=` alone. - **F.** A chip with no link (unroutable, unread, restricted or name-only) only selects; an editable cell still draws the pencil. - **G.** The drawer's record and object live in the URL, as `?recordId=` does (ui `AGENTS.md` objectstack-ai#8). Docs: `content/docs/frontend/plugins/plugin-grid.mdx` § On an object's list page (new bullet after the click bullet; the click bullet objectstack-ai#36033 wrote now leaves out the lookup chip a host opens in place). objectstack-ai#36033's changeset is untouched; this PR's own changeset says it (Notes, below). ## Notes - **objectstack-ai#36033's pending release note is left as it is** (`.changeset/36015-list-cell-click-only-selects.md`, restored from the base in `87d42cbd`; head `b59bf991`..`9c225b51` had added a sentence to it as a declared correction, which kept `Check Changeset` red). This PR's own note, `.changeset/36015-lookup-chip-opens-in-drawer.md`, now says what it changes about that note instead: "This replaces, for lookup chips on that page, the earlier change in this release where a plain click on a lookup chip only selected its cell." The docs bullet in `plugin-grid.mdx` keeps the L1-b N1 rewording. ## Tests Added, each a top-level `describe` in the component's existing harness file: - `components/src/__tests__/data-table-select-first-35684.test.tsx`, "a reference chip opens its record in place": a plain click on the chip calls `openRecord` with the chip's record, cancels the default and selects the cell, and a double-click on it opens no editor; a click beside the chip only selects, Ctrl and Cmd clicks follow the link; Ctrl+Enter opens the first chip through the host; the edit button is hidden until the pointer enters the cell, then shown on hover and while selected, opens the editor, and the cell draws no open button; a cell the host says opens no editor draws no edit button; a column the host does not name (a person) keeps the link behaviour and the open button; control: with no `referenceCells` the chip only selects and no edit button is drawn. - `plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx`, "a lookup chip opens its record in the host's place": through `ObjectGrid` with a routing host, the account chip carries `data-record-object` / `data-record-id` and a single click calls `openReferencedRecord('crm_account', 'a7')` without following the link; the lookup cell's edit button opens its editor and the `owner_id` (lookup to `sys_user`) cell draws none; a person chip only selects; control without the prop. - `app-shell/src/views/objectViewRecordNavigation.listRows-27524.test.tsx`, "a lookup chip opens the record it names in the list's drawer": the URL params for another object and for the listed object, `drawerRoot` for another object (no siblings), for an unknown object (`null`) and for the listed object (siblings kept), close drops both params, ⤢ opens the other object's page. - After L1-b's S1 (fixed in `9c225b51`: a double-click on a chip opened its record twice, so the console's router pushed the same URL twice and the first Back left the drawer open). The grid opens a chip on a click's first press only (`e.detail > 1` opens nothing), and `handleOpenReferencedRecord` returns when the URL already names that record of that object, which also covers a fast repeat click. Each test below fails without the fix: - `data-table-select-first-35684.test.tsx`, "a double-click on the chip opens its record once": click, click (`detail: 2`), dblclick; `openRecord` is called once and no editor opens. - `objectViewRecordNavigation.listRows-27524.test.tsx`, "the record the drawer already shows is not pushed again": no `setSearchParams` for the record already shown, of another object or of the listed one; the same id under another object still opens. - same file, "in a router: a chip opened twice (a double-click) leaves one history entry, and one Back closes the drawer": a declarative `MemoryRouter` (it pushes on every navigate, the same URL included); after two opens the URL names the record, and one `navigate(-1)` returns to `?view=all`. No existing test was rewritten or dropped. Local runs. First on main `8145424b` merged with objectstack-ai#36033's head `cefd3e31`, a full `pnpm build`: - `vitest run packages/components/`: 501 files passed. `packages/fields/`: 316 passed. `packages/plugin-grid/`: 298 passed. `packages/plugin-list/`: 181 passed. - `packages/app-shell/` in full did not finish inside this container's 50-minute window; the parts this diff touches ran: `src/views/ObjectView*`, `src/views/objectView*`, `src/views/__tests__/recordDrawer*`, `src/views/__tests__/recordPane*`, `src/urlParams*`, `src/__tests__/`: 128 files passed. - After objectstack-ai#36033 merged, the change was replayed on main `dc10b3b4` as one commit (conflicts only in `objectViewListRenderer.tsx`'s memo dependencies and the two appended describes of `ObjectGrid.cellSelection-35684.test.tsx`, both sides kept), then a full `pnpm build` and `vitest run` of `components/src/__tests__/data-table*`, `plugin-grid/src/__tests__/ObjectGrid.cellSelection*`, `app-shell/src/views/objectViewRecordNavigation*`, `app-shell/src/views/__tests__/recordDrawer*` and `fields/src/`: 348 files passed (2 skipped). - `type-check` in `components`, `fields`, `plugin-grid`, `plugin-list`, `app-shell`: exit 0 (on both bases). - `eslint` on the changed files: 0 errors. - `overlap-check` on the pushed head `b59bf991`: clean against `origin/main` (`dc10b3b4`, objectstack-ai#36033 merged) and the four open PRs sharing a file (objectstack-ai#36114, objectstack-ai#36105, objectstack-ai#36096, objectstack-ai#36024). - `87d42cbd`: `main` `6c7c6db2` merged in (clean). `check-empty-changeset` and `check-changeset-no-major`: pass. `overlap-check`: clean against `main` and objectstack-ai#36123; objectstack-ai#36133 (draft) conflicts only on the one-line `useMemo` dependency list in `objectViewListRenderer.tsx`, which each PR extends by one name; the second to land merges `main`. ## Verification (browser) CRM and Todo examples (`--fresh`), Console via Vite on this tree, Chromium, 1280 light and dark, 375 light and dark. Screenshots and the journey log: project folder `build-seat1/36015/PR2/` (`after-*`, `after-journey.log`). The before state is objectstack-ai#36033's after state (`build-seat1/36015/after-*`): a chip only selected its cell. | Step | After | |:--|:--| | Contacts, hover the Account cell | pencil at the cell's right edge | | Click the Acme Corp chip | drawer opens Acme Corp (`?recordId=…&recordObject=crm_account`), the list stays, the cell is selected | | Close the drawer | params gone, the Account cell still selected | | Click beside the chip | cell selected, nothing opens | | Click the pencil | the lookup editor opens in the cell | | Ctrl+Enter on the selected Account cell | drawer opens Acme Corp | | Click the email text | cell selected, no navigation, open button in the cell | | Click the name | the contact's record page | | Todo tasks, hover the Assigned To cell (lookup to `sys_user`) | no pencil | | Click the Dev Admin chip | cell selected, page stays, open button on hover | | 375 | phone cards (no grid), unchanged | ## Acceptance notes 1. Click a lookup chip: the drawer opens that record, the list stays, closing it keeps scroll and selection: yes (browser). 2. Click beside the chip: the cell is selected, nothing opens: yes. 3. Hover a lookup cell: a pencil; it opens the cell's editor (the lookup picker); none on a read-only field: yes (browser for the pencil and the editor; read-only unit-pinned). 4. Person chips (owner): single click only selects: yes (browser, Todo's Assigned To, a lookup to `sys_user`). 5. Ctrl/Cmd-click a chip opens the record in a new tab: yes (the click passes through to the anchor; unit-pinned). 6. Email, phone, URL, Ctrl/Cmd+Enter on them and the name column: unchanged from objectstack-ai#36033: yes. 7. This body lists the field types reached and the tests: above (none rewritten). --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgWkLah49N6UoD4CS3S)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgWkLah49N6UoD4CS3S <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgWkLah49N6UoD4CS3S --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…es and publishes it; layout and row colour join the list draft (objectstack-ai#35955 PR 2) (objectstack-ai#36123) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuG6LywHEovAnGuZpiKQEc2W)_ repo:objectstack#1 · os-sales · session_01L6bhgWyeXh2Keywo6oK1Nn Part of objectstack-ai#35955 (PR 2 of three: PR 1 objectstack-ai#36026 made a list change a draft; PR 3 retires the server-side list preference and runs in parallel. The card stays open.) Clause-②: yes (widening) — five new `console.objectView.draft.*` keys in every `@object-ui/i18n` locale pack (`saveToViewConfirmTitle`, `saveToViewConfirm`, `saveToViewConfirmButton`, `savedForEveryone`, `pendingDraft`); `@object-ui/plugin-list` `ListView` gains the optional host prop `onRowColorChange` and two optional `viewDefaults` members, `viewType` and `rowColor`; nothing removed or renamed Metadata-protocol: none ## 维护者速读 - 共享视图上,能改这个视图的人(管理员,且视图所在的包接受保存)在「保存 ▾」里也看到「保存到这个视图」:先问一次「所有用这个视图的人都会看到」,确认后存并立刻发布,提示「已保存,所有人可见」。选项菜单里的「保存」同一条路。 - 这个视图已有没发布的修改(谁存的都算)时什么都不写,提示先去视图设置里发布或放弃;不替任何人发布。保存人的行高、列宽不会写进共享视图。 - 显示面板的「布局」「行颜色」现在也是草稿:点开记录再回来还在,两条「保存」都会存进去,「放弃」还原成视图自己的。 ## What changes **Save to this view on a shared view** (`ObjectView.tsx`, `objectViewViewCrud.tsx`, `runtime-metadata-persistence.ts`) - Offered when `canSaveToSharedView`: not an environment list, not a personal view, and the same test the footer calculation's pick uses (`isAdmin && !activeViewPackageRefusesSaves && isSavedViewId(savedViews, id)`), so a read-only package's view and the fallback tab never get it. A personal view keeps its own save. The phone / narrow `Save ▾` is the same component; the options menu's Save calls the same handler. - It asks once through `confirmHandler` (`saveToViewConfirmTitle` / `saveToViewConfirm` naming the view / `saveToViewConfirmButton`, cancel `console.objectView.cancel`). - The body is the view's own config with the draft laid over it (`layListStateOverView`, split out of `buildPersonalViewConfig`), then `buildViewConfigSaveBody`, the body the view settings panel saves. The reader's row height is left out (`rowHeight: undefined` on the laid preference, F5); column widths never travel. - New `saveAndPublishRuntimeMetadata(type, name, body, ctx)`: a draft write with the first-write pin (`{ mode: 'draft', ifNoneMatch: '*' }`), then `publish`. A `409 METADATA_CONFLICT` on the write means a draft is already pending; it resolves `'pending-draft'` and nothing is written or published. A publish the server refuses discards the draft this save wrote (`reset(type, name, { state: 'draft' })`) and rethrows. Caches are invalidated and the draft ledger announced on both paths. - `handleViewSaveAndPublish` shows the saved body at once (`setViewDraft`) and lets `handleDraftBarChange` drop it when the saved-views re-read lands (objectstack-ai#36031), so the list does not flash the old sort. On `'published'` the list draft is dropped (`handleResetView`) and "Saved, visible to everyone" is toasted; on `'pending-draft'` the draft stays and `pendingDraft` is toasted. - Using the server's pin instead of a client read of the draft closes the read-then-write window the premise read named (P4). The window left is between this save's draft write and its publish: the view settings panel writes its draft without the pin, so a settings save landing in those milliseconds would overwrite this draft and be published with it. A known edge, not closed here: card objectstack-ai#36137. **Layout and row colour join the draft** (`objectViewListRenderer.tsx`, `ListView.tsx`, `personalViews.ts`) - The renderer wires the published `onViewChange` to `listDraft.patch({ viewType })` and the new `onRowColorChange` to `listDraft.patch({ rowColor })`; picking the view's own value drops the entry. The draft's values go to `ListView` as `schema.viewType` / `schema.rowColor`, and the view's own through `viewDefaults.viewType` / `viewDefaults.rowColor`, so the `layout` / `rowColor` parts and the Display count still judge against the view after a remount. - `ListView`: `onRowColorChange` fires on a pick in the row colour panel (the rule in force) and on Clear (`null`), never at mount or for a reset. Each new `viewDefaults` member is read only when its key is present; without them nothing changes. - Both saves read them: `PersonalViewListState.display` carries `viewType` and `rowColor`; a layout switch retypes the view and fills the kanban / gallery mirror from the saved columns when the block lacks one (`IN_PLACE_COLUMN_MIRRORS`). Save as my view builds from `listDraft.draft.viewType ?? activeView.type` and passes the row colour. **i18n**: the five keys in all ten hand-written packs; zh-Hant regenerated (`pnpm gen:zh-hant`). **Docs**: `ui/packages/plugin-list/README.md` (new host-props section), `content/docs/ui/views.mdx` (§ "A user's list state never writes the view"), `docs/qa/platform-checklist/areas/records-forms.json` `records-forms.adhoc-filter-sort-builder` revision 14 (steps[8], acceptance[5], negative[4]; not loosened). ## Tests - New `ObjectView.sharedViewSave-35955.test.tsx` (8): confirm, then `save(... { mode: 'draft', ifNoneMatch: '*' })` then `publish`, body carries the draft sort and the view's own row height `short` while the reader's stored one is `tall`; cancel writes nothing; pending draft (409 `METADATA_CONFLICT`) writes nothing more and toasts; refused publish resets the draft; a read-only package's view is not offered; layout and row colour laid into the schema and `viewDefaults` and kept across a remount; picking the view's own value drops it; the save retypes to kanban with its columns mirror and the row colour. - `runtime-metadata-persistence.test.ts` (+4): published; pending-draft; a `409` with another code (`DESTRUCTIVE_CHANGE`) rethrows; refused publish resets and rethrows. - `ListView.personalization-28950.test.tsx` (+4): the `rowColor` part judged against `viewDefaults`, a control without them, `onRowColorChange` on pick and on Clear (`null`), and no call at mount. - `ObjectView.personalViews-29635.test.tsx` (+1): the draft row colour reaches the personal save and Save as my view. - L1-b S1 (`ObjectView.sharedViewSave-35955.test.tsx` +3, `ObjectView.personalViews-29635.test.tsx` +2): the confirm and Save as my view's default name read the view's tab label (`listLabel`, `viewTabLabel`), with a view that has no label and one whose label is a locale map (plus a plain-label control on the confirm). Ablated: the raw label turns the locale-map confirm case and both copy-name cases red. In the shared-view harness a stored view with no label already arrives named by its name, so that case is a pin, not a discriminator. - `ObjectView.listUrlState-11860.test.tsx` (+2, G2): a reload whose address was rewritten before the seed applies its `uf_*` state; a reload on a record page then Back applies the list entry's `uf_*` state. Pins of current behaviour, no behaviour change. ## Acceptance notes - P3 (seat 14:28Z): any pending draft refuses, the saver's own earlier draft too; the server does not record a draft's author. - F5: a shared save never carries the saver's row height or column widths; a personal save still carries the row height, as on main. - The view settings panel and the footer calculation still save a shared view as a draft that the view settings publish (ruling 7045525672 unchanged). - Not touched: where column widths, row height and the view order are stored (PR 3). - Landing order with objectstack-ai#36133 (PR 3): both bump `records-forms.adhoc-filter-sort-builder` to revision 14 and edit the same section of `content/docs/ui/views.mdx`. Whichever lands second renumbers to 15 and merges the two history entries. - L1-b N1 taken: the pending-draft test is `isDraftVersionConflict` from `DraftConflictDialog.tsx`, the predicate the other draft-door callers use. ## Verification CI and local runs at head `da8b797b`; the S1 commit's tests and type check at `0ada6797`. - CI: every check green (54 passed, 10 skipped by path), mergeable clean. The first head (`433d7c02`) went red on four pins, each fixed in its own commit: the `rowColor` firing control in `object-view-unmirrored-keys-7779.test.ts` now reads `const viewOwnRowColor = viewDef.rowColor ?? listSchema.rowColor;` (the relay reads the view's own rule once, so the draft's can lie over it); the de quote-pair count in `de-quote-pairing-3876.test.ts` goes 120 to 121 for `saveToViewConfirm` („{{name}}“); three `viewDefaults` equalities in `ObjectView.userListState-12418.test.tsx` gain `viewType`; a checker narrowing in the new test is read through a cast. No pin was loosened: each asserts the same thing at the new spelling. - Local (`pnpm --dir ui exec vitest run` over `app-shell/src/views/ObjectView*`, `runtime-metadata*`, `personalViews*`, `listDraft*`, `plugin-list/src/__tests__/ListView*`): 237 files, 2290 tests; the only 3 failures were the `viewDefaults` equalities above, 40/40 after the fix. `packages/i18n`: 105 files, 1962 passed. `packages/types` 7779: 236/236. - `pnpm --dir ui/packages/app-shell run type-check` exit 0; `pnpm --dir ui/packages/plugin-list run type-check` exit 0 (both include `tsconfig.test.json`). - eslint on every changed `ui/` source and test: 0 errors. `check:i18n-keys`, `check:i18n-drift`, `check:control-bytes`, `check:vi-mock-specifiers`, `check:vi-mock-override-shape`, `check:metadata-write-doors`, `check:changeset-claims`, `check:pending-changeset-literals`, `check:readme-exports`, `check:new-line-citations` exit 0; `node scripts/check-platform-checklist.mjs` OK. - `node scripts/pm/overlap-check.mjs --base=origin/main`: clean against main `dc10b3b4` and open objectstack-ai#36114, objectstack-ai#36105, objectstack-ai#36096, objectstack-ai#36024. - Clause-② measured on the built `ui/packages/plugin-list/dist/ListView.d.ts`: `onRowColorChange` and the two `viewDefaults` members are added, optional; no member removed or narrowed. The seat runs the declaration L2. - Browser, at `0ada6797` (showcase `objectstack dev`, the `ui/` HMR console pointed at it; checklist `records-forms.adhoc-filter-sort-builder` steps[8]), on a shared view the admin created and published (`showcase_task.team_tasks`, package `com.example.showcase.custom`): - admin, sort by Priority: Save offers "Save to this view"; the confirm reads "Everyone who uses “Team tasks” will see these changes."; confirming sends `PUT /api/v1/meta/view/showcase_task.team_tasks?mode=draft` with `If-None-Match: *` (200) then `POST …/publish` (200) and toasts "Saved, visible to everyone"; Discard and Save go. - a second reader who is not an administrator (`phone.demo@example.com`) opens the view sorted by Priority, and after a sort of their own is offered only "Save as my view". Control: on the read-only package's `showcase_task.in_progress` the admin is offered only "Save as my view" too. - with a draft of the view already pending, the admin's confirmed save gets `409` on the pinned `PUT`, sends no publish, toasts the pending-draft hint and keeps Discard and Save; the pending draft is still there afterwards and the live view unchanged. - Not driven in the browser: the row height (F5) and the layout and row colour round trip, pinned in the unit tests above. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgWyeXh2Keywo6oK1Nn --- _Generated by [Claude Code](https://claude.ai/code)_ <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgWyeXh2Keywo6oK1Nn --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…side the record's tabs; the right summary rail is retired (objectstack-ai#35890) (objectstack-ai#36136) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> Fixes objectstack-ai#35890 _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuSuWjKV41568rAPVdLLNa2U)_ repo:objectstack#1 · os-sales · session_01L6bhgUZTwDqtEFzNFCVTri Part of epic objectstack-ai#35590 (record page redo). One PR for the card. Clause-②: yes (widening): `RecordPageColumns` (exported from `@object-ui/plugin-detail`) gains the optional props `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange`, and `onEnlargeRelated` an optional second argument `{ replace?: boolean }`. `rightColumn` and `rail` stay on the props as `@deprecated` no-ops, so no caller breaks. New exports: `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH`, `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported and is now `@deprecated`. `@object-ui/i18n`: two new keys in every pack (`detail.approvalPendingStep`, `detail.detailsColumnResize`), and `detail.recordTabOverview` changes its text (概览 / Overview → 详情 / Details); every key the retired rail read stays in every pack, unread. The `RecordSummaryRail` module was internal (never exported from the package entry) and is deleted. Metadata-protocol: none ## 维护者速读 - 记录整页够宽时(放得下左 320 + 间隔 24 + 右 400),字段固定在左栏,其他页签(子表、附件、审批、动态)在右边,默认打开第一个;左栏默认 400,空间紧时自动让到 320,可以拖动,宽度按对象记在浏览器里。 - 右侧摘要栏(审批 / 附件 / 最近动态 / 其他相关卡片)在所有宽度都去掉了,⊟ 按钮和 ⌘⇧, 快捷键一起去掉;第一个页签改名「详情」。 - 「审批中」标签在有当前步骤时显示「审批中 · 当前步骤」(审批人自己仍是「待你审批」)。 - 抽屉、手机、窄窗口不分栏,照旧是一栏页签;它们也会看到两处变化:右侧摘要栏没了,第一个页签叫「详情」。手写的记录页不受影响;字段里放了子表的页面(objectstack-ai#35889)不分栏。 - 隐藏了的子表仍能从「更多」或带 `?related=` 的链接打开。 - 实测:1440 宽、左侧导航展开、评论栏打开时,内容只有 708,不够 744,页面退回一栏页签(打开的页签保持不变)。1280 和 1366 评论栏打开仍分栏。Sales 已接受这个代价,收起导航即恢复三栏(objectstack-ai#35890 note 7069882604)。等 objectstack-ai#36112 改成 1280 起默认展开导航后,1280 和 1366 展开导航再打开评论栏也会退回页签,收起导航即恢复三栏。 ## What changes **When the page pins.** Ruling on the card ([comment 7064066204](objectstack-ai#35890 (comment)), option 0 of the reviewed decision card): a full page pins its details when its content fits **left 320 + gap 24 + right 400** (744 content px). The left column is 400 px (or the reader's dragged width) and narrows by itself to 320 px to leave the tabs 400 px; narrower than that, the page falls back to the tab row. This replaces the card's line 「沿用出现右栏的宽度」. Pinning is measured on the page content's own width (`clientWidth`, ResizeObserver), never on the window, so the comment panel of objectstack-ai#36075, which gives way at window widths of 1280 and up, narrows the page and the page re-decides by itself. What that means on common windows, **measured** in the console against the CRM example (`measure-l1c.json`; the page frame is the window minus the nav minus the host's 48 px margin, and the content is the frame minus its 48 px padding; at 1280 and 1366 the nav is collapsed, at 1440 it is open at 256 px; comment panel 380 px, `beside`): | Window | Frame, panel closed | Panel closed | Frame, panel open | Panel open | |---|---|---|---|---| | 1280 | 1232 | pinned, details 400 / tabs 760 | 852 | pinned, details 380 / tabs 400 | | 1366 | 1318 | pinned, details 400 / tabs 846 | 938 | pinned, details 400 / tabs 466 | | 1440 | 1136 | pinned, details 400 / tabs 664 | 756 (content 708) | **not pinned**: the tab row, with 「详情」 first and the shown list kept | The earlier 1440 row (record area 1184, tabs 412) assumed no host margin; the measured frame is 48 px narrower, so with the nav open and the panel open the content is 708, under 744, and the page uses the tab row. Windows of about 1416 to 1475 with the nav open and the panel open land here. This follows the ruled threshold as written, and Sales accepted it: with the sidebar expanded, opening the comment panel can return the fields to the tab row, and collapsing the sidebar restores three columns ([note 7069882604](objectstack-ai#35890 (comment)), with objectstack-ai#36112 F1). These windows hold for today's sidebar threshold (expanded from 1416). Once objectstack-ai#36112 PR B makes the sidebar start expanded from 1280 (ruling 7069868269), the band with the sidebar expanded becomes about 1280 to 1475, so 1280 and 1366 also go to the tab row when the panel opens; collapsing the sidebar still restores three columns. The 1416 comment in `recordPageColumns.ts` is updated by objectstack-ai#36112 PR B. **Layout, pinned.** `[details 320–400+ px] [24 px separator] [tabs minmax(0,1fr)]`. The details render at one field column (`DetailsColumnCapContext` = 1). The tab row moves into the right column and drops 「详情」; the open tab is the address's `?related=` when it names one, otherwise the first tab (implied, never written). Each column scrolls on its own when the page has a scroll parent with room (`usePinnedHeight`). Esc does not close a tab while pinned (there is no "back to details" to go to). **The separator.** `role="separator"`, `aria-orientation="vertical"`, `aria-valuenow/min/max`; pointer drag previews and commits on release; ←/→ move 16 px, Home/End go to the ends. The width is the `record.columns.details-width` workspace preference (per object, `{ width, v: 1 }`), which replaces the retired `record.columns.related` (⊟) preference. **Narrowing out.** When a pinned page narrows below the threshold on the same record and the address names no tab, the implied tab is written to the address with `replace`, so the reader stays on what they were looking at and Back history does not grow. **Not pinned.** A page with no other tab draws the details alone, with no tab row. A page whose details hold a related table among the fields (objectstack-ai#35889) does not pin. Drawer, split pane and phone (`fullPage` false or too narrow) keep the one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」. Measured: drawer at 1440 (details 622 across, 「详情」 shown) and phone at 375 (details 327 across, 「详情」 shown), both with no rail. **Rail retired.** `RecordSummaryRail` is deleted with the ⊟ panel toggle, its `⌘⇧,` shortcut and the `record.columns.related` preference; the attachment-count hook and approval-pending test move to `recordTabBadges.ts`. The `PanelToggles` plumbing stays (empty) for objectstack-ai#36075. The hidden-list foot line under the rail goes too; hidden lists and the reset are in the tab row's 「更多」 menu. The "default order changed" hint stays, under the tab row. A hidden list still opens, from its 「更多」 item or from `?related=` naming it (`requested` accepts ids in `resolved.hidden`; test red without the fix). **Other card items.** The overview tab is labelled 「详情」 in every locale (`detail.recordTabOverview` takes the `detail.details` word). The in-approval tag reads `In approval · {{step}}` (`detail.approvalPendingStep`, 11 locales) for non-approvers when the request names a step, using the approvals panel's own `stepDisplayText`. **Host.** `RecordDetailView` passes `fullPage={!embedded}`, the width preference and `onShownTabChange`. When the shown tab is the 动态 timeline (implied or chosen), the full activity window is read, as it was when the tab was chosen. Feed reads at open are unchanged (the page payload still asks discussion + activity top 5 for the tab's count), to stay out of objectstack-ai#36075's way. Merged with `main` after objectstack-ai#36114 and objectstack-ai#36178 (the comment panel, PRs 1 and 2), keeping both sides: the rail's 最近动态 card that objectstack-ai#36114's `RecordCommentsInPanelContext` note spoke of no longer exists. `overlap-check.mjs` at push (`241f4b21`): clean against `main`, objectstack-ai#36187, objectstack-ai#36123 and objectstack-ai#35923; it conflicts with objectstack-ai#36183 (objectstack-ai#36047 slice 2, the text-size sweep) in `RecordSummaryRail.tsx` (deleted here), the e2e spec (renamed here) and two plugin-detail tests. Whichever lands second resolves it; objectstack-ai#36183 re-runs its mapping script on `main`. **Docs.** `content/docs/ui/pages.mdx` (Record pages › The synthesized default) now describes the tab row, the pinned layout and when related rows are read, instead of the right column. ## Acceptance notes (card checklist) - Wide full page: fields left, other tabs right, first of them open. ✔ (`RecordPageColumns.test.tsx` pinned block; `recordPageTiers-26678` at 1440 / 1100 / 800 px) - No other tab: fields fill the page, no tab row. ✔ - Right summary cards removed at all widths. ✔ (every tier asserts no `[data-record-summary-card]`) - Left column 400, draggable, remembered per person per object. ✔ (keyboard + pointer tests; host test writes and re-reads the preference). Kept in the browser's workspace preference store, like the other record-page preferences. - First tab 「详情」. ✔ - 「审批中 · 当前步骤」. ✔ (`approvalDeclaredActions` test, machine name and label) - Body-table page does not pin. ✔ - Narrowing keeps the tab (URL replace). ✔ (measured: 1440 with the panel opened wrote `?related=crm_activity.account`) - A hidden list opens from 「更多」 and from `?related=`. ✔ (`readerArrangement-35595`, red without the fix) - Drawer / phone never pin and keep the one-column tab row; what reaches them is the rail's removal and the 「详情」 name. Hand-written pages untouched. ✔ - Deliberate drops: the ⊟ control and `⌘⇧,`; the hidden-list foot line (its job is in 「更多」); the rail's three-row previews of each related list (a list now reads its rows when its tab opens). ## Why Sales asked for the record page they remembered: on a wide full page, the main form on the left and the child tables in tabs on the right (objectstack-ai#35890, under epic objectstack-ai#35590). The width rule was put to Sales after a decision review because the card's 760 px reading and the 1120 px reading both broke the comment panel layout on common laptops; option 0 keeps three columns (fields | tabs | comments) on every common laptop, which is the figure Sales approved on objectstack-ai#36075. ## Verification - Local, on the merged head `079c7723` (shared box, under `os-verify-lock`): plugin-detail, i18n, app-shell Record*, recordCommentsPanel, relatedListConditions and workspacePreference: 647 files / 6,742 tests pass; app-shell type-check (src and tests) clean. On `241f4b21`: plugin-detail + i18n 509 files / 5,677 tests pass, both type-checks clean, `record-tabs-35595.spec.ts` 6/6 locally. Earlier, on `fbe6e33d`: `vitest run packages/plugin-detail packages/i18n`: 500 files / 5,598 tests pass (31 skipped, existing). `vitest run packages/app-shell/src/views/Record packages/app-shell/src/utils/workspacePreference`: 133 files / 1,005 tests pass. The whole app-shell suite did not fit the 28-minute local window; CI is the full reading. - `type-check` (src and tests) clean for plugin-detail, i18n and app-shell; ESLint `--quiet` on every changed file: 0 errors; `check:test-source-alias` OK. - Rewritten / converted tests: `RecordPageColumns.test.tsx` (new pinned describe: threshold 744, auto-narrow 824→400 / 800→376 / 744→320 / 743→not pinned, drag, keyboard, drawer never pins, body table, narrowing writes the implied tab with replace, `onShownTabChange`), `RecordDetailView.recordPageTiers-26678` (host at 1440 / 1100 / 800 / 720 / 390, embedded, `?related=timeline` pinned and not, width preference round-trip), `workspacePreference.test.ts` (details-width codec). Deleted with the code they pinned: `RecordPageColumns.switches-27052`, `RecordDetailView.panelToggles-27052`. - Tests that read the rail now open the 动态 tab or assert its absence: `recordOpenWaves-13010`, `recordOpenOneRequest-28470`, `timelineCount-28737`, `harness › relatedCountsFirst-27056`, `accessibleNames-12625`, `topBar-27524`, `phoneFace-27058`, `feedLoadFailure-29188`. - Screenshots (1280 / 1440 / 1920, light and dark, with and without other tabs) are attached in the project thread, plus the comment panel open at 1280 / 1366 / 1440, the drawer at 1440 and the phone at 375; the measured numbers are in the evidence comment. - e2e: `ui/e2e/record-tabs-35595.spec.ts` (renamed from `record-tabs-rail-35595.spec.ts`). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No `packages/spec` change.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (changed files, `--quiet`). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset (`.changeset/35890-record-details-pinned.md`), and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: not touched. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgUZTwDqtEFzNFCVTri --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…hreads first, replies inside, the box docked at the foot, a long press for actions (objectstack-ai#36076) (objectstack-ai#36208) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuLteuRKBSRXDK9REnG68QAD)_ repo:objectstack#1 · os-sales · session_01L6bhgTfxZyB5T41DdoPaBy Fixes objectstack-ai#36076 Clause-②: yes (widening) — `@object-ui/plugin-detail` exports `CommentsPage` and `CommentsPageProps`; `CommentThread` takes a third `mode` (`'page'`) and optional `itemInteraction`, `heldId` and `onHeldActions`; `CommentItem` an optional `interactionProps`; `CommentComposer` and `RichTextCommentInput` an optional `layout` (`'default' | 'phone'`). `@object-ui/app-shell` reserves the console URL parameter `comments` (`RECORD_COMMENTS_PARAM`, listed in `RESERVED_URL_PARAMS`). `@object-ui/i18n` gains four `detail.*` keys in every pack. Nothing is removed or re-typed; the desktop is unchanged. Metadata-protocol: none ## 维护者速读 - 手机上打开一条记录,右上角多了评论图标,旁边是未解决的评论串数。点了进**整页**评论,盖在记录页上;左上「‹ 记录名」或系统返回键回到记录页,记录页滚到哪还在哪(实测返回前后都是 74)。 - **两层**:列表只列第一层评论,有回复的下面是回复人头像加「N 条回复」;点一条进这一串,原评论在上,回复按时间往下,左上「‹ 评论」回列表。 - **输入框固定在屏幕底部**,键盘弹起时站在键盘上面。平时一行,点了展开,下面一排:提到人、加粗、斜体、列表、代码,右边发送。在列表里发的是新评论,在一串里发的是回复(两个框各留各的草稿)。页面上没有「Ctrl+Enter」字样。 - **长按一条评论**(或系统的长按菜单),从底部升起面板:第一行六个表情,下面「标记已解决」(只在第一层)、「编辑」「删除」(红色,点了先确认)。每一项出现的条件和电脑端悬停那排完全一样,手机没有另判权限。 - 列表右上角筛选:「显示已解决」「只看我参与的」,和电脑端同一个菜单。手机上「动态」页签只剩系统记录。 - **删除的门**:objectstack-ai#36186+objectstack-ai#36191 已合并并合入本分支。手机长按面板和电脑端用同一套判定:普通成员能删自己没有回复的评论,能给自己看得到的任何评论串标记已解决。 - 不改电脑端,不改任何权限和服务端。 ## What changes **The phone's comment page** (`@object-ui/plugin-detail`, `src/comments/`) - `CommentsPage`: a full-screen page (`role="dialog"`, fixed over the host) that reads `useRecordComments()`, the same discussion, writes and gates as the desktop panel. Props: `threadId` (`null` = the list), `onOpenThread`, `onBack`, `backLabel`, `onEngage`. - The list draws each thread with `CommentThread mode="summary"`; a tap on a comment outside its own controls, Enter on a focused comment, or its 「N 条回复」 opens the thread. A thread that is not held (deleted, stale link) shows the list. - The thread draws `CommentThread mode="page"` (new): its comment, then every reply, with no reply box of its own; 「回复」 there puts the caret in the docked box. - Two docked `CommentComposer layout="phone"` boxes (list and reply), each keeping its own draft; the list's stays mounted while a thread is open, so its draft and the list's scroll survive a visit to a thread. - The page follows the on-screen keyboard through `visualViewport` (top and height while the keyboard covers more than 80 px), the same reading as `PhoneListPanels`' sheet; the inline style is positional only. - Esc returns one level (`data-owns-escape`); the focus lands on 「‹」 when a level opens. - `useCommentPress`: 500 ms hold, cancelled past 10 px of travel; the click that ends a hold is swallowed. `onPressStart` fires at the press itself (pointer down, context menu, Enter/Space), and the page hands it `onEngage`, so the host's question about the comment's actions is on the wire before the hold completes. `contextmenu` opens the same sheet (Android's own long press, the keyboard's menu key, a right click). One record of the press serves every comment. - `CommentActionSheet` (vaul `Drawer`): six reactions (the viewer's own marked `aria-pressed`), then Mark resolved / Reopen, Edit, Delete (destructive). A row is drawn only where the comment's `CommentItemActions` hands its handler: these are the object `CommentThread.actionsOf` builds for the desktop's hover row, so every gate is the thread's. The sheet is never a snapshot of the press: `CommentThread` takes `heldId` and reports the held comment's current actions to `onHeldActions` each time what they offer changes, so a verdict that lands while the sheet is up adds its rows (L1-c REWORK 7070700220). A comment with no action raises nothing. - `CommentsFilterMenu`: the desktop panel's filter menu, extracted unchanged so both surfaces draw the same one. - `CommentItem.interactionProps`: spread on the comment's box with `select-none` and no iOS callout, except while it is being edited. - `RichTextCommentInput layout="phone"`: the editor first, then one row (mention, bold, italic, list, code; send at the right end, round, 44 px), no preview, the names without their shortcut (`detail.formatBold`, `detail.formatItalic`), 16 px text. A press on the row keeps the caret (and the keyboard) in the box. The default layout is untouched. **The record page** (`@object-ui/app-shell`) - `commentsPageOffered` in `RecordDetailView`: the same rule as `commentsPanelOffered` (feeds on, a standard page, a record id) on a phone and not embedded. `commentsSurfaceOffered` (either one) now drives what `commentsPanelOffered` drove: the discussion rides the open's payload, the 动态 stream gives the comments up (`RecordCommentsInPanelContext`) and its count leaves them out. - `?comments=` (list) / `?comments=<id>` (thread), read from the router: opening and a thread push an entry flagged `__commentsPushed` in history state (the entry's other state kept); 「‹」 pops a flagged entry and otherwise replaces the URL one level up (a reload or a shared link). The page is mounted inside the record's `DiscussionContextProvider`, over the record, which stays mounted, so nothing is read again and the scroll is kept. Closing returns the focus to the top bar's comments icon. - The phone's `RecordTopBar` gets the `comments` slot (`CommentsButton` at 44 px). - The explain probes: `moderatesComments` is asked while the panel or the page is open; `updatesOthersComments` on the first press on a comment (the page's `onEngage`, fired at pointer down), as on the desktop's first reach into the panel. Opening the record asks nothing more. **Strings**: `detail.addReactionEmoji`, `detail.commentThread`, `detail.formatBold`, `detail.formatItalic` in all eleven packs (zh-Hant regenerated) and the provider-less defaults; the rest reuse existing keys (`detail.sendComment` already existed). **Docs**: `content/docs/frontend/plugins/plugin-detail.mdx` (### On a phone) and the plugin-detail README (### The phone's comment page). **Pending release notes**: `.changeset/36075-record-comments-panel.md` (from objectstack-ai#36114) is left as it stands on main. Its line "the phone keeps the comments in its 动态 tab" is answered in this PR's own changeset, which says that on a phone the comments live on the phone's page and that this replaces that line. `36075-comments-resolved.md` ("…and the phone keep their feed as before") is left as it stands too; the same sentence of this PR's changeset answers it. ## Small calls made here (dev-thread rule, Sales 22:19:27Z) 1. The full page is a URL parameter over the record route, not a new route: the record stays mounted (no re-read, scroll kept), precedent `?related=`. 2. No 「回复」 row in the long-press sheet: in a thread the docked box is the reply; in the list a tap opens the thread. 3. No 「预览」 on the phone toolbar; the card's row lists mention, bold, italic, list, code and send. 4. The filter is the desktop's dropdown, not a bottom sheet. 5. A long press on a comment with no available action opens nothing (a read-only discussion). 6. Thread title 「评论串」; the list keeps 「评论」. ## Overlap - objectstack-ai#36136 (wide-screen pinned details): MERGED (48c732c) and merged into this branch; the only conflict was the `@object-ui/plugin-detail` import line in `RecordDetailView.tsx` (main's list plus `CommentsPage`). After the merge `tsc` for app-shell is clean and every `RecordDetailView.*` and `plugin-detail/src/comments` test passes (103 files, 873 tests), as does `i18n` (105 files). - objectstack-ai#36200 (objectstack-ai#36186+objectstack-ai#36191 comment doors): MERGED (d12ac84) and merged into this branch with no conflict. The phone sheet draws from the same `actionsOf`, so it takes the new ✓ gate (any thread the viewer reads) and the own-comment delete door (`ownCommentDeletesOnly`: own comment with no reply only) with no code change; one CommentsPage test expectation moved from `['delete']` to `['resolve','delete']`, and a new test pins the door on the phone sheet. - objectstack-ai#36151 (phone record bottom bar, not pushed yet) and objectstack-ai#36147: same file, different blocks. ## Verification **New tests (all pass)** - `plugin-detail/src/comments/CommentsPage.test.tsx` (18): the list shows top-level comments with 「2 replies」, no reply; a tap on a comment or its count opens the thread, a tap on a reaction is the reaction's; Enter opens; 「‹」 names the record; the docked box writes a comment, toolbar order @ B I list code Send, no 「Ctrl」 in the page; a thread shows comment then replies and replies to its comment; a missing thread shows the list; the list draft survives a thread visit; long press on own comment: 6 reactions (own one pressed), resolve, edit, delete, and the release opens nothing, `onEngage` once; another's comment: no edit or delete; a reply: no resolve; a sheet reaction toggles, Delete reaches the host; a press that travels is a scroll; contextmenu opens the sheet; read-only raises nothing and docks no box; a moderator's press on another's comment engages at pointer down, the sheet opens with Mark resolved and Delete, and when `updatesOthersComments` turns true with the sheet up Edit joins (fails on the pre-fix head); behind the own-comment delete door Delete is on the viewer's own reply only, not on their comment with replies nor on another's reply; resolved threads hidden by default with the filter offered. - `app-shell/src/views/RecordDetailView.commentsPanel-36075.test.tsx`, new top-level describe (6), the real `RecordDetailView` at 375: the top-bar icon with 「2」, a press pushes `?comments=` (flagged) and draws the list over the still-mounted record; tap → `?comments=c-ada` with the reply, 「‹」 → list → record, focus on the icon; a link straight to a thread: 「‹」 replaces one level up twice; the 动态 tab draws no comment and no 「Ctrl」; no icon with feeds off; a moderator's first long press on Grace's comment with the `sys_comment` explain answered late: no comment explain before the press, asked at the press, the sheet shows Delete, then Edit and Delete once the answer lands (fails on the pre-fix head). **Local runs** (after merging main `cbd582f4`): every `app-shell/src/views/RecordDetailView.*`, `plugin-detail/src/comments` and `i18n` test file, 209 files, 2,830 tests pass. Before the merge, a wider set (all `RecordDetailView.*`, `recordCommentsPanel*`, `ObjectView.phone*`, `app-shell/src/__tests__`, all of `plugin-detail` and `i18n`): 640 files, 6,991 tests pass. `tsc` (src and tests) clean for plugin-detail and app-shell. ESLint on the changed files: 0 errors (warnings only of the kinds already in these files). `overlap-check.mjs`: clean against main; objectstack-ai#36136 conflict as above. After the L1-c fix: all of `plugin-detail` (405 files, 3,745 tests) and the host comments file (16 tests) pass; ESLint 0 errors on the touched files. **Browser evidence** (CRM example on `objectstack dev --fresh`, console on Vite from this branch, zh-CN, 375×812 touch, light and dark; seat-side folder `/mnt/project-files/build-seat1/36076/`, script and readings in its README) | Shot | Reading | |---|---| | Record page | icon 「3」 at the top bar's right | | List | 「‹ Globex Ltd」 · 评论 · filter; three first-level comments, 「2 条回复」 under the first | | Thread | comment, then both replies; URL `?comments=<id>` | | Composer expanded | @ B I list code, round send at the right; the box's bottom at 812 (the viewport's) | | Long press, own comment | six reactions, 标记已解决, 编辑, 删除 (red) | | After 👍 | 「👍 1」 under the comment, marked as own | | Back to the record | scrollTop 74 before, 74 after | | 动态 tab | 「动态 (0)」, no comment, no box | Not shown in the browser (the run's only account is an administrator, who moderates): a member's long press on someone else's comment; pinned by the unit test above. The iOS keyboard cannot be emulated in headless Chromium. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes on the changed files. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English (the 维护者速读 block is the maintainer's summary, in the maintainer's language). Branch name is the harness-assigned `claude/project-thread-uzlelf`. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgTfxZyB5T41DdoPaBy)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgTfxZyB5T41DdoPaBy <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgTfxZyB5T41DdoPaBy --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ts the system history alone while the comment panel holds the comments (objectstack-ai#36193) (objectstack-ai#36221) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuCeTM2qYEuA9dNQrrsVbmgv)_ repo:objectstack#1 · os-sales · session_01L6bhgXV5qLuX94Bn6aqb4y Fixes objectstack-ai#36193 > **Premise.** > 1. What the card reads now: objectstack-ai#36136 (48c732c) retired the overview's right rail, so the 「最近动态」 card is gone and the overview lists no comment. The card's 「讨论 (3)」 face came from a slotted page whose `discussion` slot holds `record:chatter`; after objectstack-ai#36136 that author's block is drawn on the 动态 tab only, where it still drew 「讨论 (4)」, the 全部动态 filter, every comment and reply and a comment box, beside the comment panel showing the same comment (before: `pr36136/timeline-tab-panel-open-*`). > 2. Reading (seat, 2026-11-21 23:06Z): the card's 「不改动态页签」 means the platform's own 动态 tab (its label and the stream the platform draws). The target is the author-placed chatter/discussion block, which now happens to sit inside that tab. > 3. `Clause-②: no` (a UI face of an existing block; no contract, permission or spec key). ## What changes - `renderers/record-chatter.tsx`: while `RecordCommentsInPanelContext` is on and the block is on the default/slotted page (`useDefaultRecordPage()`), a `record:chatter` / `record:discussion` block draws the system entries only: comments and replies filtered out before `applyFeedConfig`, no composer (`onAddComment` withheld, `commentsShown: false`, which also drops the Comments-only filter), a refused or failed comment read not reported (the panel's to say), heading 「动态」 (`detail.timeline`) and empty line `detail.noActivity`. The `(N)` count is the filtered items, so it leaves comments out. - `RecordChatterPanel.tsx`: optional `titleLabel` / `emptyLabel` props (default 「讨论」 / 「暂无评论」, unchanged for every other caller); a caller-named heading takes the stream's `Activity` icon instead of `MessageSquare` (L1-c nit, 3efc293). - Test `renderers/__tests__/record-chatter.commentsInPanel-36193.test.tsx` (6). Not changed: the platform's own `record:activity` stream, the 动态 tab's label (still 「动态」, no count), an authored (`kind: 'full'`) page. **Phone, after objectstack-ai#36208 (merged into this branch at `abe8f8b5`):** objectstack-ai#36208 sets `RecordCommentsInPanelContext` to the panel OR the phone comment page, so on the phone too the author's block on the 动态 tab now drops its comments; the phone's comments live on their own page. Before objectstack-ai#36208 the phone had no comment surface and kept them. ### Small calls (seat may overrule) 1. Heading is 「动态」, matching the platform stream's heading in the same tab; the 全部动态 filter stays (its Comments-only entry goes). 2. The switch is "comment panel offered", not "open", as objectstack-ai#36114 uses for the stream. ## Why Card objectstack-ai#36193 (epic objectstack-ai#36062 phase 1 wrap-up): with the comment panel open the same comment showed twice, and a resolved thread stayed in the record body. ## Verification - New test 6/6. Ablation (renderer + panel reverted to main): 4 red, the 2 CONTROL cases green. - plugin-detail chatter / timeline / RecordPageColumns / renderers suites: 123 files, 1,274 tests green. app-shell suites naming `record:chatter` / discussion slots / the comment panel: 14 files, 221 tests green. - Browser: HotCRM main on `objectstack dev`, console on Vite from this branch, zh-CN, 1440, dpr 2, one comment + one reply on Wayne Enterprises, a local uncommitted slotted `crm_account` page with `slots.discussion: [record:chatter]`. Evidence in the project folder `build-seat1/36193/`: - before (main after objectstack-ai#36136): `pr36136/timeline-tab-panel-open-{light,dark}.png`: 「讨论 (4)」, the comment and 「1 条回复」 beside the panel. - after: `after/timeline-tab-panel-open-{light,dark}.png`: 「动态 (2)」, two system rows, no comment box; `after/overview-panel-open-*`: no comment on the overview; tab row 「… 活动 5 动态」 unchanged. - phone: `after/phone-timeline-tab-light.png`: still 「讨论 (4)」 with the comment (no comment surface on the phone yet). - Drawer: the comment panel is offered in the drawer too (objectstack-ai#36114), so the author's block in the drawer's 动态 tab follows the same rule as on the page. - Overlap: `overlap-check.mjs` clean against main (c30ce97, after objectstack-ai#36208) and open heads. Clause-②: no Metadata-protocol: none ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (eslint on the three files: 0 errors) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: n/a. - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgXV5qLuX94Bn6aqb4y <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgXV5qLuX94Bn6aqb4y --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgXXdtDHm8mLZYX8Bsb
Part of #36075
Clause-②: yes (widening):
@object-ui/plugin-detailadds exports (CommentsPanel,CommentsButton,CommentThread,CommentItem,CommentComposer,CommentHoverActions,useRecordComments,buildCommentThreads,latestRepliers,RecordCommentsInPanelContext) and their types (CommentsPanelProps,CommentsButtonProps,RecordCommentThreadProps,CommentItemProps,CommentItemActions,CommentComposerProps,CommentHoverActionsProps,CommentThreadData,RecordCommentsData), and an optionalreservedWidthonuseRecordPageTier.RichTextCommentInput(exported) now takes theEscthat closes its @ list (preventDefaultandstopPropagation), so nothing round it acts on that key.RecordActivityTimelinedraws no chip group when it is handed no chips.@object-ui/componentsadds an optionalcommentsslot toRecordTopBarandNavigationOverlay, and the drawer leaves anEscpressed inside a[data-owns-escape]region to that region.@object-ui/i18nadds five keys to every pack:detail.closeComments,detail.collapseReplies,detail.commentActions,detail.commentsEmptyHint,detail.resolveThread. Nothing existing is removed or re-typed.Metadata-protocol: none
维护者速读
enable.feeds: false)就没有图标。手机端这次不改,评论还在动态页签里,等 评论(三)手机:记录页右上角评论图标进整页,列表只列第一层、点进去回复;输入框固定在底部;长按评论出操作面板 #36076。What changes
The comment components (
@object-ui/plugin-detail, newsrc/comments/)useRecordComments()reads the record's discussion off the host'sDiscussionContext(the rows and the writes every feed block already gets) and returns the threads, the icon's count (nullwhile unknown: loading, refused or failed), the loading, refused and failed states, and each write exactly where the host hands it. Nothing reads or writes any other way, so the phone's comment page (评论(三)手机:记录页右上角评论图标进整页,列表只列第一层、点进去回复;输入框固定在底部;长按评论出操作面板 #36076) can reuse every piece.buildCommentThreads(items): thecommentrows only, threads oldest first, replies oldest first; a reply to a reply joins its thread; a reply whose parent is not held (deleted) stays as a thread of its own, so a delete never hides another member's reply.CommentItem(avatar, name, time, edited mark, text, reactions with the viewer's own marked; an inline editor where Esc cancels and Ctrl/⌘+Enter saves, the draft kept when the save is refused),CommentThread(expandfor the panel,summaryfor the phone's list; actions handed out per comment throughrenderActions),CommentComposer(keeps the draft when the write is refused;focusSignalputs the caret in it),CommentHoverActions(the desktop's one action row),CommentsPanel,CommentsButton. Every face is 评论(四)小修:点「回复」后光标进回复框;没设头像的显示姓名首字;提到人的选单跟着光标;删除后给提示 #36070's sharedCommentAuthorAvatar.RecordCommentsInPanelContext: while the host sets it, the default page'srecord:activitystream (the 动态 tab and the 概览 rail's 最近动态 card) drops comment rows, its 全部 / 活动 / 讨论 chips and its composer (the 变更 chip stays, on [Decision] Field changes are recorded but not shown unless an object opts in: who decides a record shows its change history? #30074's rule, and pressed again goes back to every entry), ignores a refused or failed comments read, and the tab row's count probe (RecordTimelineCountProbe) counts the same rows. An authoredrecord:activityis untouched.09b716c8): anEscin the panel closes it and puts the focus back on the comments icon. The@list'sEsccloses the list only (RichTextCommentInputnow takes the key), so the draft is kept. The panel closes on anEscwhose target is in its own DOM; its portaled menus close themselves.defaultPreventedno longer decides, because the drawer marks the key to hold itself open. The section carriesdata-owns-escape.useRecordPageTier(el, { reservedWidth }): the tier is measured on the width left after the panel takes its 380.The record page and the drawer (
@object-ui/app-shell)commentsPanelOffered, inRecordDetailView: an object definition withenable.feeds !== false, a page that takes the default columns (no assigned page, not a blocked named page: option C), not a phone, and a record id. It is the only place the rule lives.streamDiscussion), so the icon's count is known without opening the 动态 tab; activity stays lazy as before (activityFeedWantedis the oldfeedWanted).recordCommentsPanel.tsx: the widths and thresholds (COMMENTS_PANEL_WIDTH380,COMMENTS_PANEL_BESIDE_MIN_WINDOW1280,COMMENTS_PANEL_DRAWER_SPLIT_MIN_WIDTH760),commentsPanelPlacement(beside/over/cover), the open state kept inlocalStorage(os:record-comments-panel:pageand:drawer, every access guarded), andRecordCommentsAside.RecordTopBar's newcommentsslot, ahead of the button group, on the page; the drawer portals it into the same slot throughRecordPaneBarApi.commentsSlot(RecordPaneBarComments); a pane without the bar draws it in the page header's trailing controls.Drawer width chosen: the default drawer is
md(720), under the 760 split threshold, so the panel covers the drawer's body there; a drawer at 760 or wider splits, leaving the record at least as wide as the panel.Strings:
detail.closeComments,collapseReplies,commentActions,commentsEmptyHint,resolveThreadin all eleven packs and the provider-less defaults; everything else reuses existing keys.Docs: the plugin-detail README and
content/docs/frontend/plugins/plugin-detail.mdxdescribe the panel.Why
Card #36075 (phase 1 of epic #36062): comments were buried in the 动态 tab beside system entries, so a reader had to switch tabs to see or join a discussion. The card asks for a standalone comment panel on the desktop record page and drawer, reached from a header icon, and an Activity tab of system entries only.
Side effects reviewers should know
project-detail,sys-queueandsys-audit-logstill place a footerrecord:discussion, and get no icon.sys-userandsys-organizationhave feeds off;sys-approval-requesthas no discussion block on purpose. How a hand-written page opts into the panel is a phase 2 card.Part of #36075. The shared avatar and the delete toast from 评论(四)小修:点「回复」后光标进回复框;没设头像的显示姓名首字;提到人的选单跟着光标;删除后给提示 #36070 are in: main was merged after fix(comments): Reply focuses the reply box, author avatars with initials, mention menu at the caret, delete toast #36105 landed at 16:04Z. Reactor names on hover are not on the card.Verification
New tests (all pass)
plugin-detail/src/comments/commentThreads.test.ts(6): comment rows only, oldest first; replies and a reply to a reply nested; an orphan reply kept; same-instant order; a parent loop loses nothing; latest repliers.plugin-detail/src/comments/CommentsPanel.test.tsx(13): oldest first, system rows left out; collapse and expand; Reply focuses the reply box and answers the thread's first comment; Edit and Delete only on the viewer's own comment; More → Delete, More → Edit saves; React; read-only offers no actions and no box; add, and the draft kept on a refused write; ✕ and Esc; empty; refused and failed with Retry; the icon's count and pressed state.plugin-detail/src/__tests__/recordActivity.commentsInPanel-36075.test.tsx(7): no comments or composer in the stream and 变更 the one chip, with the control; the lone 变更 chip toggles back to every entry; no chip where the record shows no field history; a refused comment read does not replace the system entries; the count probe counts system entries only, with the control; an authoredrecord:activityuntouched.app-shell/src/views/recordCommentsPanel.drawerEscape-36075.test.tsx(8): the REALNavigationOverlayaround the REAL panel, at the stack's root (a record opened from the list) and below it. Esc in the comment box and on ✕ closes the panel, the drawer stays at its level, and the focus returns to the icon. Esc in the@list closes the list only. CONTROL: Esc on a record control outside the panel does what the drawer always did. With either fix removed, its pins fail (4 of 8 without the drawer change).CommentsPanel.test.tsx+2: Esc in the@list keeps the panel and the draft, and the next Esc closes the panel; Esc in the More menu closes the menu only. Both fail with their fix removed.RecordDetailView.commentsPanel-36075.test.tsx+1: Delete in the panel goes through the page's confirm and toasts 「Comment deleted」 (评论(四)小修:点「回复」后光标进回复框;没设头像的显示姓名首字;提到人的选单跟着光标;删除后给提示 #36070).app-shell/src/views/recordCommentsPanel-36075.test.ts(2): the 1280 and 760 thresholds.components/src/__tests__/record-top-bar-comments-36075.test.tsx(2): the slot sits ahead of the button group in both bar shapes.app-shell/src/views/RecordDetailView.commentsPanel-36075.test.tsx(8), the realRecordDetailView: icon and count on the default page; open beside at 1440 and close; over at 1100; kept open for the next record; drawer cover, remembered apart from the page; the stream draws no comment and the panel does, once; no icon with feeds off; no icon on a hand-written page, which keeps its discussion.Changed tests: 38 cases in 11
RecordDetailView.*files read the default page's comments off the 动态 stream; they now read them in the comment panel (same rows, same reads, same grants), and the counts drop the comments:feedLoading,feedRecordScope,feedLoadFailure-29188,harness(feedRefusal-11195),replyCountOnRead-12144,discussionExplicitComposition-7298,discussionFallbackPipeline-8983,recordOpenOneRequest-28470,recordOpenWaves-13010,recordPageTiers-26678(变更 alone, a toggle, wheretrackHistoryis on and the audit read answers; no chip without it or on a 403),timelineCount-28737. Authored-page cases in those files are unchanged. No test deleted or skipped.Local runs: every
app-shell/src/views/RecordDetailView.*,recordDrawer*andcomponents/src/customtest file (98 files) pass, the 11 above after their change and three that first failed to resolve@objectstack/clientbefore its build on a re-run; every new file above passes. The whole app-shell, plugin-detail and components suites (3,274 files) did not fit a local run and were stopped; CI is the full reading.type-check(src and tests) clean for plugin-detail, components and app-shell; ESLint on every changed file: 0 errors;check:i18n-keys,check:i18n-drift,check:new-line-citationspass;overlap-check.mjs: clean against main and the 6 open PRs that share a file.Browser evidence (CRM example on
objectstack dev, console on Vite, zh-CN, an account seeded with three threads, one with two replies):/mnt/project-files/build-seat1/36075/(seat-side folder).beside, 380 wide at x 1060; the record columns narrow to leave it the widthover, 380 wide at the right edge, record columns keep their widthcover, the drawer body's whole width (718)Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses.main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Branch name is the harness-assigned
claude/project-thread-ks7hy1.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgXXdtDHm8mLZYX8Bsb