Repository navigation
feat(plugin-list): the shared field list also manages a view's fields, for the Options card - #35634
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>
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>
…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
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, one text-only item · head Shape. 15 files, +511 / −41: No behaviour change: holds. Nothing outside Pins. Eight new cells in
CI. 48 success, 17 skipped. The one R1 (text only, no push, no fresh L1): name this PR's branch in a claim amendment. Amendment 7017578497 on #35549 rules two PRs on two branches: Routing. Clause-② no, no |
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Landing · area ux-1 · 2026-11-19T21:13Z
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 1b, on top of step 1 (#35622, merged as 15f8357). The branch merged
mainafter that, so this PR's diff againstmainis its own: 15 files, +511/-41. Its consumer is #35551 (ux-3, Options → Fields), which will importFieldListin place of its own local copy. No list mounts it yet, so this PR changes no behaviour.ui/packages/plugin-list/src/conditions/FieldList.tsx: the one shared field picker for the list redo. All new props are optional. With none of them, the list is exactly the picker the filter and sort panels use: a listbox of options, where a hidden row picks. With them, the list becomes the view's field manager, and every change is handed back at once, with no Apply:order/onOrderChange: the shown rows reorder by drag. They also reorder from a grip handle with ArrowUp/ArrowDown; the handle's accessible name is 「Move LABEL」, it is described by the arrow-key hint, and focus stays on it.ordermay name hidden fields too, and those keep their places when a shown field moves. Reordering is off while a search narrows the list.onHide: an eye toggle on each shown row.onShow: one click on a hidden row shows it again.addable/onAdd: fields that are not columns yet, listed under the hidden ones. One click adds one.searchPlaceholder: the search box's placeholder and its accessible name.Field items are
{value, label, type?}. A host holding{name, label}mapsnametovalue. Areadableflag is not read: per ADR-0098 §6 the host passes only readable fields.conditionTranslations.tsand the 11 locale packs: sixlistConditions.fieldList.*keys (not in the view yet, add, show, hide, move, the reorder hint).zh-Hant.tsis generated bygen:zh-hant..changeset/list-field-list-manager.md:@object-ui/i18npatch. Step 1's changeset is left as step 1 wrote it.Tests
Tests migrated or retired: none. Platform-checklist items edited: none; the Options → Fields card wires the props and owns its items.
listConditions.test.tsxgains 8 tests (36 in all):orderkeep their places;Test and type-check readings
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-list/src/conditions/ packages/i18n/src/__tests__/gaveTest Files 105 passed (105),Tests 1992 passed | 13 skipped (2005).pnpm --filter @object-ui/plugin-list type-checkandpnpm --filter @object-ui/i18n type-checkboth exit 0.scripts/ablation-replace.mjs. Each mutation landed (anchor 1 → 0). Each restore matched the HEAD blob withgit diff HEADempty.onHide: vitest 1 failed (hide and show).Acceptance notes
Verification
Files to read first, by risk:
FieldList.tsx(moveTo/moveFieldInOrder): the order a reorder hands back, with hidden fields kept in place.FieldList.tsx(actionOf,managing): without the manager props the row roles and clicks are the picker's, unchanged.listConditions.test.tsx(the field-manager CONTROL).Two-minute check:
pnpm --dir ui exec vitest run packages/plugin-list/src/conditions/should end withTests 36 passed (36).Gates at 05673ec and 6174527
node scripts/pm/dispatch-gates.mjs --commandsderived the same 40 families as at e5ee237, where all 40 ran and exited 0;--rangave 「40 run, 0 NOT-MEASURED」..changeset/changed. Its families were re-run, and all exited 0:check-changeset-no-major,check-empty-changeset(with its self-test),check:changeset-gate-self-testsandcheck:nul-bytes.node scripts/pm/overlap-check.mjsexited 0 withVERDICT clean. It merges cleanly withorigin/mainand with feat(plugin-list): the shared field list, quick filter values and condition chip row, not yet mounted #35622.mainwith step 1 in it): the conflicts in the step-1 files were resolved asmain's file plus this PR's own diff (git diff 7892cab41a e5ee237064), andgit diff e5ee237064 -- ui/packages/plugin-list/src/conditions/is empty.check-changeset-no-major,check-empty-changesetandcheck:nul-bytesexit 0.overlap-checkexits 0 withVERDICT cleanagainstorigin/main(15f8357) and feat(list): no Actions column on the list page; a selection swaps the page bar; lists load as they scroll #35637.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY