Skip to content

feat(plugin-grid): selected rows get one bar floating at the bottom centre of the list - #36021

Merged
objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/project-thread-00juyj
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/project-thread-00juyj

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgWRZyWba1HhfWN7hKy

Fixes #35678

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 勾选行后,列表区域底部居中浮起一条小栏:「已选 N 条」和 ×,最多 3 个带文字的操作,其余进「更多」;操作不超过 3 个时全部是按钮(只有删除时删除就是按钮)。
  • 栏浮在合计行之上,列表末尾留出空间让最后一行完整露出;整页勾满且还有更多匹配时出「选择全部 N 条」;× 或 Esc 清空。页面顶部不再随勾选变化。
  • 主列表、子表页签、侧边记录、嵌入表格共用这一条栏;旧的底部条和视图栏的「已选」face 都删了。列表页上只勾一条时显示这条记录自己的操作(行上没有操作列);其他位置一律显示批量操作。
  • 风险:动了 ObjectGrid、data-table、列表页头三个热文件;浏览器 spec 跑出两个真问题已修(详见 Verification)。三个 i18n 键因此不再被读,留作后续卡。

What changes

One floating selection bar (ui/packages/plugin-grid/src/components/SelectionBar.tsx, replacing SelectionPageBar.tsx and the old strip in BulkActionBar.tsx):

  • Count chip 「已选 N 条」 and ×, then up to SELECTION_EXPOSED_ACTIONS = 3 labelled actions, the rest behind 「更多」. When the selection offers no more than three actions, every one is a button, Delete included (planExposedEntries). Over three, the first three non-destructive actions are buttons and Delete goes behind 「更多」, last.
  • A narrow host gives actions back to 「更多」 one at a time until the bar fits on one line (useFittedCount). It re-measures when the host's width changes and when the bar's own box changes (a font or stylesheet that arrives late).
  • 「选择全部 N 条」 shows when every loaded row is selected and more match. Over the 5000 cap, the offer, the chip and the chip's title name the cap (grid: "select all matching" banner counts every match, but the bulk action processes only the first 5000 #28552 strings, unchanged).
  • × clears the selection. Esc clears it unless the key belongs to a field, or to another open dialog/menu/listbox/popper that does not hold the bar. A grid inside the record drawer still clears on Esc.
  • Look: bg-popover, rounded, shadow. In dark mode the border is dark:border-foreground/20, so the edge stays visible.

Where it floats (no inline styles; utility classes only):

  • Flat table: a new runtime slot DataTableSchema.floatingBar (ui/packages/types/src/data-display.ts, refused by the zod twin with handlerKeyRefusal like the other runtime slots, KnownDrift ledger updated). data-table.tsx draws it in a zero-height sticky anchor after its scroll box, 12px above the bottom, or above the summary row when one is drawn. It also adds a spacer row (data-table-floating-bar-room) after the last row, so that row scrolls clear of the bar.
  • Card face, grouped cards, grouped table: FloatingSelectionBarAnchor, drawn right after the face's scroller, with pb-16 room inside the scroller.
  • Because the anchor sits outside the scroller, the bar holds at the bottom of the page's own scroller when the face grows with its rows (a child-table tab, the side record). It sits at the scroller's bottom when the face is height-bounded (the list page).

One bar everywhere:

  • ObjectGrid draws the same bar on every face. The portal into the page header and the bottom strip are gone.
  • useListPageBarHost / ListPageBarState (never published; absent from @object-ui/plugin-grid@18.6.0) are replaced by useListPageScope(scope) (listPageScope.ts). The list page registers its page column with it. A grid inside it draws no row-end controls (列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554) and, with one record selected, offers that record's actions in the bar (singleRowMenu, in row-menu order, Delete last).
  • Outside the list page the rows keep their own menu, and the bar offers the bulk actions at any count.
  • objectViewPageHeader.tsx: the page header and the view bar no longer hide or swap on selection.

Phone (card item 9):

Context menu: unchanged.

Not changed (reading accepted in the claim): the non-grid ListView strip (kanban and the other non-grid views) keeps its own bar.

Tests

Rewritten, because they asserted the retired faces:

  • plugin-grid/src/__tests__/BulkActionBar.test.tsx: fully rewritten. Old cases: the cross-page banner ("All N on this page are selected"), "Clear" text and the banner's clear. New cases: planExposedEntries (budget 3; all exposed at or under budget, Delete included; over budget the first admitted three; a narrower fit returns trailing entries in order), singleRecordEntries order, Delete-only → button, 3 vs 4+ actions, More contents (Delete last), one-record actions, 「Select all N」, the all-matching count, ×, Esc with the field / other-layer exceptions, Esc inside the dialog that holds the bar.
  • plugin-grid/src/__tests__/listPageBarSlot-35554.test.tsx → selectionBar-35678.test.tsx. Removed: "two rows selected: … Cancel restores the page bar" and "CONTROL: a grid with no page bar keeps the bottom bulk bar". Added: the bar floats in the table with one record's actions, the room row comes and goes with ×, Esc clears, and with no list-page scope the same bar shows bulk actions. Kept: no Actions column, Shift-extend, right-click.
  • BulkActionBar.selectAllMatchingCap-28552.test.tsx, bulkActionRefresh.test.tsx, bulkFanoutHostParams.test.tsx, plugin-list/…/ListView.crossPageSelectAll.test.tsx: banner assertions became assertions on the count chip's text and title. The offer reads Select all N (grid.selectAllTotal).
  • app-shell/…/ObjectView.bulkWiredHeaderDuplicate-12462.test.tsx: the selection face testids became the bar's (bulk-actions-bar, bulk-selection-clear).
  • ui/e2e/list-no-actions-column-35554.spec.ts:
    • Rewritten: the two-rows case (it asserted the page header hides and that nothing floats over the rows; it now asserts the opposite), the one-row case and the select-all case.
    • Added: 8 cases for the bar on the list page, a child-table tab and the side record, in light and dark, plus 375px.
  • examples/app-showcase/e2e/bulk-capability-gate.spec.ts: three exposed defs instead of two.

