GeezerVison is showing github.com — fix(web): keep drawing labels out of ODS cell values by StiensWout · Pull Request #44925 · pingdotgg/t3code
Conversation
ODS previews could show inline drawing labels as part of spreadsheet cell values. Cell extraction now skips drawings, preserves paragraph breaks when there is cell text, and falls back to the stored value when all extracted paragraphs are empty. It reuses draw-free XML nodes and skips direct cell annotations before pruning.
Related: #33039, #37716, #43654
Reproduction on main
Commit 40b0a98a20 (main), in the running web app:
- Start the web app and open a project that contains an ODS spreadsheet.
- In that spreadsheet, use a cell whose paragraph is the words In stock followed, in the same paragraph, by an inline drawing whose text is Recount on Monday.
- Open the spreadsheet from the file list so the preview is shown.
- Read that cell.
The cell reads In stockRecount on Monday. Expected: The cell reads In stock.
The cause is at apps/web/src/components/files/extendedDocumentPreview.ts:322. Ran cd apps/web && pnpm exec vp test run src/components/files/ods-inline-drawing.test.ts with the repro test added: it failed in 2 of 2 runs on a clean checkout, with expected 'In stockRecount on Monday' to be 'In stock' in the output.
Evidence
Environment: Linux x64, the repository's own tests.
Proven: the repro fails at the test commit 5e98e56ad9 and passes on the head a10d82f58b, both on main eeac156179.
|
Before |
After |
| Commit |
5e98e56ad9 |
a10d82f58b |
| Result |
failed with "expected 'In stockRecount on Monday' to be 'In stock'" |
passed |
Outside view: a person sees it in the running web app by following the steps under Reproduction on main.
Tests
- 5e98e56ad9 adds the failing test, alone, before the fix.
pnpm exec vp run check:changed eeac15617966f685e348c70a498bed9cfcb3fa48 passed on head.
Not in this change
- The fix is limited to ODS cell values. ODT and ODP drawing rendering is outside its scope.
Who did the work
- Repro written by GPT 6.2 Sol, in Codex
- Outside view by Grok 4.7, in Grok
- Duplicate check judged by Claude Opus 5.5, in Claude Code
- Written by GPT 6.2 Sol, in Codex
- Trimmed by Claude Opus 5.5, in Claude Code
- Reviewed by Claude Opus 5.5, in Claude Code, and by GPT 6.2 Sol, in Codex, and by Grok 4.7, in Grok
- Reproduction, checks and proof run by a program on base and head, not by an agent
Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5 and Grok 4.7
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
ODS cell text extraction now recursively removes drawing nodes before collecting paragraph text. The ODS preview test checks that drawing text is excluded while surrounding list text and an explicit cell value are retained.
Changes: ODS Preview
| Layer / File(s) |
Summary |
Cell text extraction and coverage apps/web/src/components/files/extendedDocumentPreview.ts, apps/web/src/components/files/FilePreviewPanel.test.ts |
ODS cell extraction recursively removes drawing nodes, excludes direct annotations, joins nonempty paragraph text, and retains the existing office-value fallback. Tests cover inline shapes in list text and repeated shapes in a cell with an explicit value. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: iamshadmantaqi, only21mil
Merge Risk: Minimal · up to eedd1
-
ODS cell previews now exclude inline drawing labels while keeping surrounding text and explicit cell values. No actionable merge risk remains.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(web): keep drawing labels out of ODS cell values" matches the main change. The PR stops inline drawing text from appearing in ODS spreadsheet cell values, and the raw summary and object… |
| Description check |
 |
The description follows the repository template. It covers the problem (inline drawing labels appear in ODS cell values), the change (skip drawings, preserve paragraph breaks, fall back to stored valu… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "fix(web): keep drawing labels out of ODS cell values" matches the main change. The PR stops inline drawing text from appearing in ODS spreadsheet cell values, and the raw summary and objectives confirm this. It uses a conventional commit prefix and names the affected area (web, ODS cells).
Full details: Description check
-
Explanation
The description follows the repository template. It covers the problem (inline drawing labels appear in ODS cell values), the change (skip drawings, preserve paragraph breaks, fall back to stored value, prune draw-free nodes), scope (limited to ODS cell values; ODT and ODP are excluded and an issue is linked as related), and verification (a reproduction on main, a failing test before the fix that passes on head, and a stated check command). Its validation evidence is detailed. Minor gaps: the Scope section links related issues but does not clearly say which issue shows the bug, and the Verification section does not include a screenshot, which is not needed for a non-UI text-extraction fix. The description also includes a long agent attribution list. The template asks for the model and harness that did the work, so that part is acceptable.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between a10d82f and eedd1cb.
Files selected for processing: 1
-
apps/web/src/components/files/FilePreviewPanel.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Evidence
Opened the same synthetic stock.ods through a Replay thread → right panel → Files on fresh databases. Maximized the preview in Chromium, 1280×800, light theme. B2 mixes text and a nested drawing; B3 contains drawing-only paragraphs with stored value Available; B4 contains empty paragraphs with stored value Ready.
| Before |
After |
| c3f060f077 |
eedd1cbde9 |
 |
 |
| B2: In stockRecount on Monday; B3: two drawing labels; B4: blank |
B2: In stock; B3: Available; B4: Ready |
Scenario source · Before recording · After recording
The scenario failed on base and passed on head; both rendered results were visually inspected.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|