Skip to content

Data surface URL filter chip shows a select field's raw option value (产品类别 = software) instead of its label #37259

Todo

Description

@sunhaolin

What happens

On the bare data surface /:objectName/data?filter[...] (ADR-0055), a URL filter chip on a select field shows the option's raw stored value instead of its label. In zh-CN the chip reads 产品类别 = software, when the field's option label is 软件. Every other place on the same screen (the grid cell, the field's filter panel, the dashboard the user came from) draws 软件.

This is the screen a dashboard drill's Open in list / 在列表中打开 lands on, so it is the normal path from any chart grouped by a select field, not a hand-typed URL.

Repro (HotCRM, local dev, @objectstack 18.6.0)

  • Open the Product Catalog dashboard (product_catalog_dashboard) → widget top_products (bar chart, dimension category, a select field on crm_product).
  • Click the 软件 bar → the drill dialog lists the right products → 在列表中打开.
  • It navigates to /crm_product/data?filter[list_price][null]=false&filter[category]=software.
  • The list itself is correct (6 rows). The chip row shows 标价 不为 null (correct: prose through the operator key) and 产品类别 = software (wrong: raw value).

Where

  • ui/packages/app-shell/src/views/drillUrlFilters.ts → groupFilterChips: the plain-equality branch returns { field, text } with text = String(comparand). Membership/negation operators also join the raw comparands with comparand.map(String).join(', ').
  • ui/packages/app-shell/src/views/ObjectDataPage.tsx (the chip row, around filterChips.map(({ field, text, textKey }) => …)): the field half goes through fieldLabel(objectDef.name, field, field), but text is drawn bare. Nothing maps a comparand on a select / multiselect / radio field through the field's options (and the option-label translation the grid already uses).

Expected

For a field that has options, each comparand in the chip is drawn as its option's (translated) label, the same text the grid cell shows for that value. A comparand that matches no option stays as the raw value, so a stale or hand-edited URL is still visible as what it is.

Boolean and lookup comparands probably want the same treatment (Yes/No, the referenced record's name) but are out of scope here.

Why p1

The drill-to-list path is how users get from every chart grouped by a select field to the records behind it, and the one chip that tells them what they are looking at shows an internal code. In non-English locales it reads as a different language mid-sentence.

Activity

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

    @objectstack-fleet
    Contributor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T08:33Z. area:ux · domain:ui · Bug · priority:p1 (set by a person, stays) · Source: user · pm:queue → seat 4 (p1 outside area:cloud). It is reproduced on 18.6.0 through the dashboard drill's 「在列表中打开」.

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

    @objectstack-fleet
    Contributor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

    Claim: PM loop round 2 · area a4-U · 2026-11-25T08:42Z
    Session: session_01QSeKYmRepQK9DkZeU7F53D
    Account: os-justin
    Branch: claude/issue-37259-url-filter-chip-option-label
    Worktree: objectstack-issue-37259
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-U
    File surface: ui/packages/app-shell/src/views/drillUrlFilters.ts (groupFilterChips, the comparand text), ui/packages/app-shell/src/views/ObjectDataPage.tsx (the chip row), their pins as a top-level describe in the existing harness for the file fixed, and one patch changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 1b91538: no path-derived mandate), effort: high (reason: p1; the chip must draw the same translated option label the grid cell draws, reusing that path rather than a new one)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the platform's own console data surface (@object-ui/app-shell URL filter chips, objectstack) | the grid cell and the field's filter panel already draw the translated option label; the chip text does not | every user who opens a chart grouped by a select field in a list through the dashboard drill's 「在列表中打开」 (reproduced on 18.6.0)
    Thread-read: 7157186922
    Premise: holds — at origin/main 1b91538, drillUrlFilters.ts:723 builds the chip text as String(comparand) (or comparand.map(String).join(', ')), and nothing maps it through the field's options
    Serial constraints cleared: no open PR touches drillUrlFilters.ts or views/ObjectDataPage.tsx (file lists read now); no overlap with #37244 or #37220 (RelatedList.tsx)
    Pre-claim lane: triage first touch routed it to seat 4 (7157186922); the seat gave it to zone a4-U; not an epic child
    Pre-claim deps: no Blocked-by:
    Prior rulings read: card terms (URL filter chip, select option label, drill Open in list) → no ruling line; ADR-0055 (the bare data surface) is the context. Repo: objectstack-ai/objectstack

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions