Skip to content

列表排序重做:与筛选共用字段清单,点一个字段即生效,排序以标签留在视图栏下 #35550

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

维护者 2026-11-19 原话:「涉及到很多细节了,我们之前做的都不好,包括 过滤 排序,选项的设置过程,视图创建和自定义的过程。」

参照(Twenty)

参照 1:点排序出字段清单,顶部选升降序

参照 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,销售应用「商机 / 进行中商机」。)

  • 点排序图标:面板「排序记录」,一行「排序依据」字段下拉加「最早 → 最新」方向下拉,下面「+ 添加排序」,右上「恢复视图默认排序」。
  • 字段下拉同样是不能搜索的纯文字列表。
  • 排序后界面上只有图标旁的数字「1」,看不出按什么排。
  • 点表头也能排序,两处状态要保持一致。

要做的

  1. 点视图栏的「排序」,出与筛选相同的字段清单(搜索、显示字段在前、类型图标),清单顶部选升序或降序,默认升序;点一个字段立即生效。
  2. 排序显示成条件行里的标签(「↑ 金额 ×」),排在筛选标签之前;点标签切换升降序,点 × 删除。
  3. 支持多级排序:再点「排序」加第二个,标签顺序即优先级,可拖动调整。
  4. 方向的文字按字段类型:日期「最早 → 最新」,数字「小 → 大」,文本「A → Z」。
  5. 点表头排序与这里是同一个状态,标签同步出现。
  6. 「重置」回到视图保存的排序(与子卡 2 共用同一个按钮)。个人排序照旧自动记住、不影响别人。

不做的

  • 不改排序的存储格式;不改服务端排序能力。

验收

  • 从点「排序」到列表按金额降序,不超过 3 次点击。
  • 排序后视图栏下有标签写明字段和方向;点表头排序后标签同步变化。
  • 两级排序时,拖动标签改变优先级,列表随之变化。
  • 「重置」后回到视图保存的排序。
  • PR 正文列出迁移和作废的测试、同笔修改的验收条款。

Reader: domain:ui 车道。ui/packages/plugin-list 的排序面板、ui/packages/plugin-grid/src/ObjectGrid.tsx 的表头排序。与子卡 2 共用字段清单组件,建议同一车道连着做。

Dedupe: 排序 面板(objectstack,open)→ 0。

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

    Blocked-by: #35548
    Epic #35547 order (seat 5, area:ux): starts when #35548 lands, serial behind #35549 (shared field list).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 round 16 (rides #35549, the same branch and PR; they share the field list) · 2026-11-19T17:04Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Area: ux-1
    Branch: claude/issue-35549-list-filter-sort
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: as the #35549 claim, plus the header-click sort sync in ui/packages/plugin-grid/src/ObjectGrid.tsx only if #35548 has merged and the seat agrees (stop and report first).
    Container & model: rides #35549 (L, effort: high)
    Clause-②: no
    Metadata-protocol: none
    Scope: card items 1–6 in the #35549 PR. Fixes #35550.

    Blocked-by: #35548

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 round 16, PR 2 of the seat's split, #35550 (rides #35549) · 2026-11-19T21:06Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Area: ux-1
    Branch: claude/issue-35549-list-filter-sort-wiring
    Domain: domain:ui
    Seat: repo:objectstack#5
    Thread-read: 7016188836
    File surface: as claim amendment 7017578497 (PR 2 rows), carried by #35643. PR 1 #35622 has merged; the field-list props ride #35634 (Part of).
    Clause-②: no
    Metadata-protocol: none
    Scope: Fixes #35549, Fixes #35550 in #35643. This re-claim names the PR 2 branch so the closing-target guard can read it; the earlier claim named the PR 1 branch.

  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Close-out · 2026-11-20T01:24Z: rode #35549. #35643 merged as 378c955: L1-a ACCEPT 7027030209, landing 7027050020. This card closed on that merge.

    What changed:

    • Sort opens the field list with direction on top.
    • Sort chips lead the chip row and reorder by drag.
    • A header click becomes a chip.
    • 「重置」 restores the view's sort.
    • 「全部排序层级」 keeps today's sort panel (seat ruling A).

    pm:dispatched removed.

  8. removed
    pm:dispatched
    on Nov 20, 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