Repository navigation
Description
Problem
In the sheet and CSV grids, a cell whose text runs past 160 pixels is cut off with an ellipsis, and nothing in either reader shows the rest.
- Every column renders at one fixed width —
width: 160px; max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsison everyth, td(ui-packages/web/src/features/reader/xlsx-reader/style.module.scss:72-81) — regardless of what the cell holds. There is no column resizing and no wrapping. - Each cell is a plain
<td>{cellText(...)}</td>with notitle, no click handler, no focus target (features/reader/xlsx-reader/sheet-grid.tsx:88-90). A "Notes" or comment column with a sentence per row reads as its first few words everywhere in the sheet. cellTextalso collapses a cell's internal line structure to single spaces (formats/xlsx.ts:74-79), so even the fragment shown has already lost the author's breaks.- The same grid renders CSV (
features/reader/csv-reader.tsx:32), so both formats clip.
The assistant reads what the reader cannot: sheet_read returns the whole cell (formats/xlsx.ts:110-122, features/assistant/xlsx/tools.ts), so asking "what does E12 say?" works while reading E12 directly does not — the asymmetry #68 filed for PDF search, in the grid. Every other long thing in the app opens to its full size: images in documents (#169), the lightbox, HTML pages; the clipped cell is the one content the reader can see but not reach.
Proposal
- Make a cell openable: clicking or keyboard-activating a cell shows its whole text in a small popover anchored at the cell — wrapped and scrollable, headed by its coordinates (e.g.
E12) in the same coordinate language the grid and the assistant already share. The app already leans on Radix Popover for this shape of detail (the sync status Details,features/source/sync-status.tsx:31-56). - Cells that fit their column behave exactly as today; the fixed 160px layout and the virtualized rows are unchanged.
Goal
After this, any cell in an xlsx or CSV grid whose text is cut by the ellipsis can be opened — by pointer and by keyboard — to its full content, and cells that fit are untouched; the grid no longer shows text the reader has no way to read.
Verification
grep -rEq "onClick|tabIndex|Popover" ui-packages/web/src/features/reader/xlsx-reader/sheet-grid.tsx
pnpm --filter @gamma-reader/web test --silent
pnpm --filter @gamma-reader/web exec vitest run --project unit src/features/reader/xlsx-reader/xlsx-reader.test.tsx
pnpm check(the test to add with the change: render SheetGrid with a cell longer than 160px can hold, activate the cell, and assert the full text with its coordinates is shown — today the td has no activation and no such test can pass; a keyboard path to the same popover is part of the same test)
Refs
- ui-packages/web/src/features/reader/xlsx-reader/style.module.scss:72-81 — one fixed 160px column width for everything, nowrap, ellipsis
- ui-packages/web/src/features/reader/xlsx-reader/sheet-grid.tsx:88-90 — a plain text
td, with no way in - ui-packages/web/src/formats/xlsx.ts:74-79 —
cellText, which also flattens the cell's own line breaks - ui-packages/web/src/features/reader/csv-reader.tsx:32 — the CSV grid is the same
SheetGrid, so both formats clip - ui-packages/web/src/formats/xlsx.ts:110-122, ui-packages/web/src/features/assistant/xlsx/tools.ts — the assistant's
sheet_readreturns the whole cell - ui-packages/web/src/features/source/sync-status.tsx:31-56 — the existing Details popover pattern this can reuse
- Let readers click an image in a document to see it full-size — every other image in the app opens larger, but one in the text does not #169 — open-to-full-size for images in documents; this is the grid's counterpart
- Let the reader search inside a PDF — Ctrl+F sees only the page on screen, while the assistant has a search tool #68 — the same reader-vs-assistant asymmetry, filed for PDF search
- Show spreadsheet numbers as the sheet states them — a percent cell reads 0.153 where Excel says 15.3%, for reader and assistant alike #161, Show spreadsheet cells that hold an error or an unsolved formula — today both render blank to reader and assistant #157, Show a merged cell as merged — its value stops at the top-left square today, leaving blank runs that reader and assistant both read as empty #170 — neighboring gaps about what a cell's value is; this one is about reaching its text at all
- ui-packages/web/PRODUCT.md — "Keep reading as the largest and quietest part of the workspace"; a value the reader cannot read is not reading
Activity
bencode commentedon Oct 23, 2026
Independent review — posted by the scheduled issue-reviewer loop (independent of the authoring session), against
main@90b046f.Evidence audit: all citations confirmed.
style.module.scss:72-81— everyth, tdfixed 160px, nowrap, ellipsis;sheet-grid.tsx:88-90— the cell is a plain<td>{cellText(...)}</td>, no title, handler, or focus target.formats/xlsx.ts:74-79—cellTextcollapses internal whitespace (.replace(/\s+/gu, ' ')), so the shown fragment loses the author's breaks;csv-reader.tsx:32renders CSV through the sameSheetGrid.sheet_read(features/assistant/xlsx/tools.ts) returns the untruncated cell. One precision note:selectCellsalso routes throughcellText, so the assistant reads the full-but-flattened text — the asymmetry is the 160px truncation, exactly as filed.sync-status.tsx, the Details component) andPRODUCT.md:35("Keep reading as the largest and quietest part of the workspace") both check out.Duplicate check: none — #161/#157/#170/#178 are about what a cell's value is; this is about reaching its text at all; #69 is sheet search; #169 is the cross-referenced images counterpart.
Sensor + a defect found: lint ✓, but
verifypassed vacuously —xlsx-reader.test.tsxexists and is green on main while the feature is absent (no activation anywhere in the grid), the same suite-only Verification shape that burned #41/#55 and that this loop just fixed on #205/#206.Verification block edited (logged per policy): added as its first line
grep -rEq "onClick|tabIndex|Popover" ui-packages/web/src/features/reader/xlsx-reader/sheet-grid.tsx— pointer activation, keyboard focusability, or the named Popover reuse: any implementation of an openable cell must add one of the three to this file (zero matches on main;
onScrollon the container deliberately not matched). Re-linted ✓; verify now ✗ on main as it should be.Verdict: valid, keep open.