Only import paths changed (../components/SelectionBar): BulkActionBar.deleteLabel.zh-28910, BulkActionBar.regionName.zh-12145, bulk-action-visible, bulkActionCapabilityGate, lookupPredicateParity.

Added: types/…/data-table-declared-keys-6882.test.ts pins floatingBar as declared with type React.ReactNode. zod-mirror-parity.test.ts lists it in the DataTableSchema drift entry.

Acceptance notes

  1. Bottom centre of the list area, 「已选 N 条」 + ×, ≤3 labelled actions, rest in 「更多」, a single action is a button: yes (e2e measures the bar's centre against the scroll box's, ±1px).
  2. Above the footer calc row, last row fully visible: yes (e2e: bar bottom ≤ tfoot top; after scrolling to the end, the last row's bottom ≤ the bar's top, on the list and on the child tab).
  3. Top of the page does not change: yes (e2e: page-header stays visible).
  4. × / Esc clear; 「选择全部 N 条」 when the page is all selected: yes.
  5. One bar for main list, child tabs, side record, embedded tables; old strip and page-bar face retired: yes.
  6. Phone: the bar works at phone width over the card face; list pages have no bottom menu to replace.
  7. Context menu unchanged: yes (right-click e2e case kept).
  8. Dark theme edge; 375px no wrap/overflow: yes (e2e: border ≠ background in dark; at 375px scrollWidth ≤ clientWidth, height 44, inside the window).

Follow-up, not in this PR: grid.bulkAllOnPage, grid.bulkSelectAllMatching and grid.selectedAllLoaded are no longer read by any source. Retiring them from the 11 packs is a separate i18n card.

Verification

  • Unit: pnpm exec vitest run packages/plugin-grid packages/plugin-list packages/components/src/renderers/complex (cwd ui/): 517 files, 4837 tests, all pass. packages/types/src/__tests__ + data-table renderers: 432 files, 10784 tests, all pass. packages/i18n/src/__tests__ + console registry-inputs-spec-parity: all pass. packages/cli i18n-bulk-action-coverage / i18n-walk-output-parity and packages/lint i18n-walk: pass.
  • Type check: plugin-grid, components, types (tsc --noEmit + test configs), type-check:e2e: clean.
  • Browser (Chromium, real components bundled by Vite from source, real Tailwind): ui/e2e/list-no-actions-column-35554.spec.ts, 24 of 24 pass, before and after merging main. Two defects the jsdom tests could not see were found and fixed:
    1. With the anchor inside a scroller that grows with its rows (a child tab, the side record), the bar sat at the end of the rows instead of the bottom of the window. The anchor now sits after the scroller.
    2. At 375px a stylesheet that arrived after the bar drew left it overflowing. The fit now re-measures on the bar's own resize.
  • Screenshots (main list, child tab, side record; light and dark; 375px) are kept with the card thread's evidence.
  • Derived gates: node scripts/pm/dispatch-gates.mjs --ran: 63 derived, 62 run and exit 0, 1 NOT-MEASURED (check:dual-build-cjs-loads exit 3: it needs dists of server packages this diff does not touch; CI builds them).
  • node scripts/pm/overlap-check.mjs: clean against origin/main, feat(list,detail): a change that makes other fields required asks for them in place #35994 and feat(record-page): two-row record header — navigation over the record, up to three actions #35983.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWRZyWba1HhfWN7hKy

@github-actions github-actions Bot added size/xl 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_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T07:59Z. The brief handed to the isolated declaration-face reviewer for PR #36021 (owed by the changeset's Clause-②: yes (widening) line). The record follows as its own comment.

Contract review brief — PR #36021 @ a05ec513040fe60fb2518e50b3490386e1d0b792 (card #35678)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35678: its body and EVERY comment (rulings and earlier records included)
· PR #36021: its body, its file list, and the net diff against main at a05ec513040fe60fb2518e50b3490386e1d0b792
· the check-runs on a05ec513040fe60fb2518e50b3490386e1d0b792: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36021/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

Seat addition: @object-ui/plugin-grid's index drops useListPageBarHost and ListPageBarState; the changeset calls them unpublished. They came with #35637 (merged 2026-11-19), after the last plugin-grid version bump (#33849, 2026-11-18, 18.6.0). Judge in ② whether their removal is a narrowing of any PUBLISHED declaration, or only of unreleased ones, and say so explicitly; if published, the verdict is FAIL with the face corrected to narrowing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: a05ec513040fe60fb2518e50b3490386e1d0b792
Local-runs: none

Inputs read: card #35678 (body as rewritten 2026-11-20T23:00Z and all 7 comments, claim 7058449261 governing), PR #36021 (body, 31-file list, net diff origin/main...pr-36021, merge base b89f1b5f), and the 62 check-runs on this head: 52 success, 10 skipped (opt-in or path-filtered: UI Published Artifacts, Temporal Conformance, Packed-tarball smoke, 18.x upgrade harness, Build Docs, Dogfood Verify CLI and the dogfood matrix, the three queue-verdict jobs), 0 failure. The face is the declaration face: no published-schema or governed path in the tree (Governed Surface Queue Guard success on this head), and the PR body and changeset both read Clause-②: yes (widening).

① Derived judgments

