GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): keep drawing labels out of ODS cell values by StiensWout · Pull Request #44925 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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:

  1. Start the web app and open a project that contains an ODS spreadsheet.
  2. 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.
  3. Open the spreadsheet from the file list so the preview is shown.
  4. 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.

All reactions
StiensWout and others added 5 commits November 28, 2026 13:00
@StiensWout @codex
test(web): reproduce inline drawing text in ODS cells
5e98e56
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(web): keep drawing labels out of ODS cell values
b0e0eff
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @claude
refactor(web): rebuild ODS cell nodes without drawings in one filter …
1b371cc
…and map

Co-authored-by: Claude Opus 5.5 <[email protected]>
@StiensWout @codex
fix(web): preserve ODS stored values after drawing removal
bdd80c4
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @claude
refactor(web): read ODS cell paragraphs in one filter, map and flatMa…
a10d82f
…p chain

Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: c3f060f
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fbdc8889-ad0c-4b27-86a2-a278fc65398a
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 28, 2026
juliusmarminge and others added 2 commits November 28, 2026 12:26
@juliusmarminge
Merge remote-tracking branch 'origin/main' into wf/find-623eee10736d3…
432689d
…915c072128e
@juliusmarminge @claude
test(web): fold ODS nested drawing cases into the existing shape test
eedd1cb
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

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
Before: drawing labels pollute cell values After: clean text and stored values
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit 27a5587 into pingdotgg:main Nov 28, 2026
60 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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.

Projects

None yet

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.

2 participants

@StiensWout @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.