Repository navigation
Description
Problem
When a Word document converts, Mammoth reports exactly which content it could not convert — and Gamma Reader throws that report into the developer console. convertDocxToMarkdown returns structured messages (core/docx.ts:108-112), the reader destructures them (docx-reader.tsx:24), and the only surfacing is reportDocxMessages, whose comment says "every reader surfaces it the same way" — the way being console.warn/console.error (core/docx.ts:10-17). A reader who opens a reviewed contract or an equation-heavy report sees the converted text with no indication that tracked changes, comments, equations, or an image went missing. They cannot know, and would not think to open devtools.
The README documents that Word conversion "keeps structure and drops presentation" as a general rule — but the product holds per-file ground truth at runtime (Mammoth's messages say what THIS document lost) and never shows it. The wide-sheet precedent shows the right pattern already in the product: the spreadsheet grid tells the reader "Showing the first N of M columns" (xlsx-reader/index.tsx:136-138). Word has no equivalent.
Proposal
- When a conversion produces warnings, show one quiet line in the Word document's view — "Some Word content did not convert" with the count, expandable to Mammoth's message list;
role=status, no dialog, no warning color. - Keep clean documents quiet: no messages, no line — the notice is per-file ground truth, not a blanket disclaimer.
- Errors already fail the document loudly; this is only about the warning tier that currently renders fine but incompletely.
Goal
After this, a reader opening a Word document that lost content in conversion is told so in the document view itself — with the same per-file candor the spreadsheet grid already applies to truncated columns — instead of the information living only in the browser console.
Verification
grep -rqi "did not convert" ui-packages/web/src/features/reader/docx-reader.tsx
pnpm --filter @gamma-reader/web test --silent
pnpm checkRefs
- ui-packages/web/src/core/docx.ts:10-17 —
reportDocxMessagesis console-only - ui-packages/web/src/features/reader/docx-reader.tsx:24-27 — messages destructured, then logged away
- ui-packages/web/src/features/reader/xlsx-reader/index.tsx:136-138 — the per-file candor pattern to match
- README.md "Document support" — the documented conversion losses this would make visible per file
- Tell readers what Run means before the first execution — code runs locally and can reach the network #43 — same principle at another moment: disclose at the surface, not only in the README
Activity
bencode commentedon Sep 30, 2026
Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire
source:scheduledproposals.Evidence audit (against
main@d28fe0b): all citations confirmed.reportDocxMessagesis console-only with the ironic comment "every reader surfaces it the same way" (core/docx.ts:9-17); the reader destructures Mammoth's structuredmessagesand hands them straight to that logger (docx-reader.tsx:24-27).xlsx-reader/index.tsx:136-138).lintpassed;verifyfails today as it should → stays open.Verdict: valid, keep open. The product holds per-file ground truth and dumps it to devtools — the "cannot know without opening the console" framing is exactly right, and the quiet per-file notice matches both the xlsx precedent and PRODUCT.md.
One note (non-blocking): the anchor binds the proposed copy "did not convert" in
docx-reader.tsx. The existing console wording is "Unconverted content in …" — an implementer reusing that phrasing ("Unconverted content") fails the gate. If the copy is the spec, fine; otherwise anchor to the mechanism (e.g.grep -rqi "DocxMessage" ui-packages/web/src/features/reader/docx-reader.tsx).bencode commentedon Oct 2, 2026
Close audit — posted by the scheduled issue-reviewer loop (independent of the authoring session), under the maintainer's standing instruction to maintain
source:scheduledproposals.Auto-closed by the merge of #73 (
e1a2e8e), bypassing the relay close gate. Audit atmain@e241313:markUnconvertedContent(core/docx-unconverted.ts, jszip-based) rewrites the document XML before conversion so unconverted content is marked inline where it stood — per-item, at the exact position, which serves the Goal ("told so in the document view itself") better than a count-and-expand. Dedicated tests ship with it (docx-unconverted.test.ts, 109 lines).pnpm checkgreen at this commit (note for local runners: PR Mark Word content that does not convert where it stood #73 addedjszip—pnpm installbefore verifying).docx-reader.tsxfor "did not convert" — the feature lives incore/, wired throughconvertDocxToMarkdown(docx.ts:80-85), with different wording. My original review predicted this exact miss. Three for three now (Open CSV in the spreadsheet grid the product already has, not as raw text #41, Bound Lab cell output — one large print can freeze the reading tab #55, Tell readers which Word content did not convert, instead of logging it to the browser console #45): vocabulary/route-guessing anchors do not survive contact with real implementations; Make Gamma Reader installable — a manifest, an icon, a standalone window #56/Let readers find a value in a sheet — the grid renders only the rows on screen, so Ctrl+F finds nothing #69-style deliverable-shaped anchors do.Action: added
state:needs-verification. Maintainer: swap tostate:verifiedafter opening a Word doc with tracked changes/comments/equations and seeing the inline markers, or reopen if it misses.