Skip to content

fix(web): an ODS sheet with values beyond the preview columns is no longer called empty - #48160

Merged
Yash-Singh1 merged 4 commits into
pingdotgg:mainfrom
StiensWout:wf/find-924761008f48f88e16b31e24
Dec 3, 2026
Merged

Yash-Singh1 merged 4 commits into
pingdotgg:mainfrom
StiensWout:wf/find-924761008f48f88e16b31e24

Conversation

@StiensWout

Copy link
Copy Markdown
Contributor

An OpenDocument spreadsheet whose shown values all sit beyond the 50 columns the preview displays was described as “This sheet is empty.”, next to the notice that the preview is limited to 50 columns, so people could mistake omitted data for missing data. When the parsed sheet has no shown rows but was truncated, the preview now says the sheet has values beyond the previewed columns; truly empty sheets keep the empty message.

Related: #45119, #48130

Reproduction on main

Commit e0661db2c8 (main). The preview says “This sheet is empty” alongside its 50-column limit notice. Expected: The preview explains that the sheet has data outside the displayed columns.

  1. Save an ODS workbook whose first 50 columns are blank and whose 51st column contains a value.
  2. Open the workbook in the Files panel.

The cause is at apps/web/src/components/files/OfficeViewer.tsx:386. Ran pnpm scenarios:prove scripts/scenarios/ods-omitted-columns-do-not-make-sheet-empty.e2e.ts --target web with the repro scenario added: it failed in 2 of 2 runs on a clean boat.dev VM, with expected true to be false in the output.

Evidence

Environment: Linux x64 on a boat.dev VM reset before each run, the repository's own tests.

Proven: the replacement test apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx fails at the test commit 0ff8e486ef and passes on the head 663672a18c, both on main e0661db2c8.

Before After
Commit 0ff8e486ef 663672a18c
Result failed with "not to contain 'This sheet is empty.'" passed
ods preview limit Before: ods preview limit Before: ods preview limit (changed region)
The preview says “This sheet is empty” alongside its 50-column limit notice.
After: ods preview limit After: ods preview limit (changed region)
The preview explains that the sheet has data outside the displayed columns.
failure Before: failure
Recording Before: recording After: recording

Tests

  • 0ff8e486ef adds the failing test, alone, before the fix.
  • pnpm exec vp run check:changed e0661db2c851d1c8c2f126d37c40dc3e665e5ec6 passed on head.

Not in this change

  • The ODS status line still reads “0 rows · 0 columns” for such a sheet, counting only the shown part.
  • XLSX workbooks use the separate Open XML viewer, which this change does not touch.
  • No mobile or desktop change: the ODS preview is web-only code.

Who did the work

  • Repro written by GPT 6.2 Sol, in Codex
  • Duplicate check judged by Claude Opus 5.5, in Claude Code
  • Written 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
  • Reproduction, checks and proof run by a program on base and head, not by an agent

Made in T3 Code by Claude Opus 5.5 and GPT 6.2 Sol

StiensWout and others added 3 commits December 3, 2026 10:44
@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 Dec 3, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 663672a

Macroscope's review found this PR approvable — This updates spreadsheet preview messaging so truncated sheets are not labeled empty, with corresponding translations. It changes presentation only, leaving preview limits and underlying data unchanged.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The spreadsheet preview now distinguishes an empty sheet from a sheet with values beyond the displayed columns. The new notice has translations in 11 languages, and an ODS attachment test checks the truncated-sheet case.

Changes: Spreadsheet preview messaging

Layer / File(s) Summary
Preview notice and validation
apps/web/src/components/files/OfficeViewer.tsx, apps/web/src/i18n/translations/*.json, apps/web/src/components/files/AttachmentFilePreview.browser.test.tsx
When a sheet has zero displayed rows, the viewer shows a beyond-columns notice if the sheet is truncated; otherwise, it shows the empty-sheet message. Translations and an ODS attachment test cover the notice.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: Minimal · up to c1757

The ODS preview now says that values exist beyond the previewed columns instead of wrongly calling the sheet empty. Genuinely empty sheets keep the empty message. The change is low risk and was not found to need further work before merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and its subject: an ODS sheet whose values lie beyond the preview columns is no longer labeled empty. This matches the main change in OfficeViewer.tsx and the translation files…
Description check Passed The description follows the template. It has a problem statement with reproduction steps and expected behavior, a change explanation, a scope note that links related issues, and a detailed verificatio…
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 names the fix and its subject: an ODS sheet whose values lie beyond the preview columns is no longer labeled empty. This matches the main change in OfficeViewer.tsx and the translation files. The title is a conventional commit with a plain-language description, so it is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the template. It has a problem statement with reproduction steps and expected behavior, a change explanation, a scope note that links related issues, and a detailed verification section with commits, before/after evidence, and test results. It also records the authoring tools as the template asks. The Scope section does not clearly say why the change is a bug fix without an issue, since it links #45119 and #48130 only as "Related" and does not state whether they show this bug. That is a minor gap, not a blocker.

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

Commits

Reviewing files that changed from the base of the PR and between 663672a and c175767.

Files selected for processing: 11

  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pl.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json
Files skipped from review as they are similar to previous changes: 11

  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pl.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 3, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

the proof could not be captured: the agent's turn was cut short: failed

It stays open for a person to finish or close.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Dec 3, 2026
@Yash-Singh1
Yash-Singh1 merged commit 2f38dc4 into pingdotgg:main Dec 3, 2026
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants