LearnNewsExamplesConnect
Frontmatter
assignees02Aditya2323
createdAtNov 16, 2026, 8:26 PM
updatedAtNov 19, 2026, 5:51 AM
githubUrlhttps://github.com/neomjs/neo/issues/21189
authorneo-fable-clio
commentsCount4
parentIssue21175
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined4
signals[]
blockedBy[]
blocking[]
closedAtNov 19, 2026, 5:51 AM

A grid example pages, sorts and filters against a simulated server

Closed v14.0.0/archive-v14-0-0-chunk-3 enhancementhelp wantedaigrid
neo-fable-clio
neo-fable-clio commented on Nov 16, 2026, 8:26 PM

Please comment to claim before starting; check current assignees and linked PRs.

Context

New example 5 of the Grid & Table slate (#21142), a leaf of #21175 (the Grid & Table group, under #21140). The visitor's question: how does the grid page, sort and filter against an API?

No good first issue label: where the simulated server lives is settled at intake (The Fix, step 1).

The Problem

Every example of the group holds all its rows in the browser. A buyer with a million rows behind an API cannot see the grid ask a server for one page. The store can: pageSize, remoteSort and remoteFilter. The one example that tries, examples/toolbar/paging, calls a backend no static host has and opens with headers and zero rows. And examples/serverside/gridContainer loads a view's config from JSON, which is not a server-side row model (#20500 named that trap).

The Architectural Reality

  • src/data/Store.mjs on dev c40689ef53: currentPage_ (:174), pageSize_ (:222), remoteFilter (:244), remoteSort (:250), totalCount (:260). load() (:1204) builds {page, pageSize} (:1230), adds the filters and the sorters when they are remote (:1237, :1241), reads through the store's pipeline (:1305) and takes items and totalCount from the response (:1310).
  • A pipeline is a connection, a parser and a normalizer (learn/guides/datahandling/DataPipelines.md); the connections are under src/data/connection/.
  • The paging toolbar is src/toolbar/Paging.mjs. examples/toolbar/paging shows its config, with api: 'MyApp.backend.UserService' on the store (store/Users.mjs:18).
  • The gate of 7 Nov on #20498 counts a server-side example only with a backend a static host can serve.
  • examples/grid/headerGroups is the model for the page. Placement: a sibling folder examples/grid/<feature>/.
  • Design authority: n/a, a new example.

The Fix

  1. The server is simulated inside the example. Intended shape: a connection class in the example's folder that answers a read with one page of a generated dataset of 100,000 rows, sorted and filtered as asked, with the total count, after a short delay. Confirm at intake that a store's pipeline takes a connection of the example's own. If it does not, file the gap as its own ticket and say so here; a service worker that fakes HTTP is not the fallback, since the engine has a service worker of its own.
  2. A new folder examples/grid/serverSide with a grid, the paging toolbar, sortable headers and one filter.
  3. A request line in the frame, for example "page 3 · sort: amount, descending · filter: country = DE · 50 of 12,431 rows · 40 ms", updated on every request, so a visitor sees that each gesture asks the server.
  4. A new catalog record with the group grid-table, and a scope that says the server is simulated.

Acceptance Criteria

  • The store never holds more than one page: after any gesture its count equals the page size, while the frame shows the total.
  • A page change, a header sort and a filter each produce one request with the expected parameters; a spec under test/playwright/e2e/grid/ asserts all three.
  • The delay shows the grid's loading state, and the request line updates.
  • The example runs from a static host, with no server process.
  • The caption and the frame say that the server is simulated.
  • 1440 × 900 and 390 × 844; both themes; paging by keyboard.
  • Look: the first frame and one taken mid-request, at both sizes, are on the PR, and the design seat reads them before code review.
  • A catalog cover is shot with the producer of #20679 and is on neomjs/pages main before this PR merges: publishes() (apps/portal/model/Example.mjs:120) drops a record without image, and the family case of TabContainerController.spec.mjs turns red on one. That spec's covered ids and totals are recounted against the dev this PR rebases on.
  • If the data is generated, it is seeded, so the first frame, the cover and any spec that names first-frame content are the same on every load.

Out of Scope

Engine changes to the store, the pipeline or the paging toolbar; a real backend; infinite scrolling over remote data; repairing examples/toolbar/paging.

Avoided Traps

  • Loading everything and sorting locally. It looks the same and proves nothing; the first criterion catches it.
  • A JSON file per page. It cannot sort or filter.
  • Hiding that the server is simulated. A developer opens the network tab.

Related

Parent #21175 · the slate #21142 · #21140 · the gate on #20498 · #20500 (the trap, closed).

unowned-rationale: Ready for a contributor who has read the Data Pipelines guide; maintainers provide planning and review.

Live latest-open + closed sweep: latest 20 open, 68 open (red band, so this is a leaf of the owning epic #21175), open and closed search ("server-side grid example paging"; Out of Scope and Avoided Traps of #20500 read) at 2026-11-16T19:21Z: no equivalent. A2A in-flight sweep: latest 30 messages, all read-states, at 19:21Z: no claim. MC sweep ("Grid and Table examples read as toys: the same six names"): this slate's own trail, no prior decision. Own-assignment sweep: 7 open; #21142 and #21140 are the parents. Structure-map: N/A, a sibling folder under examples/grid/.

Decision Record impact: none.

Retrieval Hint: "server-side grid example remoteSort remoteFilter pageSize simulated server connection paging toolbar opens empty"

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code

Edited 17 Nov 2026: the cover and seed criteria follow the epic review of #21175 (comment).

02Aditya2323
02Aditya2323 Nov 17, 2026, 6:38 PM

/claim I would like to work on this issue.

@github-actions - 2026-11-17T17:38:57Z

Thanks, @02Aditya2323! You already hold #21261. From five merged pull requests you can hold two at once. Please claim this again once a slot opens.

An automatic reply. How claims work [QUARANTINED_URL: github.com]

02Aditya2323
02Aditya2323 Nov 17, 2026, 9:17 PM

/claim I have fixed the issue [QUARANTINED_URL: github.com] with my pr [QUARANTINED_URL: github.com] I would like to claim and work on this issue now.

  • 2026-11-17T20:21:25Z @github-actions assigned to @02Aditya2323

@github-actions - 2026-11-17T20:21:26Z

Thanks for claiming this, @02Aditya2323, and welcome! Assigned to you — you can start now.

Your claim reserves this issue for 3 days (any comment here resets the clock; we still merge the first approve-worthy PR if another lands first or a claim goes quiet).

An automatic reply. How claims work [QUARANTINED_URL: github.com]

  • 2026-11-17T20:28:28Z @neo-opus-vega cross-referenced by #21284
  • 2026-11-17T23:09:52Z @neo-opus-vega cross-referenced by PR #21285
  • 2026-11-18T13:23:57Z @neo-fable-clio cross-referenced by #21140
  • 2026-11-18T15:37:32Z @neo-fable-mnemosyne cross-referenced by #21358
  • 2026-11-18T16:20:01Z @neo-opus-vega cross-referenced by #21367
02Aditya2323 cross-referenced by PR #21384 on Nov 18, 2026, 7:05 PM
02Aditya2323 referenced in commit 477f720 - "chore: merge dev and reconcile example catalog counts (#21189)" on Nov 18, 2026, 7:14 PM
02Aditya2323 referenced in commit 0b2db60 - "fix(examples): address server-side grid review (#21189)" on Nov 18, 2026, 9:38 PM
02Aditya2323 referenced in commit 25a7972 - "chore: merge dev and reconcile catalog counts (#21189)" on Nov 18, 2026, 9:54 PM
02Aditya2323 referenced in commit c5de1af - "chore(portal): regenerate SEO after upstream merge (#21189)" on Nov 18, 2026, 9:54 PM
02Aditya2323 referenced in commit 74e81c6 - "chore(portal): align generated SEO lastmod (#21189)" on Nov 18, 2026, 9:54 PM
02Aditya2323 referenced in commit 3e03b46 - "fix(examples): vary seeded orders and format paging totals (#21189)" on Nov 19, 2026, 4:11 AM
02Aditya2323 referenced in commit 4abfd3a - "chore(portal): refresh SEO after grid review fixes (#21189)" on Nov 19, 2026, 4:11 AM