Repository navigation
feat(console): the list's Options as a menu, and a view dropdown that creates views in place - #35646
Conversation
…witcher list and value faces WIP: fields level with search, drag order and eye; row height level; new list.optionsMenu and view.switcher keys in every locale. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…ed view keys WIP: switcher menu body in its own module, create card sharing the dialog's type picks, in-place body builder and host hook. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…vels The Display panel is a menu whose rows open a second level. The tests that reached the panel's sections now open the level first, and the retired layout fold's test gives way to the Layout level pin. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…lds; pin the create card and dropdown body A view retyped in place to a kanban now carries the body's columns as its card fields, which the spec requires, and a gallery its visible fields, as the add-view door's builder does. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…ests Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…cher keys Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…ecklist; changeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…ew tests this change edits Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…553-list-options-view-create # Conflicts: # ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx
…bject page The options menu now carries the open view's name (renamed in place by its owner, or by an admin on a saved shared view), the grid's column order on its Fields level, a gallery's card size on its Row height level, and, while the list differs from one of the reader's own views, 保存 beside 恢复默认: the personalization marker's two acts. The title switcher mounts the new dropdown body, whose 「添加视图」 creates in place; the separate Save as my view entry and its name dialog mode are folded into that card, and the Create View dialog stays reachable from Manage views. Keys no surface reads any more are dropped from every pack. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…rd's pick to a shown field Opening the options menu no longer focuses the view name's field, so a key pressed after opening cannot start a rename. The create card's one field pick defaults among the fields the list shows before the whole object, so a kanban on a list that shows the stage groups by it rather than by a hidden status-like field. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
…s retired key Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
The column-identity ratchet read the inline sort comparator as a dual field/name read. A named rank helper keeps the same order without the pattern. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
|
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me CI fix · 2026-11-19T21:32Z |
…553-list-options-view-create
The menu's local Fields level is replaced by the shared FieldList the Filter and Sort controls open, as the view's field manager: search, drag or handle-and-arrow reorder, an eye to hide, one click to show a hidden column or add an addable field, each applied at once. Its own words leave the packs, since the shared list speaks for itself. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
The shared field list takes a type per row; pass the object's declared type from the list's Options mount so number, date and lookup fields stop showing the text icon. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
|
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me Final green head for L1: Checks at this head: 52 success, 13 skipped, 0 failed. Not governed by path; Folded per the maintainer's rule: |
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, one text-only item · head Fences: hold.
Authority: unchanged, as the cards require.
Keys. Pins. 67 R1 (text only, no push, no fresh L1): one claim amendment on #35551 naming two things.
Nit (no action). Routing. Clause-② no and no contract face, so there is no L2 at |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 维护者速读
席位核对 — ACCEPT · repo:objectstack#5 · head
|
Requested by Bill · project thread
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Fixes #35551
Fixes #35553
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Options (#35551). The view bar's 「选项」 opens a menu: each row names a setting on the left and its value on the right, and opens a second level.
conditions/FieldList.tsx, the one 筛选 and 排序 open), used as the view's field manager. Search is on top. The shown fields are listed in the grid's column order, each led by its type icon. Each can be dragged (or moved with the arrow keys on its handle) and hidden by its eye. The hidden fields sit below (尚未加入视图), and one click brings one back. Only fields the reader may read are offered.onColumnStateChange, the state a header drag writes, and the widths are kept beside it. A drag moves a field among the shown ones. Hidden fields keep their place relative to the others, not their slot.setMode). It no longer cycles.ListPersonalizedMarker.tsxis unchanged.View dropdown and in-place create (#35553). The title switcher mounts the new dropdown body.
Host wiring.
ObjectView.tsx: three cleared edits — the create options intouseObjectViewTitleSwitcher, the save-as mode removed, andlistViewActions: { rename, save, reset }intouseObjectViewListRenderer.objectViewListRenderer.tsx: forwards those toListViewasonRenameView,onSaveViewandonResetView.ListView.tsx: changes only at the Options mount and the new prop intake, plus the two dead defaults-table rows.Packs.
list.optionsMenu.fieldsShownis a count family in every pack. Four keys no surface reads any more are dropped from every pack:list.recordOpenNote,list.recordOpenDeclaredPage,view.switcher.allandview.switcher.saveAsMyView. zh-Hant is regenerated.Not here. The menu's own field list is gone. Its Fields level imports ux-1's shared
FieldList, with the props merged in PR #35634 (the list itself landed in PR #35622), andFieldList.tsxis not edited here. The menu's eight field-list words (list.optionsMenu.searchFieldsand its siblings) were added by this PR and never shipped, so they leave the packs with the local copy; the shared list brings its own words. This PR changes nopackages/spec, no server code and no endpoint.Tests
New:
ViewSettingsPopover.optionsMenu-35551.test.tsx(the menu, its levels, Fields, words, 保存 / 恢复默认, the focus on open)ListView.optionsHost-35551.test.tsx(column order throughonColumnStateChange, each Fields row's declared type, the gallery's Row height)inPlaceViewCreate-35553.test.tsx(key generation,buildInPlaceViewConfig,useCreateViewInPlace, the card including its default pick, the dropdown body)Migrated (to the menu's levels and the card):
ListView.displayPopover-12423,ListView.displayResetBaseline-12949,ListView.fieldListRead-11984,ListView.harness,ListView.onGroupingChange-11860,ListView.permissions;ListView.personalization-28950(the reset is now dimmed rather than absent under a host, plus the host's 保存, 恢复默认 and rename);ListView.phoneSortSearch-28911,ListView.phoneWidth-29074,ListView.restoreViewDefaults-28948,ListView.toolbarIconButtons-12695;ViewSettingsPopover.recordOpen-26681,.rowColorTitle,.sharedSelect-11865.objectViewTitleSwitcher.test(+ the create-card case);ObjectView.personalViews-29635(Save as my view through the card, plus Options 保存 / 恢复默认 / rename);ObjectView.createChartView-11576,ObjectView.createKanbanView-11581,ObjectView.createViewRefusal-11578(the Create View dialog is reached through Manage views);ObjectView.chartRelay-7823,ObjectView.emptyColumnsNoProjection-10694,ObjectView.listUrlState-11860,ObjectView.recordOpenDisplay-26681.Moved to the shared field list (round 3):
optionsMenu-35551,optionsHost-35551,ListView.fieldListRead-11984andObjectView.emptyColumnsNoProjection-10694read the Fields level throughFieldList's test ids (options-fields-hide-,-item-,-move-,-row-). The drag case now expects a hidden field to keep its relative place, the shared list's rule.Retired:
ViewSettingsPopover.layoutFold.test.tsx. The Layout fold is gone; its pin moved to the Layout level inoptionsMenu-35551.reorderShownFieldshelper case inoptionsMenu-35551: the helper went with the local field list.Acceptance notes
docs/qa/platform-checklist items edited:
records-forms.saved-view-management(rev 3 → 4):create-in-placevariant, a step and an acceptance clause.records-forms.grid-personalization(rev 7 → 8): steps[1] and acceptance[1] are re-pointed to the Row height level (grid and gallery). Stored values are unchanged.Browser readings: the CRM example, 1280×800, zh-CN, on
crm_opportunity. A is the admin. B is a member bound tocrm_sales_reponly, who holds no shared-view rights.#35551 验收
#35553 验收
Verification
Read first, by risk:
ui/packages/app-shell/src/views/ObjectView.tsx— thelistViewActionsgating: rename for the owner or an admin on a saved view; 保存 / 恢复默认 only while personalized.ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx—FieldsPage(the sharedFieldListfed from the grid's columns) and the footer.ui/packages/app-shell/src/views/CreateViewDialog.tsx—CreateViewCardand theshownFieldsdefault.Two-minute check: on the CRM example open 商机, click 「选项」 → 「字段」 → the eye beside 「赢单概率 (%)」. The column disappears in three clicks.
Size. 4555 changed lines in 51 files (+3437 −1118,
git diff --shortstat origin/main...HEADat daa098f), over the 3000-line human-merge line: landing needs a GOVERNED_APPROVERS approval after L1. Of those, 2486 are product code, 306 are the eleven packs, 50 are the changeset and the checklist, and 1713 are tests (951 new, 542 migrated, 220 retired). The PR stays a draft.Review order
Changed lines (added + removed) and what to check, in reading order.
ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx(884): the menu rows and their values, each second level, the footer's 保存 / 恢复默认, andFieldsPagehanding the sharedFieldListthe grid's shown columns, the hidden ones and the addable ones.ui/packages/plugin-list/src/ViewSwitcher.tsx(57): thelistandvaluefaces the Layout level and its row use; the toolbar'sautoface is unchanged.ui/packages/app-shell/src/views/objectViewSwitcherMenu.tsx(328, new): the dropdown body, with search, 我的视图 / shared grouping, type icons, wrapping names, and the 添加视图 foot.ui/packages/app-shell/src/views/CreateViewDialog.tsx(562):CreateViewCard, with the name, type, the one field a type needs (defaulting to a shown field), 包含当前的筛选和排序, and the personal / shared switch only for a reader who may share.uniqueViewKeygenerates the machine key from the name, never shown.ui/packages/app-shell/src/views/objectViewViewCrud.tsx(83):useCreateViewInPlace, the personal vs shared door. Personal saves one of the reader's own views and opens it; shared hands the body to the existing add-view door (draft, then publish), unchanged, under the generated key.ui/packages/app-shell/src/views/personalViews.ts(62):buildInPlaceViewConfig, the one body both scopes store. It starts from the open view, is retyped with the type's picks, and lays the list on screen over it only when 包含当前的筛选和排序 is kept.ui/packages/plugin-list/src/ListView.tsx(59): three new host props (onRenameView,onSaveView,onResetView) and the Options mount (the name row, the field order from the grid's column state, each field's type, 保存 / 恢复默认, the gallery's Row height by name), plus the two dead defaults-table rows.ui/packages/app-shell/src/views/objectViewListRenderer.tsx(24): forwardslistViewActionsand nothing else.ui/packages/app-shell/src/views/ObjectView.tsx(87): the three cleared edits and thelistViewActionsgating.ui/packages/app-shell/src/views/objectViewTitleSwitcher.tsx(340, mostly removed): mounts the new dropdown body; the save-as name-dialog mode is gone and the rename mode stays.ui/packages/i18n/src/locales/*.ts(306 across eleven packs): the newlist.optionsMenu.*and create-card words in every pack,fieldsShownas a count family, four dead keys dropped, and zh-Hant regenerated.docs/qa/platform-checklist/areas/records-forms.json(34) and the changeset (16): the two items' revisions under Acceptance notes, and patch-level words.inPlaceViewCreate-35553(487),optionsMenu-35551(329) andoptionsHost-35551(135). Migrated: 24 files (542), each a re-pointing to the menu's levels or the card. Retired:layoutFold(220).Local readings at daa098f
FieldList(81d0d5d) and passed each field's type to it (daa098f).packages/plugin-list/,packages/i18n/, the column-identity ratchet, 29 app-shell files naming the card, the dropdown, the dialog or Options, andpersonalViews-29635. 314 files, 4282 passed, 13 skipped.packages/plugin-list/in full: 180 files, 1949 passed.column-identity.ratchet,optionsMenu-35551,optionsHost-35551,fieldListRead-11984,emptyColumnsNoProjection-10694: 5 files, 81 passed.pnpm --dir ui exec vitest run scripts/: 171 files passed, 2 skipped; 5092 tests passed.type-checkexit 0. After a plugin-list rebuild, app-shelltsc --noEmitexit 0 andtsc -p tsconfig.test.jsonexit 0.dispatch-gates.mjs --commands): 48 run, each exit 0.--ranreconciliation: 48 derived, 48 run, 0 NOT-MEASURED.check:i18n-keys,check:i18n-drift,check:i18n-dead-keys; rootcheck:i18n,check:i18n-coverage,check:i18n-walk-parity,check:i18n-stale-fill): each exit 0.check-platform-checklist --changed-from origin/main: exit 0.return typeof type === 'string' ? type : undefined;→return void type;inListView.tsx, viascripts/ablation-replace.mjs): the new type case inoptionsHost-35551went red (expected 'text' to be 'number', 1 failed). The file was restored to HEAD blobc55f1729a2, andgit diff HEADwas empty.overlap-checkat daa098f: clean against origin/main e91d967. The files shared with open PR feat(plugin-list): Filter and Sort open the shared field list, and conditions show as chips under the view bar #35643 (packs, checklist,ListView.tsxand some tests) merge cleanly.src/views/in full (1559 files, 14795 passed, 1 skipped) and the card's shown-field default ablation (red, then restored).🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me