Skip to content

列表加分组时立刻按第一列(通常是名称)分组:每条记录自成一组;改成先让人选字段、选了才分组,只列单选/状态/勾选/人员/关联记录 #36204

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35547(列表专题,维护者直派)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的

  • 2026-11-22,协调席深度验收后列了 9 条观察,建议前三条立卡。维护者:「前三条立卡」。本卡是第 3 条。
  • 2026-11-22,看了本卡第一版(默认取第一个单选或状态字段)之后,维护者:「加分组时不用默认值吧?应该先让人选,不立刻分组,列出的应该也是选择类型的字段吧?」
  • 同日,协调席问下拉里除了单选和状态还列哪些,维护者选:「加上负责人、关联记录、勾选」。文本、数字、日期、多选不列。

本卡正文已按上面两条改写(第一版的「默认取第一个单选或状态字段」作废)。

现状(主干 6c7c6db250,本机环境浏览器实测,1440 宽,自建应用「客户」列表)

点添加分组后:按客户名称分组,12 条记录 12 组

  • 「视图设置 → 分组 → 添加分组字段」,点一下就立刻按第一列「客户名称」分组。
  • 客户名称每条都不一样,12 条记录分成 12 组,每组 1 条,屏幕上一半是组标题。
  • 用户要再点开下拉换成「所属行业」才是想要的结果。第一下的结果对任何人都没用。

要做的

  1. 点「添加分组字段」时不带默认值、不立刻分组:先打开字段下拉让人选,选了才分组。没选就关掉下拉,列表保持不分组。
  2. 字段下拉只列这几类字段:单选、状态、勾选、人员、关联记录(比如负责人、所属客户)。文本、数字、日期、多选等其他类型不列。
  3. 这个对象没有上面任何一类字段时,「添加分组字段」不可点,并说明原因(比如「没有可以用来分组的字段」)。
  4. 选了字段后仍然是草稿(在列表上的改动都改成临时的(排序、筛选、分组、列的显示和顺序):立即生效但不保存,出现「放弃」和「保存」;列宽、行高、标签页顺序只记在浏览器里;退掉服务端的个人列表偏好 #35955 的规则不变)。

不做的

  • 不改分组本身的显示。
  • 不改看板的分组字段选择。
  • 已经存在的、按其他类型字段分组的视图不动,照常显示;只是换字段时下拉里只有上面几类。
  • 不做按日期分组(需要按周、按月才有用,另议)。

验收

  • 自建应用「客户」列表点「添加分组字段」:出现字段下拉,列表还没有分组,没有任何请求。
  • 下拉里有「所属行业」「负责人」这类字段,没有「客户名称」,也没有数字、日期、文本、多选字段。
  • 选「所属行业」后才分组;出现「放弃」「保存」,没有写请求。
  • 打开下拉后不选、点别处关掉:列表仍然不分组,不出现「放弃」「保存」。
  • 一个没有任何可分组字段的对象:「添加分组字段」不可点并有说明。
  • 包里带的视图(HotCRM「客户」)同样试一次。
  • PR 正文附点「添加分组字段」后的截图。

协调席自己加的(不是维护者原话)

  • 「要做的」第 3 条(没有可分组字段时不可点并说明原因)。
  • 「不做的」里「已有的按其他类型字段分组的视图不动」。
  • 验收里「不选就关掉,列表不变」「包里带的视图也试一次」两条。

没有核对的

  • Attio 加分组时的默认行为,这次没有去看。
  • 加第二级分组的入口是否走同一个下拉,没有试;应当同样只列这几类字段。
  • 现在有没有已保存的视图是按文本、数字、日期字段分组的,没有查。

Reader: domain:ui 车道。分组面板在 ui/packages/plugin-list。

Dedupe: 分组 默认字段、添加分组 第一列(objectstack,open)→ 都是 0。相关:#35955。

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · adding a list grouping defaults to the first column (usually the name), so every record is its own group; default to the first single-select or status field, or ask; item 3 of 「前三条立卡」; topic #35547 → p2 as set by the coordinator · size S.

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

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    派发记录 · 2026-11-22T01:59Z

    维护者 2026-11-21 对这张卡说「通知派发」。交给 os-sales 的席位 repo:objectstack#1,随后在它的信箱 #35349 里发接手请求。

    同批派发:#36201、#36202。本卡的三条做法是协调席提的,卡上已单列。

  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-22T02:10Z · #36204: 「添加分组字段」 picks the first single-select field in column order (shown columns first, hidden as fallback). When there is none, it opens the field dropdown and groups only after a pick. The dropdown lists group-friendly types first. Everything stays in the list draft.
    Area: b1-L (epic #35547), maintainer-dispatched via mailbox 7072609933 (dispatch record 7072599281).
    Session: session_01L6bhgXeD1yUYqBJm8uzRrP (card thread)
    Account: os-sales
    Branch: claude/project-thread-aumcb5 (one PR, Fixes #36204)
    File surface: ui/packages/components/src/custom/grouping-editor.tsx (GroupingEditor, new optional add-field picker prop) · ui/packages/plugin-list/src/ListView.tsx (allFields carries field type) · ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx (groupFieldOptions order, defaultGroupField) · tests. No i18n keys, no spec.
    Container & model: S/M, card thread, model: opus, effort: high
    Clause-②: yes (widening) — the exported GroupingEditor gains one optional prop and ViewSettingsField gains two optional members; without the prop the behaviour is unchanged.
    Metadata-protocol: none
    Premise (PR body's top lines): holds. Today GroupingEditor writes remaining[0] at once, and the field list carries no type, so the first column (the name) wins. Both editors already go through listDraft.patch({ grouping }) with no write request; this card leaves that path alone.
    Small calls (thread decides, listed in the PR body): the group-friendly type list and its order; "first" = column order, shown before hidden; a second-level group uses the same rule.
    Reviews: L1-b; declaration L2 at TIER_DEFAULT run by the seat (Clause-② yes).
    Resume-from: none
    Fold-or-serial: serial; no overlap with open PRs (#36133, #36208).

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  7. changed the title [-]列表加分组时默认取第一列(通常是名称):每条记录自成一组;默认改取第一个单选或状态字段,没有就先让人选[/-] [+]列表加分组时立刻按第一列(通常是名称)分组:每条记录自成一组;改成先让人选字段、选了才分组,只列单选/状态/勾选/人员/关联记录[/+] on Nov 22, 2026
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    正文改写说明 · 2026-11-22T02:11Z

    维护者看了第一版后改了口径,本卡正文和标题已重写,接手前请重读正文。

    • 作废:「默认取第一个单选或状态字段」「适合分组的类型排前面、名称仍可选」。
    • 现在:点「添加分组字段」不带默认值、不立刻分组,先让人选;下拉只列单选、状态、勾选、人员、关联记录。文本、数字、日期、多选不列。
    • 维护者原话:「加分组时不用默认值吧?应该先让人选,不立刻分组,列出的应该也是选择类型的字段吧?」;类型范围是维护者在协调席的提问里选的「加上负责人、关联记录、勾选」。

    如果已经按第一版动手,请按新正文调整。

  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim amend · 2026-11-22T03:05Z · this replaces the scope line of claim 7072735866. That claim (2026-11-22T02:10Z) described the card's first version. The coordinator rewrote the card one minute later, on the maintainer's words (7072750584, 2026-11-22T02:11Z): 「加分组时不用默认值吧?应该先让人选,不立刻分组,列出的应该也是选择类型的字段吧?」. The seat missed the rewrite, and the declaration L2 caught it.
    Scope now, as the card body reads:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions