Skip to content

feat(list): a line between columns, 36px default rows and header, and 「+ Add calculation」 always shown in the footer (#36048) - #36069

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-04s64v
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-04s64v

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread
Fixes #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 (列表框架:页面栏 + 视图栏两条、表头 32 / 行高 33、统一 13 号字、合计与列对齐(图 36) #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; Footer calculation menu is offered on read-only package views; the list-view rows lose _packageId so the UI cannot tell them apart #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

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.

Browser readings (app-crm, 1440×900, zh-CN, light and dark)

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/).

Local gates
  • 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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb


Generated by Claude Code

…ows and header are 36px tall, and the footer shows + Add calculation at rest

Claude-Session: https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales November 21, 2026 12:18
@github-actions github-actions Bot added documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — ACCEPT (L1-b)

Head-sha: b5445c2 · read 2026-11-21T13:02Z · 18 files +95/−33 · base main 8145424 · checks at this head: 45 success · 13 expected skip · 0 failed · 0 pending · mergeable clean · l1-face CLEAN · merges pairwise clean with #36024, #36033 and #36042, the other open PRs that touch the same grid

维护者速读: 列表表格的观感调整:列与列之间加了一条和横线一样浅的竖线;默认行高和表头从 32 变成 36;底部统计行里没设统计的格子一直显示浅色的「+ 添加统计」,不用先把鼠标移上去才知道能点。只改样子,不动数据;没有权限改视图的人仍然看不到「添加统计」。有一处没量过:表格有冻结列、横向滚动时,竖线可能从冻结列上面划过去(浏览器对这种表格边框的画法有已知问题)。建议找一个有冻结列的列表看一眼,有问题再换画法;不阻塞。

Must-fix

None.

Should-fix

S1 — measure a frozen column scrolled sideways before calling the line done. The column line is a real border-r on every th/td but the last. The table is in the collapsed border model: Tailwind's preflight sets border-collapse: collapse on table, and ui/table.tsx sets no border-separate. In that model the browser paints cell borders as the table's, not the cell's. With a sticky frozen column (isFrozen && 'sticky z-10 bg-background'), two things can go wrong as the rows scroll under it. The frozen cell's own right line can stay at its original position, and the vertical lines of the scrolling columns can paint over the frozen cell's background. The body says this was not measured, because 客户 has no frozen column. One reading in Chromium (and in Safari if anyone can) of a list with a frozen column, scrolled sideways, settles it. If the lines do bleed, drawing them as an inset box-shadow (or an ::after) on the cell instead of a border keeps them on the cell and leaves the scroll shadow alone. The row lines are border-b on the tr and were already there, so they do not change.

Nits

  • N1 — compact and short now share h-9 and differ only by leading. That is intended, and the boundary test keeps them as separate copies. Since the row-height menu offers Compact, Standard and Spacious, short is reachable only from authored rowHeight: 'short'. Nothing to change, but such a view now looks almost the same as a default one.

Checked

  • OBJECT_GRID_TABLE_DENSITY: [&_th:not(:last-child)] and [&_td:not(:last-child)] give a 1px right border in border-border/50 (the row lines' shade). The header goes to h-9. A group header row (one td with colSpan) is its row's last child and draws no line. The e2e spec reads the computed width, style and colour off header, body (lead checkbox cell included) and footer cells against the row line, and 0px on each last cell. The ablation (line entry removed, that case goes red) is in the body.
  • Row height: the compact arm goes from h-8 to h-9. The e2e pins header 36 and rows 36 against compiled Tailwind on the real class sources. The footer row is unchanged.
  • SummaryCellPicker: the empty-cell hint is drawn at rest (text-muted-foreground/70, a Plus, darker on hover or focus-visible) only on the onPick branch. A reader without it still sees nothing in an empty footer cell (pinned in footerCalculationPicker-35702). The menu wiring is untouched, so the Footer calculation menu is offered on read-only package views; the list-view rows lose _packageId so the UI cannot tell them apart #35933 read-only-package gate still applies.
  • grid.summary.calculate changes its value in all 11 packs and in the plugin's English default. No key is added or removed, so Clause-②: no holds. The key is read only by objectGridSummaryPicker.tsx (grep), as the hint and as the button's aria-label on an empty cell, so the accessible name changes with it.
  • The e2e spec is also touched by 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, which re-anchors switcherBody. The two edits sit in different blocks and merge cleanly.
  • Shape: Fixes #36048, one changeset (plugin-grid and i18n, patch), Metadata-protocol: none.

Owed

  • The S1 reading (author or seat). The L1 is final at this head otherwise. To the seat for landing.

… column keeps it while the rows scroll sideways

Claude-Session: https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha: 0a1f747 (one commit on b5445c2, 2 files +24/−9) · read 2026-11-21T13:36Z · prior record ACCEPT 7062990450 · CI at this head: 47 success · 15 expected skip · 0 failed, mergeable clean (per the thread)

维护者速读: 上次提的冻结列问题量过了,确实有:横向滚动时冻结列的竖线会消失。现在竖线改用“内阴影”画在格子自己身上,冻结列滚动时线一直在,和原来的滚动阴影能同时显示。其他位置看起来不变。无新问题。

S1 — resolved

  • The thread's reading at b5445c2 confirmed half of the risk. With border-r, the frozen columns lost their lines when scrolled sideways. The scrolling columns' lines did not paint over the frozen cells.
  • At 0a1f747 the line is inset-shadow-[-1px_0_0_0] with inset-shadow-border/50 on th/td:not(:last-child). Tailwind v4 puts that in its own --tw-inset-shadow slot of the composed box-shadow. The frozen edge's FROZEN_EDGE_SHADOW (shadow-[…], class-based, data-table.tsx:1032) and an error cell's ring-2 ring-inset sit in other slots of the same stack, so they add to the line rather than replace it. No cell sets an inline boxShadow that would override it (grep across data-table.tsx and ObjectGrid.tsx). The thread's computed reading shows the name edge carrying the inset line and the frozen shadow together, in light and dark.
  • e2e: the compile input now defines --color-border, so the colour equality compares real colours. At b5445c2 both sides were the unset value, so that assertion could not fail. The case now reads exactly one inset layer, offsets -1px 0px 0px 0px, the row line's colour, borderRight 0px, and no inset layer on each last cell. The ablation for this head is in the note.
  • Docblock: it says why the line is a shadow (collapsed borders belong to the table).

Nits

  • None new. A child that paints its own full-cell background (an open in-cell editor's layer) will cover the line while it is open. That is expected and the same as the row lines.

Owed

  • L1 final at this head. To the seat for landing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T13:37Z · The b1-L card-thread PR for #36048: list columns get a thin divider (a 1px inset shadow, so frozen columns keep it while the table scrolls sideways), the default (compact) row and header are 36 high instead of 32, and the footer's 「+ 添加统计」 entry is always shown where the reader may add a statistic (personal views; package views keep no entry, as before). Clause-②: no, so no declaration-face L2 is owed. L1-b ACCEPT 7062990450 on b5445c21 and delta ACCEPT 7063428327 on 0a1f7470 (this head), which closes its S1 with a browser reading at 900 wide on a list with two frozen columns. check-governed-merges --pr 36069 reads NOT governed (+111/−34). The seat read K by hand: 14 first-parent commits since the merge base, under 15; main since then touches no translations/ bundle and five skills/ files this PR does not touch. On this head, 47 check-runs are success, 15 are skipped and none failed; mergeable clean. The landing order is changed: this lands before #36024, which is still reworking, and #36024 merges main after it. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #36048.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 13:38
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit eebb893 Nov 21, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-04s64v branch November 21, 2026 14:18
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…bottom-sheet sort, filter and view panels that apply on ✓ (objectstack-ai#36024)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu3cWtmKPZ5QYDKwmF13UfAe)_

repo:objectstack#1 · os-sales · session_01L6bhgXQEtN6Kp1wRKH6Fde

Fixes objectstack-ai#35883
Fixes objectstack-ai#35884

Clause-②: yes (widening): new optional `BulkActionBar.open`
(`@object-ui/plugin-grid`); new exports `PhonePanelSheet`,
`useListPhonePanels`, `PHONE_CHIP`, `PHONE_CHIP_ACTIVE` (+ types
`PhonePanelSheetProps`, `ListPhonePanels`) from `@object-ui/plugin-list`
and `requestListSelection`, `useListPageSelecting`,
`useListPageSelectable` from `@object-ui/plugin-grid`; new keys in every
`@object-ui/i18n` locale (`listConditions.phone.*`,
`sortBuilder.levelOptions` / `.changeField`,
`console.objectView.select`); nothing removed or renamed.
(`FilterPanel.advancedOffered` is internal to plugin-list: `FilterPanel`
is 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 objectstack-ai#35880 (Sales 2026-11-20 16:41Z),
one PR as the seat dispatched them.

## 维护者速读
- 手机上打开对象列表(例如「客户」),顶部一行变成:返回、对象图标和名字、「⋮ 更多」;通知和头像不在这一行。
- 下面一行全是胶囊按钮:视图名加条数、排序、筛选、搜索。有排序或筛选时按钮上带数字并高亮。手机上不再单独占一行显示排序筛选标签。
-
点排序、筛选、视图名,都从底部弹出面板。排序和筛选面板里改的是一份副本:点「✓」才生效,点「×」或下滑就丢掉。生效时走的是电脑端同一个写入,没有第二条保存路径。
-
排序面板每一级两行(字段在上、方向在下),可以用手指按住把手拖动排顺序;每级有「⋯」菜单(换字段、升降序、删除)。筛选面板列出每个条件;没有条件时是一句说明加「添加筛选」。视图用的是「或」组合这类高级筛选时,面板只提示「请在电脑上修改」。
- 「视图设置」进了视图名面板的最后一项,打开后内容和电脑端一样。
- 面板里弹出屏幕键盘时,面板会缩到键盘上方,「✓」和正在输入的框都不会被挡。没改任何东西就点「✓」,不会写入。
- 长按一张卡片进入选中状态,这张被选中;「⋮
更多」里的「选择」也能进入。「选择」只在能多选的卡片列表上出现,看板、日历、不可选或只能单选的列表上不显示。选中时点卡片是加选或取消,右下角「+」隐藏;取消到一张不剩就退出。
- 选中时用的是 objectstack-ai#35678(已合并)的底部浮动操作条:「已选 N 条」、×、操作;从「选择」进来还没勾卡片时显示「已选 0 条 ×」,点 ×
就退出。选中期间右下角「+」不显示,不会压住操作条。
- 工具行右边的「保存」按钮和它的菜单(保存、放弃、另存先起名、保存后的提示、临时视图设置)由 objectstack-ai#35955 提供(席位在 objectstack-ai#35883 评论
7061423282、objectstack-ai#35884 评论 7061428301 记下了这一分工;这里已经留好位置,objectstack-ai#35955 的 PR objectstack-ai#36026
合并后会自动出现)。
- 出错时用户在手机上会看到旧的工具行消失但新面板打不开;改动只在界面上,撤回这个 PR 就恢复原样,不动任何已存数据。
- 要你做的:无。

## 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 objectstack-ai#35880).

**The page's top row** (app-shell `layout/PhonePageBar.tsx`, new): a
page publishes `{ icon, title, end }` into a small store `ConsoleLayout`
mounts; `AppHeader` draws 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). `ObjectView`
publishes 「‹ · object colour tile (`ObjectIconTile`, as objectstack-ai#36042 draws it
on desktop) · object name · ⋮ More」. ⋮ More is `ObjectViewMoreMenu`
(extracted from `ObjectViewPageBarActions`, which now uses it), with
「Select」 first.

**One row of pills** (`PhoneListToolbar`, plugin-list
`phone/PhoneListPanels.tsx`): the host's `toolbarLeading` (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's
`conditionRowEnd`. The desktop toolbar row and the condition row are not
drawn below `sm`. A count highlights its pill; with none the pill is the
icon alone. `userActions.sort/filter/search: false` withhold their
pills, as on desktop.

**Bottom sheets** (`PhonePanelSheet`, a vaul `Drawer`, full height less
40 px, swipe-down closes): header 「× · title · ✓」 or 「‹」 on a sub-step.
`100dvh` does not shrink for the on-screen keyboard (iOS Safari; Chrome
on Android's default `resizes-visual`), so the sheet reads
`visualViewport` (`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 own
`repositionInputs`, which would also write the height, is off. 「✓」 on an
untouched copy writes nothing.
- **Sort**: the levels in `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 to
`SortPanel` / `FieldList`. The sheet edits a copy (`useStaged`) and 「✓」
hands it to `applySort`, the write the desktop sort chip calls (which
ends in `onSortChange`); 「×」 drops it.
- **Filter**: the conditions with a ⋯ menu (edit, remove); 「Add filter」
and edit step through `FilterPanel` (`advancedOffered={false}`). 「✓」
hands the copy to `applyPanelFilters`, the desktop chips' write. A
filter that is not a flat AND of conditions (an `or` group, nesting)
shows 「This view uses an advanced filter. Change it on a computer.」 and
edits nothing.
- **Views**: `ObjectViewSwitcherMenu` with `phone` (search at the
bottom, no list height cap) and its footer's last row 「View settings」,
which opens…
- **View settings**: `ViewSettingsContent` with the desktop popover's
own props; it applies each change as on desktop, so it has 「×」 only.

**`@object-ui/components` is not changed** (only a census test row is
deleted). The phone levels started as a `layout="stacked"` in
`SortBuilder`; after main moved, the eager `ui-components` chunk 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 desktop `SortBuilder` is 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** (`ObjectGrid` card renderer, plugin-grid
`listPageScope.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 one
`selectedRows`, shown in objectstack-ai#35678's floating `BulkActionBar`; its new
optional `open` keeps 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 in `listPageScope.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's `selectionAvailable` in
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-pressed` while
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

| Phone part | Shared component | Notes |
|---|---|---|
| Sort sheet levels | the list's `SortItem[]` (what `SortBuilder` edits)
| drawn by `PhoneSortLevels`; see "Separate" |
| Sort sheet 「Add sort」 / 「Change field」 | `SortPanel`, `FieldList` |
unchanged |
| Sort ✓ | `applySort` → `onSortChange` | the desktop chip's write |
| Filter sheet add / edit | `FilterPanel` | `advancedOffered={false}`
(internal prop) only drops its footer link |
| Filter ✓ | `applyPanelFilters` → `onFilterChange` | the desktop chips'
write |
| Views sheet | `ObjectViewSwitcherMenu` | `phone` moves the search
last; `footerEnd` adds View settings |
| View settings sheet | `ViewSettingsContent` | the popover's own props,
spread |
| ⋮ More | `ObjectViewMoreMenu` | extracted from the desktop's
`ObjectViewPageBarActions` |
| Save (from objectstack-ai#35955) | the host's `conditionRowEnd` | drawn at the pill
row's end |
| Selection bar | `BulkActionBar` (objectstack-ai#35678) | `open` added for an empty
open selection |

Separate, and why:
- `PhoneListToolbar`: the desktop bar is two rows of mixed controls; the
phone row is pills only, by the card.
- `PhonePanelSheet` and 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.
- The filter sheet's list of conditions: on desktop each condition is a
chip in the condition row, which the phone does not draw.
- `PhoneSortLevels`: the phone's two-line level face with a touch
handle. It edits the same `SortItem`s through the same `applySort` on
「✓」; it is separate from `SortBuilder` only because the eager components
chunk has no headroom for phone-only bytes (above).

## Scope with objectstack-ai#35955

objectstack-ai#35883's Save, discard, save-as (name first), the toast after saving,
and the temporary-view-settings rows move to objectstack-ai#35955 (seat comment
7061423282 on objectstack-ai#35883, 7061428301 on objectstack-ai#35884): objectstack-ai#36026 draws 「Save ▾」 at
the phone pill row's end through the host's `conditionRowEnd`. Until it
lands, `conditionRowEnd` draws today's 「Personalized · Reset」 there.

## Follow-ups

- A tap on a card's link cell (a URL or lookup link) while selecting
opens the link instead of ticking the card: the cell stops the click
from reaching the card (objectstack#33548's rule). The seat opens a
small card.
- Not taken from the L2 nits: the filter count counts top-level entries
(a nested group counts as one); a card stays a focusable `role="button"`
even on a list whose rows open nothing and take no tick.

## Overlap

`overlap-check.mjs` against main and open PRs: clean. objectstack-ai#36021 (objectstack-ai#35678)
landed first, as the seat ordered; main is merged here (c884e47, again
at 6aef25a): `listPageBarSlot.ts` and `SelectionPageBar` are gone, and
the cards' selection is objectstack-ai#36021's bar.

## Verification

- On bea8fe0 (the L1-b delta S1): `ListView.phonePanels-35884` 12 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.
- Unit, on 74cf9d8 (main 7dd1a2f merged at 3fe3dd6, with objectstack-ai#36069,
objectstack-ai#36026, objectstack-ai#36054, objectstack-ai#36093 and objectstack-ai#36097; full `pnpm build`): plugin-grid +
plugin-list + the click census + components `custom/` 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-keys` and
overlap-check clean. `check:eager-closure` locally: `ui-components`
347,610 gzipped bytes, the same as main with this branch's components
change removed. e2e `list-*` on chromium: 49 of 51 pass; the 2 that
failed are `list-no-actions-column-35554`'s "side record" cases
(objectstack-ai#35678's), which fail only when the drawer face is a worker's first
mount: the first-mount wait `getByText('商机 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.
- Unit, on f6a0264 (the L1-b round, main 1647fb3 merged at 6aef25a,
full `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-keys` and overlap-check (main and 6 open PRs) clean.
- Unit, on 7bea6cb (the L2 round): `pnpm exec vitest run
packages/plugin-grid packages/plugin-list` passes, 481 files and 4,602
tests; app-shell, the 137 files that import `ObjectView`, 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-keys`
and overlap-check (main and 7 open PRs) are clean.
- Unit, after the merge: `pnpm exec vitest run packages/plugin-grid
packages/plugin-list packages/i18n` plus 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.
- New tests:
- `plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx` (11):
the pill row and no condition row; `userActions.sort: false`; sort 「✓」
writes once through `onSortChange` and the count turns 1; 「×」 writes
nothing and the sheet reopens from the list's sort; the empty filter
state; the `or` group notice; an untouched 「✓」 writes nothing (sort, and
the advanced-filter notice); with a stand-in `visualViewport` 300 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`) for `multiple` and not for
`single` or `none` (ablated: fails when it follows `rowsSelectable`);
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 without `selection`.
- Rewritten tests:
- `ListView.phoneSortSearch-28911`: the phone search trigger's size is
now the pill's `h-11 min-w-11`.
- `ListView.phoneWidth-29074`: the same for the phone search trigger;
the Display trigger's assertion is unchanged.
- e2e `list-toolbar-view-name-phone` (objectstack-ai#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. `tagClass` also reads `cn(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 old
`titleSwitcher` gate fails the first).
- `components/src/__tests__/clickableNonControlCensus-13461`: the mobile
card list's BACKLOG row is deleted. The card is repaired (a control with
`role="button"`, `tabIndex={0}`, Enter / Space on its own key,
`aria-pressed` while selecting), as the backlog's deletions-only rule
asks; `cardSelection-35883` pins the keyboard path.
- i18n: `listConditions.phone.sortCount` / `.filterCount` are count
families with every CLDR slot their pack selects and a base key
(objectui#11445), in all packs and the English fallbacks.
- e2e `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.
- e2e, chromium, run locally: `list-toolbar-view-name-phone` (both
chromium projects), `list-frame-geometry-35548`,
`list-condition-row-35549`, `list-no-actions-column-35554`,
`list-left-edge-35663` and `list-header-narrow-35446` all pass; after
the merge every `e2e/list-*` spec passes (50).
- Browser, own backend and console, CRM 「客户」 list, 375 and 390, light
and dark: the top row, the pill row, the sort, filter and views sheets,
⋮ More, and a long press into selection. After the merge, at 375 light
and dark: 「Select」 with none ticked (「0 selected ×」), two ticked (「2
selected × Delete」), the 「+」 gone. Screenshots went to the seat.
- Keyboard, SIMULATED in Chromium at 375, light and dark
(`window.visualViewport` replaced 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
read `data-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

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No spec change.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes (0 errors).
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request. (Two cards, dispatched as one PR.)
- [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_01L6bhgXQEtN6Kp1wRKH6Fde

<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgXQEtN6Kp1wRKH6Fde -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

列表观感:列之间加竖线,默认行高 32 改 36,底部每列的「添加统计」入口常显

2 participants