Skip to content

相关子表的页签改成完整的列表:左上子表名、排序和筛选、底部计算行;去掉「在列表中打开」;改过后出现「放弃」(图 41) #35892

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

(2026-11-21T03:56Z 更正:本卡里的日期「11-22」应为「11-21」,已改。)

2026-11-21T03:30Z 更新(统一用词,规则没变):主列表的排序和筛选也改成临时的了(#35955),那边的按钮叫「放弃」。本卡原来写的「重置」是同一个东西,统一改叫「放弃」;子表页签仍然只有「放弃」,没有「保存」。在子表页签里选中行时,用和主列表同一条底部浮出的操作条(#35678)。

维护者 2026-11-20 原话:

  • (看 Attio 的子表页签)「你看这个右侧,子表左侧还是应该显示子表名,而且自己带上排序和过滤,也不需要跳转到新全屏窗口了」
  • 「子表调过的排序筛选记不记住,你看右侧,他立刻有一个取消的按钮」
  • 2026-11-21:「记录页图 41 的方向定了,立卡」

现状(本机环境实测于 7878cf0557)

要做的

效果图(图 41 第一、二张的右半边):

报价单 宽屏整页

  1. 子表页签里从上到下:第一行左边是子表名,右边「+ 添加」;第二行是「排序」「筛选」;表格;底部计算行。
  2. 去掉「在列表中打开」。
  3. 排序、筛选、计算行用的是列表页的同一套组件和同一套读写逻辑(列表工具区重排:对象名并进视图行,「选项」改成视图名旁的「视图设置」并直接摊开列清单,筛选和排序的入口并到标签行,排序并成一个标签 #35878 的标签行、列表排序:已有多级排序时点列头会把原来的排序全部清掉;点排序标签会直接把方向反过来 #35876 的排序面板和列头菜单、列表底部计算行:常驻一行,用户点列底下的格子选计算(合计、平均、计数等),存到视图上 #35702 的计算行)。⛔ 不另写一份。和列表页的差别只有:没有视图切换、没有视图设置、没有搜索。
  4. 在子表页签里改了排序或筛选,第二行右边立刻出现「放弃」,点它回到默认。没有「保存」,这里的调整不会变成给所有人的配置。
  5. 页签上的条数始终是这条记录下子记录的总数,不跟着筛选变;表格底部的计数显示筛选后的数。
  6. 子表里的单元格编辑按行内编辑专题 专题:列表行内编辑重做(始终可改、先选中再编辑、浮层编辑框、逐格保存;对照 Twenty 与 Attio) #35683 的规则,和列表页一致。
  7. 默认的行排序沿用子对象列表视图的排序(2026-08 定的规则,不变);显示哪些列仍按现在的规则(关系字段上的列声明,否则子对象的关键字段)。

没有定的一条(本卡先按最简单的做)

改过的排序筛选能保持多久,维护者没有定。本卡先做成:只在这一次打开期间有效,刷新页面或换一条记录就回到默认。以后要按人记住,另说。

取代和影响

不做的

验收

  • 打开有 3 条明细的报价单,切到「报价明细」页签:左上是「报价明细」,右上「+ 添加」,下面一行「排序」「筛选」,表格底部有计算行;没有「在列表中打开」。
  • 加一个筛选使表格只剩 1 行:页签上的条数仍是 3,表格底部计数是 1,右边出现「放弃」;点「放弃」回到 3 行,「放弃」消失。
  • 刷新页面:回到默认的排序,没有筛选。
  • 点列头:出菜单(升序、降序、隐藏这一列),行为和列表页一致。
  • 行数超过一屏时可以滚动加载;合计按全部符合条件的行算,不只算已加载的。
  • 抽屉里打开同一条记录:子表页签同样有子表名、排序、筛选,不出现横向页面滚动。

Reader: domain:ui 车道。ui/packages/plugin-detail/src/RelatedList.tsx、ui/packages/plugin-list。

Dedupe: 子表 页签 排序 筛选、在列表中打开 去掉(objectstack,open)→ 0。

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · a related-list tab becomes a full list (name top-left, its own sort and filter, a totals row; no "open in list"; a 「重置」 after a change) (figure 41); child of topic #35590 → p2 as set by the coordinator · size M.

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

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    主列表也改成和本卡一样的做法了,两处的「放弃」请用同一个样子。2026-11-20T23:17Z

    维护者 2026-11-21 定了主列表的排序和筛选也是临时的,见 #35955。区别只有一处:主列表有「放弃」和「保存」,子表页签只有「放弃」,本卡的规则不变。

  5. changed the title [-]相关子表的页签改成完整的列表:左上子表名、排序和筛选、底部计算行;去掉「在列表中打开」;改过后出现「重置」(图 41)[/-] [+]相关子表的页签改成完整的列表:左上子表名、排序和筛选、底部计算行;去掉「在列表中打开」;改过后出现「放弃」(图 41)[/+] on Nov 21, 2026
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T14:10Z · area b1-L (epic #35590 child; the maintainer set the fig. 41 direction on the epic).
    Area: b1-L
    Session: session_01L6bhgTKEPqtmiK9SGpHsmW (card thread)
    Account: os-sales
    Branch: claude/project-thread-kmk099
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: plugin-detail RelatedList.tsx and one new session-state file; plugin-list conditions/ one new registered host component, ListConditionControls.tsx (a narrow-face option; the shared Discard button after #36026 lands), index.tsx (registration); app-shell ListDraftActions.tsx (uses the shared Discard); a few i18n keys in every locale; the regenerated SDUI manifest; record-page related-list docs and the plugin-detail README; tests, changeset. Not expected: plugin-grid, RecordPageColumns.tsx, packages/spec.
    Container & model: L, card thread, model: opus, effort: high
    Clause-②: yes (widening) (a new registry component key, one optional ConditionChipRow prop, new i18n keys; RelatedListProps unchanged; the seat runs the declaration-face L2)
    Metadata-protocol: none
    Premise (thread, read on main 493ad095, file build-seat1/35892/premise.md in the project folder): holds. The tab's table is already the list page's object-grid; header menu, cell editing, summary row, load-more and the bulk bar are existing host keys. plugin-list depends on plugin-detail, so the condition row reaches RelatedList through the registry, as object-grid already does; nothing is written twice.
    Basis: card #35892 (the maintainer's words on Attio's related tabs, and fig. 41); epic #35590.
    Scope, the seat's reading: the card's seven items and its 03:30Z update. The tab's title row, sort and filter, 「放弃」, the column-header menu, cell editing by the #35683 / #36023 rules, load-more with the whole-set summary row, the tab count unfiltered and the footer count filtered, the same bottom bulk bar when rows are selected (the 03:30Z update). Column widths stay remembered per person. The tab's sort and filter survive switching tabs and moving between page and drawer for the same record, and clear on refresh or another record. Grouped-by-status child lists draw no summary row, as on the list page. A summary-row choice is allowed and lasts this visit only, cleared by 「放弃」. This PR delivers #36023 leftover 2 (cell editing inside the related tab), shown in the PR body.
    Open: #35601 made the tab remember the reader's sort; the card's acceptance says refresh returns to the default, and its own note says the maintainer has not decided how long changes last. That flips merged behaviour, so it goes to the maintainer; the thread builds "this visit only" as the card states until then.
    Resume-from: none
    Fold-or-serial: parallel with #35890 (it places the tabs, this card draws their content). Merges main after #36024 lands; the shared Discard waits for #36026. overlap-check.mjs before each push. L1 at L1-b. The PR carries Fixes #35892.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  8. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T14:25Z · #35892: how long a related tab's sort and filter last (reviewed by fable first)

    At 2026-11-21T14:25Z the maintainer picked option A on the seat's decision card, "this visit only": a sort or filter changed in a record page's related-list tab applies at once, stays while the reader switches tabs or moves between the page and the drawer for the same record, and returns to the default on refresh or on another record. 「放弃」 returns to the default at once; there is no Save.

    This supersedes #35601's item 1 for sort ("the reader's sort is remembered per person"): the stored sort is no longer read (old rows are not deleted here). Column widths are not part of this ruling. It matches the main-list ruling on #35955 (changes are drafts; the per-person server layer goes). The PR carries "supersedes #35601's remembered sort" in its body and an upgrade note: a sort remembered in a related tab before this release no longer applies.

  9. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T14:38Z · #35892: where the related-list tab's column widths are kept (reviewed by fable first)

    At 2026-11-21T14:35Z the maintainer picked option A on the seat's decision card, "browser only, folded into #35892": a related tab's column widths are remembered only in this browser, like the main list (#35955 ruling D1). This PR stops reading and writing them in the ui.record.<object> preference row (RelatedList.tsx ~1437-1457, handed to the grid ~3423, written back ~3568); the grid already keeps a browser copy. The published RelatedListPreference / RecordPagePreference.relatedLists types stay for now (removing them is a narrowing). The server's old relatedLists data is not cleared here: it is left unread, and the same row's showEmptyFields stays. The upgrade note says once that a sort or width remembered in a related tab before this release no longer applies. Sign-out keeping layout for the same person (#35955 ruling, same time) is a separate card and covers these widths too.

  10. added 4 commits that reference this issue on Nov 22, 2026
    8807dcb
    a5a5312
    482afcc
    3faabd2
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

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions