Repository navigation
Description
Problem
Spreadsheet authors mark meaning with style: a status column filled green or red, negative figures in red text, a superseded value struck through rather than deleted. Gamma Reader drops all of it. formats/xlsx-package.ts:67-81 reads only numFmtId from xl/styles.xml — the fillId and fontId every cell's xf also carries are never parsed, and conditional-format styles are not looked at; the cell model is value-only (formats/xlsx.ts:3); the grid renders plain text cells (features/reader/xlsx-reader/sheet-grid.tsx), and every agent view of a sheet is tab-separated text (sheetText/selectCells, formats/xlsx.ts:95-136). So a struck-through number reads as live data and a red-flagged row reads like any other — the meaning the author encoded in style reaches neither the reader nor the assistant, the same two-surface loss as the cell notes (#210) and hidden rows (#245).
Proposal
- Parse cell fills and font color/strike-through from
xl/styles.xml, alongside the number formats already read there. - Show fill and text color in the xlsx grid's cells, and strike-through as struck-through text.
- Carry the markings into the agent's sheet views, the way merged blocks and notes already travel — e.g. a struck value rendered
12.4 (struck), or a legend lineFilled red: B3, B9on the sheet's heading. - Static styling first; conditional-format rules can follow the same channel later.
Goal
After this, a question like "which rows did the author flag" or "is that figure still current" answers from what the workbook itself holds: the marking is visible in the grid and named in the assistant's reading of the sheet, instead of both surfaces reporting an unmarked value.
Verification
grep -q "fillId" ui-packages/web/src/formats/xlsx-package.ts
pnpm --filter @gamma-reader/web test --silent
pnpm checkRefs
- ui-packages/web/src/formats/xlsx-package.ts:67-81 — styles.xml read for number formats only
- ui-packages/web/src/formats/xlsx.ts:3, 95-136 — value-only cell model; the agent's tab-separated views
- ui-packages/web/src/features/reader/xlsx-reader/sheet-grid.tsx — plain text cells in the grid
- Show the notes an Excel author left on cells — they are in the workbook, but the preview and every agent path drop them today, so caveats like 'provisional, double-check' reach neither reader nor answers #210 — cell notes, the same two-surface shape, shipped; Say which rows and columns the workbook hides — today the data Excel kept out of sight sits as ordinary cells, and neither reader nor assistant can tell the author concealed it #245 — hidden rows, open, the author's concealment told
- 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 — number formats shipped through the same style parse; Show spreadsheet cells that hold an error or an unsolved formula — today both render blank to reader and assistant #157 — error cells surfaced the same way
Activity
bencode commentedon Oct 27, 2026
Independent review — posted by the scheduled issue-reviewer loop, independent of the authoring session, under the maintainer's standing instruction.
Evidence audit (against
main@ad4bc66): every citation confirmed.xlsx-package.ts:67-81—styleFormatsparsesnumFmt/cellXfsfornumFmtIdonly;fillId/fontIdappear nowhere informats/(grep clean).xlsx.ts:3—SheetCell = string | number | boolean | Date | null, value-only;sheetText(xlsx.ts:95) andselectCells(xlsx.ts:124) are tab-separated text.sheet-grid.tsx— zero fill/color/strike words; the grid renders plain text.Merged:legend line (xlsx.ts:107), so astruck/legend channel for markings is the established shape, not a new invention.Duplicate check: the cell-titled family (#245 hidden rows, #207 truncation, #157/#161/#170 error/number/merge fidelity) covers different dimensions — fills/font color/strike-through is unclaimed. No duplicate.
Sensor: lint ✓, verify ✗ — the
fillIdgate is red on main today (correctly: not implemented); as flagged on #253/#254,pnpm checkis also red on main right now for unrelated reasons, so the block can't pass until main is green.Verdict: valid, keep open — same two-surface (grid + agent view) shape as the shipped #161/#210 line, with the reuse path already proven by
Merged:.bencode commentedon Oct 29, 2026
Posted by the scheduled issue-reviewer loop, independent of the authoring session.
Re-audit @ d05b6b6 (stalest review; first review predated the 10-28 plugin commits) — still valid; stays open.
xlsx-package.ts:67-81is exactly thestyleFormatsblock —numFmtId/formatCodeonly, nofillId/fontIdread anywhere in the parse;xlsx.ts:3is the value-onlySheetCell;xlsx.ts:95-136coverssheetText/selectCells, both tab-separated and style-blind. The only commits touching these files since the first review were docs (4e4d736 moved a comment at xlsx.ts:141/167, outside every cited range).fillIdabsent, gate discriminates.fillId— a passing comment would satisfy it; anchor on a parsed attribute reaching the cell model (e.g. a fill/color field onSheetCell's style side orstyles.xml'sfillelement being read), and consider one grep asserting the grid imports/uses it, so the reader surface can't ship without the assistant surface or vice versa.bencode commentedon Nov 3, 2026
Posted by the scheduled issue-reviewer loop, independent of the authoring session.
Re-audit @
d05b6b6— third pass, quiet window (0 commits since the last re-audit at the same HEAD; no issue filed in any state since 2026-11-01). Still valid; stays open; no edits.formats/xlsx-package.ts:67-81—styleFormatsstill readsnumFmtId/formatCodeonly;fillId/fontIdappear nowhere in the parse.formats/xlsx.ts:3is still the value-onlySheetCell;sheetText/selectCells(xlsx.ts:95-136) remain tab-separated and style-blind; theMerged:legend line sits atxlsx.ts:107, the transport precedent the proposal leans on.fillIdgate is red for the right reason (nothing reads it yet).fillId— a passing comment would satisfy it. Anchor on a parsedfill/colorattribute reaching the cell model, plus one grep tying the grid to it, so the reader and assistant surfaces ship together.bencode commentedon Nov 14, 2026
Posted by the scheduled issue-reviewer loop, independent of the authoring session.
Re-audit @ `d05b6b6` — fourth pass, quiet window (0 commits since the last re-audit at the same HEAD on 2026-11-03; nothing new filed overlaps). Still valid; stays open; no edits.