Repository navigation
feat(plugin-list): Filter and Sort open the shared field list, and conditions show as chips under the view bar - #35643
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>
…st-filter-sort-wiring
…ndition row fills the list-condition-row slot Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
The step-1 changeset goes back to its own wording, so this PR adds a changeset instead of editing one that another PR carries. Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…35549-list-filter-sort-wiring
…ced step, as the Filter panel does Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…ugh the field list's advanced step; the condition row on the real list Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…s advanced step Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…eld-list-props # Conflicts: # ui/packages/i18n/src/locales/ar.ts # ui/packages/i18n/src/locales/de.ts # ui/packages/i18n/src/locales/en.ts # ui/packages/i18n/src/locales/es.ts # ui/packages/i18n/src/locales/fr.ts # ui/packages/i18n/src/locales/ja.ts # ui/packages/i18n/src/locales/ko.ts # ui/packages/i18n/src/locales/pt-BR.ts # ui/packages/i18n/src/locales/ru.ts # ui/packages/i18n/src/locales/zh-Hans.ts # ui/packages/i18n/src/locales/zh-Hant.ts # ui/packages/plugin-list/src/conditions/FieldList.tsx # ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx # ui/packages/plugin-list/src/conditions/conditionTranslations.ts
…35549-list-filter-sort-wiring
…ction 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: Readings
History
What it changes
Tests
Out of scope: |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, two items before queueing · head Wiring (
Card item 7. The Pins.
R1: CI green on this head. At this reading: 51 success, 13 skipped, and R2 (text only, no push, no fresh L1): claim amendment. Amendment 7017578497's PR 2 rows allow
One amendment line on #35549 naming them, with that reason, closes it. Routing. Clause-② no, no contract face, not governed: ux-1 lands it after R1 and R2. No L2. |
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-20T01:01Z
Head |
Requested by Bill · project thread
Fixes #35549
Fixes #35550
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
This is step 2. Step 1 (#35622) and step 1b (#35634, the field-list props) have both merged, and
mainhas been merged into this branch. This PR's diff is its own: 46 files, +918/-92.ui/packages/plugin-list/src/ListView.tsxchanges only at the list-frame card'slist-condition-rowslot and at the Filter/Sort trigger targets:FilterPanel: the shared field list, then values by type, applied on every pick. Its 「Advanced filter」 footer opens today's panel, with the 「Filter Records」 heading andFilterBuilder, whose props are unchanged.SortPanel: the direction on top, then the field list; one click adds a level. Its footer carries the relational-column note, and 「All sort levels」 opens today's sort panel (sortPanelBody: heading, reset to the view's sort,SortBuilder). The phone Display panel still drawssortPanelBodyas before.ConditionChipRow, which renders nothing when there is nothing to show, so the slot keepsempty:hiddenand its height of 0. The row draws:handleResetSort. Search stays, and so does the 「Personalized」 badge.currentSort(handleHeaderSort), so it appears as a sort chip with no grid change.Other changes:
ListConditionControls.tsx:SortPanelgainsfooterandrenderAdvanced, mirroring the filter panel's advanced step. One new key,listConditions.sort.advanced, is added to the 11 packs.filter-builder.tsx: the 「Where」 / 「其中」 label is dropped (ruling Q3).filterBuilder.whereis retired from the 11 packs, and the translation probe key moves tofilterBuilder.and.filterBuilder-where-retired-35549.test.tspins the retirement.records-forms.adhoc-filter-sort-buildergoes to revision 11: steps[1] and acceptance[2].verify now describe the field list, the chips and the two footers.No change to the filter storage format,
uf_*, server sort, shared-view permissions or draft rules.Tests
Tests migrated or retired:
__tests__/conditionPanels.ts:columnsOnlyOptions-10547,columnsOnlyRelationalReads-7531,declaredDisplayField-10545,filterFieldList-11810,filterFieldRead-11925,filterDatePicker-12743,harness(draftOnlyColumn, resetSortToDefault),personalization-28950,phoneWidth-29074,relationalSort,restoreViewDefaults-28948,sortFieldFallback,sortFieldRead-11943,sortPersistLeak,sortRemovableOnly-11943,sortabilitySignal,toolbarIconButtons-12695,toolbarRows-27520,withheldFields-34901,ListViewBlock.specInputs-13047, and app-shellObjectView.personalViews-29635.import '@objectstack/lint', whichcheck:test-source-aliasasks of an edited test that reaches it.fieldListRead-11984: the sweep reads the field list's rows too, and the Filter and Sort positions are each pinned twice, once on the field list and once on the advanced step.datasetChartAppliedFilter-10512: the trigger is found by test id, because 「Add filter」 is a second button named for filters.schema-catalog/filter-builder-mirror-6939: the five render readings were re-measured without the Where span. Each has one element fewer, oneSPANfewer, noWherein its text, and a new hash. The anti-vacuity floor is now≥ 10.Platform-checklist items edited:
records-forms.adhoc-filter-sort-builder(rev 11).New:
ListView.conditionRow-35549.test.tsx(5 tests):listConditions.test.tsxgains 2 tests: the sort panel's advanced step, and a CONTROL without it.ui/e2e/list-condition-row-35549.spec.tsruns in Chromium on the realListView(withObjectGrid) from source and an in-memory data source:Readings at 1b9b309
pnpm --dir ui exec vitest run --maxWorkers=2overpackages/plugin-list/,packages/i18n/src/, two components builder suites, the schema-catalog mirror and app-shellpersonalViews-29635gaveTest Files 288 passed (288)andTests 3979 passed | 13 skipped (3992).pnpm --filtertype-check for plugin-list, components and i18n all exit 0. Components first needed--filter '@object-ui/components^...' build:data-table.tsxreads asummaryRowthat the stale typesdistlacked./opt/pw-browsers/chromium):3 passed.main, covered all ofpackages/plugin-list/,packages/components/src/,packages/i18n/src/and the ListView-mounting app-shell suites. Read across those runs: 778 files and 8680 tests pass; the one failure,personalViews, was then migrated. Separately, 110 app-shell files and 921 tests pass.scripts/ablation-replace.mjsonListView.tsx. Each mutation landed (anchor 1 → 0). Each restore matched the HEAD blob withgit diff HEADempty.onFilterChange: vitest 1 failed. Playwright stays 3 passed, which is the expected direction, because the list filters on its own state andonFilterChangeis the host's persist channel.Acceptance notes
ListViewmints sort-row ids with a barecrypto.randomUUID(), which exists only in a secure context. The e2e page is served from alocalhostURL for that reason. Onabout:blankthe header click threwTypeError: crypto.randomUUID is not a functionand nothing sorted. This is reported separately and not changed here.Verification
Files to read first, by risk:
ListView.tsx,handleResetConditions/conditionsDifferFromView: what Reset clears, and what it leaves (search, the view's own filter, the 「Personalized」 badge).ListView.tsx, the twoPopoverContentblocks: the old panels now sit behindrenderAdvanced, so every builder path is one click further.filter-builder.tsx: the Where span is gone and the probe key is nowfilterBuilder.and.Two-minute check:
pnpm --dir ui exec vitest run packages/plugin-list/src/__tests__/ListView.conditionRow-35549.test.tsxshould reportTests 5 passed (5).Gates at 1b9b309
node scripts/pm/dispatch-gates.mjs --commandsderived 48 families. All 48 ran locally and exited 0.--rangave 「48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED (a DERIVED zero …)」.ui scripts vitestexited 1 under box load, then exited 0 on a rerun of the same tree (171 files passed).check:test-source-aliasflagged the edited personal-views suite; 1b9b309 adds the import it asks for.node scripts/pm/overlap-check.mjsexited 0 withVERDICT clean. It merges cleanly withorigin/main(15f8357), feat(plugin-list): the shared field list also manages a view's fields, for the Options card #35634 and feat(list): no Actions column on the list page; a selection swaps the page bar; lists load as they scroll #35637.gen:zh-hantleaveszh-Hant.tsunchanged.check-platform-checklistis OK (433 items).🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY