Skip to content

列表取消「操作」列:选中后在页面栏换操作、右键菜单;默认滚动加载、记录数在视图名旁 #35554

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35547(专题:列表页重做,维护者直派)。⛔ 不是认领。

维护者 2026-11-19 原话:「他列表页的action,是选中记录才显示吗?」;对「悬停时行尾出现 ⋮」的回答:「悬停时行尾出现的「⋮」,占了固定的位置,也很丑」;「我还发现,他没有第几页的概念,是滚动翻页,顶部显示记录数。」

目标(图 36 下半)与参照

36 列表页,外壳不动

参照:Twenty 选中 1 条,页面栏右侧换成单记录操作

参照:Twenty 选中 2 条,换成批量操作

我们现在:固定的「操作」列

参照对象是 Twenty(AGPL,本机运行的 f9056c83):只参照结构、步骤和尺寸,⛔ 不抄它的代码。截图 800×500,取自 1280×800 视口;「我们」的截图取自本机最新控制台(origin/main 7ece0204a6,HotCRM,zh-CN),2026-11-19。

现状(实测环境:本机控制台 origin/main 7ece0204a6 + HotCRM,zh-CN,视口 1280×800,2026-11-19,销售应用「商机 / 进行中商机」。另在托管环境 1167 宽窗口实测)

  • 每行末尾有固定的「操作」列,放一个「⋮」。1167 宽时它压住最后一列(「预计成交日期」显示成「2027年1月4E」)和底部合计的前半截。
  • 勾选记录后,底部浮出批量操作栏,盖住最后一行。
  • 行菜单里「删除」紧贴「编辑」,无分隔、样式相同。
  • 分页:默认每页 50(ui/packages/plugin-grid/src/ObjectGrid.tsx:2584-2600),页脚有页码。
  • 已有的组件:ui/packages/plugin-grid/src/components/RowActionMenu.tsx、BulkActionBar.tsx、RowContextMenu.tsx、ui/packages/plugin-grid/src/VirtualGrid.tsx。

要做的

  1. 取消「操作」列。行上不放任何操作控件,包括悬停时出现的「⋮」。
  2. 选中后页面栏换内容:勾选记录后,页面栏整条换成「对象名 → 已选 N 条」「取消」,右侧是针对所选记录的操作,露出一到两个,其余进「⋮」。
    • 露出哪几个由对象元数据声明;没有声明时取现有行操作 / 批量操作的前两个。
    • 选 1 条给单记录操作(如「提交审批」「生成报价单」),选多条给批量操作(如「批量更新」)。
    • 取消选择后页面栏恢复「⋮」和「+ 新建」。
  3. 底部的批量操作栏退役。
  4. 右键点行弹出同一份操作菜单。菜单里「删除」放最后、加分隔线、用危险色。
  5. 勾选框的点击区域是整个单元格;支持 Shift 连选。
  6. 默认滚动加载:滚到底自动加载下一批,不显示页码;视图名旁的记录数是符合条件的总数。视图元数据声明了 pagination 的仍然分页。同时保证:
    • 合计由服务端按全部符合条件的记录计算,不只算已加载的行。
    • 勾表头全选时提示「已选当前加载的 N 条」,并可一键改为「选择全部 M 条」;批量操作的确认里写明实际条数。
    • 点进记录再返回,回到原来的滚动位置。

不做的

验收(1280×800 与 1167×762 各一遍)

  • 页面上没有「操作」列,悬停任何一行都不出现行尾控件;最后一列和合计完整可读。
  • 勾选 2 条:页面栏显示「已选 2 条」和露出的操作;底部没有浮动栏;最后一行完整可见。取消后页面栏恢复。
  • 勾选 1 条与勾选 2 条露出的操作不同(HotCRM 商机上至少各有一个)。
  • 右键点一行弹出操作菜单,「删除」在最后且有分隔。
  • 一个超过 50 条的列表:不出现页码,滚到底继续加载;表头全选后出现「选择全部 M 条」;点进第 60 条再返回,仍停在第 60 条附近。
  • 加筛选后,合计等于服务端对全部符合条件记录的合计(准备一个加载不完一屏的数据量验证)。
  • 一个声明了 pagination 的视图仍然分页。
  • PR 正文列出迁移和作废的测试、同笔修改的验收条款。

Reader: domain:ui 车道。ui/packages/plugin-grid(ObjectGrid.tsx、components/RowActionMenu.tsx、BulkActionBar.tsx、RowContextMenu.tsx、VirtualGrid.tsx)、ui/packages/app-shell/src/views/objectViewPageHeader.tsx。页面栏的位置由子卡 1 提供;两卡可并行,后合入的一方负责对齐。

Dedupe: 操作列 取消 选中 批量、滚动加载 分页、批量操作栏 选中(objectstack,open)→ 0;相关:#35446。

Activity

  1. added
    enhancement
    priority:p1
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    Queued by seat 5 (area:ux) on the maintainer's call (epic #35547 first). Independent of #35548 per the epic, runs beside it. Supersedes the row-end ⋮ item of #35446; its PR #35552 is in flight in area:ux, so this card runs serial behind #35552 where files overlap.

  3. added
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim: area ux-4 round 1 · epic #35547 (the maintainer, verbatim, 2026-11-19 project chat: 「列表页重做专题 优先」「能开新的区处理吗」) · 2026-11-19T15:37Z
    Area: ux-4
    Session: session_01Utp6Cb8qTxAVaE2QKwquQU
    Account: os-bill
    Branch: pending — mode:thread: the card thread pushes only the branch the platform assigns it; the area posts a Branch: amendment here when the thread opens
    Worktree: the card thread's own checkout
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/plugin-grid/src/** (ObjectGrid.tsx, VirtualGrid.tsx, components/{RowActionMenu,BulkActionBar,RowContextMenu}.tsx, objectGridInlineActionFold.ts, pagination/infinite load), ui/packages/components/src/renderers/complex/data-table.tsx, ui/packages/app-shell/src/views/objectViewPageHeader.tsx and layout/PageHeader.tsx (selection state in the page bar only), new i18n keys only in ui/packages/i18n/src/locales/*.ts, docs/qa/platform-checklist/areas/*.json list-page items, their tests, new e2e specs under ui/e2e/ named for the card, root .changeset/. ⛔ packages/spec/**, server, REST, new endpoints; ⛔ ui/packages/app-shell/src/views/ObjectView.tsx and the ux-2 boot files without the area's Notify: serial first. Stop on any breach and report.
    Container & model: L, mode:thread, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (maintainer-ordered redesign, epic #35547 sub-card 6)
    Thread-read: 7013691531
    Premise: holds at origin/main cf6bb70 — RowActionMenu.tsx, BulkActionBar.tsx, RowContextMenu.tsx under ui/packages/plugin-grid/src/components/, VirtualGrid.tsx; page size via resolvePageSize(schema, DEFAULT_DISPLAY_PAGE_SIZE) at ObjectGrid.tsx ~2604. 「露出哪几个由对象元数据声明」 reads onto the existing action order + locations (packages/spec/src/ui/action.zod.ts ~1364, ~1810: list_toolbar, list_item) — no new spec key; if the thread finds order cannot express it, stop and report (contract question to the seat). Not yet measured (thread, before code): whether list totals already come from a server aggregate over all matching rows or are summed client-side over loaded rows; if no existing read path gives the server total, stop and report — ⛔ no new endpoint.
    Pre-claim lane: ui/packages/plugin-grid/**, ui/packages/app-shell/** → domain:ui, area ux-4.
    Pre-claim deps: none named (the epic marks it independent of #35548; the later of the two to merge aligns with the other). Hot files: open PR #35552 (ux-1, #35446) holds ObjectGrid.tsx, objectGridInlineActionFold.ts, data-table.tsx, objectViewPageHeader.tsx, PageHeader.tsx, row-action-sticky.test.tsx → code may start now, ⛔ no push until #35552 merges; then merge main once and run overlap-check. Sibling #35548 (this area) shares ObjectGrid.tsx / objectViewPageHeader.tsx: overlap-check before each push decides order.
    Prior rulings read: actions column,row actions,bulk action,bulkactionbar,infinite scroll,pagination,context menu,select all → 1 hits; none (ADR-0134 D1 SCIM pagination, unrelated); thread: none; repo: objectstack-ai/objectstack. Supersedes #35446 item 2 (row-end ⋮) per epic #35547.
    Serial constraints cleared: open-PR file scan of 48 open PRs: only #35552 (above) and release PR #35129 touch the surface.
    Scope: card items 1–6 (no actions column and no hover ⋮; page bar swaps to 「已选 N 条」 + exposed actions on selection, single vs bulk sets; bottom BulkActionBar retired; right-click menu with 「删除」 last, separated, danger colour; whole-cell checkbox + Shift range; infinite scroll by default with total count beside the view name, declared pagination still pages, server totals, 「选择全部 M 条」, scroll restore). Action behaviour/permissions and the record-page action area stay as they are. Fixes #35554.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment to comment 7013845723 (area ux-4) · 2026-11-19T15:39Z
    Branch: claude/project-thread-03xr4w (mode:thread: the platform-assigned branch of the card thread; replaces the claim's pending line)
    Thread session: session_01Utp6CZL84qjxXbtxcXE8rW
    Worktree: the card thread's own checkout

  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment to comment 7013845723 (area ux-4) · 2026-11-19T15:42Z
    File surface (adds): ui/packages/plugin-list/src/ListView.tsx and its tests (the runtime list page owns paging: $top/$skip windows, total, page, handed to ObjectGrid as manualPagination + rowCount; infinite scroll, the total beside the view name and scroll restore live there). ObjectView.tsx stays untouched.
    Premise readings: the card thread's A1–A5 — totals already a server aggregate (useWholeSetSummary); select-all-matching is an ids fan-out capped at 5000 with the count in the confirm; exposed actions expressed by the existing action order, no new key. Grids with no page bar (related lists, page blocks) keep the bottom bar as the fallback.
    Serial constraints: sibling #35548 adds ListView.tsx to its surface too (7013990817); overlap-check before each push decides the order, the later one merges main and aligns.

  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · dispatched; rationale: area:ux · Feature, a child of topic #35547 (the list-page redo the maintainer ordered: 「这个要重新立专题了」) → p1 as the maintainer set it.

  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU
    os-dev-report

    {
      "issue": 35554,
      "status": "done",
      "branch": "claude/project-thread-03xr4w",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35637",
      "session": "session_01Utp6CZL84qjxXbtxcXE8rW",
      "premise_still_valid": true,
      "summary": "The object list page draws no Actions column and no row-end control; ticking rows swaps the 44px page bar to 「对象名 / 已选 N 条」 + Cancel + the first two actions (one record: its row actions; several: bulk actions; Delete never exposed), the rest behind ⋮, via a selection slot exported from plugin-grid and rendered by objectViewPageHeader.tsx. The row context menu ends with Delete after a separator in the danger colour; Shift+click extends a selection. A grid view with no declared pagination loads as it scrolls (50 per window), the view switcher's count is the server total, select-all offers 「选择全部 M 条」, and coming back restores the position in one request; a declared pagination still pages. Grids outside a page bar (related lists, page blocks, record drawer) keep the Actions column and bottom bulk bar as the ruled fallback.",
      "tests": "After merging origin/main e01b8bed: vitest plugin-grid+plugin-list+i18n+components/renderers/complex 6641 (6628 passed, 13 skipped, 0 failed); app-shell views+layout list files 217 files 1781/1781; 194 other files pinning the changed testids or mounting ListView 4529 (4517 passed, 12 skipped, 0 failed); ui scripts/ 5094 (5092 passed, 2 skipped). New listPageBarSlot-35554.test.tsx 7/7. Playwright e2e/list-no-actions-column-35554.spec.ts 16/16 at 1280x800 and 1167x762 (light/dark screenshots). Ablations via scripts/ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty: drawRowControls forced true -> 1 failed (no-column pin); page-bar slot forced null -> 4 failed (selection pins). Migrated: phoneCardRowActions-29150, rowContextMenu-28434, ObjectView.bulkWiredHeaderDuplicate-12462, ObjectView.inviteOutcome-27797, ObjectView.listOnlyRecordPage-33219, ListView.calendarDateWindow-12081, e2e/live action-modal, list-row-action-cel, screen-flow. Retired: none.",
      "gates": "Local: the 49 dispatch-gates --commands lines all exit 0 (test-source-alias fixed by a module-top '@objectstack/lint' import in two edited ObjectView tests); check:platform-checklist --changed-from origin/main OK; check:nul-bytes OK; tsc plugin-grid/plugin-list/app-shell and tsconfig.e2e.json exit 0; overlap-check --branch=HEAD VERDICT clean (main, #35634, #35622). CI on 2fba403a: 50 success, 11 skipped, 0 failed — incl. Test UI, Build & E2E UI, Live E2E UI, TypeScript Type Check, Lint & Repo Gates; mergeable_state clean. The first head dfa9840d went red in Live E2E UI (3 live specs opened the row ⋮), fixed in 2fba403a; its other red aggregates were superseded-run cancellations.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "reads only (issue_read, pull_request_read); 0 write tools",
      "api_writes": "2 relay writes: pr_create (#35637), issue_patch (#35637 body, CI line + live specs); plus git push x2 and this comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Report taken 2026-11-19T20:36Z.

  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment 2 to comment 7013845723 (area ux-4) · 2026-11-19T20:42Z
    File surface (adds, tests only — L1-a R1 on PR #35637, comment 7021659410): ui/packages/app-shell/src/views/ObjectView.bulkWiredHeaderDuplicate-12462.test.tsx, ObjectView.inviteOutcome-27797.test.tsx, ObjectView.listOnlyRecordPage-33219.test.tsx (bulk bar → page bar, row ⋮ → context menu), and the existing live specs ui/e2e/live/action-modal.spec.ts, ui/e2e/live/list-row-action-cel.spec.ts, ui/e2e/live/screen-flow.spec.ts (open the row menu by right-click; same menu items). ObjectView.tsx itself stays untouched.

  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Close-out · 2026-11-19T21:42Z: PR #35637 merged as d96c878 (L1-a REWORK 7021659410 → delta ACCEPT 7022499607; landing 7022518980); the card closed on merge. Supersedes #35446 item 2 on the list page. Deviations recorded in the PR body: grids with no page bar (related lists, page blocks) keep the actions column + bottom bar as fallback; non-en/zh locales reuse their "on this page" wording for 「已选当前加载的」. L1 nit noted, not filed: the held-window re-read runs every window in parallel and may want a concurrency cap if a host rate limit shows it. pm:dispatched removed.

  12. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions