Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
809c450
feat(list): options panel becomes a menu with second levels; layout s…
claude Nov 19, 2026
9ff3d96
feat(app-shell): view dropdown body and in-place create card; generat…
claude Nov 19, 2026
fdf65e8
test(list): pin the options menu levels; move panel tests onto the le…
claude Nov 19, 2026
9e595ee
fix(app-shell): an in-place kanban or gallery view lists its card fie…
claude Nov 19, 2026
814e1af
test(app-shell): reach the Display menu's levels in the object-view t…
claude Nov 19, 2026
54bddec
fix(i18n): the fields count is a count family; drop three unused swit…
claude Nov 19, 2026
f02d21f
docs(qa): the row height level and the in-place view create in the ch…
claude Nov 19, 2026
f2a7dea
test(app-shell): pay the lint load at collection in the two object-vi…
claude Nov 19, 2026
ddd68ca
Merge remote-tracking branch 'origin/main' into claude/issue-35551-35…
claude Nov 19, 2026
4ddf346
feat(console): wire the options menu and the view dropdown into the o…
claude Nov 19, 2026
15954bd
fix(console): keep the cursor out of the view name and default the ca…
claude Nov 19, 2026
1a2ba39
test(list): assert the dropped Open records note by its words, not it…
claude Nov 19, 2026
685ad9d
fix(plugin-list): read the options field order through one rank helper
claude Nov 19, 2026
7a74275
Merge remote-tracking branch 'origin/main' into claude/issue-35551-35…
claude Nov 19, 2026
81d0d5d
refactor(list): the Options Fields level is the list's shared field list
claude Nov 19, 2026
daa098f
fix(plugin-list): the Options Fields level draws each field's type icon
claude Nov 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .changeset/35551-35553-list-options-view-create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@object-ui/plugin-list': patch
'@object-ui/app-shell': patch
'@object-ui/i18n': patch
---

feat(list): the list's options panel is a menu of second levels, and the view dropdown creates a view in place

Clause-②: no
Metadata-protocol: none

**The options panel (选项) is a menu.** Each row names a setting on the left and shows its current value on the right, and opens a second level: the view name, Layout, Fields (「已显示 N 个」), Grouping, Row color, Row height (紧凑 / 标准 / 宽松), and More (how records open, row numbers, inline edit). On a phone a Sort row is added, as before. The Layout level lists every layout the view offers as one choice each, at any count. The Fields level is the list's shared field list (the one 筛选 and 排序 open), as the view's field manager: a search box on top; the shown fields are listed in their order, can be dragged (or moved with the arrow keys) and hidden by their eye, and the hidden fields sit below, where one click shows a field again or adds a readable field the view does not list. Only fields the reader may read are offered. The footer reads 「恢复默认」 and 「刷新」, and — on one of the reader's own views that differs from what it stores — 「保存」 beside 「恢复默认」, which writes the list on screen into that view (as the 「已个性化」 marker's 保存 does); in the console 「恢复默认」 is the marker's reset, dimmed while there is nothing to restore. The view name at the top is renamed in place by the view's owner, or by an admin on a saved shared view; opening the menu does not put the cursor in it. Fields reorders the grid's columns through the same state a header drag writes, and Row height on a gallery picks its card size by name; every icon button has a name; the developer note under Open records is gone. These settings stay the reader's own preference, stored as before.

**The view dropdown** keeps its search and lists one row per view, led by its type's icon, with the reader's own views (我的视图) and the shared views in groups of their own; a long name wraps instead of being cut. 「添加视图」 at the bottom turns the dropdown into a create card (the separate 「另存为我的视图」 entry and its name dialog are folded into it; the full Create View dialog stays reachable from 「管理视图」): a name, the view type (with icons), the one field the type needs (kanban: the group field; calendar: the date field), 「包含当前的筛选和排序」 while the list holds unsaved conditions (on by default), and — for a reader who may create shared views — a personal / shared switch. The one field a type needs defaults to one the list shows (a kanban groups by 阶段 on a list that shows it, not by a hidden status-like field). 「创建」 creates one of the reader's own views by default and opens it; a shared view goes through the existing draft-and-publish door unchanged. No machine name is asked for: a unique one is generated from the name. A kanban or gallery created this way lists the view's columns as its card fields, as the add-view door does.

The fields count label (`list.optionsMenu.fieldsShown`) is a count family in every pack. Keys no surface reads any more are dropped from every pack: `list.recordOpenNote`, `list.recordOpenDeclaredPage`, `view.switcher.all` and `view.switcher.saveAsMyView`.
34 changes: 27 additions & 7 deletions docs/qa/platform-checklist/areas/records-forms.json
Original file line number Diff line number Diff line change
Expand Up @@ -3523,7 +3523,7 @@
"title": "Grid personalization persists across reload: column resize/reorder/pin, row-height, group-by (with API-true totals), row-color",
"since": "v16",
"status": "active",
"revision": 7,
"revision": 8,
"priority": "P2",
"surface": "browser",
"personas": [
Expand All @@ -3548,7 +3548,7 @@
],
"steps": [
"open showcase_task grid; screenshot",
"resize a column (reorder two columns only on a grid that sets reorderableColumns; there is no runtime pin control — acceptance[0]), and set a density with the list's one density control, a button that steps to the next mode on each click (its title 'Density: MODE (click to cycle)', ui/packages/plugin-list/src/ListView.tsx; QA run #33861 met it in the Display popover), not a menu of options — three modes, Compact / Comfortable / Spacious, stored as rowHeight compact / medium / tall (the spec's five row heights compact/short/medium/tall/extra_tall narrow onto these three: objectui core normalize-list-view.ts DENSITY_MODE_TO_ROW_HEIGHT / ROW_HEIGHT_TO_DENSITY_MODE)",
"resize a column (reorder two columns only on a grid that sets reorderableColumns; there is no runtime pin control — acceptance[0]), and set a row height on the Row height level of the list's options menu (the toolbar's options trigger, then 行高 / Row height: three choices, 紧凑 / 标准 / 宽松 — Compact / Standard / Spacious, ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx; a gallery's Row height level picks its card size the same way) — three modes, stored as rowHeight compact / medium / tall (the spec's five row heights compact/short/medium/tall/extra_tall narrow onto these three: objectui core normalize-list-view.ts DENSITY_MODE_TO_ROW_HEIGHT / ROW_HEIGHT_TO_DENSITY_MODE)",
"reload; confirm the columnState (widths, and the order where reorder is enabled) and row-height restored — they now persist in the signed-in user's own list preference, sys_user_preference ui.list.showcase_task (perView.<view>.columnState / rowHeight, objectui#12418), with localStorage grid-columns-showcase_task[-<viewId>] as the component's cache; the old per-view override through dataSource.updateViewConfig is retired (objectui#12504). Also reload in a FRESH browser context as the same user: the layout follows the user",
"group-by status ('Add group field' pre-selects the first field, Title, and groups at once, so switch it to Status). A runtime grouping lives in the list's URL (uf__group, ui/packages/app-shell/src/views/objectViewListUrlState.ts), not in sys_user_preference: reloading that URL keeps it, a reload of the bare list URL reopens on the view's own grouping by design, and steps[6] reads it that way (QA run #33861). Confirm per-group headers appear and each group shows its record count — summarizeField (estimate_hours) is declared on the KANBAN config of task.view.ts, not on the grid, so grid groups carry counts; clear grouping and confirm the headers are removed cleanly",
"cross-check each group's count against a direct per-group server count (GET /api/v1/data/showcase_task filtered to that status, read its total)",
Expand All @@ -3563,7 +3563,7 @@
"evidence": "before/after-reload screenshots + the storage value"
},
{
"clause": "the toolbar density persists across reload (Compact / Comfortable / Spacious — the runtime control offers three modes over the spec's five rowHeight values)",
"clause": "the toolbar row height persists across reload (Compact / Standard / Spacious — the runtime control offers three modes over the spec's five rowHeight values)",
"oracle": "dom",
"verify": "the reloaded grid renders at the chosen density (ObjectGrid rowHeightMode), and the preference row's rowHeight reads compact / medium / tall for the three modes",
"evidence": "before/after screenshots"
Expand Down Expand Up @@ -3644,6 +3644,12 @@
"date": "2026-11-15",
"change": "steps[1] names the density control as one cycling button, and steps[3] says a runtime group-by persists in the URL (uf__group), not in the user's list preference, so a bare-URL reload drops it by design; 'Add group field' groups by the first field at once. QA run #33861, ledger row 142. No clause changed. Ledger 6896511848 of the v18.5.0 sweep anchor #33761, carried by batch-A card #33963; read at base 895783a1.",
"ref": "#33990"
},
{
"revision": 8,
"date": "2026-11-19",
"change": "steps[1] and acceptance[1].clause re-pointed to the options menu's Row height level: three named choices (紧凑 / 标准 / 宽松, Compact / Standard / Spacious) replace the cycling density button, on a grid and on a gallery (its card size). Stored values unchanged (rowHeight compact / medium / tall). No clause's meaning changed.",
"ref": "#35551"
}
]
},
Expand All @@ -3652,7 +3658,7 @@
"title": "Admin saved-view lifecycle: create kanban via dialog (staged as a per-item draft, live only after Publish), rename/set-default/pin/delete each hit the meta overlay and survive reload; non-admin affordances absent and server-refused",
"since": "v16",
"status": "active",
"revision": 3,
"revision": 4,
"priority": "P2",
"surface": "browser",
"personas": [
Expand All @@ -3671,19 +3677,21 @@
},
"variants": [
"create-kanban",
"create-in-place",
"rename",
"set-default",
"pin",
"delete"
],
"steps": [
"as admin, open showcase_task; open the Create View dialog; choose kanban; set groupByField = status; create — capture PUT /api/v1/meta/view/<name>?mode=draft (the console's create handler → createRuntimeMetadata → metadataClient.save(…, {mode:'draft'}): ADR-0034 stages every runtime-created view as an invisible per-item draft under the qualified name showcase_task.<key>) carrying {type:'kanban', kanban:{groupByField:'status'}}; the console lands on view/<name>?preview=draft",
"as admin, open showcase_task; open the Create View dialog (the view dropdown's 管理视图 / Manage views, then its Add new view: the dropdown's own 添加视图 creates in place since #35553, steps[6]); choose kanban; set groupByField = status; create — capture PUT /api/v1/meta/view/<name>?mode=draft (the console's create handler → createRuntimeMetadata → metadataClient.save(…, {mode:'draft'}): ADR-0034 stages every runtime-created view as an invisible per-item draft under the qualified name showcase_task.<key>) carrying {type:'kanban', kanban:{groupByField:'status'}}; the console lands on view/<name>?preview=draft",
"click Publish on the draft-preview bar — capture POST /api/v1/meta/view/<name>/publish (meta.publishItem); then reload WITHOUT ?preview=draft and confirm the new kanban view is live and groups by status. Before the publish, a plain (published-only) read does not serve it — the draft isolation itself is studio-authoring.view-authoring-live's to score",
"rename the view via Manage Views; capture the PUT; reload confirms the new label",
"set the view as default (unsets the prior default); capture the PUT(s). Where the prior default is a packaged view, its unset goes through the customization pair, POST /api/v1/packages/BASE/ensure-customization (BASE the view's package, com.example.showcase) then a PUT with ?package=com.example.showcase.custom, so the PUTs come in two shapes (QA run #33861); reload confirms the default moved",
"pin the view; capture the PUT (isPinned); reload confirms it pinned",
"delete the view; capture DELETE /api/v1/meta/view/<name>; reload confirms it is gone",
"as the non-admin, open the same object; confirm the create-view and manage-views (rename/default/pin/delete) affordances are ABSENT",
"as the admin, open the view dropdown (the view bar's switcher) and use 添加视图 / Add view at its foot: the dropdown turns into the create card (name, view type with icons, the one field the type needs — kanban: the group field — 包含当前的筛选和排序 while the list holds unsaved filters or sort, on by default, and a personal / shared switch for a reader who may create shared views). Create a kanban grouped by status with the switch left on personal: capture the write — one of the reader's own views, a sys_personal_view row whose config carries {type:'kanban', kanban:{groupByField:'status', columns:[…]}} — and confirm the list opens on it and it is listed under 我的视图 / My views in the dropdown. Repeat once with the switch on shared: the same draft PUT …?mode=draft and ?preview=draft landing as steps[0], under a machine key generated from the name (no key field is asked for). Count the clicks from the dropdown to the open new view",
"as the non-admin, open the same object; confirm the shared-view create (the Create View dialog, and the create card's personal / shared switch — the dropdown's 添加视图 stays where the reader may save views of their own, and creates only those) and the manage-views (rename/default/pin/delete) affordances are ABSENT",
"as the non-admin, forge a direct PUT /api/v1/meta/view/<name>; capture the refusal"
],
"acceptance": [
Expand All @@ -3700,7 +3708,13 @@
"evidence": "the four traces + post-reload states"
},
{
"clause": "the non-admin lacks the mutation affordances: the create-view control and the Manage Views rename/default/pin/delete actions are ABSENT (ManageViewsDialog suppresses mutation affordances for system/read-only)",
"clause": "the dropdown's Add view creates in place: by default one of the reader's OWN views (a sys_personal_view row, no metadata write), opened at once; with the shared switch, the same draft-first create as acceptance[0], its machine key generated (unique among the object's views) and never asked for. The card offers the shared switch only to a reader who may create shared views",
"oracle": "network",
"verify": "the captured sys_personal_view create (personal) and the draft PUT + ?preview=draft landing (shared); the dropdown lists the new view under My views (personal) after a reload; the non-admin's card shows no shared switch",
"evidence": "the two create traces + the dropdown screenshot + the click count"
},
{
"clause": "the non-admin lacks the mutation affordances: the shared-view create (the Create View dialog and the create card's shared switch; 添加视图 itself stays, for the reader's own views only) and the Manage Views rename/default/pin/delete actions are ABSENT (ManageViewsDialog suppresses mutation affordances for system/read-only)",
"oracle": "dom",
"verify": "after a screenshot confirms the object opened, the DOM shows no create-view / manage mutation controls for the non-admin",
"evidence": "the non-admin screenshot"
Expand Down Expand Up @@ -3745,6 +3759,12 @@
"date": "2026-11-15",
"change": "steps[3] names the two PUT shapes: unsetting a packaged prior default goes through the customization pair (ensure-customization, then PUT ?package=com.example.showcase.custom), not a plain PUT. The clause still holds. QA run #33861, ledger row 151. No clause changed. Ledger 6896511848 of the v18.5.0 sweep anchor #33761, carried by batch-A card #33963; read at base 895783a1.",
"ref": "#33990"
},
{
"revision": 4,
"date": "2026-11-19",
"change": "added the create-in-place variant, a step before the non-admin steps and an acceptance clause before the non-admin clause: the view dropdown's Add view turns into a create card that makes one of the reader's own views by default (sys_personal_view, opened at once) or, through the shared switch for a reader allowed to, the same draft-first create as acceptance[0] under a generated machine key. The non-admin clause (acceptance[3]) and steps[7] now name the SHARED-view create as the absent affordance, since 添加视图 stays for a reader who may save views of their own and creates only those (the separate Save as my view entry folded into the card); steps[0] says the Create View dialog opens from Manage views. The other clauses are unchanged.",
"ref": "#35553"
}
]
},
Expand Down
20 changes: 9 additions & 11 deletions ui/e2e/live/user-filters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,25 @@ test.describe('ADR-0053 interface mode — Task Triage tabs element', () => {
});

test.describe('ADR-0047 data mode — viz dropdown', () => {
test('visualization switcher is a single dropdown offering the whitelist', async ({ page }) => {
test('visualization switcher is a single list offering the whitelist', async ({ page }) => {
await page.goto('/apps/showcase_app/showcase_task');

// The switcher lives in the toolbar's Display popover.
// The switcher is the Layout level of the toolbar's Display menu.
await page.getByTestId('toolbar-display-trigger').click();
const trigger = page.getByTestId('view-switcher-dropdown');
await expect(trigger).toBeVisible();
await trigger.click();
// The open switcher's own list, found through the trigger's aria-controls.
const menu = page.locator(`[id="${await trigger.getAttribute('aria-controls')}"]`);
await page.getByTestId('options-row-layout').click();
const menu = page.getByTestId('view-switcher-list');
await expect(menu).toBeVisible();

// Whitelist: the default task list's `appearance.allowedVisualizations`
// (grid, kanban, gallery, calendar, timeline, gantt) — and nothing else.
// Map and chart are declared on this object as their own named views and
// stay out of the switcher.
await expect(menu.getByRole('button')).toHaveText(['Grid', 'Kanban', 'Gallery', 'Calendar', 'Timeline', 'Gantt']);
await expect(menu.getByRole('radio')).toHaveText(['Grid', 'Kanban', 'Gallery', 'Calendar', 'Timeline', 'Gantt']);

// Switching actually swaps the renderer; the trigger names the new one.
await menu.getByRole('button', { name: 'Kanban' }).click();
// Switching actually swaps the renderer; the Layout row names the new one.
await menu.getByRole('radio', { name: 'Kanban' }).click();
await page.getByTestId('toolbar-display-trigger').click();
await expect(trigger).toContainText('Kanban');
await expect(page.getByTestId('options-row-layout-value')).toContainText('Kanban');
});
});

Expand Down
Loading
Loading