Repository navigation
feat(plugin-list): the shared field list, quick filter values and condition chip row, not yet mounted - #35622
Conversation
…dition chip row, not yet mounted The components under plugin-list/src/conditions/ and the listConditions locale keys. Nothing in the list mounts them yet. Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
FieldList takes the Options → Fields props as optional ones: order and onOrderChange (drag, or a grip handle and the arrow keys), onHide (an eye toggle on each shown row), onShow (one click on a hidden row), addable and onAdd (fields that are not columns yet, under the hidden ones), and searchPlaceholder. Every change is handed back at once. Without them the list picks a field exactly as the filter and sort panels use it. Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…space now carries Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
Reverts e5ee237 and 620ea09. The props move to their own stacked PR so this one stays under the 3,000-line human-merge line; the tree is back to 7892cab. Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, one item before queueing · landing head Shape. 19 files, +2,688 / −0, all additions:
No behaviour change: holds. Nothing outside Claim surface: holds. Amendment 7017578497 on #35549 names the Pins.
No Size split. It is 1 of 2 by the seat's amendment, and both cards' R1 (before queueing): CI green on Routing. Clause-② no, no |
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T20:07Z
Head |
Requested by Bill · project thread
Part of #35549
Part of #35550
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
This is step 1 of 2, ruled by the seat in claim amendment 7017578497 on the filter card. It adds components and locale keys only. No list mounts them yet, so this PR changes no behaviour. Step 2 wires them in.
ui/packages/plugin-list/src/conditions/FieldList.tsx: the shared field list. It has a search box over label and name, the fields the view shows first (in column order), then the hidden ones, a type icon on each row, and ArrowUp/ArrowDown/Enter. Filter and sort both use it, and the options card can reuse it.FilterValuePanel.tsx: one condition's values, by field type.in.LookupValuePicker.contains, sent 250 ms after the last keystroke.DATE_RANGE_PRESET_MACRO_WINDOWS(today, this week, this month, last 30 days) plus a custom range.The operator sits on top and can be changed at any point. Every pick hands the row back at once; there is no Apply.
ListConditionControls.tsx: three controlled components.FilterPanel: field list, then values. Its footer opens the host's advanced panel (renderAdvanced, today'sFilterBuilder, unchanged). An OR group opens the advanced panel directly.SortPanel: the direction on top, then the field list. One click adds a level, or sets the direction of a level that already exists.ConditionChipRow: sort chips first (a click reverses, a drag or Alt+Arrow reorders, × removes). Then the view's own conditions as locked chips with no ×. Then the reader's filter chips (a click reopens the values, × removes). Then 「Add filter」 and 「Reset」. It rendersnullwhen it has nothing to show, so the host's slot keepsempty:hidden.conditionModel.ts: pure helpers.conditionTranslations.ts: a safe-translation hook with literal keys.The 11 locale packs gain a
listConditionsnamespace.zh-Hant.tsis generated bygen:zh-hant.One allowlist line in
untranslated-identity-4376.test.ts:listConditions.chips.pattern({{field}}: {{value}}) is a format string and reads the same in ko/ru/ar. The precedent isconsole.assignedWork.failure.The changeset is
@object-ui/i18npatch only.@object-ui/plugin-listships nothing new: afterpnpm --filter @object-ui/plugin-list build,disthas 0 files withcondition-chips/listConditions., while the positive controltoolbar-filter-triggerhits 2.No storage-format,
uf_*or server-sort change. A quick filter writes ordinaryFilterBuilderRowGrouprows. A sort chip edits the sameSortItem[]that the column header writes.Step 2 (separate PR, after the list-frame card lands)
Branch
claude/issue-35549-list-filter-sort-wiringcarriesFixesfor both cards and contains:ListView.tsx, only at the list-frame card'slist-condition-rowslot and the Filter/Sort trigger targets:FilterPanel, with today'sFilterBuilderbehind its 「Advanced filter」 footer and its props unchanged;SortPanel;ConditionChipRowfills the slot. Its 「Reset」 covers filter and sort only. The 「Personalized」 badge stays as it is.filterFieldList-11810,filterDatePicker-12743,filterFieldRead-11925,storedRuleDialect-11533,sortFieldRead-11943,sortRemovableOnly-11943,relationalSort,sortFieldFallback,sortPersistLeak,restoreViewDefaults-28948,headerSort,phoneSortSearch-28911,toolbarRows-27520,toolbarAccessibleNames-12500,toolbarIconButtons-12695,emptyStateClearFilters-28908,personalization-28950; live e2euser-filters,saved-view-filter.filterBuilder.whereis retired and its testKey moves.ui/e2e/list-condition-row-35549.spec.ts. It is already written, and it passed 3/3 in Chromium against these components at b356ac5a18. It covers: the CONTROL row takes 0 px; Filter → Stage → Negotiation in 3 clicks with the count going 12 → 3; Sort → Descending → Amount in 3 clicks; a real drag reordering two levels; Reset.Header-click sort needs no grid change.
handleHeaderSortalready writescurrentSort, which the chips read.Tests
Tests migrated or retired: none in this PR, since nothing existing changes behaviour; the list for step 2 is above. Platform-checklist items edited: none in this PR; step 2 edits them.
New file:
plugin-list/src/conditions/__tests__/listConditions.test.tsx, with 28 tests. Each acceptance item is a test:Test and type-check readings at 7892cab
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-list/src/conditions/ packages/i18n/src/__tests__/gaveTest Files 105 passed (105),Tests 1984 passed | 13 skipped (1997).pnpm --filter @object-ui/plugin-list type-checkandpnpm --filter @object-ui/i18n type-checkboth exit 0.tsconfig.test.json --listFilesincludes the 6src/conditionsfiles.Ablation went through
scripts/ablation-replace.mjs. Each mutation landed (anchor 1 → 0), and each restore matched the HEAD blob withgit diff HEADempty.return nullis turned off: vitest 2 failed (CONTROL and the unfinished row).The same three mutations each turned the Playwright spec red as well (2, 3 and 1 failed).
Acceptance notes
conditions/(claim amendment 7017578497).git diff 7892cab41a 1636c1c2d5is empty). It reverts e5ee237 and 620ea09, the field-list manager props for the Options → Fields card, which move to a stacked PR so this one stays under the 3,000-line line. The readings below were taken on that same tree.Verification
Files to read first, by risk:
ListConditionControls.tsx(FilterPanel.commit): a row reaches the host only once it filters, and is removed when its last value goes.conditionModel.ts(readViewConditions): which shapes of the view's own filter become locked chips.FilterValuePanel.tsx(DateValues): the date windows are the spec preset macros, not invented ones.Two-minute check:
pnpm --dir ui exec vitest run packages/plugin-list/src/conditions/should end withTests 28 passed (28).Gates at 7892cab
node scripts/pm/dispatch-gates.mjs --commandsderived 40 families. All 40 ran locally and exited 0.--ranreconciliation: 「40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED (a DERIVED zero …)」.node scripts/pm/overlap-check.mjsexited 0 withVERDICT clean. It merges cleanly withorigin/mainand with feat(console): list page frame — 44px page bar, 40px view bar, denser grid, per-column totals #35615 (the list-frame PR, which shares the 11 locale files).zh-Hant.tsequals the generator's output from the mergedzh-Hans.ts.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY