You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data surface URL filter chip shows a select field's raw option value (产品类别 = software) instead of its label #37259
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.
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.
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 「在列表中打开」.
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/main1b91538, 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
In flight with its dev. Branch claude/issue-37259-url-filter-chip-option-label, pushed at eab0575f6dd776f18df91c471438cff16ecec255:
the fix: a data-page filter chip on a select field shows the option label (57f0d652);
a harness commit.
No PR yet. What is left: the gate families, the ablation reading and the browser reading, then the draft PR. Heavy runs share one verify lock with two other lanes on this box.
ETA for the draft PR: about 1 hour from this note. A blocker, if any, will be posted here.
{
"issue": 37259,
"status": "done",
"branch": "claude/issue-37259-url-filter-chip-option-label",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37285",
"session": "session_01QSeKYmRepQK9DkZeU7F53D",
"premise_still_valid": true,
"summary": "Root cause: groupFilterChips built the comparand text as String(comparand), and ObjectDataPage drew the text half bare. Only the field half went through fieldLabel. groupFilterChips now takes an optional comparandText(field, value) callback, which defaults to String. It applies to equality, [ne], and each member of [in]/[nin]. Range bounds and text-operator fragments stay raw. ObjectDataPage passes a labeller built on the grid cell's own path: useObjectLabel().translateOptions(objectDef.name, field, options), the call generateColumns makes, then an exact-value match drawn with core's optionDisplayLabel. An unmatched comparand stays raw. The chips are now computed per render, like fieldLabel, instead of in a useMemo. Head eab0575f6d; draft PR #37285.",
"tests": "Head eab0575f6d, every run under os-verify-lock (VERDICT command-exit 0), after pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build (exit 0). (1) GREEN: vitest run ObjectDataPage.filterChipI18n-9159.test.tsx + drillUrlFilters.test.ts gave 'Test Files 2 passed (2) / Tests 99 passed (99)'. (2) RED ON MAIN: both source files restored from 1b91538bb2 (tree only), harness at HEAD, gave 'Tests 4 failed | 13 passed (17)'. The 4 are the zh equality, en equality, [in] and [ne] cases, e.g. expected '= software' to be '= 软件' and expected '属于 software, hardware' to be '属于 软件, 硬件'. The 3 controls (unknown comparand raw, contains fragment raw, non-option field) are green on both sides by design. Restored with git checkout HEAD --: git diff HEAD empty, both blobs equal to HEAD. (3) ABLATION: node scripts/ablation-replace.mjs on ObjectDataPage.tsx replaced the anchor 'return option ? optionDisplayLabel(option) : raw;' with 'return raw;'. The mutation landed (anchor 1->0, blob 1bc2af587dc6->95bff3d412e5) and gave 'Tests 4 failed | 13 passed (17)' on the same 4 cases. Restored: blob after restore 1bc2af587dc6 == HEAD, git diff HEAD empty. The subject is imported by relative path from src, so no dist preflight applies. (4) app-shell views ObjectDataPage* + drill*: 'Test Files 16 passed (16) / Tests 241 passed (241)'. (5) pnpm --filter @object-ui/app-shell type-check: exit 0. (6) pnpm --dir ui exec vitest run scripts/: 'Test Files 172 passed | 2 skipped (174) / Tests 5130 passed | 2 skipped (5132)'. Browser repro through the dashboard drill: NOT MEASURED, reason: the shared lock was held for about 100 min by another seat's whole app-shell suite, and a backend plus Console boot would have added a second heavy load.",
"gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at eab0575f6d derived 38 commands. All 38 ran locally; every exit code was captured before any pipe, and all are 0. 36 were run at eab0575f6d. check:type-check-debt ran under the lock (re-measure: 0 ledger entries, 0 raw tsc errors). vitest run scripts/ is 172 passed. On the first pass at 57f0d6521d, check:test-source-alias exited 1: the edited harness reaches a dynamic import('@objectstack/lint'). It was fixed by a module-top import in the harness (eab0575f6d), after which it exits 0. --ran reconciliation: '38 derived famil(ies) accounted for, 38 run, 0 NOT-MEASURED, 0 UNRUN'. CI-only type-check programs (Type Check UI, workspace lanes) and the PR check-runs: in_progress, not yet read.",
"dogfood_battery": "n/a, no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3: fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/37285/assignees), plus post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/37259/comments; git push x3 not counted",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed. A boolean comparand still reads '= true'/'= false', and a lookup comparand still reads as the record id (card names both out of scope). Noted in PR Acceptance notes.",
"carrier: none · noted, not filed. The chip matches the stored value exactly, while the grid's findDeclaredOption adds a case-insensitive fallback. This is deliberate, because the comparand is the server filter. Noted in PR Acceptance notes."
],
"deviations": "(a) The harness gained a module-top import '@objectstack/lint', which check:test-source-alias requires. It is inside the declared harness file. (b) No pins were added to drillUrlFilters.test.ts. All pins live in the existing page-level chip harness, because only a rendered page can show the zh translation. (c) The useMemo around groupFilterChips was dropped in favour of per-render computation, inside ObjectDataPage.tsx. (d) One locked-script edit was made while the script was running. bash read a shifted line and ran a stray 'exec vitest' that failed (exit 127). It overwrote the first ui-scripts log but changed no files. The whole pass was re-run clean."
}
Delivered · area a4-U · 2026-11-25T13:05Z. PR #37285 merged as 1d20c45c74 and closed this card through Fixes #37259. L1 ACCEPT was 7162252170. The seat's S1 (the [nin] pin) and the same-family raw comparands are carried on #37288. The pm:dispatched label comes off with this comment.
Activity
objectstack-fleet commentedon Nov 25, 2026
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 「在列表中打开」.objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Claim: PM loop round 2 · area a4-U · 2026-11-25T08:42Z
Session:
session_01QSeKYmRepQK9DkZeU7F53DAccount:
os-justinBranch:
claude/issue-37259-url-filter-chip-option-labelWorktree:
objectstack-issue-37259Domain:
domain:uiSeat:
repo:objectstack#4Area: 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-leveldescribein the existing harness for the file fixed, and onepatchchangeset (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-shellURL 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/main1b91538,drillUrlFilters.ts:723builds the chip text asString(comparand)(orcomparand.map(String).join(', ')), and nothing maps it through the field'soptionsSerial constraints cleared: no open PR touches
drillUrlFilters.tsorviews/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
fix(console): a data-page filter chip on a select field shows the opt…
test(console): pay the lint load at collection in the chip harness (#…
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Progress (p1) · area a4-U · 2026-11-25T11:35Z
claude/issue-37259-url-filter-chip-option-label, pushed ateab0575f6dd776f18df91c471438cff16ecec255:57f0d652);objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
os-dev-report
{ "issue": 37259, "status": "done", "branch": "claude/issue-37259-url-filter-chip-option-label", "pr": "https://github.com/objectstack-ai/objectstack/pull/37285", "session": "session_01QSeKYmRepQK9DkZeU7F53D", "premise_still_valid": true, "summary": "Root cause: groupFilterChips built the comparand text as String(comparand), and ObjectDataPage drew the text half bare. Only the field half went through fieldLabel. groupFilterChips now takes an optional comparandText(field, value) callback, which defaults to String. It applies to equality, [ne], and each member of [in]/[nin]. Range bounds and text-operator fragments stay raw. ObjectDataPage passes a labeller built on the grid cell's own path: useObjectLabel().translateOptions(objectDef.name, field, options), the call generateColumns makes, then an exact-value match drawn with core's optionDisplayLabel. An unmatched comparand stays raw. The chips are now computed per render, like fieldLabel, instead of in a useMemo. Head eab0575f6d; draft PR #37285.", "tests": "Head eab0575f6d, every run under os-verify-lock (VERDICT command-exit 0), after pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build (exit 0). (1) GREEN: vitest run ObjectDataPage.filterChipI18n-9159.test.tsx + drillUrlFilters.test.ts gave 'Test Files 2 passed (2) / Tests 99 passed (99)'. (2) RED ON MAIN: both source files restored from 1b91538bb2 (tree only), harness at HEAD, gave 'Tests 4 failed | 13 passed (17)'. The 4 are the zh equality, en equality, [in] and [ne] cases, e.g. expected '= software' to be '= 软件' and expected '属于 software, hardware' to be '属于 软件, 硬件'. The 3 controls (unknown comparand raw, contains fragment raw, non-option field) are green on both sides by design. Restored with git checkout HEAD --: git diff HEAD empty, both blobs equal to HEAD. (3) ABLATION: node scripts/ablation-replace.mjs on ObjectDataPage.tsx replaced the anchor 'return option ? optionDisplayLabel(option) : raw;' with 'return raw;'. The mutation landed (anchor 1->0, blob 1bc2af587dc6->95bff3d412e5) and gave 'Tests 4 failed | 13 passed (17)' on the same 4 cases. Restored: blob after restore 1bc2af587dc6 == HEAD, git diff HEAD empty. The subject is imported by relative path from src, so no dist preflight applies. (4) app-shell views ObjectDataPage* + drill*: 'Test Files 16 passed (16) / Tests 241 passed (241)'. (5) pnpm --filter @object-ui/app-shell type-check: exit 0. (6) pnpm --dir ui exec vitest run scripts/: 'Test Files 172 passed | 2 skipped (174) / Tests 5130 passed | 2 skipped (5132)'. Browser repro through the dashboard drill: NOT MEASURED, reason: the shared lock was held for about 100 min by another seat's whole app-shell suite, and a backend plus Console boot would have added a second heavy load.", "gates": "node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at eab0575f6d derived 38 commands. All 38 ran locally; every exit code was captured before any pipe, and all are 0. 36 were run at eab0575f6d. check:type-check-debt ran under the lock (re-measure: 0 ledger entries, 0 raw tsc errors). vitest run scripts/ is 172 passed. On the first pass at 57f0d6521d, check:test-source-alias exited 1: the edited harness reaches a dynamic import('@objectstack/lint'). It was fixed by a module-top import in the harness (eab0575f6d), after which it exits 0. --ran reconciliation: '38 derived famil(ies) accounted for, 38 run, 0 NOT-MEASURED, 0 UNRUN'. CI-only type-check programs (Type Check UI, workspace lanes) and the PR check-runs: in_progress, not yet read.", "dogfood_battery": "n/a, no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3: fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/37285/assignees), plus post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/37259/comments; git push x3 not counted", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed. A boolean comparand still reads '= true'/'= false', and a lookup comparand still reads as the record id (card names both out of scope). Noted in PR Acceptance notes.", "carrier: none · noted, not filed. The chip matches the stored value exactly, while the grid's findDeclaredOption adds a case-insensitive fallback. This is deliberate, because the comparand is the server filter. Noted in PR Acceptance notes." ], "deviations": "(a) The harness gained a module-top import '@objectstack/lint', which check:test-source-alias requires. It is inside the declared harness file. (b) No pins were added to drillUrlFilters.test.ts. All pins live in the existing page-level chip harness, because only a rendered page can show the zh translation. (c) The useMemo around groupFilterChips was dropped in favour of per-render computation, inside ObjectDataPage.tsx. (d) One locked-script edit was made while the script was running. bash read a shifted line and ran a stray 'exec vitest' that failed (exit 127). It overwrote the first ui-scripts log but changed no files. The whole pass was re-run clean." }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D
Delivered · area a4-U · 2026-11-25T13:05Z. PR #37285 merged as
1d20c45c74and closed this card throughFixes #37259. L1 ACCEPT was 7162252170. The seat's S1 (the[nin]pin) and the same-family raw comparands are carried on #37288. Thepm:dispatchedlabel comes off with this comment.