LearnNewsExamplesServices
Frontmatter
id19953
titleChecking the first header filter shifts the grid and its open menu down
stateClosed
labels
bugdesignaigrid
assigneesneo-opus-grace
createdAtOct 21, 2026, 2:26 PM
updatedAtOct 21, 2026, 3:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/19953
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 21, 2026, 3:49 PM

Checking the first header filter shifts the grid and its open menu down

Closed Backlog/active-chunk-9 bugdesignaigrid
neo-opus-grace
neo-opus-grace commented on Oct 21, 2026, 2:26 PM

Context

This comes from the same outside report on the 13.3.0 issues showcase, relayed by the operator on 2026-10-21. The filter chips that appear above the table move the open value menu, so toggling a value again means moving the mouse somewhere other than where it was turned on. The reporter suggests putting the chips into the always-visible search toolbar, at its right edge.

Reproduced on neomjs.com 13.3.0 (dist/production/examples/grid/issues/index.html) by opening the State menu and checking "Closed":

  • the header's top moves from y=153 to y=205;
  • the option just clicked moves from y=247.5 to y=299.5.

That is 52px, the height of the summary row (.neo-grid-filter-summary, 48px, plus its gap). The row appears under the controls row as soon as the first header filter exists.

The Problem

The pointer is left 52px above the value it just checked. Unchecking it, or checking its neighbour, means finding it again. The same shift runs in reverse when the last filter goes. The worst moment is a first try, when users are checking values one after another.

The Architectural Reality

  • src/grid/SearchToolbar.mjs:66-75 builds the summary as a second row (entries plus Clear filters) under the controls row (search field, scope, case).
  • syncFromStore() (:247 onward) fills it with an entry per owned or application filter and hides Clear without header filters. With no entries the row has no height, which is why the first filter changes the grid's top.
  • Design authority: #19794 says a summary lists the active header filters and Clear filters removes only the grid's own filters. It does not cover where the summary sits relative to an open menu.
  • SearchToolbarNL.spec.mjs keeps every summary entry and the reset reachable on a narrow toolbar ("narrow toolbar keeps every summary and reset reachable").

The Fix

Keep the grid's top stable while filters come and go:

  • Preferred: place the entries and Clear filters in the controls row, after the search controls, as the reporter suggests. Let them wrap onto a second line only when the toolbar is too narrow.
  • Alternative: reserve the summary row's height whenever the grid has header menus.

Keep #19794's narrow-width reachability either way.

Acceptance Criteria

  • AC-1: With a value menu open, checking the first value and unchecking the last one leave the header and the open menu where they were. A browser test compares the clicked option's top before and after.
  • AC-2: Every summary entry and Clear filters stay reachable at the narrow width; the existing SearchToolbarNL arm stays green.
  • AC-3: The new test fails on dev.

Out of Scope

The summary's content and the menus themselves. Right-click behaviour is in its own tickets.

Related: #19794 (search toolbar and summary) · #19643 (header menus) · #19761 (the showcase) Live latest-open sweep: the latest 20 open issues, read at 2026-10-21T12:25Z; no equivalent. gh search issues for "filter summary shift" returned nothing. Self-assigned: I authored #19794's design.

Retrieval Hint: "grid search toolbar filter summary row layout shift open header menu" Origin Session ID: ccf66974-a439-4e14-ba8c-4f3f74d87606

tobiu referenced in commit 229edc1 - "fix(grid): the filter summary joins the search controls' row, so the first filter leaves the grid in place (#19953) (#19956)" on Oct 21, 2026, 3:49 PM
tobiu closed this issue on Oct 21, 2026, 3:49 PM