Every public-surface and accept-set change the diff implies, judged against the published 18.6.0 trees (version commit 958ee0359, #33849):

  • @object-ui/plugin-grid index, net against 18.6.0 — additions only: useListPageScope (new), and readListScrollState / ListScrollState (unreleased, from feat(list): no Actions column on the list page; a selection swaps the page bar; lists load as they scroll #35637, untouched here). BulkActionBar, BulkActionBarProps, BulkActionItems, LegacyBulkActionItem, useBulkActionItems, resolveBulkActions all keep their published names; BulkActionBar and BulkActionBarProps now come from components/SelectionBar.tsx, the two item types still from components/BulkActionBar.tsx. The package has one export entry (. plus ./style.css), so no deep import of SelectionPageBar.tsx or listPageBarSlot.ts was ever reachable. Right.
  • BulkActionBarProps — compared member by member with 18.6.0: every member is kept with the same type and optionality, plus one optional singleRowMenu?: RowActionMenuProps. A widening. Right.
  • BulkActionBar render — the published component no longer draws the full-width strip, the cross-page banner (bulk-cross-page-banner) or the text "Clear" button. It draws a self-contained pill with ×, the count chip and the "Select all N" offer. This is a change in how the component looks, not in its declaration. No in-repo consumer outside plugin-grid renders it: ObjectFormCanvas.tsx has its own local function of that name, and ListView draws its own strip for non-grid views. The changeset says the component is redrawn. Right.
  • Module-internal exports — BulkActionButton loses its size prop, and RowActionInlineButton gains buttonClassName. Neither one is on the package index, in 18.6.0 or on this head. No public effect. Right.
  • @object-ui/types DataTableSchema.floatingBar?: React.ReactNode — an optional member on the TypeScript interface. A widening, pinned in data-table-declared-keys-6882.test.ts. Right.
  • zod twin DataTableSchema.floatingBar: handlerKeyRefusal(..., 'runtime-slot', ...) — an accept-set change: in 18.6.0 the passthrough BaseSchema.extend kept an authored floatingBar, and nothing read it. Now it is refused by name. No declared capability is taken away, because no renderer read the key before this PR. This follows the summaryRow precedent from 列表框架:页面栏 + 视图栏两条、表头 32 / 行高 33、统一 13 号字、合计与列对齐(图 36) #35548, which used the same helper, joined the same KnownDrift entry and shipped with Metadata-protocol: none. The KnownDrift ledger count is updated (51 entries, 90 → 91 keys). Right, with nit F2 on the refusal's wording.
  • @object-ui/components data-table — reads floatingBar, draws a spacer row (data-table-floating-bar-room) and a zero-height sticky anchor after the scroll box. No export or prop change outside the schema member above. Right.
  • @object-ui/app-shell objectViewPageHeader.tsx — ObjectViewPageHeader and ObjectViewBarTrailing keep their signatures. The selection face and its list-selection-page-bar testid are removed inside them. This matches card items 4 and 8. Right.
  • Metadata protocol — nothing a metadata author can write is added, retired or changed in meaning; floatingBar is a host-only runtime slot. Metadata-protocol: none is right.

② Semver level

  • Clause-②: yes (widening), on both the PR body and the changeset, is right. Against the published 18.6.0 declarations, the diff adds a new export (useListPageScope), a new optional prop (singleRowMenu) and a new optional schema member (floatingBar). It removes nothing that was published.
  • Seat question: is the removal of useListPageBarHost / ListPageBarState the narrowing of a published declaration? No. It narrows only unreleased declarations. The evidence:
  • Level — Metadata-protocol: none takes patch (AGENTS.md, Post-Task Checklist step 3), including for a widening. The changeset bumps patch on all four packages whose published code the diff moves: plugin-grid, components, types and app-shell. Right. The examples, e2e and docs/qa paths publish nothing. Check Changeset is success on this head.
  • The changeset has no migration section, and needs none: nothing published is removed or renamed.

③ Boundary flags

  • Dev flags — each answered or escalated:

  • open_questions — the PR carries none. The claim's seat-accepted readings are each honoured in the diff:

    • three actions or fewer are all buttons, Delete included;
    • over three, the first three non-delete actions are buttons and Delete goes last behind More;
    • the bar folds actions into More by measured width;
    • Esc is ignored while a field or another open layer has it;
    • the non-grid ListView strip is out of scope;
    • list pages have no phone bottom menu to replace.
  • F1 — should-fix, non-blocking. The pending .changeset/35554-list-no-actions-column.md is unreleased and sits in the same plugin-grid release as this changeset. Several of its sentences are retired by this PR:

    • "a selection swaps the page bar";
    • "The first two are buttons … Delete is never a button";
    • "Grids outside a list page … keep … their bottom bulk bar";
    • "the page bar offers 「选择全部 M 条」".

    If nothing changes, plugin-grid's next CHANGELOG will publish both entries side by side, and they contradict each other on what a lone Delete is and on where the selection is shown. The AGENTS.md rule on correcting released entries does not apply yet, because that changeset is still unconsumed input. Fix either way: trim the four sentences from the pending 35554 changeset in this PR, or say in this changeset, in one line, that it supersedes them. Not a contract defect in the diff itself, so it does not change the verdict.

  • F2 — nit. floatingBar is refused with handlerKeyRefusal(..., 'runtime-slot'). That helper's message calls the key "a RUNTIME SLOT for a host-supplied function" and talks about "handler key[s]" and authoring behaviour as a node type. That is inaccurate for a React-node slot. It is the same wording summaryRow already ships with, and it has no effect on correctness or on the contract.

  • F3 — nit, a disclosed reading, not escalated.

  • F4 — nit, not measured. On a phone, the list page keeps its floating create button. The card's 375px acceptance item is measured only against overflow: the e2e checks scrollWidth ≤ clientWidth, a height of 44 and that the bar stays inside the window. Nothing checks for overlap with that button. The claim hands hiding "+" during selection to 手机端列表页:顶部一行返回加对象名,工具行一行胶囊(视图、排序、筛选、视图设置、搜索),列表保持卡片 #35883. Until 手机端列表页:顶部一行返回加对象名,工具行一行胶囊(视图、排序、筛选、视图设置、搜索),列表保持卡片 #35883 lands, whether the button sits on the bar at 375px is unmeasured. Record it on 手机端列表页:顶部一行返回加对象名,工具行一行胶囊(视图、排序、筛选、视图设置、搜索),列表保持卡片 #35883, not here.

  • SQL push-down (Prime Directive 5) — no finding.

    • The diff adds no query, no id materialisation and no in-app join.
    • SelectionBar.tsx and listPageScope.ts read only props and DOM.
    • The select-all-matching fan-out (resolveBulkRows, paged find, HARD_CAP 5000) is pre-existing and unchanged. Only its wording in the checklist doc moves.

Implemented-by: claude/project-thread-00juyj
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

…page-bar selection

The floating selection bar replaces the page-bar selection face, the
two-button rule and the bottom bulk bar outside list pages; both entries
ship in the same release, so the older one drops those sentences.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgWRZyWba1HhfWN7hKy
…s it supersedes

Restores the pending list-page entry untouched and states in this
entry's own text that the page-bar selection, the two-button rule and
the bottom bulk bar outside list pages are replaced.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Regen-provenance: declaration-face record 7059675911 (PASS) · a05ec513 → 957a7fa4 · git diff a05ec513 957a7fa4 -- . ':!.changeset' → (empty) · 2026-11-21T08:07Z

The head moved on changeset prose only. That closes the record's F1 (should-fix): this PR's changeset now states that it supersedes the selection behaviour of the pending list-page entry. The intermediate commit that edited .changeset/35554-list-no-actions-column.md was reverted, so that file is unchanged against main. The record carries over to this head (contract-review.md L49). The seat accepts F3 (outside the list page, one selected record gets the bulk actions; its rows keep their own menus). F4 is handed to #35883's thread.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — ACCEPT (L1-b)

Head-sha: 957a7fa · read 2026-11-21T08:12Z · full read of b89f1b5..957a7fa (31 files, +1376/−993), card #35678 as rewritten 2026-11-20T23:00Z, claim 7058449261, PR body, and the browser screenshots kept with the card thread.

维护者速读

  • 勾选行后,列表底部居中浮起一条小栏:「已选 N 条」和 ×,最多 3 个带文字的操作,其余进「更多」;只有一个操作(比如只有删除)时直接是按钮。页面顶部在勾选前后不再变化。卡上的验收项逐条都有对应的实现和测试。
  • 主列表、记录页子表页签、侧边打开的记录、嵌入页面的表格用的是同一条栏;旧的贴底通栏和视图栏里的「已选」那一面都已删除,仓库里没有残留引用。
  • 合计行仍然露在栏下面,选中期间列表末尾多留一段空白,最后一行能完整滚出来;浏览器测试量了位置。
  • 不挡合并、建议补的两处:一是测试清单里还有一条步骤写着「选中后操作在视图栏右端」,测试人员照着会找错地方;二是「这是不是列表页」的登记方式比较脆,现在靠 React 的执行顺序才不出错,改成计数登记更稳。
  • CI 在这个 head 上还在跑,L1 以绿灯为准。

Must-fix

None.

Should-fix

  • S1 — one checklist step still sends the tester to the retired face. docs/qa/platform-checklist/areas/records-forms.json item records-forms.list-view-capabilities (revision 13), steps[8] (line 662 at this head): "…drops Mark Done from the selection actions the view bar's right end shows (since 列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554 the list page has no bottom bulk bar; since 列表工具区重排:对象名并进视图行,「选项」改成视图名旁的「视图设置」并直接摊开列清单,筛选和排序的入口并到标签行,排序并成一个标签 #35878 the selection face is the view bar's right end, with ⋮ still last)…". After this PR the view bar does not change on selection, and those actions are in the floating bar. The PR updates records-forms.bulk-select-all-matching (rev 12) but not this item. Fix: reword the parenthetical to name the floating selection bar, bump the item to revision 14, and add a revisions entry with "ref": "#35678".
  • S2 — the list-page scope registry drops a shared scope on the first unregister. listPageScope.ts keys scopes by element (Set<HTMLElement>). Both ObjectViewPageHeader (el.parentElement) and ObjectViewBarTrailing (closest([data-object-view-page-column])) register the same page column, and ObjectView.tsx:1294 unmounts the header the moment the trailing mounts (!listBarHosted). The header's cleanup scopes.delete(X) deletes the trailing's registration too. Today this works only because React runs the unmounted header's layout-effect cleanup (mutation phase) before the trailing's new layout effect (layout phase) in the same commit, so the trailing's add happens last. If the trailing's pageColumn resolves one commit earlier than setHosted lands, the scope disappears while the list is still on screen. The list then draws its Actions column again, and one selected record gets bulk actions instead of its own. The retired listPageBarSlot.ts did not have this problem, because each registration was its own Host object. Fix: count registrations (Map<HTMLElement, number>, delete at 0) or register a per-call token. A jsdom case that mounts two registrants of one element and unmounts one would pin it. The e2e on the real list page covers today's order only.

Nits

  • N1 — The claim's file surface (7058449261) lists data-table.tsx as "one spacer row only". The diff also adds the floatingBar destructure and the sticky anchor (+16 lines). The PR body declares both, and they sit inside the renderer's existing tail region. Worth one line on the card if the seat keeps claim surfaces exact.
  • N2 — SingleRecordActions exposes only def and edit entries when a record offers more than three actions ((entry) => entry.kind === 'def' || entry.kind === 'edit'). Legacy rowOperations names never become buttons in that case, even when fewer than three entries are exposed. The bulk side admits legacy names (!entry.destructive). If this is intended, a one-line comment would say so. If not, admit legacy too.
  • N3 — Each mounted bar adds its own document keydown listener. Two grids with open selections on one page (for example two child tables) both clear on a single Esc. This is acceptable for now, and the card does not cover it.
  • N4 — bottom-[calc(2.0625rem+1rem)] mirrors the summary row's h-8 + border-t by hand. A short comment naming that coupling would save the next person from measuring it. Also, while the spacer row is the last tr, TableBody's [&_tr:last-child]:border-0 no longer applies to the real last row, so that row gains a bottom border while rows are selected. This is harmless.
  • N5 — useFittedCount's dependency-free layout effect reads scrollWidth/clientWidth on every bar render. That is cheap at this size; noted only.

Checked

  • Card 列表选中记录后:底部居中浮出操作条(已选 N 条、最多 3 个带文字的操作、更多),页面上方不再换内容;主列表、子表页签、侧边记录用同一条 #35678, items 1–10 and the acceptance list. One floating bar at the bottom centre of the list area (e2e measures the centre within ±1px). Up to three labelled actions, with the rest in 更多. A lone Delete is a button; over three, Delete goes behind 更多, last (planExposedEntries, unit cases for 3 vs 4+ and for Delete-only). The bar sits above the calc row (bottom-[calc(…)] when summaryRow; e2e checks bar bottom ≤ tfoot top), and the last row scrolls clear (spacer row data-table-floating-bar-room, pb-16 on the card and grouped scrollers; e2e checks both). The page header is unchanged (both swap sites removed in objectViewPageHeader.tsx, and e2e checks page-header is visible). × and Esc clear. 「选择全部 N 条」 appears when every loaded row is selected and more match, with the grid: "select all matching" banner counts every match, but the bulk action processes only the first 5000 #28552 cap strings kept on the chip text and title. The same bar draws on the table, card, grouped-card and grouped-table faces. Item 6 belongs to feat(list): a two-row list toolbar — View settings beside the view name, a resident condition row, ⋮ More at the far right #35918; item 10 (context menu) is untouched, and its e2e case is kept. Fixes is right: the card's 「不做的」 puts kanban and the other views out of scope, and the claim records the phone reading (list pages draw no phone bottom menu).
  • Esc ownership. The handler returns on defaultPrevented, on an editable target, or when another dialog, menu, listbox or popper is open and does not hold the bar. Radix layers preventDefault before they dismiss, so a menu's Esc never also clears. Unit cases cover the field and other-layer exceptions, and Esc inside the drawer that holds the bar.
  • Narrow width. useFittedCount gives actions back to 更多 one at a time while scrollWidth > clientWidth, resets when the host width changes, and re-measures when the bar resizes. At fit 0 the More button still holds everything. The 375px screenshot shows the bar on one line with 批量更新 + 更多.
  • Clause-② widening. BulkActionBarProps only gains the optional singleRowMenu; every old prop is kept with its type. DataTableSchema.floatingBar?: React.ReactNode is optional. The zod twin refuses it with handlerKeyRefusal('floatingBar','runtime-slot',…), and the declared-keys and zod-parity tests are updated. useListPageBarHost / ListPageBarState / useListPageBarSlot came from the unreleased 列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554 entry (.changeset/35554-list-no-actions-column.md is still pending at this head, and the claim records an npm pack read of 18.6.0 without them), so removing them narrows nothing published. All four touched published packages have changeset lines. l1-face flags @object-ui/plugin-list, which changes only ListView.crossPageSelectAll.test.tsx (no shipped file), so no entry is owed.
  • Retired faces leave no residue. No source, test or e2e references to SelectionPageBar, listPageBarSlot, useListPageBarHost, useListPageBarSlot, ListPageBarState or list-selection-page-bar remain at this head. The i18n keys the bar reads (grid.selectedCount, grid.selectAllTotal, grid.bulkClear, common.more, the cap keys) exist in all 11 packs. The three keys that are no longer read are named in the PR body as a follow-up.
  • Styling. No inline styles were added: the anchors, spacer and bar are utility classes only (ui/AGENTS.md Styling). In dark mode the bar has a dark:border-foreground/20 edge, and the dark screenshot shows a visible edge.
  • Changeset text, sentence by sentence, against the code. It matches: three exposed actions, Delete placement, sits above the calc row, room after the last row, the Select all offer, Esc exceptions, one bar on every face, one record offers its own actions only on the list page, the narrow fold, and the API lines. "Supersedes the selection behaviour in the list-page entry" is accurate against the pending 列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554 entry.
  • README. The new plugin-grid section matches the component and the useListPageScope contract.
  • Tests. The rewrites are listed in the PR body as the card asks. The new unit cases match their names. The e2e covers the list page, child tab, side record, light/dark and 375px.

Owed

  • CI green at 957a7fa (34 checks pending at read time; at a05ec51 it was green, and a05ec51..957a7fa is changeset text only per the relay). The L1 is final on the green head.
  • S1 and S2: on a later head I read only the delta.
  • Follow-up card for the three unread i18n keys (grid.bulkAllOnPage, grid.bulkSelectAllMatching, grid.selectedAllLoaded), as the PR body says.
  • L2 carry-forward is the seat's (declaration L2 7059675911 at a05ec51, Regen-provenance). This L1 does not replace it.

…ants unmounting

The page header and the view bar's trailing end register the same page
column, and the header unmounts as the trailing mounts. The scope is now
counted per column, so it goes only with its last registrant instead of
relying on React's effect order. The checklist's bulk-actions step names
the floating bar, and two comments say why legacy names stay in More and
where the summary-row offset comes from.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

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

Head-sha: f577149 · read 2026-11-21T08:16Z · delta 957a7fa..f577149 only (one commit, 5 files, +94/−7), on top of ACCEPT 7059761626.

维护者速读

  • 上一轮提的两处建议都已改好。测试清单里那条步骤现在写的是「底部浮出的操作条」,测试人员不会再去视图栏找。「是不是列表页」的登记改成了计数,页头和视图栏各登记一次,要两边都卸下才算离开列表页,不再依赖执行顺序。
  • 新加的测试正好覆盖旧写法出错的那个顺序。
  • 其余改动只是代码注释,行为不变。

Must-fix / Should-fix

None. S1 and S2 from 7059761626 are closed.

Checked

  • S2 closed. listPageScope.ts: scopes is now Map<HTMLElement, number>. Register adds 1. Cleanup subtracts 1 and deletes at 0, and ?? 1 keeps a stray cleanup from going negative. inScope iterates keys(). emit() runs on both edges as before. The new listPageScope-35678.test.tsx mounts header, then both, then trailing only. That is the header-register → trailing-register → header-unmount order, which returns 'elsewhere' on the old Set: the old add was a no-op and the delete dropped the column. The test asserts 'list page' after that step and 'elsewhere' only once both are gone. Its CONTROL case covers a grid outside every registered column. The thread reports the case red against the 957a7fa listPageScope.ts and green on this head.
  • S1 closed. records-forms.list-view-capabilities steps[8] now names the floating selection bar and says the view bar does not change on selection. Revision 13 → 14, with a revisions entry "ref": "#35678" scoped to steps[8]. The rev-13 line changes only by its trailing comma.
  • N2 and N4. These are comments only: SelectionBar.tsx explains why legacy names stay in 更多 past three, and data-table.tsx names the h-8 + border-t coupling. No class or logic changed.
  • Scope. Nothing outside the S1/S2/N2/N4 lines changed. The changeset is untouched, and none is needed: the S2 fix is internal to an already-declared module.

Owed

  • CI green at f577149. The L1 is final on the green head.
  • The PR's base is still b89f1b5 while main is at eb53d63. If the seat merges main before landing, I will read that merge-only delta.
  • N1 (claim surface wording) is the seat's. The L2 carry-forward is the seat's, and this L1 does not replace it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: f577149f08fe4f684804b605bfb9ee00c463906c
Local-runs: none

This is a delta round on the declaration face. Record 7059675911 reviewed a05ec513 and was carried to 957a7fa4 by Regen-provenance. This round reviews git diff 957a7fa4 pr-36021, which is the single commit f577149f0. It changes 5 files (+94/−7):

  • ui/packages/plugin-grid/src/listPageScope.ts
  • the new ui/packages/plugin-grid/src/__tests__/listPageScope-35678.test.tsx
  • one comment in ui/packages/plugin-grid/src/components/SelectionBar.tsx
  • one comment in ui/packages/components/src/renderers/complex/data-table.tsx
  • checklist step text in docs/qa/platform-checklist/areas/records-forms.json

I also read the changeset path a05ec513..957a7fa4 to settle F1. The tree in this delta holds no published-schema or governed path, so the face stays declaration.

Gates: when this record was written, the check-runs on f577149f were not finished: 8 success, 10 skipped, 19 in progress, 1 queued, 0 failure. In progress are Type Check UI, Lint UI, Build & E2E UI, Check Changeset, and the Test UI and Test Core shard planners. This record judges the contract only. It does not stand in for those gates, and the head lands only once they conclude green.

① Derived judgments

  • useListPageScope: the published signature is unchanged. It is export function useListPageScope(scope: HTMLElement | null): void before and after. The delta does not touch ui/packages/plugin-grid/src/index.tsx or anything under ui/packages/types: git diff 957a7fa4 pr-36021 on those paths is empty. useIsListPageGrid is still module-internal and not on the index. The delta adds, removes and retypes no exported declaration. Right.

  • listPageScope.ts, judged for correctness. The registry changes from a Set to a Map of counts: mount adds 1, cleanup subtracts 1, and the entry is deleted at 0. inScope walks scopes.keys(). Correct for each case:

    • Two registrants of one column, mounted in either order: the count reaches 2, and the column stays a list page until the last one unmounts. The old Set dropped the column when the header unmounted after the trailing end had registered, which is the defect this fixes.
    • The [scope] dependency changes from A to B: cleanup lowers A, then the effect raises B. Correct.
    • StrictMode double-invoke (+1, −1, +1) settles at 1. Correct.
    • A cleanup that finds no entry (?? 1) deletes and never goes negative. Correct.
    • getSnapshot still returns a boolean, so useSyncExternalStore gets a stable snapshot.

    On this head the two registrants are ObjectViewPageHeader, which registers parentElement, and ObjectViewBarTrailing, which registers the closest OBJECT_VIEW_PAGE_COLUMN_ATTR. When the two resolve to the same column, the count is what keeps the scope. When they resolve to different elements, the result is the same as before. No finding.

  • listPageScope-35678.test.tsx.

    • Case 1 reproduces the order that failed under the Set: register header, then trailing, then unmount header. It asserts that the scope survives, then that it drops once both registrants are gone.
    • The CONTROL case checks that a grid outside every registered column is not a list page.
    • afterEach(cleanup) and scope.remove() keep the module-level map at zero between cases.

    The test pins the fix. Right.

  • Comments.

    • data-table.tsx: "2.0625rem is the summary row's h-8 plus its 1px border-t". h-8 is 2rem and 1px is 0.0625rem at the 16px root, so the comment is accurate.
    • SelectionBar.tsx: over the budget, only def and edit entries are exposable, and legacy names stay behind 「更多」. That matches the predicate the comment sits on.

    Neither comment has a contract effect.

  • records-forms.json. list-view-capabilities goes to revision 14. It rewrites the steps[8] wording to the floating bar and adds a history row. What the step measures (Mark Done's visible gate) is unchanged. Right.

② Semver level

  • The delta changes no published declaration. Clause-②: yes (widening) on the PR body and the changeset still reads right for the whole diff.
  • Metadata-protocol: none takes patch on all four packages, unchanged since the full round. The delta's code change is internal to @object-ui/plugin-grid, which already carries patch.
  • The full round's seat judgment stands: removing useListPageBarHost / ListPageBarState narrows only declarations that were never published. Nothing in this delta reopens that.

③ Boundary flags

The full round's findings, each settled:

  • F1: closed. 957a7fa4 adds one paragraph to .changeset/35678-floating-selection-bar.md. It says that this entry supersedes the selection behaviour in the 35554 list-page entry of the same release: the page-bar face is gone, up to three actions are buttons including a lone Delete, and grids outside a list page draw no bottom bulk bar. That is the second of the two fixes F1 offered.
    • ff486d458 had trimmed .changeset/35554-list-no-actions-column.md, and 957a7fa4 restored it. The net diff leaves that file as it is on main. That is a valid route, and the supersede line carries the correction.
  • F2: accepted, nit. The handlerKeyRefusal(..., 'runtime-slot') wording ("host-supplied function") is unchanged and accepted as it stands. It is the same wording summaryRow ships with, and it has no effect on correctness or the contract.
  • F3: accepted, nit. The PR body and the changeset still disclose the reading that outside the list page, one selected record gets the bulk actions while its rows keep their own row menu. The seat acknowledges it when it accepts the PR, and it needs no code change.
  • F4: open, non-blocking. The overlap of the phone's floating create button with the bar at 375px is still unmeasured. It is routed to 手机端列表页:顶部一行返回加对象名,工具行一行胶囊(视图、排序、筛选、视图设置、搜索),列表保持卡片 #35883, which owns hiding 「+」 during selection. The delta does not touch it.

The delta adds no new dev flag and no open_questions entry.

SQL push-down (Prime Directive 5): no finding. The delta adds no query, no id materialisation and no in-app join. It is an in-memory registry count, one test, two comments and checklist prose.

Implemented-by: claude/project-thread-00juyj
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T08:39Z · #35678 (rewritten at the maintainer's ask): selected rows get one small bar floating at the bottom centre of the list, the same bar on the list page, child-table tabs, the side record and embedded tables. The old bottom strip and the view bar's selection face are retired. Clause-②: yes (widening); the removed useListPageBarHost and ListPageBarState were never released (they came after the last plugin-grid version), so no published declaration narrows. The seat's declaration-face L2 at TIER_DEFAULT read PASS 7059675911 on a05ec513. Regen-provenance carried it to 957a7fa4 (changeset prose, closing F1), and delta PASS 7059823453 is on f577149f (this head; the list-page column count fix). L1-b ACCEPT 7059761626, then delta ACCEPT 7059801890 on this head. The seat accepts F3: outside the list page one selected record gets the bulk actions, and its rows keep their own menus. F4 (the phone create button against the bar at 375) is carried by #36024's merge round. A claim amendment covers the data-table surface. check-governed-merges --pr 36021 reads NOT governed (+1466/−996). K read by hand: 7, and main since the merge base touches neither translations/ nor skills/. On this head, 52 check-runs are success, 10 are skipped and none failed; mergeable clean. #36024 merges after this. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35678.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 08:40
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 0585797 Nov 21, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-00juyj branch November 21, 2026 09:06
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
objectstack-ai#36015) (objectstack-ai#36033)

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

repo:objectstack#1 · os-sales · session_01L6bhgTQn1haiL13TBfwmxm

Refs objectstack-ai#36015

The card's scope changed after this PR was opened (maintainer,
2026-11-21 11:13Z: lookup chips open the referenced record in the side
drawer on a single click, with a pencil button on lookup cells). This PR
lands everything the revision kept. The lookup-cell part follows in its
own PR, which carries `Fixes objectstack-ai#36015`. Until then, a lookup chip selects
its cell on a single click and opens with Ctrl/Cmd-click, the open
button or Ctrl/Cmd+Enter.

Clause-②: no
Metadata-protocol: none

## 维护者速读

-
列表格子里单击只做一件事:选中这一格。点邮箱、电话、网址、文件、关联记录或人员的小标签、图片缩略图,都只是选中,不再打开邮件程序、拨号、网页或跳到别的记录。
- 想打开时有三条路:按住 Ctrl / Cmd 再点;选中这一格后鼠标移上去,格子右边出现「打开」小图标,点它;或选中后按
Ctrl+Enter / Cmd+Enter。一格里有多个标签时,图标和快捷键打开第一个。
- 邮箱、电话格里的复制按钮在列表里不再出现;复制用选中后 Ctrl+C / Cmd+C。双击邮箱文字照常进入编辑。
- 名称列不变:单击名称进记录页。记录页、相关列表、手机卡片、看板卡片都不变(它们没有「先选中」的格子模型)。
- 风险:改了 data-table、字段格子渲染和名称列链接三处;没有新导出、没有新文案键(「打开」复用已有的 `table.open`)。

## What changes

The rule, on a grid with the select-first cell model
(`GridCellSelectionProvider`, mounted by `ObjectGrid` when its host
passes `cellSelection`; today the console's list page): **a single click
on a cell only selects it.**

**`@object-ui/components`: `dataTableCellSelection.ts`,
`data-table.tsx`**

- New `cellOpenerAt` / `firstCellOpener`: a cell's *opener* is any
`a[href]` it draws, except one marked `data-opens-on-click`, plus any
element marked `data-cell-opener`.
- `isCellWidgetTarget` no longer counts an opener as a widget. A press
on a link is a press on the cell, so a double-click on the email text
edits, and the double-click's word selection is suppressed as on any
cell.
- Each select-first cell gets an `onClickCapture`. A plain primary click
on an opener calls `preventDefault` (no `mailto:`, `tel:`, new tab or
download), stops the event before the opener's own handler (no SPA
navigation), and selects the cell. A Ctrl, Cmd, Shift or Alt click, a
non-primary button, a touch tap and a click inside an open editor pass
through unchanged.
- The selected cell draws `CellOpenButton`, an icon button at its right
edge labelled with the existing `table.open` key. It is shown on cell
hover (`group-hover/cell`) and drawn only while the cell holds an
opener; a `MutationObserver` catches a lookup chip that becomes a link
after its name is read. It takes no focus (`tabIndex=-1`, `mousedown`
prevented), so typing carries on in the cell. It never appears on an
unselected cell or on row hover.
- Ctrl/Cmd+Enter on the selected cell (the type catcher) opens the
cell's first opener; with no opener the key does nothing. Plain Enter
still edits.
- Opening means clicking the opener for the reader (`openCellOpener`)
while a ref tells the capture handler to let it through. Each value
keeps its own behaviour: the host's `openRecord` for a referenced
record, the browser's for `mailto:` / `tel:` / `target=_blank`, the
lightbox for an image.
- Select-first cells carry `[&_[data-cell-copy]]:hidden`, so a copy
control a value draws is not drawn there. Ctrl/Cmd+C on the selected
cell copies, as before.

**`@object-ui/fields`: `index.tsx`**

- The email and phone copy buttons carry `data-cell-copy`. These are the
only copy buttons a cell renderer draws (searched `clipboard.writeText`
and the `Copy` icon across `fields`, `plugin-grid`, `components`
renderers and `react`; the other hits are edit widgets or grid-level
hooks).
- Image thumbnails (single, stacked, and the `+N` button) carry
`data-cell-opener`.

**`@object-ui/plugin-grid`: `objectGridLinkCell.tsx`**

- The name column's record link (`RecordLink` anchor) carries
`data-opens-on-click`. It is the one link a single click still follows
(card item 5). Its span fallback (no host URL) is `role="link"`, which
stays a widget and keeps its click.

**Field types this reaches in a list cell:** email, phone, url, file /
video / audio (download link), image (thumbnail lightbox), restricted
file (lock link), lookup / master_detail / tree and every other
reference family drawn through `ReferencedRecordLink` (owner and other
user lookups included), and any custom cell renderer that draws an
`a[href]`.

**Not changed (claim readings A–C):**

- **A.** Only grids with the select-first model. Related lists, the
record page's fields, phone cards (`ObjectGrid` below 768px), kanban
cards, and every grid whose host does not pass `cellSelection` keep
their links and copy buttons byte for byte. The copy buttons are hidden
by the table, not removed by the renderer, for exactly this reason: the
phone card under the same provider still draws them.
- **B.** A cell of several chips opens the first one by the button or
Ctrl/Cmd+Enter; a Ctrl/Cmd-click opens the one clicked.
- **C.** File links and image thumbnails follow the same rule.

Docs: `content/docs/frontend/plugins/plugin-grid.mdx` § On an object's
list page (the click bullet and the selected-cell keys).

## Tests

Rewritten, because it pinned the behaviour this card reverses:

- `components/src/__tests__/data-table-select-first-35684.test.tsx`: the
describe "a link in a cell keeps its click" ("a click on the link
follows it and selects nothing; a double-click beside it edits") is
replaced by "a click on a link the cell draws only selects
(objectstack#36015)". It pins: a plain click selects and cancels the
default, Ctrl/Cmd-click follows, a double-click on the link edits, the
`data-opens-on-click` title link keeps its click (control), the open
button appears only on the selected cell and follows the link, a cell
with nothing to open hides the button, Ctrl/Cmd+Enter follows the link
while plain Enter edits, and the copy-hiding class is present only under
the provider (control without it). The fixture's link cell gained a
`data-cell-copy` button; an opt-in `withTitle` column carries the title
link.

Added:

- `plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx`,
new describe, end to end through `ObjectGrid` with a host that routes
records: a click on the `mailto:` link and on the lookup chip selects
each cell, cancels the default and opens nothing; Ctrl+Enter and the
open button call the host's `openRecord` for the referenced record; the
title link is the only `data-opens-on-click` element and keeps its
click; the email cell draws its copy button marked `data-cell-copy`
inside a cell that hides it.

Unchanged and still green:
`ObjectGrid.linkCellNoNestedAnchor-11817.test.tsx` ("an email column
that is not the link column keeps its mailto anchor and copy button", a
grid without `cellSelection`, the control for reading A),
`cellRenderers.objectLiteral-8596.test.tsx`, `data-table-keys-35687`,
`data-table-cell-overlay-35688`, `data-table-autosave-35685`.

Local runs (`@objectstack/*` built with `OS_SKIP_DTS=1`; first on
`be91bfc2`, the data-table / ObjectGrid / fields files again after
merging `c00be39b`, which carries objectstack-ai#36018 and objectstack-ai#36021):

- `vitest run packages/components/ packages/fields/
packages/plugin-grid/`: 1103 files passed. The only failing file is
`share-filter-sort-spec-parity.test.ts`, which reads
`@objectstack/spec`'s `.d.ts` that a DTS-less build does not write.
- `vitest run packages/plugin-list/`: 180 files passed. The only failing
file is `spec-symbol-batch6.test.tsx`, for the same reason.
- After the merge: `vitest run packages/components/src/__tests__/` plus
`ObjectGrid.cellSelection-35684`,
`ObjectGrid.linkCellNoNestedAnchor-11817`, `selectionBar-35678` and
`inCellFaces-35688`: 289 files passed; the same parity file failed, and
`object-icon-tile-35985` failed against a stale spec build and passed
once the spec was rebuilt.
- `eslint` on the changed files: 0 errors.
- `overlap-check` on the pushed head: clean against `origin/main`, no
open PR shares a file.

## Verification (browser)

CRM example (`--fresh`), Console via Vite HMR on this tree, Chromium.
The before run used `origin/main`'s versions of the four source files.
Screenshots and journey logs: project folder `build-seat1/36015/`
(`before-*`, `after-*`).

| Step (Contacts list, 1280) | Before | After |
|:--|:--|:--|
| Hover a row | copy icon beside each email | no copy icon |
| Click the email text | `mailto:` request, cell not selected | cell
selected, navigation cancelled |
| Click the Account chip | page leaves for the account record | cell
selected, page stays |
| Selected chip cell, hover | no open button | open button at the right
edge |
| Ctrl+Enter on it | nothing | opens the account record |
| Click the name | opens the contact record | same |
| Double-click the email text | `mailto:` twice, no editor | editor
opens |
| Accounts list, click the Website link | new tab opened | cell
selected, no tab |
| 375 phone list | cards | same cards |

## Acceptance notes

1. Hover a row: no copy icon in the email or phone cell: yes (browser,
email; phone shares the same marker and class, unit-pinned through the
fixture).
2. Click the email text: the cell is selected, no mail program;
Ctrl/Cmd+C copies the address: yes (Ctrl+C path unchanged,
`String(row[col])`).
3. Phone and URL cells: same: yes (URL in the browser; phone is an
`a[href^="tel:"]`, the same opener rule).
4. Owner chip and lookup chip: selected, the page does not leave: yes
(the Account lookup chip in the browser; an owner or other user lookup
draws the same `ReferencedRecordLink` anchor, not checked in the browser
separately).
5. Ctrl/Cmd-click email opens the mail program; Ctrl/Cmd-click a chip
opens the record: yes (the click passes through untouched).
6. The open icon appears on the selected lookup cell, opens the record,
and is absent when the cell is not selected: yes.
7. Ctrl/Cmd+Enter opens: yes.
8. Click the name opens the record page as before: yes.
9. Double-click the email cell edits: yes.
10. Record page email and phone fields unchanged: yes (no select-first
model there; renderer markup only gains attributes).
11. This body lists the field types reached and the rewritten tests:
above.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgTQn1haiL13TBfwmxm)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgTQn1haiL13TBfwmxm

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

Co-authored-by: Claude <noreply@anthropic.com>
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/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants