Repository navigation
feat(list): a phone list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on ✓ - #36024
Conversation
…that apply on ✓, long-press selection Below `sm` the object list keeps its desktop content and changes its containers: the app bar's row becomes the page's own (‹, icon and name, ⋮ More with Select), one row of pills (view switcher, Sort N, Filter N, Search), and the sort, filter, view switcher and View settings panels open as bottom sheets. The sort and filter sheets stage a copy and hand it to the desktop's own writes on ✓; × drops it. SortBuilder gains a stacked layout and touch reorder. A long press on a card, or Select, starts a card selection shown in the page's selection bar. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
…e; e2e pins follow the phone toolbar The view switcher's phone pill draws the view's name and count with no type icon, and its slot loses the 55% cap, so 「All Customers」 stays whole at 375. The #33833 geometry pin now measures the phone pill row, and the #35548 source-order check reads the desktop trigger. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
…ter and Space
The click census (objectui#13461) froze the card list as a clickable div
without a keyboard path. The card now takes `role="button"`, `tabIndex={0}`
and Enter / Space (its own key only), reports `aria-pressed` while
selecting, and leaves the census backlog.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
`listConditions.phone.sortCount` / `.filterCount` interpolate `{{count}}`,
so each is a family with every CLDR slot its pack selects (objectui#11445)
and a base key, in every pack and in the English fallbacks.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
main retired the page bar slot (listPageBarSlot.ts, SelectionPageBar) for one floating BulkActionBar in every grid face. The phone's 「Select」 request and the "is a selection open" read move to listPageScope.ts; the cards' selection is the bar's selection, and BulkActionBar takes `open` so a selection opened by 「Select」 shows 「0 selected ×」 before a card is ticked. Pins: the bar at 0 and after a long press (cardSelection-35883), and the phone 「+」 not drawn while selecting (ObjectView.phoneFabSelecting-35883). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
… at collection
The page's draft bar reaches `import('@objectstack/lint')` inside a function,
so the new test imports it at module top, as check:test-source-alias asks.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-21T10:36Z. The brief handed to the isolated declaration-face reviewer for PR #36024 (owed by the changeset's Contract review brief — PR #36024 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Inputs read: cards #35883 and #35884 (bodies and every comment, including the 06:07Z and 06:08Z claims and the 04:16Z coordinator note), the PR body and file list (37 files), the net diff against its merge base with ① Derived judgmentsEvery change to the public surface the diff makes, each judged:
② Semver level
③ Boundary flagsThe PR body has no
Graded findings (no must-fix):
Implemented-by: VERDICT: PASS |
…nd on the keyboard - ⋮ More offers 「Select」 only while the page's grid says a request would open a selection (cards whose rows take more than one tick), through a new usePublishListSelectable / useListPageSelectable pair in listPageScope. - PhonePanelSheet reads visualViewport while open: with the on-screen keyboard up its bottom is the keyboard's top and its height the visible area's less the top strip; vaul's own repositionInputs is off. - 「✓」 on an untouched sort or filter copy writes nothing. - The changeset drops FilterPanel.advancedOffered (not a package export). Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a delta review. It reads only the one commit after Gate state at 2026-11-21T11:19Z: the check-runs on this head are not finished. 9 have succeeded, 15 are skipped, and 18 are still in progress, including Type Check UI, Lint UI, Build and E2E UI, Live E2E UI, Check Changeset, the Plan Test UI shards and the Lint and Type Check families. One run of PR-body guards was cancelled; a later run of PR-body guards on the same head succeeded. Governed Surface Queue Guard and Check PR Size succeeded. This record judges the contract only. It does not answer the gates that are still running; their conclusions are the gate verdicts when they land. ① Derived judgments
② Semver level
③ Boundary flags
Graded findings on this delta: none must-fix. None should-fix inside the diff. One residual note: the S4 real-device reading is owed at acceptance. Implemented-by: VERDICT: PASS |
…'s swallow flag Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
…keeping the eager components chunk under its ceiling SortBuilder takes renderLevel instead of a stacked layout: the builder keeps the levels, their order, the handle (mouse, touch, keys) and every write; the phone sheet draws each level's two lines and its menu, and its own Add sort. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
…r stays as on main The eager ui-components chunk sits at its ceiling on main, so the phone's two-line level face, its touch handle and its menu are drawn by PhoneSortLevels in plugin-list over the same SortItem list. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha 74cf9d8 · read 2026-11-21T15:29Z · delta from ACCEPT 7062966360 @7bea6cb0 · own commits 维护者速读上次提的问题都改了:长按后手指滑开、没有点击的情况下,下一次轻点不会再被吞掉,并且补了能复现这个问题的测试;手机列表顶部现在显示对象的彩色图标,和桌面一致。范围也变小了:通用排序组件恢复成和 main 完全一样,手机排序层级改由列表插件自己画,所以首屏公共包没有多出手机专用的代码, Must-fixNone. Should-fix
NitsNone new. The earlier N1–N3 are all fixed: the phone top row's tile, the changeset's Enter wording, and Checked
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: This is a delta review against the head the previous PASS read,
To keep the PR's own change apart from the merges, this review compares two diffs:
The new file list is the old one less Gate state at 2026-11-21T15:28Z: every one of the 66 check-runs on this head has completed. 48 succeeded, 17 were skipped and 1 was cancelled. The cancelled run is a Check Changeset run (15:02:43–15:03:48Z). Two other Check Changeset runs on the same head succeeded (15:01:53–15:04:11Z and 15:03:50–15:06:01Z), so the cancellation is superseded. The rest all succeeded, including Type Check UI, Lint UI (the eager-closure ceiling), Build & E2E UI, Live E2E UI, Test UI 1/16 to 16/16 and Test UI, all three PR-body guard runs, Governed Surface Queue Guard, Dogfood Regression Gate and Check PR Size. No check failed and none is pending. ① Derived judgments
② Semver level
③ Boundary flags
Graded findings on this delta: none must-fix and none should-fix. One body-wording nit, given above. One residual note carries over: the S4 real-device reading is owed at acceptance. Implemented-by: VERDICT: PASS |
…rowDown moves it Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
|
repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4 席位核对 — delta ACCEPT (L1-b)Head-sha bea8fe0 · read 2026-11-21T15:34Z · delta from delta ACCEPT 7064914359 @74cf9d88 · one commit, 2 files ( 维护者速读上一轮提的小问题已经修好:在手机排序面板里用方向键调整层级时,焦点会跟着被移动的那一层,可以连续按,发版说明里写的方向键功能现在说的是实话。补了一个测试,模拟浏览器丢焦点的情况,去掉修复就会失败。没有其他改动。 Must-fix / Should-fix / NitsNone. S1 from 7064914359 is fixed. Checked
Owed
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Seat note at 2026-11-21T15:54Z: the gates this record lists as pending have now landed on Contract reviewServed-tier: This delta review reads only the one commit after Gate state at 2026-11-21T15:34Z: pending. On this head:
GitHub reports ① Derived judgments
② Semver level
③ Boundary flags
Graded findings on this delta: none must-fix. None should-fix. The gate readings are pending, as listed above. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob 维护者速读手机上的列表有了自己的顶栏:只有一行筛选标签,排序、筛选、视图都改成从底部弹出的面板,点 ✓ 才生效。电脑端不受影响。两层审核都已通过,CI 全绿。这个 PR 改动共 3,043 行,比 3,000 行的人工合并线多 43 行,所以需要您批准后才能合并,没有碰任何受管文件。 Tier H approval request · 2026-11-21T15:55Z · @os-zhuang, PR #36024 (#35883 + #35884, epic #35880) is ready for your review on head Why it needs a human. No governed path is touched (0 of 36 paths hit the register). The size decides it: 3,043 changed lines (+2,697/−346) is over the 3,000-line human-merge line. What it does. A phone list gets:
Sort levels can be reordered by drag or by arrow keys, and the handle keeps focus after a keyboard move. The desktop list is unchanged. Reviews.
Gates.
Still owed after merge. A real-device keyboard check on iOS Safari at 375 wide, when #35884 is accepted. After your approval, the seat readies this PR and lands it through the queue. |
… 「+ Add calculation」 always shown in the footer (objectstack-ai#36048) (objectstack-ai#36069) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuDWLrm1NrVxDWXCHsUrtL24)_ Fixes objectstack-ai#36048 repo:objectstack#1 · os-sales · session_01L6bhgVphzAHrHnMrSMZGYb Clause-②: no (no export, prop or key added; one existing i18n value changes its wording) Metadata-protocol: none ## 维护者速读 - 列表页(比如「客户」)的表格:列与列之间多了一条和横线一样浅的竖线;默认行高和表头从 32 变成 36;底部一行里没选统计的列一直显示浅色的「+ 添加统计」,不用鼠标移上去。 - 这是列表页重做专题的观感改进(对照 Attio 的第 5、7、8 条)。 - 只改样子,不动数据和统计的存储;包里带的视图和没有权限的人仍然看不到入口。撤回这个 PR 即恢复原样。 - 无。 ## What changes | Item | Where | Before → after | |---|---|---| | Column lines | `OBJECT_GRID_TABLE_DENSITY` in `ui/packages/plugin-grid/src/ObjectGrid.tsx` | none → a 1px inset shadow on the right edge (`inset-shadow-[-1px_0_0_0]` in `border/50`, the row lines' colour and weight) on every header, body and footer cell but the last one | | Default row | `rowHeightCellClass`, `compact` arm, same file | `h-8` (32px) → `h-9` (36px); `short`, `medium`, `tall`, `extra_tall` unchanged | | Header | `OBJECT_GRID_TABLE_DENSITY` | `[&_thead_th]:h-8` → `h-9` (36px) | | Footer entry | `SummaryCellPicker` in `ui/packages/plugin-grid/src/objectGridSummaryPicker.tsx` | hint `opacity-0` until hover/focus → always shown, faint (`text-muted-foreground/70`), a `Plus` icon before it, darker on hover/focus | | Entry text | `grid.summary.calculate` in the 11 locale packs + the plugin's English default in `useColumnSummary.ts` | 「计算」/ Calculate → 「添加统计」/ Add calculation (zh-Hant 新增統計, ja 集計を追加, ko 계산 추가, de Berechnung hinzufügen, fr Ajouter un calcul, es Añadir cálculo, pt-BR Adicionar cálculo, ru Добавить расчёт, ar إضافة حساب) | - The row-height menu has three densities (Compact / Standard / Spacious). A view with no `rowHeight` lands on Compact, which is the card's "default", so Compact is the density that moves to 36. Standard (44) and Spacious (56) are unchanged. The seat's claim records this reading. - The frozen column draws no divider at rest today (objectstack-ai#35548: a scroll shadow, none at rest). With this PR its edge is an ordinary column line at rest and keeps the shadow on top of the line once the rows scroll sideways under it. - **Why a shadow, not a border (L1-b S1, 7062990450).** The first head (`b5445c21`) drew the line as `border-r`. The table collapses its borders, and a collapsed border belongs to the table, not the cell: measured on 商机 at 900px wide, scrolled 120px sideways, the frozen checkbox and name columns lost their lines (the scrolling columns' lines did not paint over the frozen cells). An inset shadow is the cell's own, so the sticky cells carry it with them, and Tailwind composes it with `FROZEN_EDGE_SHADOW` in one `box-shadow` (both layers read back in the browser while scrolled). It also takes no width, so the column widths do not move. - The footer row stays 32px, as the claim states. - Who sees the entry is unchanged: the menu is wired only where the host passes `onColumnSummaryPick` (a reader who may change the view; objectstack-ai#35933 keeps it off views a read-only package ships). Without it an empty footer cell still draws nothing. - Every embedded `object-grid` follows the new default. Related-list body tables use their own `BODY_TABLE_DENSITY` and are not touched; the phone list draws cards. ## Tests - `ui/e2e/list-frame-geometry-35548.spec.ts` (Playwright, compiled Tailwind against the real class sources, with the app's `--color-border` in the theme so both lines resolve to a real colour): header 36 and rows 36 (was 32 / 33), first row top still ≤ 168; new case: the header, body (the leading checkbox cell included) and footer cells carry exactly one inset shadow, `-1px 0px 0px 0px`, in the row line's computed colour, and no right border; the last cell of each carries none. 8/8 pass. - Ablation at `0a1f7470`: with the column-line entry deleted from `OBJECT_GRID_TABLE_DENSITY` (`scripts/ablation-replace.mjs`, mutation landed anchor 1 → 0), the new case goes red (`header: one column line`), the other 7 pass; restored, blob equals HEAD and `git diff HEAD` empty. - `rowHeightOffSpecBoundary.test.tsx`: the `compact` copy now carries `h-9`; it still differs from `short` by its leading, so all five densities keep their own copy. - `footerCalculationPicker-35702.test.tsx`: the hint reads 「Add calculation」 and carries no `opacity-0` at rest; a reader without `onPick` sees no 「Add calculation」 in the footer. ## Acceptance notes - In the browser the footer row measures 32.5px on a view that offers the menu (the picker button's own `h-8` plus the row's line) and 32 on one that does not; main measures the same, so this PR leaves it. - Overlap: objectstack-ai#36045 (in-cell editors), objectstack-ai#36024 (phone list, same e2e file) and objectstack-ai#36054 also edit `ObjectGrid.tsx`; `overlap-check.mjs` reads all of them as merging cleanly at this head. The seat's landing order puts this PR after objectstack-ai#36024 and objectstack-ai#36045; this PR merges main and moves the pins then. - objectstack-ai#36045 pins its in-cell inputs at `h-8`; in the 36px row an edit measured 36 on main + this PR (below). Re-measure after objectstack-ai#36045 lands. ## Verification Read first, by risk: (1) `OBJECT_GRID_TABLE_DENSITY` — it reaches every cell of every `object-grid`; (2) the `compact` arm of `rowHeightCellClass`; (3) `SummaryCellPicker`'s hint. Two-minute check: open the 客户 list, add a personal view (switcher → 添加视图 → 我的视图), and the footer shows 「+ 添加统计」 under every column with a line between columns. <details><summary>Browser readings (app-crm, 1440×900, zh-CN, light and dark)</summary> Booted `objectstack dev --ui --seed-admin` from this branch (readings re-taken at `0a1f7470`) with the console built, then again with the three source files and the locale packs at `origin/main` (`8145424b`) for the "before" set. Measured with `getBoundingClientRect` / `getComputedStyle` in Chromium. | Reading | main | this PR | |---|---|---| | Header row height | 32 | 36 | | Data row height (Compact, the default) | 32 | 36 | | Standard, then back to Compact | — | 44, then 36 | | Double-click 年营收 to edit (editor focused) | — | rows stay 36 | | Column line (a body cell's right border) | 0px | 1px, same colour as the row line (light and dark) | | Footer, a personal view | 「计算」 on hover only | 「+ 添加统计」 in all four columns; clicking one opens the calculation menu (合计 … 无) | | Footer, the package's 所有记录 view | 「3 条记录」 only | 「3 条记录」 only (no entry) | | 商机 at 900×700, scrolled 120px sideways (frozen checkbox + name) | — | at `b5445c21` (border): the frozen columns' lines gone; at `0a1f7470` (inset shadow): both frozen lines stay, the name column's edge also carries `FROZEN_EDGE_SHADOW`, nothing paints over the frozen cells (light and dark) | Screenshots (before / after, light and dark, package view and personal view, the open footer menu, an edit in progress) are kept with the card's evidence for the reviewer (`build-seat1/36048/`). </details> <details><summary>Local gates</summary> - `pnpm --filter @object-ui/plugin-grid type-check`: pass. - `vitest run packages/i18n/ + the two plugin-grid files above`: Test Files 107 passed (107), Tests 1998 passed, 13 skipped. - `playwright test e2e/list-frame-geometry-35548.spec.ts --project=chromium` at `0a1f7470`: 8 passed. - `overlap-check.mjs --branch=HEAD`: VERDICT clean (main and 6 PR heads). - NOT MEASURED locally: the full `packages/plugin-grid/` vitest run (over the foreground limit here); CI's Test Core runs it. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb)_ <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgVphzAHrHnMrSMZGYb --> --------- 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>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgXQEtN6Kp1wRKH6Fde
Fixes #35883
Fixes #35884
Clause-②: yes (widening): new optional
BulkActionBar.open(@object-ui/plugin-grid); new exportsPhonePanelSheet,useListPhonePanels,PHONE_CHIP,PHONE_CHIP_ACTIVE(+ typesPhonePanelSheetProps,ListPhonePanels) from@object-ui/plugin-listandrequestListSelection,useListPageSelecting,useListPageSelectablefrom@object-ui/plugin-grid; new keys in every@object-ui/i18nlocale (listConditions.phone.*,sortBuilder.levelOptions/.changeField,console.objectView.select); nothing removed or renamed. (FilterPanel.advancedOfferedis internal to plugin-list:FilterPanelis not a package export.)Metadata-protocol: none
Flow: card thread builds itself (maintainer 2026-11-20 09:22:50Z rule); both cards are p1/p2 children of epic #35880 (Sales 2026-11-20 16:41Z), one PR as the seat dispatched them.
维护者速读
What changes
Below
sm(useBelowSm,(max-width: 639.98px)) the object list keeps its desktop content and changes only its containers (ruling record 7045325067 on #35880).The page's top row (app-shell
layout/PhonePageBar.tsx, new): a page publishes{ icon, title, end }into a small storeConsoleLayoutmounts;AppHeaderdraws it in place of the app pill, the phone title, the search, the bell, the assistant/help group and the avatar while the page is on screen (phone only, never on a phone tab page).ObjectViewpublishes 「‹ · object colour tile (ObjectIconTile, as #36042 draws it on desktop) · object name · ⋮ More」. ⋮ More isObjectViewMoreMenu(extracted fromObjectViewPageBarActions, which now uses it), with 「Select」 first.One row of pills (
PhoneListToolbar, plugin-listphone/PhoneListPanels.tsx): the host'stoolbarLeading(the view switcher's phone face: the view's name, its count, the caret), Sort N, Filter N, the list's search (now a 44 px pill), then the host'sconditionRowEnd. The desktop toolbar row and the condition row are not drawn belowsm. A count highlights its pill; with none the pill is the icon alone.userActions.sort/filter/search: falsewithhold their pills, as on desktop.Bottom sheets (
PhonePanelSheet, a vaulDrawer, full height less 40 px, swipe-down closes): header 「× · title · ✓」 or 「‹」 on a sub-step.100dvhdoes not shrink for the on-screen keyboard (iOS Safari; Chrome on Android's defaultresizes-visual), so the sheet readsvisualViewport(useKeyboardInset): while the keyboard is up its bottom is the keyboard's top and its height is the visible area's less the 40 px strip, so 「✓」 and the focused field stay in view; vaul's ownrepositionInputs, which would also write the height, is off. 「✓」 on an untouched copy writes nothing.PhoneSortLevels(plugin-list): two lines each (field over direction), a handle a finger drags (pointer events, since HTML5 drag does not fire on touch;touch-none,data-vaul-no-drag, and the pointer events stop at the handle so the sheet's swipe never sees them) or ArrowUp / ArrowDown moves (the handle keeps focus at the level's new place), and a ⋯ menu per level (change field, direction, remove); 「Add sort」 and 「Change field」 step toSortPanel/FieldList. The sheet edits a copy (useStaged) and 「✓」 hands it toapplySort, the write the desktop sort chip calls (which ends inonSortChange); 「×」 drops it.FilterPanel(advancedOffered={false}). 「✓」 hands the copy toapplyPanelFilters, the desktop chips' write. A filter that is not a flat AND of conditions (anorgroup, nesting) shows 「This view uses an advanced filter. Change it on a computer.」 and edits nothing.ObjectViewSwitcherMenuwithphone(search at the bottom, no list height cap) and its footer's last row 「View settings」, which opens…ViewSettingsContentwith the desktop popover's own props; it applies each change as on desktop, so it has 「×」 only.@object-ui/componentsis not changed (only a census test row is deleted). The phone levels started as alayout="stacked"inSortBuilder; after main moved, the eagerui-componentschunk sat at its 347,000-byte ceiling (check:eager-closure: main alone measures what this head measures, 347,610 gzipped in a local build, which CI reads about 600 bytes lower), so any phone-only bytes there fail the gate. The phone face therefore lives in plugin-list, which no per-chunk ceiling weighs, and the desktopSortBuilderis byte-identical to main. Its touch reorder is not added for desktop (a desktop on a touch screen keeps mouse, keyboard and HTML5 drag as before).Card selection (
ObjectGridcard renderer, plugin-gridlistPageScope.ts): a 500 ms long press held within 10 px starts selecting with that card ticked, and the click that ends the press is swallowed; while selecting a tap ticks or unticks, unticking the last ends it;requestListSelection(pageColumn)(the More menu's 「Select」) starts it with none ticked. The selection is the grid's oneselectedRows, shown in #35678's floatingBulkActionBar; its new optionalopenkeeps the bar up at 0 (「0 selected ×」, no actions) while a selection opened by 「Select」 has nothing ticked, and draws nothing new for any other host. The 「Select」 request, the "is a selection open" read and the "would 「Select」 open one" read live inlistPageScope.ts(requestListSelection,usePublishListSelecting/useListPageSelecting,usePublishListSelectable/useListPageSelectable); the page hides its 「+」 FAB while one is open, and draws 「Select」 only while the grid says a request would open one (cards whose rows take more than one tick; not a kanban, a calendar, or a list with no or single selection). The grid'sselectionAvailablein the action context is not enough for that: it is also true for a single-select list, where 「Select」 does nothing. The card scroller carries the grid's root ref, so the cards are inside the list page's scope too. A card is a keyboard control (role="button",tabIndex={0}, Enter / Space on its own key,aria-pressedwhile selecting): Enter opens it, and while selecting Enter or Space toggles it. Every pointer-down clears the long press's swallow flag first, so a long press the browser ends with no click (a finger that slid off, Android after its context menu) never eats the next tap.Shared with desktop
SortItem[](whatSortBuilderedits)PhoneSortLevels; see "Separate"SortPanel,FieldListapplySort→onSortChangeFilterPaneladvancedOffered={false}(internal prop) only drops its footer linkapplyPanelFilters→onFilterChangeObjectViewSwitcherMenuphonemoves the search last;footerEndadds View settingsViewSettingsContentObjectViewMoreMenuObjectViewPageBarActionsconditionRowEndBulkActionBar(#35678)openadded for an empty open selectionSeparate, and why:
PhoneListToolbar: the desktop bar is two rows of mixed controls; the phone row is pills only, by the card.PhonePanelSheetand the staging copy (useStaged): the container and the 「✓」 layer the ruling asks for. It keeps a copy and nothing else.PhonePageBar: the app bar has no slot a page fills on desktop, and the desktop draws the object name in the view bar.PhoneSortLevels: the phone's two-line level face with a touch handle. It edits the sameSortItems through the sameapplySorton 「✓」; it is separate fromSortBuilderonly because the eager components chunk has no headroom for phone-only bytes (above).Scope with #35955
#35883's Save, discard, save-as (name first), the toast after saving, and the temporary-view-settings rows move to #35955 (seat comment 7061423282 on #35883, 7061428301 on #35884): #36026 draws 「Save ▾」 at the phone pill row's end through the host's
conditionRowEnd. Until it lands,conditionRowEnddraws today's 「Personalized · Reset」 there.Follow-ups
role="button"even on a list whose rows open nothing and take no tick.Overlap
overlap-check.mjsagainst main and open PRs: clean. #36021 (#35678) landed first, as the seat ordered; main is merged here (c884e47, again at 6aef25a):listPageBarSlot.tsandSelectionPageBarare gone, and the cards' selection is #36021's bar.Verification
ListView.phonePanels-3588412 tests pass, with a new case: ArrowDown on the first level's handle moves it and the handle keeps focus at the new place, then ArrowUp from it moves it back. jsdom keeps focus on a moved node where a browser drops it, so the case blurs the handle right after each key, as a browser would; ablated, it fails without the refocus. Type-check and eslint (0 errors) on plugin-list.pnpm build): plugin-grid + plugin-list + the click census + componentscustom/483 files / 4,622 tests; the app-shell subset 138 files / 1,240 tests; type-check of plugin-list and app-shell, eslint (0 errors),check:i18n-keysand overlap-check clean.check:eager-closurelocally:ui-components347,610 gzipped bytes, the same as main with this branch's components change removed. e2elist-*on chromium: 49 of 51 pass; the 2 that failed arelist-no-actions-column-35554's "side record" cases (列表选中记录后:底部居中浮出操作条(已选 N 条、最多 3 个带文字的操作、更多),页面上方不再换内容;主列表、子表页签、侧边记录用同一条 #35678's), which fail only when the drawer face is a worker's first mount: the first-mount waitgetByText('商机 1')then also matches the side record's heading (strict mode). This branch does not touch them. On a re-run of the three side-record cases, dark and 375 passed and light failed again for the same reason.pnpm build): grid + list 481 files / 4,607 tests; the app-shell subset 137 files / 1,225 tests; type-check of plugin-grid, plugin-list, app-shell and components, eslint (0 errors),check:test-source-alias,check:i18n-keysand overlap-check (main and 6 open PRs) clean.pnpm exec vitest run packages/plugin-grid packages/plugin-listpasses, 481 files and 4,602 tests; app-shell, the 137 files that importObjectView, the phone page bar, the title switcher or the selection reads pass, 1,224 tests; type-check of plugin-grid, plugin-list and app-shell, eslint on the changed files (0 errors),check:test-source-alias,check:i18n-keysand overlap-check (main and 7 open PRs) are clean.pnpm exec vitest run packages/plugin-grid packages/plugin-list packages/i18nplus the click census pass, 587 files and 6,559 tests. app-shell: the 160 files that import or drive the changed modules (the switcher, the switcher menu, the page header,AppHeader,ObjectView, the FAB, the selection bar, the phone viewport) pass, 1,259 tests. The whole package (2,357 files) is left to CI's shards.plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx(11): the pill row and no condition row;userActions.sort: false; sort 「✓」 writes once throughonSortChangeand the count turns 1; 「×」 writes nothing and the sheet reopens from the list's sort; the empty filter state; theorgroup notice; an untouched 「✓」 writes nothing (sort, and the advanced-filter notice); with a stand-invisualViewport300 px short the sheet's bottom is 300 px and its height the visible area less 40 px, and both clear when it grows back (ablated: fails without the inset style); the levels' two lines, handle and ⋯ name; a finger drags the second level above the first and 「✓」 writes that order (ablated: fails without the move).plugin-grid/src/__tests__/cardSelection-35883.test.tsx(8): a long press with no click after it, then one tap on another card ticks that card (ablated: fails with the flag reset after the early return); 「Select」 is offered (useListPageSelectable) formultipleand not forsingleornone(ablated: fails when it followsrowsSelectable); long press ticks and opens nothing, a tap adds, unticking the last ends; a press that moves starts nothing; 「Select」 starts with none ticked and the bar reads 0 with 「×」 alone, which ends it; a long press floats the bar after the cards reading 1; Enter opens a card and Space toggles it while selecting; no selection withoutselection.ListView.phoneSortSearch-28911: the phone search trigger's size is now the pill'sh-11 min-w-11.ListView.phoneWidth-29074: the same for the phone search trigger; the Display trigger's assertion is unchanged.list-toolbar-view-name-phone(手机宽度下列表的视图名被截成一个字(「全部客户」显示为「全.」) #33833's pin): re-pointed from the retired phone toolbar row at the pill row. At 375 and 390, 「全部客户」 and 「All Customers」 are whole on one row with three 44 px pills. At 320, 「全部客户」 is whole and a longer name truncates while the pills stay on screen. A viewport meta is added so the mobile projects lay out at the viewport's width.tagClassalso readscn(CONSTANT, '…').app-shell/src/views/ObjectView.phoneFabSelecting-35883.test.tsx(3): the phone 「+」 is drawn, is not drawn while a list publishes an open selection, and is drawn again after; ⋮ More has no 「Select」 until the list publishes that one would open, then has it (ablated: the oldtitleSwitchergate fails the first).components/src/__tests__/clickableNonControlCensus-13461: the mobile card list's BACKLOG row is deleted. The card is repaired (a control withrole="button",tabIndex={0}, Enter / Space on its own key,aria-pressedwhile selecting), as the backlog's deletions-only rule asks;cardSelection-35883pins the keyboard path.listConditions.phone.sortCount/.filterCountare count families with every CLDR slot their pack selects and a base key (objectui#11445), in all packs and the English fallbacks.list-frame-geometry-35548: the switcher's source-order check reads the desktop trigger inside<PopoverTrigger>, since the phone pill comes first in the file and draws no type icon.list-toolbar-view-name-phone(both chromium projects),list-frame-geometry-35548,list-condition-row-35549,list-no-actions-column-35554,list-left-edge-35663andlist-header-narrow-35446all pass; after the merge everye2e/list-*spec passes (50).window.visualViewportreplaced by a stand-in 336 px shorter, a grey block drawn where a keyboard would be): the filter value step with its field focused and the views sheet with its search focused. Both sheets readdata-keyboard-inset=336, span y 40–476 (the keyboard's top), with 「✓」 at y 73–117 and the focused field above 476 (the filter value at 172–204, the views search at 355–400). Not a real device reading. 「Select」 checked in the same console: offered on the CRM 「客户」 list and opens the bar.Human Minimum
packages/specholds no runtime logic. (No spec change.)pnpm lintpasses (0 errors).main, one pull request. (Two cards, dispatched as one PR.)packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde