From fa1bd4305c7df85e91bad93adce4c000d6d7aa6a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 03:34:30 +0000 Subject: [PATCH 1/4] fix(plugin-list): Refresh alone no longer draws the Display entry in the default toolbar The default (Display) toolbar has no Refresh, so userActions.refresh is dropped from displayOffered; the Refresh comment and the spec describe say the key governs only the wide toolbar's Refresh. Claude-Session: https://claude.ai/code/session_01FEkQ5oY5WCqqqBMtn9qt7m Co-authored-by: Claude --- packages/spec/src/ui/view.zod.ts | 2 +- ui/packages/plugin-list/src/ListView.tsx | 12 +-- .../src/__tests__/ListView.harness.test.tsx | 76 +++++++++++++++++++ 3 files changed, 84 insertions(+), 6 deletions(-) diff --git a/packages/spec/src/ui/view.zod.ts b/packages/spec/src/ui/view.zod.ts index faf5646372f..77f7e0bd6aa 100644 --- a/packages/spec/src/ui/view.zod.ts +++ b/packages/spec/src/ui/view.zod.ts @@ -1968,7 +1968,7 @@ export const UserActionsConfigSchema = lazySchema(() => strictObject({ sort: z.boolean().default(true).describe('Allow users to sort records'), search: z.boolean().default(true).describe('Allow users to search records'), filter: z.boolean().default(true).describe('Allow users to filter records'), - refresh: z.boolean().default(true).describe('Allow users to reload the view data from the backend without a full page reload'), + refresh: z.boolean().default(true).describe('Allow users to reload the view data from the backend without a full page reload. Governs only the wide toolbar\'s Refresh button (`compactToolbar: false`): the default toolbar has no Refresh, so the toggle changes nothing there.'), rowHeight: z.boolean().default(true).describe('Allow users to toggle row height/density'), group: z.boolean().default(true).describe('Allow users to change record grouping from the toolbar. Toggle only — the grouping itself is configured in the view-level `grouping` block.'), addRecordForm: z.boolean().default(false).describe('Add records through a form instead of inline'), diff --git a/ui/packages/plugin-list/src/ListView.tsx b/ui/packages/plugin-list/src/ListView.tsx index 3bbffca603b..d73fea0c8c7 100644 --- a/ui/packages/plugin-list/src/ListView.tsx +++ b/ui/packages/plugin-list/src/ListView.tsx @@ -6992,10 +6992,12 @@ export const ListView = React.forwardRef(({ }, [shownRowsKey, shownRowsSettled]); // The Display panel (objectui#12423) is the default form of the toolbar's - // settings cluster, drawn whenever it has a control to offer. + // settings cluster, drawn whenever it has a control to offer. Refresh is not + // one of them: the default toolbar has no Refresh (objectstack#35878), so + // `userActions.refresh` alone never draws the panel (objectstack#36002). const displayOffered = toolbarFlags.compactToolbar && !!( viewSwitcherOffered || toolbarFlags.showGroup || toolbarFlags.showColor || toolbarFlags.showDensity - || toolbarFlags.showHideFields || currentView === 'grid' || toolbarFlags.showRefresh + || toolbarFlags.showHideFields || currentView === 'grid' || (resolvedExportOptions && exportPermitted && exportableFormats.length > 0) ); // The condition controls (objectstack#35549, objectstack#35550): the Filter @@ -7777,9 +7779,9 @@ export const ListView = React.forwardRef(({ {/* Refresh — re-fetch the current view from the backend without a full page reload. Filters / sort / pagination / search all live in component state, - so bumping refreshKey re-queries while preserving the view. In the wide - form a bar button (mobile + desktop); in the Display form it sits in - the panel's footer. */} + so bumping refreshKey re-queries while preserving the view. Wide form + only, a bar button (mobile + desktop): the default (Display) toolbar + has no Refresh, neither on the bar nor in the panel (objectstack#35878). */} {toolbarFlags.showRefresh && !toolbarFlags.compactToolbar && (