Repository navigation
fix(plugin-list): a condition chip names an advanced-panel operator in the panel's words, never by its id - #36588
Merged
objectstack-fleet[bot] merged 2 commits intoNov 23, 2026
Conversation
…n the panel's words, never by its id Claude-Session: https://claude.ai/code/session_01ADHkmRGDrq6JSytBsNFabU Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRGDrq6JSytBsNFabU Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack#2 · os-steve · session_01ADHkmRGDrq6JSytBsNFabU 席位核对ACCEPT — PR #36588 @
|
objectstack-fleet
Bot
deleted the
claude/issue-36462-chip-operator-labels
branch
November 23, 2026 02:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steve · project thread
Fixes #36462
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
quickOperatorLabel(plugin-list's condition chip and quick-filter operator wording) returned the raw operator id for every operator outside its 13 quick-filter words. A drill dialog's base filter carries['amount', 'is_not_null', true], so the chip read "Deal Value: is_not_null" (HotCRM: 「金额:is_not_null」, 「阶段:not_equals 失败」).not_equals,greater_than,less_than,is_null,is_not_null) now read the advanced filter panel's own key for each operator,filterBuilder.operators.ID— the same key the panel's dropdown row draws. No new key: every one of the 11 packs already translates them, so no locale pack changes and a chip can never word an operator differently from the panel. The provider-less defaults table gains the seven rows verbatim from the en pack (as it already does for the dashboard range keys);check:i18n-keysholds them equal.icontainsandends_withare also operators only the advanced panel writes (its text operator list offers both) and showed their id the same way; they take the same one-line arm each. All four exemption conditions hold: same defect class, mechanical with the form pinned by the five above, same file surface the claim declares, same gate family.listConditions.filter.operator("Condition" / 「条件」), the quick filter's existing name for the operator control, already in all 11 packs. A view triple's comparison symbol (=,!=,>,>=,<,<=) still reads as written ("Amount: >= 10"), which existing pins hold.describeConditionValue: a named operator with no value text is now the operator alone, never followed by a trailing space ("Deal Value: Condition", not "Deal Value: Condition " for a value-less unknown operator).is_null/is_not_nullwere already inisValuelessOperator's set, so their chips carry no value: "Deal Value: Is not null".Tests
New top-level
describein the shared harnesslistConditions.test.tsx(ConditionChipRow — an operator only the advanced panel writes): the chip text for each of the seven operators in en and zh-CN; the reader's own filter chip; every pack words each of the seven and never as the id; the unknown-operator fallback in en and zh-CN; a CONTROL that symbols still read as written. No existing test was changed.Runs at head 66eb08b
vitest run packages/plugin-list/src/conditions/(lock VERDICT command-exit 0): Test Files 2 passed, Tests 74 passed.vitest run packages/plugin-list/(lock VERDICT command-exit 0): Test Files 185 passed (185), Tests 2032 passed (2032).pnpm --filter @object-ui/plugin-list type-check(tsc --noEmit && tsc -p tsconfig.test.json): lock VERDICT command-exit 0.ablation-replace.mjs --deleteof theis_not_nullarm: mutation landed (anchor 1 to 0), 3 failed / 3 passed of the new describe ("Received: Deal Value: Condition"); restored, blob == HEAD,git diff HEADempty.default:back toreturn operator: mutation landed, 1 failed (the fallback test) / 5 passed; restored, blob == HEAD.pnpm --dir ui check:i18n-keys,check:i18n-dead-keys,check:i18n-drift: exit 0 each.Acceptance notes
is_not_nullis "Is not null" (「不为 null」). "Is set" is the panel's word for a different operator,exists, whose fold ontois_not_nullthe filter-builder header records as refused (objectui#9559 ruling B: two labels for one wire predicate). Rewording "null" for business readers would change the panel and the chip together, since they now share one key; that is a wording decision for the panel, not done here.nin,isnotnull,startswith) reach the chip only from a hand-written view filter; they now read "Condition", readable but unspecific. Observation only.Verification
Read first:
conditionTranslations.ts(the new arms and thedefault:), thenListConditionControls.tsx(describeConditionValue's last return).Two-minute check:
cd ui && npx vitest run packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx -t "advanced panel writes"shows 6 passing tests, among them the en chips "Deal Value: Is not null" and the zh-CN chips 「金额:不为 null」.Session: https://claude.ai/code/session_01ADHkmRGDrq6JSytBsNFabU
🤖 Generated with Claude Code