LearnNewsExamplesConnect
Frontmatter
assigneesNaingzwehtut
createdAtNov 16, 2026, 8:25 PM
updatedAtNov 17, 2026, 5:05 PM
githubUrlhttps://github.com/neomjs/neo/issues/21188
authorneo-fable-clio
commentsCount7
parentIssue21175
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined3
signals[]
blockedBy[]
blocking[]
closedAtNov 17, 2026, 5:05 PM

A grid example exports what it shows as CSV

Closed v14.0.0/archive-v14-0-0-chunk-3 enhancementhelp wantedgood first issueaigrid
neo-fable-clio
neo-fable-clio commented on Nov 16, 2026, 8:25 PM

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

Context

New example 4 of the Grid & Table slate (#21142), a leaf of #21175 (the Grid & Table group, under #21140). The visitor's question: can the data leave the grid?

The Problem

The grid exports its rows as CSV since #20380: toCsv() returns the text and exportCsv() downloads it (src/grid/Container.mjs:1915 and :1954 on dev c40689ef53). No example and no app of this repository calls either. Export is one of the first things a buyer of a grid asks for, and the examples section cannot show it.

The Architectural Reality

  • toCsv({delimiter, escapeFormulas, header}): escapeFormulas defaults to true and guards a cell that starts with =, +, - or @ against being run by a spreadsheet (:1927).
  • exportCsv({fileName, ...options}) hands the text to the main thread, since a worker cannot start a download (:1948).
  • #20380 decided what is exported: the store's records, never the rendered rows, with a column's exportRenderer for a formatted value. It left out Excel files, unloaded remote pages and a selection-only export.
  • The Grids guide covers both methods since #20676 (learn/guides/datahandling/Grids.md).
  • examples/grid/headerGroups is the model for the page: its own viewport, a headline, one instruction line, a theme button, both themes.
  • Placement: a sibling folder examples/grid/<feature>/.
  • Design authority: n/a, a new example.

The Fix

  1. A new folder examples/grid/export, after the headerGroups model.
  2. A sheet worth exporting, 200 to 500 rows, for example invoices: a number, a customer, a date, an amount shown as currency, a status.
  3. A filter field and sortable headers, so "what it shows" can change.
  4. Two buttons: "Export CSV" calls exportCsv(). "Show CSV" puts the first 20 lines of toCsv() into a read-only pane beside the grid, so the proof needs no file and works on a phone.
  5. A delimiter choice (comma or semicolon) and one row whose text starts with =, so the escaping shows in the pane.
  6. A new catalog record with the group grid-table, feature and lookFor.

Acceptance Criteria

  • After a filter and a sort, the pane's lines are the grid's rows in the grid's order, and a spec under test/playwright/e2e/grid/ asserts it.
  • "Export CSV" starts a download; the spec waits for the download event and reads its first line.
  • The formatted amount arrives as the PR says it should (raw or formatted), by exportRenderer where needed.
  • The formula-like cell arrives escaped, and the pane shows it.
  • The PR states what the export contains when a column is hidden or pinned, as observed. A result that contradicts #20380 is filed, not worked around.
  • 1440 × 900 and 390 × 844; both themes; both buttons reachable by keyboard.
  • Look: the first frame and one with the pane open, 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

Excel files, a selection-only export and remote pages (all left out by #20380); changes to toCsv() or exportCsv().

Avoided Traps

  • A button and nothing to see. A download a visitor has to open proves little; the pane is the proof.
  • Exporting the rendered rows. #20380 ruled it out: a buffered grid renders a window.

Related

Parent #21175 · the slate #21142 · #21140 · #20380 (the export, closed) · #20676 (the guide, closed) · #20500 (the family's captions, closed).

unowned-rationale: Ready for a contributor; 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 ("csv export grid example"; Out of Scope and Avoided Traps of #20380 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: "grid CSV export example toCsv exportCsv no caller preview pane escapeFormulas"

📜 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).

08abhinav
08abhinav Nov 17, 2026, 8:33 AM

/unclaim

  • 2026-11-17T07:34:25Z @github-actions assigned to @08abhinav

@github-actions - 2026-11-17T07:34:26Z

Thanks for claiming this, @08abhinav, 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]

Naingzwehtut referenced in commit 701423a - "PR screenshots for #21188: desktop-dark-first-frame.png" on Nov 17, 2026, 8:43 AM
Naingzwehtut referenced in commit 01096b7 - "PR screenshots for #21188: desktop-dark-pane-open.png" on Nov 17, 2026, 8:43 AM
Naingzwehtut referenced in commit 0da0e7b - "PR screenshots for #21188: desktop-light-first-frame.png" on Nov 17, 2026, 8:43 AM
Naingzwehtut referenced in commit ceb14ef - "PR screenshots for #21188: desktop-light-pane-open.png" on Nov 17, 2026, 8:43 AM
Naingzwehtut referenced in commit 6207ac1 - "PR screenshots for #21188: grid-export-14.jpg" on Nov 17, 2026, 8:43 AM
Naingzwehtut referenced in commit 86593db - "PR screenshots for #21188: phone-dark-first-frame.png" on Nov 17, 2026, 8:44 AM
Naingzwehtut referenced in commit 7f241cc - "PR screenshots for #21188: phone-dark-pane-open.png" on Nov 17, 2026, 8:44 AM
Naingzwehtut referenced in commit 164a728 - "PR screenshots for #21188: phone-light-first-frame.png" on Nov 17, 2026, 8:44 AM
Naingzwehtut referenced in commit 488fac8 - "PR screenshots for #21188: phone-light-pane-open.png" on Nov 17, 2026, 8:44 AM
Naingzwehtut cross-referenced by PR #21240 on Nov 17, 2026, 8:45 AM
Naingzwehtut cross-referenced by PR #98 on Nov 17, 2026, 8:47 AM
Naingzwehtut
Naingzwehtut Nov 17, 2026, 8:48 AM

Sorry for the noise here. My claim command got mangled by my Windows shell (it posted as a file path, which I've now deleted), so I didn't see that @08abhinav had claimed this and went ahead with #21240 and neomjs/pages#98.

@08abhinav, the issue is yours. I've moved both PRs to draft and I'm stepping back. If you or the maintainers find anything in them useful, feel free to take it; otherwise I'll close them.

08abhinav
08abhinav Nov 17, 2026, 9:38 AM

Hey @Naingzwehtut, no worries at all, since you've already put in the work on those PRs, don't worry I am unclaiming it. please unassign me

Naingzwehtut
Naingzwehtut Nov 17, 2026, 9:42 AM

Thanks a lot, @08abhinav! The bot only reacts to new comments, so could you post /unclaim as a fresh comment? Then I'll claim it and move #21240 and neomjs/pages#98 back to ready for review.

  • 2026-11-17T08:42:59Z @github-actions assigned to @Naingzwehtut
  • 2026-11-17T08:43:00Z @github-actions unassigned from @08abhinav

@github-actions - 2026-11-17T08:43:01Z

Thanks for claiming this, @Naingzwehtut, 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]

Naingzwehtut referenced in commit 5f5e94f - "feat(examples): a grid that exports what it shows as CSV (#21188) on Nov 17, 2026, 1:13 PM
Naingzwehtut referenced in commit 19cf8ce - "test(portal): count the export example in the Grid & Table family (#21188) on Nov 17, 2026, 1:13 PM
Naingzwehtut referenced in commit c4f4b01 - "feat(examples): a grid that exports what it shows as CSV (#21188) on Nov 17, 2026, 1:23 PM
Naingzwehtut referenced in commit 280f5f6 - "test(portal): count the export example in the Grid & Table family (#21188) on Nov 17, 2026, 1:23 PM
Naingzwehtut referenced in commit 3269ade - "feat(examples): a grid that exports what it shows as CSV (#21188) on Nov 17, 2026, 4:18 PM
Naingzwehtut referenced in commit ab2cd19 - "test(portal): count the export example in the Grid & Table family (#21188) on Nov 17, 2026, 4:18 PM
Naingzwehtut referenced in commit 1ddbffd - "fix(examples): the export example shares its width and releases its Store (#21188) on Nov 17, 2026, 4:18 PM
Naingzwehtut referenced in commit 9aaf3e9 - "PR screenshots v2 for #21188: desktop-light-first-frame" on Nov 17, 2026, 4:18 PM
Naingzwehtut referenced in commit d948a9d - "PR screenshots v2 for #21188: desktop-dark-first-frame" on Nov 17, 2026, 4:18 PM
Naingzwehtut referenced in commit 56644c6 - "PR screenshots v2 for #21188: desktop-light-pane-open" on Nov 17, 2026, 4:18 PM
Naingzwehtut referenced in commit b8783bf - "PR screenshots v2 for #21188: phone-light-first-frame" on Nov 17, 2026, 4:18 PM
tobiu referenced in commit 9137872 - "feat(examples): a grid that exports what it shows as CSV (#21188) (#21240) on Nov 17, 2026, 5:05 PM
tobiu closed this issue on Nov 17, 2026, 5:05 PM