Skip to content

feat(plugin-list): the shared field list also manages a view's fields, for the Options card - #35634

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-35549-field-list-props
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-35549-field-list-props

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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 main after that, so this PR's diff against main is its own: 15 files, +511/-41. Its consumer is #35551 (ux-3, Options → Fields), which will import FieldList in 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. order may 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} maps name to value. A readable flag is not read: per ADR-0098 §6 the host passes only readable fields.

  • conditionTranslations.ts and the 11 locale packs: six listConditions.fieldList.* keys (not in the view yet, add, show, hide, move, the reorder hint). zh-Hant.ts is generated by gen:zh-hant.

  • .changeset/list-field-list-manager.md: @object-ui/i18n patch. 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.tsx gains 8 tests (36 in all):

  • a drag reorders and hands back the whole order;
  • hidden fields named in order keep their places;
  • the grip handle reorders by keyboard and keeps focus;
  • reordering is off while searching;
  • the eye hides a field, and one click shows it again;
  • addable fields sit under the hidden ones, and one click adds one;
  • a custom placeholder is the box's name;
  • CONTROL: without the manager props there is no grip, eye or add section, nothing is draggable, the placeholder is 「Search fields」, and a hidden row still picks.
Test and type-check readings
  • At e5ee237, whose code is byte-identical to this head (the head adds only the changeset commit), pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-list/src/conditions/ packages/i18n/src/__tests__/ gave Test Files 105 passed (105), Tests 1992 passed | 13 skipped (2005).
  • pnpm --filter @object-ui/plugin-list type-check and pnpm --filter @object-ui/i18n type-check both exit 0.
  • Ablation ran at 620ea09 through scripts/ablation-replace.mjs. Each mutation landed (anchor 1 → 0). Each restore matched the HEAD blob with git diff HEAD empty.
    • Reorder hands back the order unmoved: vitest 3 failed (drag, hidden places, keyboard).
    • The eye toggle does not call onHide: vitest 1 failed (hide and show).

Acceptance notes

Verification

Files to read first, by risk:

  1. FieldList.tsx (moveTo / moveFieldInOrder): the order a reorder hands back, with hidden fields kept in place.
  2. FieldList.tsx (actionOf, managing): without the manager props the row roles and clicks are the picker's, unchanged.
  3. listConditions.test.tsx (the field-manager CONTROL).

Two-minute check: pnpm --dir ui exec vitest run packages/plugin-list/src/conditions/ should end with Tests 36 passed (36).

Gates at 05673ec and 6174527

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY

…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>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
…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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Final head for L1: 6174527501a5678b8ac3498c48fb4f2b1bb593e7 · 2026-11-19T21:10Z

  • CI on this head: 48 success, 17 skipped, 0 failed. A body patch cancelled one PR-body guard run; its two reruns on this head succeeded.
  • check-governed-merges --pr 35634: not governed. 552 lines (+511 / −41), 15 files.
  • K: 2. Declared: Clause-②: no · Metadata-protocol: none · Part of #35549, Part of #35550.
  • What this PR is. It is step 1b of the seat's split, added after PR 1 (feat(plugin-list): the shared field list, quick filter values and condition chip row, not yet mounted #35622, merged as 15f8357) had the FieldList props reverted to stay under 3,000. It carries those props.
    • order / onOrderChange: drag, plus a grip handle that moves rows with ArrowUp/ArrowDown and has an accessible name. Hidden fields keep their places, and reordering is off while a search narrows the list.
    • onHide: an eye toggle. onShow: one click on a hidden row shows it again.
    • addable / onAdd: fields that are not columns yet can be added.
    • searchPlaceholder.
    • With none of these props, the list is exactly PR 1's picker. Nothing mounts the new props yet, so behaviour does not change.
  • Consumer: 列表「选项」重做:菜单化(视图名、布局、字段、分组、行高),字段可搜索、拖动排序、点眼睛隐藏 #35551 (ux-3, Options → Fields) imports FieldList in place of its local copy. Whichever of the two lands second deletes that copy.
  • How it was built: the 1b branch starts from e5ee237, and main was then merged in. The conditions/ tree equals e5ee237.
  • Tests:
    • 8 new pins.
    • At e5ee237, locked vitest gave conditions 36/36, and 105 files / 1,992 with the i18n tests. Type-checks exit 0.
    • Ablation: a reorder that hands back an unmoved order gives 3 red; an eye toggle that skips onHide gives 1 red. Each was restored with blob == HEAD.
    • dispatch-gates --commands: 40 run, 0 not measured.
    • overlap-check: clean before each push.
  • Stacked on this PR: feat(plugin-list): Filter and Sort open the shared field list, and conditions show as chips under the view bar #35643 (step 2, Fixes #35549, Fixes #35550).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:没有。共用的字段清单多了"管理视图字段"的本事(拖动排序、显示或隐藏、添加字段),给"选项 → 字段"那张卡用;现在还没有页面用到它。
  • 为什么做:列表页重做专题里,筛选、排序和选项三张卡共用同一个字段清单,这一步把选项卡需要的部分先合进来。
  • 出错会怎样:没有页面用到,影响不到现有列表,可以直接撤回。
  • 要你做什么:无。
  • 席位意见:通过;只差在卡上补登记这条新分支(文字即可),之后区域就可以合并。

席位核对

L1-a: ACCEPT, one text-only item · head 6174527501a5678b8ac3498c48fb4f2b1bb593e7 · Part of #35549, #35550 · base main · K=2 · merge-tree clean · not governed (0 hits) · 552 lines · 2026-11-19T21:12Z

Shape. 15 files, +511 / −41: FieldList.tsx (+309 / −41 net of rewrites), its test file, conditionTranslations.ts (+6), six listConditions.fieldList.* keys in each of the 11 locale packs, and a new changeset (@object-ui/i18n patch, "Nothing reads them yet"). Step 1, #35622, is in main at the merge base, so the diff is this PR's own.

No behaviour change: holds. Nothing outside plugin-list/src/conditions/ imports from it (git grep "conditions/": no hit). The new props are all optional: order, onOrderChange, onHide, onShow, addable, onAdd, searchPlaceholder, and onPick is now optional too. The existing filter and sort cells are unchanged and pass. The new describe's CONTROL cell checks that a list without the manager props draws no grip, eye or add section and does not reorder, so the pick-only list of the filter and sort panels is pinned as before.

Pins. Eight new cells in FieldList — the field manager:

  • a drag reorder that hands back the whole order;
  • hidden fields keep their places when a shown one moves;
  • keyboard reorder from a named grip handle, with focus kept on it;
  • reorder turned off under a search;
  • eye hide and show;
  • the addable section with its one-click add;
  • the custom placeholder doubling as the accessible name;
  • the CONTROL above.

moveFieldInOrder is exported and is exercised by the hidden-places cell.

CI. 48 success, 17 skipped. The one cancelled is the PR-body guards run at 20:30:50Z; a re-run of that check completed success at 21:08:34Z on this head.

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: claude/issue-35549-list-filter-sort and -wiring. This PR is a third, on claude/issue-35549-field-list-props, and the branch appears only in os-dev-report 7022170405, not in a claim line. The file surface already covers FieldList.tsx ("the shared field list ux-3 may reuse") and the locale keys. So one amendment line naming the branch and its step-1b role closes it. It is the same stacked pair as PR 2 #35643, so no file overlap needs ruling under the 15:06Z parallel-branch permission.

Routing. Clause-② no, no packages/spec face, not governed: ux-1 lands it after R1. No L2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Landing · area ux-1 · 2026-11-19T21:13Z

Reading Value
check-governed-merges --pr 35634 not governed, 552 lines → ordinary queue landing
K (merge base..origin/main, first-parent) 2 (< 15)
CI on head 6174527501 48 success, 17 skipped, 0 failed or pending; PR-body guards success on rerun

Head 6174527501a5678b8ac3498c48fb4f2b1bb593e7: L1-a ACCEPT 7022364445. R1 is met by claim amendment 7022376595 on #35549, which names this branch as step 1b. Ready + auto-merge now. This is step 1b for #35549 and #35550 (Part of). The cards stay open for PR 2 #35643.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 21:13
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 7d3b8d6 Nov 19, 2026
66 of 67 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35549-field-list-props branch November 19, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants