Skip to content

Related list quick filter matches raw stored values only: labels, record names and autonumbers find nothing, and the empty state says there are no related records #37530

Done

Description

@objectstack-fleet

repo:hotcrm#2 · sunhaolin · session_local1adc6fb3954245ba8940a3719cdaea98

Filing gate: ① product defect with a reproduction. Source: fleet (found in a maintainer-ordered local UI test pass of the HotCRM app on 2026-11-26; filed through the pm-dispatch relay on the maintainer's instruction).
Grading: area:ux · Bug · p2 (triage grades) · severity: Impeded · reach: every related list with select, lookup or autonumber columns · evidence: measured on the released 18.6.0 packages (2026-11-18), zh-CN console; not re-measured on main

维护者速读

  • 做什么:相关列表的筛选框要按用户看到的文字匹配,而不是数据库里的原始值。
  • 谁受益:所有在记录页相关列表里找记录的用户。
  • 不做会怎样:输入屏幕上明明看得见的状态名、姓名、编号都搜不到,还提示「暂无相关记录」,用户以为数据没了。
  • 需要你做的:无,分诊定级即可。

What

The filter box above a record page's related list filters the already loaded rows on the client, against the stored value of each cell rather than what the cell displays. The network request does not change while typing.

Measured on a related list of 15 child rows (HotCRM: campaign → campaign members):

typed what the user sees in the rows rows left
a select option's translated label (已发送, 已响应) shown in every row 0
the autonumber prefix (CM-) shown in every row 0
a lookup's displayed name (Theo, the parent's name) shown 0
the stored option value sent never shown 14
2026 (inside a stored ISO timestamp) shown as a formatted date 15

With 0 rows the list says "暂无相关记录" (no related records) while the "All" chip next to it still counts 15.

Reproduction

  1. Open a record with a related list whose columns include a select, a lookup and an autonumber.
  2. Type a visible option label, then a visible lookup name, into the list's filter box.
  3. Result: 0 rows and the no-records empty state.

Acceptance

  • The quick filter matches the displayed text of each visible column: option labels in the UI locale, lookup display names, autonumbers, formatted dates.
  • A filter with no match says that nothing matches the filter, not that there are no related records, and agrees with the count chip.
  • A list with more rows than are loaded filters on the server, or says that only loaded rows are searched.

Dedupe (open and closed): related list filter 6 closed hits, none about the box matching stored values; related list search label 0 hits.
Batch-of: local UI deep test pass 2026-11-26, 14 cards (5 in hotcrm, 9 in objectstack).
Blocked-by: none.

Activity

  1. added
    bug
    priority:p2
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size M; rationale: the related-list quick filter matches raw stored values only, so labels, record names and autonumbers find nothing, and the empty state says there are no records. Found in the maintainer-ordered HotCRM UI test pass of 2026-11-26 on the released 18.6.0 packages. p2 as filed.

  3. added
    domain:ui
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-26T12:59Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgUuauSMJu1nVSQRQri
    Account: os-sales
    Branch: claude/issue-37530-related-list-filter-display-text
    Worktree: objectstack-issue-37530
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux-L
    File surface: ui/packages/plugin-detail/src/RelatedList.tsx and its tests, possibly one export from ui/packages/fields, one changeset
    Container & model: M, mode:thread (area thread implements, no os-dev), model: default — no path-derived mandate, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack UI (RelatedList filteredData matches String(row[key]) against stored values, so option labels, lookup names, formatted dates and autonumbers find nothing, and a filter-to-zero shows detail.noRelatedRecords) | none | every record-page user filtering a related list; reachable today (HotCRM UI test pass on 18.6.0)
    Thread-read: 7190622604
    Premise: holds (area thread's read on main 021524c: per-column String(row[key]).includes over unmasked columns; an active filter falls back to a full fetch without $top; contract objectui#10728 pinned in RelatedList.maskedFilterSort-10728.test.tsx stays)
    Serial constraints cleared: none: no open PR touches plugin-detail/src/RelatedList, plugin-grid/src, data-table.tsx or fields/src/index.tsx (40 open PRs read by hand); s2-ux-S #36820 unclaimed and disjoint; overlap-check re-run before the first push

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim amendment · 2026-11-26T13:09Z · claim 7192743740: the area thread's container pushes only its platform branch, so the claim's branch is:
    Branch: claude/project-thread-th9squ
    (WIP at b5fb80a; overlap-check exit 0, shares 11 locale files with #37511 and #37422, both merge clean.) Every other line of the claim stands.

  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Closed on a reading · 2026-11-26T13:31Z · the premise does not hold on main. Read by the s2-ux-L area thread on app-crm at main 021524c (local console, customer Globex, the 商机 related tab):

  8. removed
    pm:dispatched
    on Nov 26, 2026
  9. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgUuauSMJu1nVSQRQri

    Backup branch cleared: the latent-fix WIP for this card (b5fb80a on claude/project-thread-th9squ, no PR) was replaced by a force-with-lease push of the next card's work (#37528). Nothing from this card remains on the remote.

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

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions